| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package iot
- 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 opAcceptCertificateTransfer = "AcceptCertificateTransfer"
- // AcceptCertificateTransferRequest generates a "aws/request.Request" representing the
- // client's request for the AcceptCertificateTransfer 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 AcceptCertificateTransfer for more information on using the AcceptCertificateTransfer
- // 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 AcceptCertificateTransferRequest method.
- // req, resp := client.AcceptCertificateTransferRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) AcceptCertificateTransferRequest(input *AcceptCertificateTransferInput) (req *request.Request, output *AcceptCertificateTransferOutput) {
- op := &request.Operation{
- Name: opAcceptCertificateTransfer,
- HTTPMethod: "PATCH",
- HTTPPath: "/accept-certificate-transfer/{certificateId}",
- }
- if input == nil {
- input = &AcceptCertificateTransferInput{}
- }
- output = &AcceptCertificateTransferOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // AcceptCertificateTransfer API operation for AWS IoT.
- //
- // Accepts a pending certificate transfer. The default state of the certificate
- // is INACTIVE.
- //
- // To check for pending certificate transfers, call ListCertificates to enumerate
- // your certificates.
- //
- // 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's
- // API operation AcceptCertificateTransfer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeTransferAlreadyCompletedException "TransferAlreadyCompletedException"
- // You can't revert the certificate transfer because the transfer is already
- // complete.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) AcceptCertificateTransfer(input *AcceptCertificateTransferInput) (*AcceptCertificateTransferOutput, error) {
- req, out := c.AcceptCertificateTransferRequest(input)
- return out, req.Send()
- }
- // AcceptCertificateTransferWithContext is the same as AcceptCertificateTransfer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AcceptCertificateTransfer 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 *IoT) AcceptCertificateTransferWithContext(ctx aws.Context, input *AcceptCertificateTransferInput, opts ...request.Option) (*AcceptCertificateTransferOutput, error) {
- req, out := c.AcceptCertificateTransferRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAddThingToBillingGroup = "AddThingToBillingGroup"
- // AddThingToBillingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the AddThingToBillingGroup 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 AddThingToBillingGroup for more information on using the AddThingToBillingGroup
- // 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 AddThingToBillingGroupRequest method.
- // req, resp := client.AddThingToBillingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) AddThingToBillingGroupRequest(input *AddThingToBillingGroupInput) (req *request.Request, output *AddThingToBillingGroupOutput) {
- op := &request.Operation{
- Name: opAddThingToBillingGroup,
- HTTPMethod: "PUT",
- HTTPPath: "/billing-groups/addThingToBillingGroup",
- }
- if input == nil {
- input = &AddThingToBillingGroupInput{}
- }
- output = &AddThingToBillingGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // AddThingToBillingGroup API operation for AWS IoT.
- //
- // Adds a thing to a billing group.
- //
- // 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's
- // API operation AddThingToBillingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) AddThingToBillingGroup(input *AddThingToBillingGroupInput) (*AddThingToBillingGroupOutput, error) {
- req, out := c.AddThingToBillingGroupRequest(input)
- return out, req.Send()
- }
- // AddThingToBillingGroupWithContext is the same as AddThingToBillingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AddThingToBillingGroup 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 *IoT) AddThingToBillingGroupWithContext(ctx aws.Context, input *AddThingToBillingGroupInput, opts ...request.Option) (*AddThingToBillingGroupOutput, error) {
- req, out := c.AddThingToBillingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAddThingToThingGroup = "AddThingToThingGroup"
- // AddThingToThingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the AddThingToThingGroup 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 AddThingToThingGroup for more information on using the AddThingToThingGroup
- // 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 AddThingToThingGroupRequest method.
- // req, resp := client.AddThingToThingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) AddThingToThingGroupRequest(input *AddThingToThingGroupInput) (req *request.Request, output *AddThingToThingGroupOutput) {
- op := &request.Operation{
- Name: opAddThingToThingGroup,
- HTTPMethod: "PUT",
- HTTPPath: "/thing-groups/addThingToThingGroup",
- }
- if input == nil {
- input = &AddThingToThingGroupInput{}
- }
- output = &AddThingToThingGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // AddThingToThingGroup API operation for AWS IoT.
- //
- // Adds a thing to a thing group.
- //
- // 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's
- // API operation AddThingToThingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) AddThingToThingGroup(input *AddThingToThingGroupInput) (*AddThingToThingGroupOutput, error) {
- req, out := c.AddThingToThingGroupRequest(input)
- return out, req.Send()
- }
- // AddThingToThingGroupWithContext is the same as AddThingToThingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AddThingToThingGroup 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 *IoT) AddThingToThingGroupWithContext(ctx aws.Context, input *AddThingToThingGroupInput, opts ...request.Option) (*AddThingToThingGroupOutput, error) {
- req, out := c.AddThingToThingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAssociateTargetsWithJob = "AssociateTargetsWithJob"
- // AssociateTargetsWithJobRequest generates a "aws/request.Request" representing the
- // client's request for the AssociateTargetsWithJob 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 AssociateTargetsWithJob for more information on using the AssociateTargetsWithJob
- // 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 AssociateTargetsWithJobRequest method.
- // req, resp := client.AssociateTargetsWithJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) AssociateTargetsWithJobRequest(input *AssociateTargetsWithJobInput) (req *request.Request, output *AssociateTargetsWithJobOutput) {
- op := &request.Operation{
- Name: opAssociateTargetsWithJob,
- HTTPMethod: "POST",
- HTTPPath: "/jobs/{jobId}/targets",
- }
- if input == nil {
- input = &AssociateTargetsWithJobInput{}
- }
- output = &AssociateTargetsWithJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AssociateTargetsWithJob API operation for AWS IoT.
- //
- // Associates a group with a continuous job. The following criteria must be
- // met:
- //
- // * The job must have been created with the targetSelection field set to
- // "CONTINUOUS".
- //
- // * The job status must currently be "IN_PROGRESS".
- //
- // * The total number of targets associated with a job must not exceed 100.
- //
- // 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's
- // API operation AssociateTargetsWithJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) AssociateTargetsWithJob(input *AssociateTargetsWithJobInput) (*AssociateTargetsWithJobOutput, error) {
- req, out := c.AssociateTargetsWithJobRequest(input)
- return out, req.Send()
- }
- // AssociateTargetsWithJobWithContext is the same as AssociateTargetsWithJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AssociateTargetsWithJob 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 *IoT) AssociateTargetsWithJobWithContext(ctx aws.Context, input *AssociateTargetsWithJobInput, opts ...request.Option) (*AssociateTargetsWithJobOutput, error) {
- req, out := c.AssociateTargetsWithJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAttachPolicy = "AttachPolicy"
- // AttachPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the AttachPolicy 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 AttachPolicy for more information on using the AttachPolicy
- // 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 AttachPolicyRequest method.
- // req, resp := client.AttachPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) AttachPolicyRequest(input *AttachPolicyInput) (req *request.Request, output *AttachPolicyOutput) {
- op := &request.Operation{
- Name: opAttachPolicy,
- HTTPMethod: "PUT",
- HTTPPath: "/target-policies/{policyName}",
- }
- if input == nil {
- input = &AttachPolicyInput{}
- }
- output = &AttachPolicyOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // AttachPolicy API operation for AWS IoT.
- //
- // Attaches a policy to the specified target.
- //
- // 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's
- // API operation AttachPolicy for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- func (c *IoT) AttachPolicy(input *AttachPolicyInput) (*AttachPolicyOutput, error) {
- req, out := c.AttachPolicyRequest(input)
- return out, req.Send()
- }
- // AttachPolicyWithContext is the same as AttachPolicy with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AttachPolicy 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 *IoT) AttachPolicyWithContext(ctx aws.Context, input *AttachPolicyInput, opts ...request.Option) (*AttachPolicyOutput, error) {
- req, out := c.AttachPolicyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAttachPrincipalPolicy = "AttachPrincipalPolicy"
- // AttachPrincipalPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the AttachPrincipalPolicy 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 AttachPrincipalPolicy for more information on using the AttachPrincipalPolicy
- // 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 AttachPrincipalPolicyRequest method.
- // req, resp := client.AttachPrincipalPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // Deprecated: AttachPrincipalPolicy has been deprecated
- func (c *IoT) AttachPrincipalPolicyRequest(input *AttachPrincipalPolicyInput) (req *request.Request, output *AttachPrincipalPolicyOutput) {
- if c.Client.Config.Logger != nil {
- c.Client.Config.Logger.Log("This operation, AttachPrincipalPolicy, has been deprecated")
- }
- op := &request.Operation{
- Name: opAttachPrincipalPolicy,
- HTTPMethod: "PUT",
- HTTPPath: "/principal-policies/{policyName}",
- }
- if input == nil {
- input = &AttachPrincipalPolicyInput{}
- }
- output = &AttachPrincipalPolicyOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // AttachPrincipalPolicy API operation for AWS IoT.
- //
- // Attaches the specified policy to the specified principal (certificate or
- // other credential).
- //
- // Note: This API is deprecated. Please use AttachPolicy instead.
- //
- // 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's
- // API operation AttachPrincipalPolicy for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- //
- // Deprecated: AttachPrincipalPolicy has been deprecated
- func (c *IoT) AttachPrincipalPolicy(input *AttachPrincipalPolicyInput) (*AttachPrincipalPolicyOutput, error) {
- req, out := c.AttachPrincipalPolicyRequest(input)
- return out, req.Send()
- }
- // AttachPrincipalPolicyWithContext is the same as AttachPrincipalPolicy with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AttachPrincipalPolicy 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.
- //
- // Deprecated: AttachPrincipalPolicyWithContext has been deprecated
- func (c *IoT) AttachPrincipalPolicyWithContext(ctx aws.Context, input *AttachPrincipalPolicyInput, opts ...request.Option) (*AttachPrincipalPolicyOutput, error) {
- req, out := c.AttachPrincipalPolicyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAttachSecurityProfile = "AttachSecurityProfile"
- // AttachSecurityProfileRequest generates a "aws/request.Request" representing the
- // client's request for the AttachSecurityProfile 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 AttachSecurityProfile for more information on using the AttachSecurityProfile
- // 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 AttachSecurityProfileRequest method.
- // req, resp := client.AttachSecurityProfileRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) AttachSecurityProfileRequest(input *AttachSecurityProfileInput) (req *request.Request, output *AttachSecurityProfileOutput) {
- op := &request.Operation{
- Name: opAttachSecurityProfile,
- HTTPMethod: "PUT",
- HTTPPath: "/security-profiles/{securityProfileName}/targets",
- }
- if input == nil {
- input = &AttachSecurityProfileInput{}
- }
- output = &AttachSecurityProfileOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // AttachSecurityProfile API operation for AWS IoT.
- //
- // Associates a Device Defender security profile with a thing group or with
- // this account. Each thing group or account can have up to five security profiles
- // associated with it.
- //
- // 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's
- // API operation AttachSecurityProfile for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) AttachSecurityProfile(input *AttachSecurityProfileInput) (*AttachSecurityProfileOutput, error) {
- req, out := c.AttachSecurityProfileRequest(input)
- return out, req.Send()
- }
- // AttachSecurityProfileWithContext is the same as AttachSecurityProfile with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AttachSecurityProfile 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 *IoT) AttachSecurityProfileWithContext(ctx aws.Context, input *AttachSecurityProfileInput, opts ...request.Option) (*AttachSecurityProfileOutput, error) {
- req, out := c.AttachSecurityProfileRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAttachThingPrincipal = "AttachThingPrincipal"
- // AttachThingPrincipalRequest generates a "aws/request.Request" representing the
- // client's request for the AttachThingPrincipal 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 AttachThingPrincipal for more information on using the AttachThingPrincipal
- // 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 AttachThingPrincipalRequest method.
- // req, resp := client.AttachThingPrincipalRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) AttachThingPrincipalRequest(input *AttachThingPrincipalInput) (req *request.Request, output *AttachThingPrincipalOutput) {
- op := &request.Operation{
- Name: opAttachThingPrincipal,
- HTTPMethod: "PUT",
- HTTPPath: "/things/{thingName}/principals",
- }
- if input == nil {
- input = &AttachThingPrincipalInput{}
- }
- output = &AttachThingPrincipalOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // AttachThingPrincipal API operation for AWS IoT.
- //
- // Attaches the specified principal to the specified thing.
- //
- // 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's
- // API operation AttachThingPrincipal for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) AttachThingPrincipal(input *AttachThingPrincipalInput) (*AttachThingPrincipalOutput, error) {
- req, out := c.AttachThingPrincipalRequest(input)
- return out, req.Send()
- }
- // AttachThingPrincipalWithContext is the same as AttachThingPrincipal with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AttachThingPrincipal 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 *IoT) AttachThingPrincipalWithContext(ctx aws.Context, input *AttachThingPrincipalInput, opts ...request.Option) (*AttachThingPrincipalOutput, error) {
- req, out := c.AttachThingPrincipalRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCancelAuditTask = "CancelAuditTask"
- // CancelAuditTaskRequest generates a "aws/request.Request" representing the
- // client's request for the CancelAuditTask 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 CancelAuditTask for more information on using the CancelAuditTask
- // 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 CancelAuditTaskRequest method.
- // req, resp := client.CancelAuditTaskRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CancelAuditTaskRequest(input *CancelAuditTaskInput) (req *request.Request, output *CancelAuditTaskOutput) {
- op := &request.Operation{
- Name: opCancelAuditTask,
- HTTPMethod: "PUT",
- HTTPPath: "/audit/tasks/{taskId}/cancel",
- }
- if input == nil {
- input = &CancelAuditTaskInput{}
- }
- output = &CancelAuditTaskOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // CancelAuditTask API operation for AWS IoT.
- //
- // Cancels an audit that is in progress. The audit can be either scheduled or
- // on-demand. If the audit is not in progress, an "InvalidRequestException"
- // occurs.
- //
- // 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's
- // API operation CancelAuditTask for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CancelAuditTask(input *CancelAuditTaskInput) (*CancelAuditTaskOutput, error) {
- req, out := c.CancelAuditTaskRequest(input)
- return out, req.Send()
- }
- // CancelAuditTaskWithContext is the same as CancelAuditTask with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CancelAuditTask 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 *IoT) CancelAuditTaskWithContext(ctx aws.Context, input *CancelAuditTaskInput, opts ...request.Option) (*CancelAuditTaskOutput, error) {
- req, out := c.CancelAuditTaskRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCancelCertificateTransfer = "CancelCertificateTransfer"
- // CancelCertificateTransferRequest generates a "aws/request.Request" representing the
- // client's request for the CancelCertificateTransfer 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 CancelCertificateTransfer for more information on using the CancelCertificateTransfer
- // 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 CancelCertificateTransferRequest method.
- // req, resp := client.CancelCertificateTransferRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CancelCertificateTransferRequest(input *CancelCertificateTransferInput) (req *request.Request, output *CancelCertificateTransferOutput) {
- op := &request.Operation{
- Name: opCancelCertificateTransfer,
- HTTPMethod: "PATCH",
- HTTPPath: "/cancel-certificate-transfer/{certificateId}",
- }
- if input == nil {
- input = &CancelCertificateTransferInput{}
- }
- output = &CancelCertificateTransferOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // CancelCertificateTransfer API operation for AWS IoT.
- //
- // Cancels a pending transfer for the specified certificate.
- //
- // Note Only the transfer source account can use this operation to cancel a
- // transfer. (Transfer destinations can use RejectCertificateTransfer instead.)
- // After transfer, AWS IoT returns the certificate to the source account in
- // the INACTIVE state. After the destination account has accepted the transfer,
- // the transfer cannot be cancelled.
- //
- // After a certificate transfer is cancelled, the status of the certificate
- // changes from PENDING_TRANSFER to INACTIVE.
- //
- // 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's
- // API operation CancelCertificateTransfer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeTransferAlreadyCompletedException "TransferAlreadyCompletedException"
- // You can't revert the certificate transfer because the transfer is already
- // complete.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CancelCertificateTransfer(input *CancelCertificateTransferInput) (*CancelCertificateTransferOutput, error) {
- req, out := c.CancelCertificateTransferRequest(input)
- return out, req.Send()
- }
- // CancelCertificateTransferWithContext is the same as CancelCertificateTransfer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CancelCertificateTransfer 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 *IoT) CancelCertificateTransferWithContext(ctx aws.Context, input *CancelCertificateTransferInput, opts ...request.Option) (*CancelCertificateTransferOutput, error) {
- req, out := c.CancelCertificateTransferRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCancelJob = "CancelJob"
- // CancelJobRequest generates a "aws/request.Request" representing the
- // client's request for the CancelJob 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 CancelJob for more information on using the CancelJob
- // 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 CancelJobRequest method.
- // req, resp := client.CancelJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CancelJobRequest(input *CancelJobInput) (req *request.Request, output *CancelJobOutput) {
- op := &request.Operation{
- Name: opCancelJob,
- HTTPMethod: "PUT",
- HTTPPath: "/jobs/{jobId}/cancel",
- }
- if input == nil {
- input = &CancelJobInput{}
- }
- output = &CancelJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CancelJob API operation for AWS IoT.
- //
- // Cancels a job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation CancelJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) {
- req, out := c.CancelJobRequest(input)
- return out, req.Send()
- }
- // CancelJobWithContext is the same as CancelJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CancelJob 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 *IoT) CancelJobWithContext(ctx aws.Context, input *CancelJobInput, opts ...request.Option) (*CancelJobOutput, error) {
- req, out := c.CancelJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCancelJobExecution = "CancelJobExecution"
- // CancelJobExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the CancelJobExecution 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 CancelJobExecution for more information on using the CancelJobExecution
- // 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 CancelJobExecutionRequest method.
- // req, resp := client.CancelJobExecutionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CancelJobExecutionRequest(input *CancelJobExecutionInput) (req *request.Request, output *CancelJobExecutionOutput) {
- op := &request.Operation{
- Name: opCancelJobExecution,
- HTTPMethod: "PUT",
- HTTPPath: "/things/{thingName}/jobs/{jobId}/cancel",
- }
- if input == nil {
- input = &CancelJobExecutionInput{}
- }
- output = &CancelJobExecutionOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // CancelJobExecution API operation for AWS IoT.
- //
- // Cancels the execution of a job for a given thing.
- //
- // 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's
- // API operation CancelJobExecution for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException"
- // An attempt was made to change to an invalid state, for example by deleting
- // a job or a job execution which is "IN_PROGRESS" without setting the force
- // parameter.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- func (c *IoT) CancelJobExecution(input *CancelJobExecutionInput) (*CancelJobExecutionOutput, error) {
- req, out := c.CancelJobExecutionRequest(input)
- return out, req.Send()
- }
- // CancelJobExecutionWithContext is the same as CancelJobExecution with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CancelJobExecution 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 *IoT) CancelJobExecutionWithContext(ctx aws.Context, input *CancelJobExecutionInput, opts ...request.Option) (*CancelJobExecutionOutput, error) {
- req, out := c.CancelJobExecutionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opClearDefaultAuthorizer = "ClearDefaultAuthorizer"
- // ClearDefaultAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the ClearDefaultAuthorizer 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 ClearDefaultAuthorizer for more information on using the ClearDefaultAuthorizer
- // 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 ClearDefaultAuthorizerRequest method.
- // req, resp := client.ClearDefaultAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ClearDefaultAuthorizerRequest(input *ClearDefaultAuthorizerInput) (req *request.Request, output *ClearDefaultAuthorizerOutput) {
- op := &request.Operation{
- Name: opClearDefaultAuthorizer,
- HTTPMethod: "DELETE",
- HTTPPath: "/default-authorizer",
- }
- if input == nil {
- input = &ClearDefaultAuthorizerInput{}
- }
- output = &ClearDefaultAuthorizerOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // ClearDefaultAuthorizer API operation for AWS IoT.
- //
- // Clears the default authorizer.
- //
- // 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's
- // API operation ClearDefaultAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ClearDefaultAuthorizer(input *ClearDefaultAuthorizerInput) (*ClearDefaultAuthorizerOutput, error) {
- req, out := c.ClearDefaultAuthorizerRequest(input)
- return out, req.Send()
- }
- // ClearDefaultAuthorizerWithContext is the same as ClearDefaultAuthorizer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ClearDefaultAuthorizer 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 *IoT) ClearDefaultAuthorizerWithContext(ctx aws.Context, input *ClearDefaultAuthorizerInput, opts ...request.Option) (*ClearDefaultAuthorizerOutput, error) {
- req, out := c.ClearDefaultAuthorizerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateAuthorizer = "CreateAuthorizer"
- // CreateAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the CreateAuthorizer 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 CreateAuthorizer for more information on using the CreateAuthorizer
- // 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 CreateAuthorizerRequest method.
- // req, resp := client.CreateAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateAuthorizerRequest(input *CreateAuthorizerInput) (req *request.Request, output *CreateAuthorizerOutput) {
- op := &request.Operation{
- Name: opCreateAuthorizer,
- HTTPMethod: "POST",
- HTTPPath: "/authorizer/{authorizerName}",
- }
- if input == nil {
- input = &CreateAuthorizerInput{}
- }
- output = &CreateAuthorizerOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateAuthorizer API operation for AWS IoT.
- //
- // Creates an authorizer.
- //
- // 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's
- // API operation CreateAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CreateAuthorizer(input *CreateAuthorizerInput) (*CreateAuthorizerOutput, error) {
- req, out := c.CreateAuthorizerRequest(input)
- return out, req.Send()
- }
- // CreateAuthorizerWithContext is the same as CreateAuthorizer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateAuthorizer 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 *IoT) CreateAuthorizerWithContext(ctx aws.Context, input *CreateAuthorizerInput, opts ...request.Option) (*CreateAuthorizerOutput, error) {
- req, out := c.CreateAuthorizerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateBillingGroup = "CreateBillingGroup"
- // CreateBillingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the CreateBillingGroup 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 CreateBillingGroup for more information on using the CreateBillingGroup
- // 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 CreateBillingGroupRequest method.
- // req, resp := client.CreateBillingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateBillingGroupRequest(input *CreateBillingGroupInput) (req *request.Request, output *CreateBillingGroupOutput) {
- op := &request.Operation{
- Name: opCreateBillingGroup,
- HTTPMethod: "POST",
- HTTPPath: "/billing-groups/{billingGroupName}",
- }
- if input == nil {
- input = &CreateBillingGroupInput{}
- }
- output = &CreateBillingGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateBillingGroup API operation for AWS IoT.
- //
- // Creates a billing group.
- //
- // 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's
- // API operation CreateBillingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CreateBillingGroup(input *CreateBillingGroupInput) (*CreateBillingGroupOutput, error) {
- req, out := c.CreateBillingGroupRequest(input)
- return out, req.Send()
- }
- // CreateBillingGroupWithContext is the same as CreateBillingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateBillingGroup 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 *IoT) CreateBillingGroupWithContext(ctx aws.Context, input *CreateBillingGroupInput, opts ...request.Option) (*CreateBillingGroupOutput, error) {
- req, out := c.CreateBillingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateCertificateFromCsr = "CreateCertificateFromCsr"
- // CreateCertificateFromCsrRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCertificateFromCsr 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 CreateCertificateFromCsr for more information on using the CreateCertificateFromCsr
- // 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 CreateCertificateFromCsrRequest method.
- // req, resp := client.CreateCertificateFromCsrRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateCertificateFromCsrRequest(input *CreateCertificateFromCsrInput) (req *request.Request, output *CreateCertificateFromCsrOutput) {
- op := &request.Operation{
- Name: opCreateCertificateFromCsr,
- HTTPMethod: "POST",
- HTTPPath: "/certificates",
- }
- if input == nil {
- input = &CreateCertificateFromCsrInput{}
- }
- output = &CreateCertificateFromCsrOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateCertificateFromCsr API operation for AWS IoT.
- //
- // Creates an X.509 certificate using the specified certificate signing request.
- //
- // Note: The CSR must include a public key that is either an RSA key with a
- // length of at least 2048 bits or an ECC key from NIST P-256 or NIST P-384
- // curves.
- //
- // Note: Reusing the same certificate signing request (CSR) results in a distinct
- // certificate.
- //
- // You can create multiple certificates in a batch by creating a directory,
- // copying multiple .csr files into that directory, and then specifying that
- // directory on the command line. The following commands show how to create
- // a batch of certificates given a batch of CSRs.
- //
- // Assuming a set of CSRs are located inside of the directory my-csr-directory:
- //
- // On Linux and OS X, the command is:
- //
- // $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr
- // --certificate-signing-request file://my-csr-directory/{}
- //
- // This command lists all of the CSRs in my-csr-directory and pipes each CSR
- // file name to the aws iot create-certificate-from-csr AWS CLI command to create
- // a certificate for the corresponding CSR.
- //
- // The aws iot create-certificate-from-csr part of the command can also be run
- // in parallel to speed up the certificate creation process:
- //
- // $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr
- // --certificate-signing-request file://my-csr-directory/{}
- //
- // On Windows PowerShell, the command to create certificates for all CSRs in
- // my-csr-directory is:
- //
- // > ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request
- // file://my-csr-directory/$_}
- //
- // On a Windows command prompt, the command to create certificates for all CSRs
- // in my-csr-directory is:
- //
- // > forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr
- // --certificate-signing-request file://@path"
- //
- // 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's
- // API operation CreateCertificateFromCsr for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CreateCertificateFromCsr(input *CreateCertificateFromCsrInput) (*CreateCertificateFromCsrOutput, error) {
- req, out := c.CreateCertificateFromCsrRequest(input)
- return out, req.Send()
- }
- // CreateCertificateFromCsrWithContext is the same as CreateCertificateFromCsr with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateCertificateFromCsr 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 *IoT) CreateCertificateFromCsrWithContext(ctx aws.Context, input *CreateCertificateFromCsrInput, opts ...request.Option) (*CreateCertificateFromCsrOutput, error) {
- req, out := c.CreateCertificateFromCsrRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateDynamicThingGroup = "CreateDynamicThingGroup"
- // CreateDynamicThingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDynamicThingGroup 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 CreateDynamicThingGroup for more information on using the CreateDynamicThingGroup
- // 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 CreateDynamicThingGroupRequest method.
- // req, resp := client.CreateDynamicThingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateDynamicThingGroupRequest(input *CreateDynamicThingGroupInput) (req *request.Request, output *CreateDynamicThingGroupOutput) {
- op := &request.Operation{
- Name: opCreateDynamicThingGroup,
- HTTPMethod: "POST",
- HTTPPath: "/dynamic-thing-groups/{thingGroupName}",
- }
- if input == nil {
- input = &CreateDynamicThingGroupInput{}
- }
- output = &CreateDynamicThingGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateDynamicThingGroup API operation for AWS IoT.
- //
- // Creates a dynamic thing group.
- //
- // 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's
- // API operation CreateDynamicThingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidQueryException "InvalidQueryException"
- // The query is invalid.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- func (c *IoT) CreateDynamicThingGroup(input *CreateDynamicThingGroupInput) (*CreateDynamicThingGroupOutput, error) {
- req, out := c.CreateDynamicThingGroupRequest(input)
- return out, req.Send()
- }
- // CreateDynamicThingGroupWithContext is the same as CreateDynamicThingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateDynamicThingGroup 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 *IoT) CreateDynamicThingGroupWithContext(ctx aws.Context, input *CreateDynamicThingGroupInput, opts ...request.Option) (*CreateDynamicThingGroupOutput, error) {
- req, out := c.CreateDynamicThingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateJob = "CreateJob"
- // CreateJobRequest generates a "aws/request.Request" representing the
- // client's request for the CreateJob 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 CreateJob for more information on using the CreateJob
- // 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 CreateJobRequest method.
- // req, resp := client.CreateJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateJobRequest(input *CreateJobInput) (req *request.Request, output *CreateJobOutput) {
- op := &request.Operation{
- Name: opCreateJob,
- HTTPMethod: "PUT",
- HTTPPath: "/jobs/{jobId}",
- }
- if input == nil {
- input = &CreateJobInput{}
- }
- output = &CreateJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateJob API operation for AWS IoT.
- //
- // Creates a job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation CreateJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) CreateJob(input *CreateJobInput) (*CreateJobOutput, error) {
- req, out := c.CreateJobRequest(input)
- return out, req.Send()
- }
- // CreateJobWithContext is the same as CreateJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateJob 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 *IoT) CreateJobWithContext(ctx aws.Context, input *CreateJobInput, opts ...request.Option) (*CreateJobOutput, error) {
- req, out := c.CreateJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateKeysAndCertificate = "CreateKeysAndCertificate"
- // CreateKeysAndCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the CreateKeysAndCertificate 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 CreateKeysAndCertificate for more information on using the CreateKeysAndCertificate
- // 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 CreateKeysAndCertificateRequest method.
- // req, resp := client.CreateKeysAndCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateKeysAndCertificateRequest(input *CreateKeysAndCertificateInput) (req *request.Request, output *CreateKeysAndCertificateOutput) {
- op := &request.Operation{
- Name: opCreateKeysAndCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/keys-and-certificate",
- }
- if input == nil {
- input = &CreateKeysAndCertificateInput{}
- }
- output = &CreateKeysAndCertificateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateKeysAndCertificate API operation for AWS IoT.
- //
- // Creates a 2048-bit RSA key pair and issues an X.509 certificate using the
- // issued public key.
- //
- // Note This is the only time AWS IoT issues the private key for this certificate,
- // so it is important to keep it in a secure location.
- //
- // 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's
- // API operation CreateKeysAndCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CreateKeysAndCertificate(input *CreateKeysAndCertificateInput) (*CreateKeysAndCertificateOutput, error) {
- req, out := c.CreateKeysAndCertificateRequest(input)
- return out, req.Send()
- }
- // CreateKeysAndCertificateWithContext is the same as CreateKeysAndCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateKeysAndCertificate 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 *IoT) CreateKeysAndCertificateWithContext(ctx aws.Context, input *CreateKeysAndCertificateInput, opts ...request.Option) (*CreateKeysAndCertificateOutput, error) {
- req, out := c.CreateKeysAndCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateOTAUpdate = "CreateOTAUpdate"
- // CreateOTAUpdateRequest generates a "aws/request.Request" representing the
- // client's request for the CreateOTAUpdate 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 CreateOTAUpdate for more information on using the CreateOTAUpdate
- // 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 CreateOTAUpdateRequest method.
- // req, resp := client.CreateOTAUpdateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateOTAUpdateRequest(input *CreateOTAUpdateInput) (req *request.Request, output *CreateOTAUpdateOutput) {
- op := &request.Operation{
- Name: opCreateOTAUpdate,
- HTTPMethod: "POST",
- HTTPPath: "/otaUpdates/{otaUpdateId}",
- }
- if input == nil {
- input = &CreateOTAUpdateInput{}
- }
- output = &CreateOTAUpdateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateOTAUpdate API operation for AWS IoT.
- //
- // Creates an AWS IoT OTAUpdate on a target group of things or groups.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation CreateOTAUpdate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) CreateOTAUpdate(input *CreateOTAUpdateInput) (*CreateOTAUpdateOutput, error) {
- req, out := c.CreateOTAUpdateRequest(input)
- return out, req.Send()
- }
- // CreateOTAUpdateWithContext is the same as CreateOTAUpdate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateOTAUpdate 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 *IoT) CreateOTAUpdateWithContext(ctx aws.Context, input *CreateOTAUpdateInput, opts ...request.Option) (*CreateOTAUpdateOutput, error) {
- req, out := c.CreateOTAUpdateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreatePolicy = "CreatePolicy"
- // CreatePolicyRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePolicy 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 CreatePolicy for more information on using the CreatePolicy
- // 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 CreatePolicyRequest method.
- // req, resp := client.CreatePolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Request, output *CreatePolicyOutput) {
- op := &request.Operation{
- Name: opCreatePolicy,
- HTTPMethod: "POST",
- HTTPPath: "/policies/{policyName}",
- }
- if input == nil {
- input = &CreatePolicyInput{}
- }
- output = &CreatePolicyOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreatePolicy API operation for AWS IoT.
- //
- // Creates an AWS IoT policy.
- //
- // The created policy is the default version for the policy. This operation
- // creates a policy version with a version identifier of 1 and sets 1 as the
- // policy's default version.
- //
- // 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's
- // API operation CreatePolicy for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeMalformedPolicyException "MalformedPolicyException"
- // The policy documentation is not valid.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) {
- req, out := c.CreatePolicyRequest(input)
- return out, req.Send()
- }
- // CreatePolicyWithContext is the same as CreatePolicy with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreatePolicy 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 *IoT) CreatePolicyWithContext(ctx aws.Context, input *CreatePolicyInput, opts ...request.Option) (*CreatePolicyOutput, error) {
- req, out := c.CreatePolicyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreatePolicyVersion = "CreatePolicyVersion"
- // CreatePolicyVersionRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePolicyVersion 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 CreatePolicyVersion for more information on using the CreatePolicyVersion
- // 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 CreatePolicyVersionRequest method.
- // req, resp := client.CreatePolicyVersionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req *request.Request, output *CreatePolicyVersionOutput) {
- op := &request.Operation{
- Name: opCreatePolicyVersion,
- HTTPMethod: "POST",
- HTTPPath: "/policies/{policyName}/version",
- }
- if input == nil {
- input = &CreatePolicyVersionInput{}
- }
- output = &CreatePolicyVersionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreatePolicyVersion API operation for AWS IoT.
- //
- // Creates a new version of the specified AWS IoT policy. To update a policy,
- // create a new policy version. A managed policy can have up to five versions.
- // If the policy has five versions, you must use DeletePolicyVersion to delete
- // an existing version before you create a new one.
- //
- // Optionally, you can set the new version as the policy's default version.
- // The default version is the operative version (that is, the version that is
- // in effect for the certificates to which the policy is attached).
- //
- // 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's
- // API operation CreatePolicyVersion for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeMalformedPolicyException "MalformedPolicyException"
- // The policy documentation is not valid.
- //
- // * ErrCodeVersionsLimitExceededException "VersionsLimitExceededException"
- // The number of policy versions exceeds the limit.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) {
- req, out := c.CreatePolicyVersionRequest(input)
- return out, req.Send()
- }
- // CreatePolicyVersionWithContext is the same as CreatePolicyVersion with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreatePolicyVersion 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 *IoT) CreatePolicyVersionWithContext(ctx aws.Context, input *CreatePolicyVersionInput, opts ...request.Option) (*CreatePolicyVersionOutput, error) {
- req, out := c.CreatePolicyVersionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateRoleAlias = "CreateRoleAlias"
- // CreateRoleAliasRequest generates a "aws/request.Request" representing the
- // client's request for the CreateRoleAlias 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 CreateRoleAlias for more information on using the CreateRoleAlias
- // 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 CreateRoleAliasRequest method.
- // req, resp := client.CreateRoleAliasRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateRoleAliasRequest(input *CreateRoleAliasInput) (req *request.Request, output *CreateRoleAliasOutput) {
- op := &request.Operation{
- Name: opCreateRoleAlias,
- HTTPMethod: "POST",
- HTTPPath: "/role-aliases/{roleAlias}",
- }
- if input == nil {
- input = &CreateRoleAliasInput{}
- }
- output = &CreateRoleAliasOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateRoleAlias API operation for AWS IoT.
- //
- // Creates a role alias.
- //
- // 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's
- // API operation CreateRoleAlias for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CreateRoleAlias(input *CreateRoleAliasInput) (*CreateRoleAliasOutput, error) {
- req, out := c.CreateRoleAliasRequest(input)
- return out, req.Send()
- }
- // CreateRoleAliasWithContext is the same as CreateRoleAlias with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateRoleAlias 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 *IoT) CreateRoleAliasWithContext(ctx aws.Context, input *CreateRoleAliasInput, opts ...request.Option) (*CreateRoleAliasOutput, error) {
- req, out := c.CreateRoleAliasRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateScheduledAudit = "CreateScheduledAudit"
- // CreateScheduledAuditRequest generates a "aws/request.Request" representing the
- // client's request for the CreateScheduledAudit 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 CreateScheduledAudit for more information on using the CreateScheduledAudit
- // 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 CreateScheduledAuditRequest method.
- // req, resp := client.CreateScheduledAuditRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateScheduledAuditRequest(input *CreateScheduledAuditInput) (req *request.Request, output *CreateScheduledAuditOutput) {
- op := &request.Operation{
- Name: opCreateScheduledAudit,
- HTTPMethod: "POST",
- HTTPPath: "/audit/scheduledaudits/{scheduledAuditName}",
- }
- if input == nil {
- input = &CreateScheduledAuditInput{}
- }
- output = &CreateScheduledAuditOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateScheduledAudit API operation for AWS IoT.
- //
- // Creates a scheduled audit that is run at a specified time interval.
- //
- // 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's
- // API operation CreateScheduledAudit for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- func (c *IoT) CreateScheduledAudit(input *CreateScheduledAuditInput) (*CreateScheduledAuditOutput, error) {
- req, out := c.CreateScheduledAuditRequest(input)
- return out, req.Send()
- }
- // CreateScheduledAuditWithContext is the same as CreateScheduledAudit with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateScheduledAudit 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 *IoT) CreateScheduledAuditWithContext(ctx aws.Context, input *CreateScheduledAuditInput, opts ...request.Option) (*CreateScheduledAuditOutput, error) {
- req, out := c.CreateScheduledAuditRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateSecurityProfile = "CreateSecurityProfile"
- // CreateSecurityProfileRequest generates a "aws/request.Request" representing the
- // client's request for the CreateSecurityProfile 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 CreateSecurityProfile for more information on using the CreateSecurityProfile
- // 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 CreateSecurityProfileRequest method.
- // req, resp := client.CreateSecurityProfileRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateSecurityProfileRequest(input *CreateSecurityProfileInput) (req *request.Request, output *CreateSecurityProfileOutput) {
- op := &request.Operation{
- Name: opCreateSecurityProfile,
- HTTPMethod: "POST",
- HTTPPath: "/security-profiles/{securityProfileName}",
- }
- if input == nil {
- input = &CreateSecurityProfileInput{}
- }
- output = &CreateSecurityProfileOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateSecurityProfile API operation for AWS IoT.
- //
- // Creates a Device Defender security profile.
- //
- // 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's
- // API operation CreateSecurityProfile for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CreateSecurityProfile(input *CreateSecurityProfileInput) (*CreateSecurityProfileOutput, error) {
- req, out := c.CreateSecurityProfileRequest(input)
- return out, req.Send()
- }
- // CreateSecurityProfileWithContext is the same as CreateSecurityProfile with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateSecurityProfile 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 *IoT) CreateSecurityProfileWithContext(ctx aws.Context, input *CreateSecurityProfileInput, opts ...request.Option) (*CreateSecurityProfileOutput, error) {
- req, out := c.CreateSecurityProfileRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateStream = "CreateStream"
- // CreateStreamRequest generates a "aws/request.Request" representing the
- // client's request for the CreateStream 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 CreateStream for more information on using the CreateStream
- // 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 CreateStreamRequest method.
- // req, resp := client.CreateStreamRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateStreamRequest(input *CreateStreamInput) (req *request.Request, output *CreateStreamOutput) {
- op := &request.Operation{
- Name: opCreateStream,
- HTTPMethod: "POST",
- HTTPPath: "/streams/{streamId}",
- }
- if input == nil {
- input = &CreateStreamInput{}
- }
- output = &CreateStreamOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateStream API operation for AWS IoT.
- //
- // Creates a stream for delivering one or more large files in chunks over MQTT.
- // A stream transports data bytes in chunks or blocks packaged as MQTT messages
- // from a source like S3. You can have one or more files associated with a stream.
- // The total size of a file associated with the stream cannot exceed more than
- // 2 MB. The stream will be created with version 0. If a stream is created with
- // the same streamID as a stream that existed and was deleted within last 90
- // days, we will resurrect that old stream by incrementing the version by 1.
- //
- // 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's
- // API operation CreateStream for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CreateStream(input *CreateStreamInput) (*CreateStreamOutput, error) {
- req, out := c.CreateStreamRequest(input)
- return out, req.Send()
- }
- // CreateStreamWithContext is the same as CreateStream with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateStream 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 *IoT) CreateStreamWithContext(ctx aws.Context, input *CreateStreamInput, opts ...request.Option) (*CreateStreamOutput, error) {
- req, out := c.CreateStreamRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateThing = "CreateThing"
- // CreateThingRequest generates a "aws/request.Request" representing the
- // client's request for the CreateThing 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 CreateThing for more information on using the CreateThing
- // 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 CreateThingRequest method.
- // req, resp := client.CreateThingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateThingRequest(input *CreateThingInput) (req *request.Request, output *CreateThingOutput) {
- op := &request.Operation{
- Name: opCreateThing,
- HTTPMethod: "POST",
- HTTPPath: "/things/{thingName}",
- }
- if input == nil {
- input = &CreateThingInput{}
- }
- output = &CreateThingOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateThing API operation for AWS IoT.
- //
- // Creates a thing record in the registry.
- //
- // This is a control plane operation. See Authorization (http://docs.aws.amazon.com/iot/latest/developerguide/authorization.html)
- // for information about authorizing control plane actions.
- //
- // 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's
- // API operation CreateThing for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) CreateThing(input *CreateThingInput) (*CreateThingOutput, error) {
- req, out := c.CreateThingRequest(input)
- return out, req.Send()
- }
- // CreateThingWithContext is the same as CreateThing with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateThing 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 *IoT) CreateThingWithContext(ctx aws.Context, input *CreateThingInput, opts ...request.Option) (*CreateThingOutput, error) {
- req, out := c.CreateThingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateThingGroup = "CreateThingGroup"
- // CreateThingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the CreateThingGroup 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 CreateThingGroup for more information on using the CreateThingGroup
- // 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 CreateThingGroupRequest method.
- // req, resp := client.CreateThingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateThingGroupRequest(input *CreateThingGroupInput) (req *request.Request, output *CreateThingGroupOutput) {
- op := &request.Operation{
- Name: opCreateThingGroup,
- HTTPMethod: "POST",
- HTTPPath: "/thing-groups/{thingGroupName}",
- }
- if input == nil {
- input = &CreateThingGroupInput{}
- }
- output = &CreateThingGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateThingGroup API operation for AWS IoT.
- //
- // Create a thing group.
- //
- // This is a control plane operation. See Authorization (http://docs.aws.amazon.com/iot/latest/developerguide/authorization.html)
- // for information about authorizing control plane actions.
- //
- // 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's
- // API operation CreateThingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) CreateThingGroup(input *CreateThingGroupInput) (*CreateThingGroupOutput, error) {
- req, out := c.CreateThingGroupRequest(input)
- return out, req.Send()
- }
- // CreateThingGroupWithContext is the same as CreateThingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateThingGroup 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 *IoT) CreateThingGroupWithContext(ctx aws.Context, input *CreateThingGroupInput, opts ...request.Option) (*CreateThingGroupOutput, error) {
- req, out := c.CreateThingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateThingType = "CreateThingType"
- // CreateThingTypeRequest generates a "aws/request.Request" representing the
- // client's request for the CreateThingType 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 CreateThingType for more information on using the CreateThingType
- // 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 CreateThingTypeRequest method.
- // req, resp := client.CreateThingTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateThingTypeRequest(input *CreateThingTypeInput) (req *request.Request, output *CreateThingTypeOutput) {
- op := &request.Operation{
- Name: opCreateThingType,
- HTTPMethod: "POST",
- HTTPPath: "/thing-types/{thingTypeName}",
- }
- if input == nil {
- input = &CreateThingTypeInput{}
- }
- output = &CreateThingTypeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateThingType API operation for AWS IoT.
- //
- // Creates a new thing type.
- //
- // 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's
- // API operation CreateThingType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- func (c *IoT) CreateThingType(input *CreateThingTypeInput) (*CreateThingTypeOutput, error) {
- req, out := c.CreateThingTypeRequest(input)
- return out, req.Send()
- }
- // CreateThingTypeWithContext is the same as CreateThingType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateThingType 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 *IoT) CreateThingTypeWithContext(ctx aws.Context, input *CreateThingTypeInput, opts ...request.Option) (*CreateThingTypeOutput, error) {
- req, out := c.CreateThingTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateTopicRule = "CreateTopicRule"
- // CreateTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTopicRule 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 CreateTopicRule for more information on using the CreateTopicRule
- // 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 CreateTopicRuleRequest method.
- // req, resp := client.CreateTopicRuleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) CreateTopicRuleRequest(input *CreateTopicRuleInput) (req *request.Request, output *CreateTopicRuleOutput) {
- op := &request.Operation{
- Name: opCreateTopicRule,
- HTTPMethod: "POST",
- HTTPPath: "/rules/{ruleName}",
- }
- if input == nil {
- input = &CreateTopicRuleInput{}
- }
- output = &CreateTopicRuleOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // CreateTopicRule API operation for AWS IoT.
- //
- // Creates a rule. Creating rules is an administrator-level action. Any user
- // who has permission to create rules will be able to access data processed
- // by the rule.
- //
- // 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's
- // API operation CreateTopicRule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeSqlParseException "SqlParseException"
- // The Rule-SQL expression can't be parsed correctly.
- //
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException"
- // A conflicting resource update exception. This exception is thrown when two
- // pending updates cause a conflict.
- //
- func (c *IoT) CreateTopicRule(input *CreateTopicRuleInput) (*CreateTopicRuleOutput, error) {
- req, out := c.CreateTopicRuleRequest(input)
- return out, req.Send()
- }
- // CreateTopicRuleWithContext is the same as CreateTopicRule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateTopicRule 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 *IoT) CreateTopicRuleWithContext(ctx aws.Context, input *CreateTopicRuleInput, opts ...request.Option) (*CreateTopicRuleOutput, error) {
- req, out := c.CreateTopicRuleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteAccountAuditConfiguration = "DeleteAccountAuditConfiguration"
- // DeleteAccountAuditConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteAccountAuditConfiguration 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 DeleteAccountAuditConfiguration for more information on using the DeleteAccountAuditConfiguration
- // 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 DeleteAccountAuditConfigurationRequest method.
- // req, resp := client.DeleteAccountAuditConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteAccountAuditConfigurationRequest(input *DeleteAccountAuditConfigurationInput) (req *request.Request, output *DeleteAccountAuditConfigurationOutput) {
- op := &request.Operation{
- Name: opDeleteAccountAuditConfiguration,
- HTTPMethod: "DELETE",
- HTTPPath: "/audit/configuration",
- }
- if input == nil {
- input = &DeleteAccountAuditConfigurationInput{}
- }
- output = &DeleteAccountAuditConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteAccountAuditConfiguration API operation for AWS IoT.
- //
- // Restores the default settings for Device Defender audits for this account.
- // Any configuration data you entered is deleted and all audit checks are reset
- // to disabled.
- //
- // 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's
- // API operation DeleteAccountAuditConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeleteAccountAuditConfiguration(input *DeleteAccountAuditConfigurationInput) (*DeleteAccountAuditConfigurationOutput, error) {
- req, out := c.DeleteAccountAuditConfigurationRequest(input)
- return out, req.Send()
- }
- // DeleteAccountAuditConfigurationWithContext is the same as DeleteAccountAuditConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteAccountAuditConfiguration 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 *IoT) DeleteAccountAuditConfigurationWithContext(ctx aws.Context, input *DeleteAccountAuditConfigurationInput, opts ...request.Option) (*DeleteAccountAuditConfigurationOutput, error) {
- req, out := c.DeleteAccountAuditConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteAuthorizer = "DeleteAuthorizer"
- // DeleteAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteAuthorizer 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 DeleteAuthorizer for more information on using the DeleteAuthorizer
- // 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 DeleteAuthorizerRequest method.
- // req, resp := client.DeleteAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (req *request.Request, output *DeleteAuthorizerOutput) {
- op := &request.Operation{
- Name: opDeleteAuthorizer,
- HTTPMethod: "DELETE",
- HTTPPath: "/authorizer/{authorizerName}",
- }
- if input == nil {
- input = &DeleteAuthorizerInput{}
- }
- output = &DeleteAuthorizerOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteAuthorizer API operation for AWS IoT.
- //
- // Deletes an authorizer.
- //
- // 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's
- // API operation DeleteAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeDeleteConflictException "DeleteConflictException"
- // You can't delete the resource because it is attached to one or more resources.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeleteAuthorizer(input *DeleteAuthorizerInput) (*DeleteAuthorizerOutput, error) {
- req, out := c.DeleteAuthorizerRequest(input)
- return out, req.Send()
- }
- // DeleteAuthorizerWithContext is the same as DeleteAuthorizer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteAuthorizer 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 *IoT) DeleteAuthorizerWithContext(ctx aws.Context, input *DeleteAuthorizerInput, opts ...request.Option) (*DeleteAuthorizerOutput, error) {
- req, out := c.DeleteAuthorizerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteBillingGroup = "DeleteBillingGroup"
- // DeleteBillingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteBillingGroup 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 DeleteBillingGroup for more information on using the DeleteBillingGroup
- // 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 DeleteBillingGroupRequest method.
- // req, resp := client.DeleteBillingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteBillingGroupRequest(input *DeleteBillingGroupInput) (req *request.Request, output *DeleteBillingGroupOutput) {
- op := &request.Operation{
- Name: opDeleteBillingGroup,
- HTTPMethod: "DELETE",
- HTTPPath: "/billing-groups/{billingGroupName}",
- }
- if input == nil {
- input = &DeleteBillingGroupInput{}
- }
- output = &DeleteBillingGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteBillingGroup API operation for AWS IoT.
- //
- // Deletes the billing group.
- //
- // 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's
- // API operation DeleteBillingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeleteBillingGroup(input *DeleteBillingGroupInput) (*DeleteBillingGroupOutput, error) {
- req, out := c.DeleteBillingGroupRequest(input)
- return out, req.Send()
- }
- // DeleteBillingGroupWithContext is the same as DeleteBillingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteBillingGroup 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 *IoT) DeleteBillingGroupWithContext(ctx aws.Context, input *DeleteBillingGroupInput, opts ...request.Option) (*DeleteBillingGroupOutput, error) {
- req, out := c.DeleteBillingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteCACertificate = "DeleteCACertificate"
- // DeleteCACertificateRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCACertificate 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 DeleteCACertificate for more information on using the DeleteCACertificate
- // 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 DeleteCACertificateRequest method.
- // req, resp := client.DeleteCACertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteCACertificateRequest(input *DeleteCACertificateInput) (req *request.Request, output *DeleteCACertificateOutput) {
- op := &request.Operation{
- Name: opDeleteCACertificate,
- HTTPMethod: "DELETE",
- HTTPPath: "/cacertificate/{caCertificateId}",
- }
- if input == nil {
- input = &DeleteCACertificateInput{}
- }
- output = &DeleteCACertificateOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteCACertificate API operation for AWS IoT.
- //
- // Deletes a registered CA certificate.
- //
- // 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's
- // API operation DeleteCACertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeCertificateStateException "CertificateStateException"
- // The certificate operation is not allowed.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) DeleteCACertificate(input *DeleteCACertificateInput) (*DeleteCACertificateOutput, error) {
- req, out := c.DeleteCACertificateRequest(input)
- return out, req.Send()
- }
- // DeleteCACertificateWithContext is the same as DeleteCACertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteCACertificate 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 *IoT) DeleteCACertificateWithContext(ctx aws.Context, input *DeleteCACertificateInput, opts ...request.Option) (*DeleteCACertificateOutput, error) {
- req, out := c.DeleteCACertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteCertificate = "DeleteCertificate"
- // DeleteCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCertificate 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 DeleteCertificate for more information on using the DeleteCertificate
- // 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 DeleteCertificateRequest method.
- // req, resp := client.DeleteCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteCertificateRequest(input *DeleteCertificateInput) (req *request.Request, output *DeleteCertificateOutput) {
- op := &request.Operation{
- Name: opDeleteCertificate,
- HTTPMethod: "DELETE",
- HTTPPath: "/certificates/{certificateId}",
- }
- if input == nil {
- input = &DeleteCertificateInput{}
- }
- output = &DeleteCertificateOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteCertificate API operation for AWS IoT.
- //
- // Deletes the specified certificate.
- //
- // A certificate cannot be deleted if it has a policy attached to it or if its
- // status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy
- // API to detach all policies. Next, use the UpdateCertificate API to set the
- // certificate to the INACTIVE status.
- //
- // 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's
- // API operation DeleteCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeCertificateStateException "CertificateStateException"
- // The certificate operation is not allowed.
- //
- // * ErrCodeDeleteConflictException "DeleteConflictException"
- // You can't delete the resource because it is attached to one or more resources.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) {
- req, out := c.DeleteCertificateRequest(input)
- return out, req.Send()
- }
- // DeleteCertificateWithContext is the same as DeleteCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteCertificate 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 *IoT) DeleteCertificateWithContext(ctx aws.Context, input *DeleteCertificateInput, opts ...request.Option) (*DeleteCertificateOutput, error) {
- req, out := c.DeleteCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteDynamicThingGroup = "DeleteDynamicThingGroup"
- // DeleteDynamicThingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDynamicThingGroup 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 DeleteDynamicThingGroup for more information on using the DeleteDynamicThingGroup
- // 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 DeleteDynamicThingGroupRequest method.
- // req, resp := client.DeleteDynamicThingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteDynamicThingGroupRequest(input *DeleteDynamicThingGroupInput) (req *request.Request, output *DeleteDynamicThingGroupOutput) {
- op := &request.Operation{
- Name: opDeleteDynamicThingGroup,
- HTTPMethod: "DELETE",
- HTTPPath: "/dynamic-thing-groups/{thingGroupName}",
- }
- if input == nil {
- input = &DeleteDynamicThingGroupInput{}
- }
- output = &DeleteDynamicThingGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteDynamicThingGroup API operation for AWS IoT.
- //
- // Deletes a dynamic thing group.
- //
- // 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's
- // API operation DeleteDynamicThingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeleteDynamicThingGroup(input *DeleteDynamicThingGroupInput) (*DeleteDynamicThingGroupOutput, error) {
- req, out := c.DeleteDynamicThingGroupRequest(input)
- return out, req.Send()
- }
- // DeleteDynamicThingGroupWithContext is the same as DeleteDynamicThingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteDynamicThingGroup 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 *IoT) DeleteDynamicThingGroupWithContext(ctx aws.Context, input *DeleteDynamicThingGroupInput, opts ...request.Option) (*DeleteDynamicThingGroupOutput, error) {
- req, out := c.DeleteDynamicThingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteJob = "DeleteJob"
- // DeleteJobRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteJob 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 DeleteJob for more information on using the DeleteJob
- // 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 DeleteJobRequest method.
- // req, resp := client.DeleteJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteJobRequest(input *DeleteJobInput) (req *request.Request, output *DeleteJobOutput) {
- op := &request.Operation{
- Name: opDeleteJob,
- HTTPMethod: "DELETE",
- HTTPPath: "/jobs/{jobId}",
- }
- if input == nil {
- input = &DeleteJobInput{}
- }
- output = &DeleteJobOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteJob API operation for AWS IoT.
- //
- // Deletes a job and its related job executions.
- //
- // Deleting a job may take time, depending on the number of job executions created
- // for the job and various other factors. While the job is being deleted, the
- // status of the job will be shown as "DELETION_IN_PROGRESS". Attempting to
- // delete or cancel a job whose status is already "DELETION_IN_PROGRESS" will
- // result in an error.
- //
- // Only 10 jobs may have status "DELETION_IN_PROGRESS" at the same time, or
- // a LimitExceededException will occur.
- //
- // 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's
- // API operation DeleteJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException"
- // An attempt was made to change to an invalid state, for example by deleting
- // a job or a job execution which is "IN_PROGRESS" without setting the force
- // parameter.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) DeleteJob(input *DeleteJobInput) (*DeleteJobOutput, error) {
- req, out := c.DeleteJobRequest(input)
- return out, req.Send()
- }
- // DeleteJobWithContext is the same as DeleteJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteJob 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 *IoT) DeleteJobWithContext(ctx aws.Context, input *DeleteJobInput, opts ...request.Option) (*DeleteJobOutput, error) {
- req, out := c.DeleteJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteJobExecution = "DeleteJobExecution"
- // DeleteJobExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteJobExecution 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 DeleteJobExecution for more information on using the DeleteJobExecution
- // 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 DeleteJobExecutionRequest method.
- // req, resp := client.DeleteJobExecutionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteJobExecutionRequest(input *DeleteJobExecutionInput) (req *request.Request, output *DeleteJobExecutionOutput) {
- op := &request.Operation{
- Name: opDeleteJobExecution,
- HTTPMethod: "DELETE",
- HTTPPath: "/things/{thingName}/jobs/{jobId}/executionNumber/{executionNumber}",
- }
- if input == nil {
- input = &DeleteJobExecutionInput{}
- }
- output = &DeleteJobExecutionOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteJobExecution API operation for AWS IoT.
- //
- // Deletes a job execution.
- //
- // 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's
- // API operation DeleteJobExecution for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException"
- // An attempt was made to change to an invalid state, for example by deleting
- // a job or a job execution which is "IN_PROGRESS" without setting the force
- // parameter.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) DeleteJobExecution(input *DeleteJobExecutionInput) (*DeleteJobExecutionOutput, error) {
- req, out := c.DeleteJobExecutionRequest(input)
- return out, req.Send()
- }
- // DeleteJobExecutionWithContext is the same as DeleteJobExecution with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteJobExecution 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 *IoT) DeleteJobExecutionWithContext(ctx aws.Context, input *DeleteJobExecutionInput, opts ...request.Option) (*DeleteJobExecutionOutput, error) {
- req, out := c.DeleteJobExecutionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteOTAUpdate = "DeleteOTAUpdate"
- // DeleteOTAUpdateRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteOTAUpdate 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 DeleteOTAUpdate for more information on using the DeleteOTAUpdate
- // 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 DeleteOTAUpdateRequest method.
- // req, resp := client.DeleteOTAUpdateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteOTAUpdateRequest(input *DeleteOTAUpdateInput) (req *request.Request, output *DeleteOTAUpdateOutput) {
- op := &request.Operation{
- Name: opDeleteOTAUpdate,
- HTTPMethod: "DELETE",
- HTTPPath: "/otaUpdates/{otaUpdateId}",
- }
- if input == nil {
- input = &DeleteOTAUpdateInput{}
- }
- output = &DeleteOTAUpdateOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteOTAUpdate API operation for AWS IoT.
- //
- // Delete an OTA update.
- //
- // 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's
- // API operation DeleteOTAUpdate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- func (c *IoT) DeleteOTAUpdate(input *DeleteOTAUpdateInput) (*DeleteOTAUpdateOutput, error) {
- req, out := c.DeleteOTAUpdateRequest(input)
- return out, req.Send()
- }
- // DeleteOTAUpdateWithContext is the same as DeleteOTAUpdate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteOTAUpdate 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 *IoT) DeleteOTAUpdateWithContext(ctx aws.Context, input *DeleteOTAUpdateInput, opts ...request.Option) (*DeleteOTAUpdateOutput, error) {
- req, out := c.DeleteOTAUpdateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeletePolicy = "DeletePolicy"
- // DeletePolicyRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePolicy 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 DeletePolicy for more information on using the DeletePolicy
- // 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 DeletePolicyRequest method.
- // req, resp := client.DeletePolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Request, output *DeletePolicyOutput) {
- op := &request.Operation{
- Name: opDeletePolicy,
- HTTPMethod: "DELETE",
- HTTPPath: "/policies/{policyName}",
- }
- if input == nil {
- input = &DeletePolicyInput{}
- }
- output = &DeletePolicyOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeletePolicy API operation for AWS IoT.
- //
- // Deletes the specified policy.
- //
- // A policy cannot be deleted if it has non-default versions or it is attached
- // to any certificate.
- //
- // To delete a policy, use the DeletePolicyVersion API to delete all non-default
- // versions of the policy; use the DetachPrincipalPolicy API to detach the policy
- // from any certificate; and then use the DeletePolicy API to delete the policy.
- //
- // When a policy is deleted using DeletePolicy, its default version is deleted
- // with it.
- //
- // 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's
- // API operation DeletePolicy for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeDeleteConflictException "DeleteConflictException"
- // You can't delete the resource because it is attached to one or more resources.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) {
- req, out := c.DeletePolicyRequest(input)
- return out, req.Send()
- }
- // DeletePolicyWithContext is the same as DeletePolicy with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeletePolicy 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 *IoT) DeletePolicyWithContext(ctx aws.Context, input *DeletePolicyInput, opts ...request.Option) (*DeletePolicyOutput, error) {
- req, out := c.DeletePolicyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeletePolicyVersion = "DeletePolicyVersion"
- // DeletePolicyVersionRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePolicyVersion 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 DeletePolicyVersion for more information on using the DeletePolicyVersion
- // 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 DeletePolicyVersionRequest method.
- // req, resp := client.DeletePolicyVersionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req *request.Request, output *DeletePolicyVersionOutput) {
- op := &request.Operation{
- Name: opDeletePolicyVersion,
- HTTPMethod: "DELETE",
- HTTPPath: "/policies/{policyName}/version/{policyVersionId}",
- }
- if input == nil {
- input = &DeletePolicyVersionInput{}
- }
- output = &DeletePolicyVersionOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeletePolicyVersion API operation for AWS IoT.
- //
- // Deletes the specified version of the specified policy. You cannot delete
- // the default version of a policy using this API. To delete the default version
- // of a policy, use DeletePolicy. To find out which version of a policy is marked
- // as the default version, use ListPolicyVersions.
- //
- // 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's
- // API operation DeletePolicyVersion for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeDeleteConflictException "DeleteConflictException"
- // You can't delete the resource because it is attached to one or more resources.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) {
- req, out := c.DeletePolicyVersionRequest(input)
- return out, req.Send()
- }
- // DeletePolicyVersionWithContext is the same as DeletePolicyVersion with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeletePolicyVersion 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 *IoT) DeletePolicyVersionWithContext(ctx aws.Context, input *DeletePolicyVersionInput, opts ...request.Option) (*DeletePolicyVersionOutput, error) {
- req, out := c.DeletePolicyVersionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteRegistrationCode = "DeleteRegistrationCode"
- // DeleteRegistrationCodeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteRegistrationCode 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 DeleteRegistrationCode for more information on using the DeleteRegistrationCode
- // 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 DeleteRegistrationCodeRequest method.
- // req, resp := client.DeleteRegistrationCodeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteRegistrationCodeRequest(input *DeleteRegistrationCodeInput) (req *request.Request, output *DeleteRegistrationCodeOutput) {
- op := &request.Operation{
- Name: opDeleteRegistrationCode,
- HTTPMethod: "DELETE",
- HTTPPath: "/registrationcode",
- }
- if input == nil {
- input = &DeleteRegistrationCodeInput{}
- }
- output = &DeleteRegistrationCodeOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteRegistrationCode API operation for AWS IoT.
- //
- // Deletes a CA certificate registration code.
- //
- // 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's
- // API operation DeleteRegistrationCode for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeleteRegistrationCode(input *DeleteRegistrationCodeInput) (*DeleteRegistrationCodeOutput, error) {
- req, out := c.DeleteRegistrationCodeRequest(input)
- return out, req.Send()
- }
- // DeleteRegistrationCodeWithContext is the same as DeleteRegistrationCode with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteRegistrationCode 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 *IoT) DeleteRegistrationCodeWithContext(ctx aws.Context, input *DeleteRegistrationCodeInput, opts ...request.Option) (*DeleteRegistrationCodeOutput, error) {
- req, out := c.DeleteRegistrationCodeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteRoleAlias = "DeleteRoleAlias"
- // DeleteRoleAliasRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteRoleAlias 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 DeleteRoleAlias for more information on using the DeleteRoleAlias
- // 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 DeleteRoleAliasRequest method.
- // req, resp := client.DeleteRoleAliasRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteRoleAliasRequest(input *DeleteRoleAliasInput) (req *request.Request, output *DeleteRoleAliasOutput) {
- op := &request.Operation{
- Name: opDeleteRoleAlias,
- HTTPMethod: "DELETE",
- HTTPPath: "/role-aliases/{roleAlias}",
- }
- if input == nil {
- input = &DeleteRoleAliasInput{}
- }
- output = &DeleteRoleAliasOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteRoleAlias API operation for AWS IoT.
- //
- // Deletes a role alias
- //
- // 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's
- // API operation DeleteRoleAlias for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeDeleteConflictException "DeleteConflictException"
- // You can't delete the resource because it is attached to one or more resources.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) DeleteRoleAlias(input *DeleteRoleAliasInput) (*DeleteRoleAliasOutput, error) {
- req, out := c.DeleteRoleAliasRequest(input)
- return out, req.Send()
- }
- // DeleteRoleAliasWithContext is the same as DeleteRoleAlias with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteRoleAlias 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 *IoT) DeleteRoleAliasWithContext(ctx aws.Context, input *DeleteRoleAliasInput, opts ...request.Option) (*DeleteRoleAliasOutput, error) {
- req, out := c.DeleteRoleAliasRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteScheduledAudit = "DeleteScheduledAudit"
- // DeleteScheduledAuditRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteScheduledAudit 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 DeleteScheduledAudit for more information on using the DeleteScheduledAudit
- // 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 DeleteScheduledAuditRequest method.
- // req, resp := client.DeleteScheduledAuditRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteScheduledAuditRequest(input *DeleteScheduledAuditInput) (req *request.Request, output *DeleteScheduledAuditOutput) {
- op := &request.Operation{
- Name: opDeleteScheduledAudit,
- HTTPMethod: "DELETE",
- HTTPPath: "/audit/scheduledaudits/{scheduledAuditName}",
- }
- if input == nil {
- input = &DeleteScheduledAuditInput{}
- }
- output = &DeleteScheduledAuditOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteScheduledAudit API operation for AWS IoT.
- //
- // Deletes a scheduled audit.
- //
- // 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's
- // API operation DeleteScheduledAudit for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeleteScheduledAudit(input *DeleteScheduledAuditInput) (*DeleteScheduledAuditOutput, error) {
- req, out := c.DeleteScheduledAuditRequest(input)
- return out, req.Send()
- }
- // DeleteScheduledAuditWithContext is the same as DeleteScheduledAudit with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteScheduledAudit 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 *IoT) DeleteScheduledAuditWithContext(ctx aws.Context, input *DeleteScheduledAuditInput, opts ...request.Option) (*DeleteScheduledAuditOutput, error) {
- req, out := c.DeleteScheduledAuditRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteSecurityProfile = "DeleteSecurityProfile"
- // DeleteSecurityProfileRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteSecurityProfile 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 DeleteSecurityProfile for more information on using the DeleteSecurityProfile
- // 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 DeleteSecurityProfileRequest method.
- // req, resp := client.DeleteSecurityProfileRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteSecurityProfileRequest(input *DeleteSecurityProfileInput) (req *request.Request, output *DeleteSecurityProfileOutput) {
- op := &request.Operation{
- Name: opDeleteSecurityProfile,
- HTTPMethod: "DELETE",
- HTTPPath: "/security-profiles/{securityProfileName}",
- }
- if input == nil {
- input = &DeleteSecurityProfileInput{}
- }
- output = &DeleteSecurityProfileOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteSecurityProfile API operation for AWS IoT.
- //
- // Deletes a Device Defender security profile.
- //
- // 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's
- // API operation DeleteSecurityProfile for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- func (c *IoT) DeleteSecurityProfile(input *DeleteSecurityProfileInput) (*DeleteSecurityProfileOutput, error) {
- req, out := c.DeleteSecurityProfileRequest(input)
- return out, req.Send()
- }
- // DeleteSecurityProfileWithContext is the same as DeleteSecurityProfile with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteSecurityProfile 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 *IoT) DeleteSecurityProfileWithContext(ctx aws.Context, input *DeleteSecurityProfileInput, opts ...request.Option) (*DeleteSecurityProfileOutput, error) {
- req, out := c.DeleteSecurityProfileRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteStream = "DeleteStream"
- // DeleteStreamRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteStream 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 DeleteStream for more information on using the DeleteStream
- // 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 DeleteStreamRequest method.
- // req, resp := client.DeleteStreamRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Request, output *DeleteStreamOutput) {
- op := &request.Operation{
- Name: opDeleteStream,
- HTTPMethod: "DELETE",
- HTTPPath: "/streams/{streamId}",
- }
- if input == nil {
- input = &DeleteStreamInput{}
- }
- output = &DeleteStreamOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteStream API operation for AWS IoT.
- //
- // Deletes a stream.
- //
- // 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's
- // API operation DeleteStream for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeDeleteConflictException "DeleteConflictException"
- // You can't delete the resource because it is attached to one or more resources.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeleteStream(input *DeleteStreamInput) (*DeleteStreamOutput, error) {
- req, out := c.DeleteStreamRequest(input)
- return out, req.Send()
- }
- // DeleteStreamWithContext is the same as DeleteStream with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteStream 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 *IoT) DeleteStreamWithContext(ctx aws.Context, input *DeleteStreamInput, opts ...request.Option) (*DeleteStreamOutput, error) {
- req, out := c.DeleteStreamRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteThing = "DeleteThing"
- // DeleteThingRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteThing 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 DeleteThing for more information on using the DeleteThing
- // 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 DeleteThingRequest method.
- // req, resp := client.DeleteThingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteThingRequest(input *DeleteThingInput) (req *request.Request, output *DeleteThingOutput) {
- op := &request.Operation{
- Name: opDeleteThing,
- HTTPMethod: "DELETE",
- HTTPPath: "/things/{thingName}",
- }
- if input == nil {
- input = &DeleteThingInput{}
- }
- output = &DeleteThingOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteThing API operation for AWS IoT.
- //
- // Deletes the specified thing. Returns successfully with no error if the deletion
- // is successful or you specify a thing that doesn't exist.
- //
- // 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's
- // API operation DeleteThing for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeleteThing(input *DeleteThingInput) (*DeleteThingOutput, error) {
- req, out := c.DeleteThingRequest(input)
- return out, req.Send()
- }
- // DeleteThingWithContext is the same as DeleteThing with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteThing 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 *IoT) DeleteThingWithContext(ctx aws.Context, input *DeleteThingInput, opts ...request.Option) (*DeleteThingOutput, error) {
- req, out := c.DeleteThingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteThingGroup = "DeleteThingGroup"
- // DeleteThingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteThingGroup 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 DeleteThingGroup for more information on using the DeleteThingGroup
- // 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 DeleteThingGroupRequest method.
- // req, resp := client.DeleteThingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteThingGroupRequest(input *DeleteThingGroupInput) (req *request.Request, output *DeleteThingGroupOutput) {
- op := &request.Operation{
- Name: opDeleteThingGroup,
- HTTPMethod: "DELETE",
- HTTPPath: "/thing-groups/{thingGroupName}",
- }
- if input == nil {
- input = &DeleteThingGroupInput{}
- }
- output = &DeleteThingGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteThingGroup API operation for AWS IoT.
- //
- // Deletes a thing group.
- //
- // 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's
- // API operation DeleteThingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeleteThingGroup(input *DeleteThingGroupInput) (*DeleteThingGroupOutput, error) {
- req, out := c.DeleteThingGroupRequest(input)
- return out, req.Send()
- }
- // DeleteThingGroupWithContext is the same as DeleteThingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteThingGroup 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 *IoT) DeleteThingGroupWithContext(ctx aws.Context, input *DeleteThingGroupInput, opts ...request.Option) (*DeleteThingGroupOutput, error) {
- req, out := c.DeleteThingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteThingType = "DeleteThingType"
- // DeleteThingTypeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteThingType 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 DeleteThingType for more information on using the DeleteThingType
- // 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 DeleteThingTypeRequest method.
- // req, resp := client.DeleteThingTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteThingTypeRequest(input *DeleteThingTypeInput) (req *request.Request, output *DeleteThingTypeOutput) {
- op := &request.Operation{
- Name: opDeleteThingType,
- HTTPMethod: "DELETE",
- HTTPPath: "/thing-types/{thingTypeName}",
- }
- if input == nil {
- input = &DeleteThingTypeInput{}
- }
- output = &DeleteThingTypeOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteThingType API operation for AWS IoT.
- //
- // Deletes the specified thing type. You cannot delete a thing type if it has
- // things associated with it. To delete a thing type, first mark it as deprecated
- // by calling DeprecateThingType, then remove any associated things by calling
- // UpdateThing to change the thing type on any associated thing, and finally
- // use DeleteThingType to delete the thing type.
- //
- // 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's
- // API operation DeleteThingType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeleteThingType(input *DeleteThingTypeInput) (*DeleteThingTypeOutput, error) {
- req, out := c.DeleteThingTypeRequest(input)
- return out, req.Send()
- }
- // DeleteThingTypeWithContext is the same as DeleteThingType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteThingType 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 *IoT) DeleteThingTypeWithContext(ctx aws.Context, input *DeleteThingTypeInput, opts ...request.Option) (*DeleteThingTypeOutput, error) {
- req, out := c.DeleteThingTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteTopicRule = "DeleteTopicRule"
- // DeleteTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteTopicRule 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 DeleteTopicRule for more information on using the DeleteTopicRule
- // 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 DeleteTopicRuleRequest method.
- // req, resp := client.DeleteTopicRuleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteTopicRuleRequest(input *DeleteTopicRuleInput) (req *request.Request, output *DeleteTopicRuleOutput) {
- op := &request.Operation{
- Name: opDeleteTopicRule,
- HTTPMethod: "DELETE",
- HTTPPath: "/rules/{ruleName}",
- }
- if input == nil {
- input = &DeleteTopicRuleInput{}
- }
- output = &DeleteTopicRuleOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteTopicRule API operation for AWS IoT.
- //
- // Deletes the rule.
- //
- // 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's
- // API operation DeleteTopicRule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException"
- // A conflicting resource update exception. This exception is thrown when two
- // pending updates cause a conflict.
- //
- func (c *IoT) DeleteTopicRule(input *DeleteTopicRuleInput) (*DeleteTopicRuleOutput, error) {
- req, out := c.DeleteTopicRuleRequest(input)
- return out, req.Send()
- }
- // DeleteTopicRuleWithContext is the same as DeleteTopicRule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteTopicRule 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 *IoT) DeleteTopicRuleWithContext(ctx aws.Context, input *DeleteTopicRuleInput, opts ...request.Option) (*DeleteTopicRuleOutput, error) {
- req, out := c.DeleteTopicRuleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteV2LoggingLevel = "DeleteV2LoggingLevel"
- // DeleteV2LoggingLevelRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteV2LoggingLevel 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 DeleteV2LoggingLevel for more information on using the DeleteV2LoggingLevel
- // 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 DeleteV2LoggingLevelRequest method.
- // req, resp := client.DeleteV2LoggingLevelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeleteV2LoggingLevelRequest(input *DeleteV2LoggingLevelInput) (req *request.Request, output *DeleteV2LoggingLevelOutput) {
- op := &request.Operation{
- Name: opDeleteV2LoggingLevel,
- HTTPMethod: "DELETE",
- HTTPPath: "/v2LoggingLevel",
- }
- if input == nil {
- input = &DeleteV2LoggingLevelInput{}
- }
- output = &DeleteV2LoggingLevelOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteV2LoggingLevel API operation for AWS IoT.
- //
- // Deletes a logging level.
- //
- // 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's
- // API operation DeleteV2LoggingLevel for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) DeleteV2LoggingLevel(input *DeleteV2LoggingLevelInput) (*DeleteV2LoggingLevelOutput, error) {
- req, out := c.DeleteV2LoggingLevelRequest(input)
- return out, req.Send()
- }
- // DeleteV2LoggingLevelWithContext is the same as DeleteV2LoggingLevel with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteV2LoggingLevel 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 *IoT) DeleteV2LoggingLevelWithContext(ctx aws.Context, input *DeleteV2LoggingLevelInput, opts ...request.Option) (*DeleteV2LoggingLevelOutput, error) {
- req, out := c.DeleteV2LoggingLevelRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeprecateThingType = "DeprecateThingType"
- // DeprecateThingTypeRequest generates a "aws/request.Request" representing the
- // client's request for the DeprecateThingType 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 DeprecateThingType for more information on using the DeprecateThingType
- // 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 DeprecateThingTypeRequest method.
- // req, resp := client.DeprecateThingTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DeprecateThingTypeRequest(input *DeprecateThingTypeInput) (req *request.Request, output *DeprecateThingTypeOutput) {
- op := &request.Operation{
- Name: opDeprecateThingType,
- HTTPMethod: "POST",
- HTTPPath: "/thing-types/{thingTypeName}/deprecate",
- }
- if input == nil {
- input = &DeprecateThingTypeInput{}
- }
- output = &DeprecateThingTypeOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeprecateThingType API operation for AWS IoT.
- //
- // Deprecates a thing type. You can not associate new things with deprecated
- // thing type.
- //
- // 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's
- // API operation DeprecateThingType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DeprecateThingType(input *DeprecateThingTypeInput) (*DeprecateThingTypeOutput, error) {
- req, out := c.DeprecateThingTypeRequest(input)
- return out, req.Send()
- }
- // DeprecateThingTypeWithContext is the same as DeprecateThingType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeprecateThingType 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 *IoT) DeprecateThingTypeWithContext(ctx aws.Context, input *DeprecateThingTypeInput, opts ...request.Option) (*DeprecateThingTypeOutput, error) {
- req, out := c.DeprecateThingTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeAccountAuditConfiguration = "DescribeAccountAuditConfiguration"
- // DescribeAccountAuditConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeAccountAuditConfiguration 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 DescribeAccountAuditConfiguration for more information on using the DescribeAccountAuditConfiguration
- // 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 DescribeAccountAuditConfigurationRequest method.
- // req, resp := client.DescribeAccountAuditConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeAccountAuditConfigurationRequest(input *DescribeAccountAuditConfigurationInput) (req *request.Request, output *DescribeAccountAuditConfigurationOutput) {
- op := &request.Operation{
- Name: opDescribeAccountAuditConfiguration,
- HTTPMethod: "GET",
- HTTPPath: "/audit/configuration",
- }
- if input == nil {
- input = &DescribeAccountAuditConfigurationInput{}
- }
- output = &DescribeAccountAuditConfigurationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeAccountAuditConfiguration API operation for AWS IoT.
- //
- // Gets information about the Device Defender audit settings for this account.
- // Settings include how audit notifications are sent and which audit checks
- // are enabled or disabled.
- //
- // 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's
- // API operation DescribeAccountAuditConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DescribeAccountAuditConfiguration(input *DescribeAccountAuditConfigurationInput) (*DescribeAccountAuditConfigurationOutput, error) {
- req, out := c.DescribeAccountAuditConfigurationRequest(input)
- return out, req.Send()
- }
- // DescribeAccountAuditConfigurationWithContext is the same as DescribeAccountAuditConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeAccountAuditConfiguration 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 *IoT) DescribeAccountAuditConfigurationWithContext(ctx aws.Context, input *DescribeAccountAuditConfigurationInput, opts ...request.Option) (*DescribeAccountAuditConfigurationOutput, error) {
- req, out := c.DescribeAccountAuditConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeAuditTask = "DescribeAuditTask"
- // DescribeAuditTaskRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeAuditTask 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 DescribeAuditTask for more information on using the DescribeAuditTask
- // 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 DescribeAuditTaskRequest method.
- // req, resp := client.DescribeAuditTaskRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeAuditTaskRequest(input *DescribeAuditTaskInput) (req *request.Request, output *DescribeAuditTaskOutput) {
- op := &request.Operation{
- Name: opDescribeAuditTask,
- HTTPMethod: "GET",
- HTTPPath: "/audit/tasks/{taskId}",
- }
- if input == nil {
- input = &DescribeAuditTaskInput{}
- }
- output = &DescribeAuditTaskOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeAuditTask API operation for AWS IoT.
- //
- // Gets information about a Device Defender audit.
- //
- // 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's
- // API operation DescribeAuditTask for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DescribeAuditTask(input *DescribeAuditTaskInput) (*DescribeAuditTaskOutput, error) {
- req, out := c.DescribeAuditTaskRequest(input)
- return out, req.Send()
- }
- // DescribeAuditTaskWithContext is the same as DescribeAuditTask with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeAuditTask 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 *IoT) DescribeAuditTaskWithContext(ctx aws.Context, input *DescribeAuditTaskInput, opts ...request.Option) (*DescribeAuditTaskOutput, error) {
- req, out := c.DescribeAuditTaskRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeAuthorizer = "DescribeAuthorizer"
- // DescribeAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeAuthorizer 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 DescribeAuthorizer for more information on using the DescribeAuthorizer
- // 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 DescribeAuthorizerRequest method.
- // req, resp := client.DescribeAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeAuthorizerRequest(input *DescribeAuthorizerInput) (req *request.Request, output *DescribeAuthorizerOutput) {
- op := &request.Operation{
- Name: opDescribeAuthorizer,
- HTTPMethod: "GET",
- HTTPPath: "/authorizer/{authorizerName}",
- }
- if input == nil {
- input = &DescribeAuthorizerInput{}
- }
- output = &DescribeAuthorizerOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeAuthorizer API operation for AWS IoT.
- //
- // Describes an authorizer.
- //
- // 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's
- // API operation DescribeAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DescribeAuthorizer(input *DescribeAuthorizerInput) (*DescribeAuthorizerOutput, error) {
- req, out := c.DescribeAuthorizerRequest(input)
- return out, req.Send()
- }
- // DescribeAuthorizerWithContext is the same as DescribeAuthorizer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeAuthorizer 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 *IoT) DescribeAuthorizerWithContext(ctx aws.Context, input *DescribeAuthorizerInput, opts ...request.Option) (*DescribeAuthorizerOutput, error) {
- req, out := c.DescribeAuthorizerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeBillingGroup = "DescribeBillingGroup"
- // DescribeBillingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeBillingGroup 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 DescribeBillingGroup for more information on using the DescribeBillingGroup
- // 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 DescribeBillingGroupRequest method.
- // req, resp := client.DescribeBillingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeBillingGroupRequest(input *DescribeBillingGroupInput) (req *request.Request, output *DescribeBillingGroupOutput) {
- op := &request.Operation{
- Name: opDescribeBillingGroup,
- HTTPMethod: "GET",
- HTTPPath: "/billing-groups/{billingGroupName}",
- }
- if input == nil {
- input = &DescribeBillingGroupInput{}
- }
- output = &DescribeBillingGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeBillingGroup API operation for AWS IoT.
- //
- // Returns information about a billing group.
- //
- // 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's
- // API operation DescribeBillingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) DescribeBillingGroup(input *DescribeBillingGroupInput) (*DescribeBillingGroupOutput, error) {
- req, out := c.DescribeBillingGroupRequest(input)
- return out, req.Send()
- }
- // DescribeBillingGroupWithContext is the same as DescribeBillingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeBillingGroup 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 *IoT) DescribeBillingGroupWithContext(ctx aws.Context, input *DescribeBillingGroupInput, opts ...request.Option) (*DescribeBillingGroupOutput, error) {
- req, out := c.DescribeBillingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeCACertificate = "DescribeCACertificate"
- // DescribeCACertificateRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCACertificate 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 DescribeCACertificate for more information on using the DescribeCACertificate
- // 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 DescribeCACertificateRequest method.
- // req, resp := client.DescribeCACertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeCACertificateRequest(input *DescribeCACertificateInput) (req *request.Request, output *DescribeCACertificateOutput) {
- op := &request.Operation{
- Name: opDescribeCACertificate,
- HTTPMethod: "GET",
- HTTPPath: "/cacertificate/{caCertificateId}",
- }
- if input == nil {
- input = &DescribeCACertificateInput{}
- }
- output = &DescribeCACertificateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeCACertificate API operation for AWS IoT.
- //
- // Describes a registered CA certificate.
- //
- // 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's
- // API operation DescribeCACertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) DescribeCACertificate(input *DescribeCACertificateInput) (*DescribeCACertificateOutput, error) {
- req, out := c.DescribeCACertificateRequest(input)
- return out, req.Send()
- }
- // DescribeCACertificateWithContext is the same as DescribeCACertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeCACertificate 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 *IoT) DescribeCACertificateWithContext(ctx aws.Context, input *DescribeCACertificateInput, opts ...request.Option) (*DescribeCACertificateOutput, error) {
- req, out := c.DescribeCACertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeCertificate = "DescribeCertificate"
- // DescribeCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCertificate 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 DescribeCertificate for more information on using the DescribeCertificate
- // 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 DescribeCertificateRequest method.
- // req, resp := client.DescribeCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeCertificateRequest(input *DescribeCertificateInput) (req *request.Request, output *DescribeCertificateOutput) {
- op := &request.Operation{
- Name: opDescribeCertificate,
- HTTPMethod: "GET",
- HTTPPath: "/certificates/{certificateId}",
- }
- if input == nil {
- input = &DescribeCertificateInput{}
- }
- output = &DescribeCertificateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeCertificate API operation for AWS IoT.
- //
- // Gets information about the specified certificate.
- //
- // 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's
- // API operation DescribeCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) {
- req, out := c.DescribeCertificateRequest(input)
- return out, req.Send()
- }
- // DescribeCertificateWithContext is the same as DescribeCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeCertificate 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 *IoT) DescribeCertificateWithContext(ctx aws.Context, input *DescribeCertificateInput, opts ...request.Option) (*DescribeCertificateOutput, error) {
- req, out := c.DescribeCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeDefaultAuthorizer = "DescribeDefaultAuthorizer"
- // DescribeDefaultAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeDefaultAuthorizer 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 DescribeDefaultAuthorizer for more information on using the DescribeDefaultAuthorizer
- // 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 DescribeDefaultAuthorizerRequest method.
- // req, resp := client.DescribeDefaultAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeDefaultAuthorizerRequest(input *DescribeDefaultAuthorizerInput) (req *request.Request, output *DescribeDefaultAuthorizerOutput) {
- op := &request.Operation{
- Name: opDescribeDefaultAuthorizer,
- HTTPMethod: "GET",
- HTTPPath: "/default-authorizer",
- }
- if input == nil {
- input = &DescribeDefaultAuthorizerInput{}
- }
- output = &DescribeDefaultAuthorizerOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeDefaultAuthorizer API operation for AWS IoT.
- //
- // Describes the default authorizer.
- //
- // 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's
- // API operation DescribeDefaultAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DescribeDefaultAuthorizer(input *DescribeDefaultAuthorizerInput) (*DescribeDefaultAuthorizerOutput, error) {
- req, out := c.DescribeDefaultAuthorizerRequest(input)
- return out, req.Send()
- }
- // DescribeDefaultAuthorizerWithContext is the same as DescribeDefaultAuthorizer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeDefaultAuthorizer 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 *IoT) DescribeDefaultAuthorizerWithContext(ctx aws.Context, input *DescribeDefaultAuthorizerInput, opts ...request.Option) (*DescribeDefaultAuthorizerOutput, error) {
- req, out := c.DescribeDefaultAuthorizerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeEndpoint = "DescribeEndpoint"
- // DescribeEndpointRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeEndpoint operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeEndpoint for more information on using the DescribeEndpoint
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeEndpointRequest method.
- // req, resp := client.DescribeEndpointRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeEndpointRequest(input *DescribeEndpointInput) (req *request.Request, output *DescribeEndpointOutput) {
- op := &request.Operation{
- Name: opDescribeEndpoint,
- HTTPMethod: "GET",
- HTTPPath: "/endpoint",
- }
- if input == nil {
- input = &DescribeEndpointInput{}
- }
- output = &DescribeEndpointOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeEndpoint API operation for AWS IoT.
- //
- // Returns a unique endpoint specific to the AWS account making the call.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation DescribeEndpoint for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- func (c *IoT) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) {
- req, out := c.DescribeEndpointRequest(input)
- return out, req.Send()
- }
- // DescribeEndpointWithContext is the same as DescribeEndpoint with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeEndpoint for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoT) DescribeEndpointWithContext(ctx aws.Context, input *DescribeEndpointInput, opts ...request.Option) (*DescribeEndpointOutput, error) {
- req, out := c.DescribeEndpointRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeEventConfigurations = "DescribeEventConfigurations"
- // DescribeEventConfigurationsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeEventConfigurations 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 DescribeEventConfigurations for more information on using the DescribeEventConfigurations
- // 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 DescribeEventConfigurationsRequest method.
- // req, resp := client.DescribeEventConfigurationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeEventConfigurationsRequest(input *DescribeEventConfigurationsInput) (req *request.Request, output *DescribeEventConfigurationsOutput) {
- op := &request.Operation{
- Name: opDescribeEventConfigurations,
- HTTPMethod: "GET",
- HTTPPath: "/event-configurations",
- }
- if input == nil {
- input = &DescribeEventConfigurationsInput{}
- }
- output = &DescribeEventConfigurationsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeEventConfigurations API operation for AWS IoT.
- //
- // Describes event configurations.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation DescribeEventConfigurations for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- func (c *IoT) DescribeEventConfigurations(input *DescribeEventConfigurationsInput) (*DescribeEventConfigurationsOutput, error) {
- req, out := c.DescribeEventConfigurationsRequest(input)
- return out, req.Send()
- }
- // DescribeEventConfigurationsWithContext is the same as DescribeEventConfigurations with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeEventConfigurations 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 *IoT) DescribeEventConfigurationsWithContext(ctx aws.Context, input *DescribeEventConfigurationsInput, opts ...request.Option) (*DescribeEventConfigurationsOutput, error) {
- req, out := c.DescribeEventConfigurationsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeIndex = "DescribeIndex"
- // DescribeIndexRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeIndex 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 DescribeIndex for more information on using the DescribeIndex
- // 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 DescribeIndexRequest method.
- // req, resp := client.DescribeIndexRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeIndexRequest(input *DescribeIndexInput) (req *request.Request, output *DescribeIndexOutput) {
- op := &request.Operation{
- Name: opDescribeIndex,
- HTTPMethod: "GET",
- HTTPPath: "/indices/{indexName}",
- }
- if input == nil {
- input = &DescribeIndexInput{}
- }
- output = &DescribeIndexOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeIndex API operation for AWS IoT.
- //
- // Describes a search index.
- //
- // 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's
- // API operation DescribeIndex for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) DescribeIndex(input *DescribeIndexInput) (*DescribeIndexOutput, error) {
- req, out := c.DescribeIndexRequest(input)
- return out, req.Send()
- }
- // DescribeIndexWithContext is the same as DescribeIndex with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeIndex 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 *IoT) DescribeIndexWithContext(ctx aws.Context, input *DescribeIndexInput, opts ...request.Option) (*DescribeIndexOutput, error) {
- req, out := c.DescribeIndexRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeJob = "DescribeJob"
- // DescribeJobRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeJob 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 DescribeJob for more information on using the DescribeJob
- // 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 DescribeJobRequest method.
- // req, resp := client.DescribeJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeJobRequest(input *DescribeJobInput) (req *request.Request, output *DescribeJobOutput) {
- op := &request.Operation{
- Name: opDescribeJob,
- HTTPMethod: "GET",
- HTTPPath: "/jobs/{jobId}",
- }
- if input == nil {
- input = &DescribeJobInput{}
- }
- output = &DescribeJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeJob API operation for AWS IoT.
- //
- // Describes a job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation DescribeJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) DescribeJob(input *DescribeJobInput) (*DescribeJobOutput, error) {
- req, out := c.DescribeJobRequest(input)
- return out, req.Send()
- }
- // DescribeJobWithContext is the same as DescribeJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeJob 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 *IoT) DescribeJobWithContext(ctx aws.Context, input *DescribeJobInput, opts ...request.Option) (*DescribeJobOutput, error) {
- req, out := c.DescribeJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeJobExecution = "DescribeJobExecution"
- // DescribeJobExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeJobExecution 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 DescribeJobExecution for more information on using the DescribeJobExecution
- // 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 DescribeJobExecutionRequest method.
- // req, resp := client.DescribeJobExecutionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeJobExecutionRequest(input *DescribeJobExecutionInput) (req *request.Request, output *DescribeJobExecutionOutput) {
- op := &request.Operation{
- Name: opDescribeJobExecution,
- HTTPMethod: "GET",
- HTTPPath: "/things/{thingName}/jobs/{jobId}",
- }
- if input == nil {
- input = &DescribeJobExecutionInput{}
- }
- output = &DescribeJobExecutionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeJobExecution API operation for AWS IoT.
- //
- // Describes a job execution.
- //
- // 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's
- // API operation DescribeJobExecution for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) DescribeJobExecution(input *DescribeJobExecutionInput) (*DescribeJobExecutionOutput, error) {
- req, out := c.DescribeJobExecutionRequest(input)
- return out, req.Send()
- }
- // DescribeJobExecutionWithContext is the same as DescribeJobExecution with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeJobExecution 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 *IoT) DescribeJobExecutionWithContext(ctx aws.Context, input *DescribeJobExecutionInput, opts ...request.Option) (*DescribeJobExecutionOutput, error) {
- req, out := c.DescribeJobExecutionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeRoleAlias = "DescribeRoleAlias"
- // DescribeRoleAliasRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeRoleAlias 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 DescribeRoleAlias for more information on using the DescribeRoleAlias
- // 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 DescribeRoleAliasRequest method.
- // req, resp := client.DescribeRoleAliasRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeRoleAliasRequest(input *DescribeRoleAliasInput) (req *request.Request, output *DescribeRoleAliasOutput) {
- op := &request.Operation{
- Name: opDescribeRoleAlias,
- HTTPMethod: "GET",
- HTTPPath: "/role-aliases/{roleAlias}",
- }
- if input == nil {
- input = &DescribeRoleAliasInput{}
- }
- output = &DescribeRoleAliasOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeRoleAlias API operation for AWS IoT.
- //
- // Describes a role alias.
- //
- // 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's
- // API operation DescribeRoleAlias for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) DescribeRoleAlias(input *DescribeRoleAliasInput) (*DescribeRoleAliasOutput, error) {
- req, out := c.DescribeRoleAliasRequest(input)
- return out, req.Send()
- }
- // DescribeRoleAliasWithContext is the same as DescribeRoleAlias with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeRoleAlias 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 *IoT) DescribeRoleAliasWithContext(ctx aws.Context, input *DescribeRoleAliasInput, opts ...request.Option) (*DescribeRoleAliasOutput, error) {
- req, out := c.DescribeRoleAliasRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeScheduledAudit = "DescribeScheduledAudit"
- // DescribeScheduledAuditRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeScheduledAudit 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 DescribeScheduledAudit for more information on using the DescribeScheduledAudit
- // 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 DescribeScheduledAuditRequest method.
- // req, resp := client.DescribeScheduledAuditRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeScheduledAuditRequest(input *DescribeScheduledAuditInput) (req *request.Request, output *DescribeScheduledAuditOutput) {
- op := &request.Operation{
- Name: opDescribeScheduledAudit,
- HTTPMethod: "GET",
- HTTPPath: "/audit/scheduledaudits/{scheduledAuditName}",
- }
- if input == nil {
- input = &DescribeScheduledAuditInput{}
- }
- output = &DescribeScheduledAuditOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeScheduledAudit API operation for AWS IoT.
- //
- // Gets information about a scheduled audit.
- //
- // 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's
- // API operation DescribeScheduledAudit for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DescribeScheduledAudit(input *DescribeScheduledAuditInput) (*DescribeScheduledAuditOutput, error) {
- req, out := c.DescribeScheduledAuditRequest(input)
- return out, req.Send()
- }
- // DescribeScheduledAuditWithContext is the same as DescribeScheduledAudit with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeScheduledAudit 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 *IoT) DescribeScheduledAuditWithContext(ctx aws.Context, input *DescribeScheduledAuditInput, opts ...request.Option) (*DescribeScheduledAuditOutput, error) {
- req, out := c.DescribeScheduledAuditRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeSecurityProfile = "DescribeSecurityProfile"
- // DescribeSecurityProfileRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeSecurityProfile 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 DescribeSecurityProfile for more information on using the DescribeSecurityProfile
- // 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 DescribeSecurityProfileRequest method.
- // req, resp := client.DescribeSecurityProfileRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeSecurityProfileRequest(input *DescribeSecurityProfileInput) (req *request.Request, output *DescribeSecurityProfileOutput) {
- op := &request.Operation{
- Name: opDescribeSecurityProfile,
- HTTPMethod: "GET",
- HTTPPath: "/security-profiles/{securityProfileName}",
- }
- if input == nil {
- input = &DescribeSecurityProfileInput{}
- }
- output = &DescribeSecurityProfileOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeSecurityProfile API operation for AWS IoT.
- //
- // Gets information about a Device Defender security profile.
- //
- // 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's
- // API operation DescribeSecurityProfile for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DescribeSecurityProfile(input *DescribeSecurityProfileInput) (*DescribeSecurityProfileOutput, error) {
- req, out := c.DescribeSecurityProfileRequest(input)
- return out, req.Send()
- }
- // DescribeSecurityProfileWithContext is the same as DescribeSecurityProfile with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeSecurityProfile 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 *IoT) DescribeSecurityProfileWithContext(ctx aws.Context, input *DescribeSecurityProfileInput, opts ...request.Option) (*DescribeSecurityProfileOutput, error) {
- req, out := c.DescribeSecurityProfileRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeStream = "DescribeStream"
- // DescribeStreamRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeStream 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 DescribeStream for more information on using the DescribeStream
- // 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 DescribeStreamRequest method.
- // req, resp := client.DescribeStreamRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeStreamRequest(input *DescribeStreamInput) (req *request.Request, output *DescribeStreamOutput) {
- op := &request.Operation{
- Name: opDescribeStream,
- HTTPMethod: "GET",
- HTTPPath: "/streams/{streamId}",
- }
- if input == nil {
- input = &DescribeStreamInput{}
- }
- output = &DescribeStreamOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeStream API operation for AWS IoT.
- //
- // Gets information about a stream.
- //
- // 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's
- // API operation DescribeStream for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOutput, error) {
- req, out := c.DescribeStreamRequest(input)
- return out, req.Send()
- }
- // DescribeStreamWithContext is the same as DescribeStream with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeStream 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 *IoT) DescribeStreamWithContext(ctx aws.Context, input *DescribeStreamInput, opts ...request.Option) (*DescribeStreamOutput, error) {
- req, out := c.DescribeStreamRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeThing = "DescribeThing"
- // DescribeThingRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeThing 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 DescribeThing for more information on using the DescribeThing
- // 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 DescribeThingRequest method.
- // req, resp := client.DescribeThingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeThingRequest(input *DescribeThingInput) (req *request.Request, output *DescribeThingOutput) {
- op := &request.Operation{
- Name: opDescribeThing,
- HTTPMethod: "GET",
- HTTPPath: "/things/{thingName}",
- }
- if input == nil {
- input = &DescribeThingInput{}
- }
- output = &DescribeThingOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeThing API operation for AWS IoT.
- //
- // Gets information about the specified thing.
- //
- // 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's
- // API operation DescribeThing for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DescribeThing(input *DescribeThingInput) (*DescribeThingOutput, error) {
- req, out := c.DescribeThingRequest(input)
- return out, req.Send()
- }
- // DescribeThingWithContext is the same as DescribeThing with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeThing 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 *IoT) DescribeThingWithContext(ctx aws.Context, input *DescribeThingInput, opts ...request.Option) (*DescribeThingOutput, error) {
- req, out := c.DescribeThingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeThingGroup = "DescribeThingGroup"
- // DescribeThingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeThingGroup 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 DescribeThingGroup for more information on using the DescribeThingGroup
- // 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 DescribeThingGroupRequest method.
- // req, resp := client.DescribeThingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeThingGroupRequest(input *DescribeThingGroupInput) (req *request.Request, output *DescribeThingGroupOutput) {
- op := &request.Operation{
- Name: opDescribeThingGroup,
- HTTPMethod: "GET",
- HTTPPath: "/thing-groups/{thingGroupName}",
- }
- if input == nil {
- input = &DescribeThingGroupInput{}
- }
- output = &DescribeThingGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeThingGroup API operation for AWS IoT.
- //
- // Describe a thing group.
- //
- // 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's
- // API operation DescribeThingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) DescribeThingGroup(input *DescribeThingGroupInput) (*DescribeThingGroupOutput, error) {
- req, out := c.DescribeThingGroupRequest(input)
- return out, req.Send()
- }
- // DescribeThingGroupWithContext is the same as DescribeThingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeThingGroup 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 *IoT) DescribeThingGroupWithContext(ctx aws.Context, input *DescribeThingGroupInput, opts ...request.Option) (*DescribeThingGroupOutput, error) {
- req, out := c.DescribeThingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeThingRegistrationTask = "DescribeThingRegistrationTask"
- // DescribeThingRegistrationTaskRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeThingRegistrationTask 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 DescribeThingRegistrationTask for more information on using the DescribeThingRegistrationTask
- // 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 DescribeThingRegistrationTaskRequest method.
- // req, resp := client.DescribeThingRegistrationTaskRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeThingRegistrationTaskRequest(input *DescribeThingRegistrationTaskInput) (req *request.Request, output *DescribeThingRegistrationTaskOutput) {
- op := &request.Operation{
- Name: opDescribeThingRegistrationTask,
- HTTPMethod: "GET",
- HTTPPath: "/thing-registration-tasks/{taskId}",
- }
- if input == nil {
- input = &DescribeThingRegistrationTaskInput{}
- }
- output = &DescribeThingRegistrationTaskOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeThingRegistrationTask API operation for AWS IoT.
- //
- // Describes a bulk thing provisioning task.
- //
- // 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's
- // API operation DescribeThingRegistrationTask for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) DescribeThingRegistrationTask(input *DescribeThingRegistrationTaskInput) (*DescribeThingRegistrationTaskOutput, error) {
- req, out := c.DescribeThingRegistrationTaskRequest(input)
- return out, req.Send()
- }
- // DescribeThingRegistrationTaskWithContext is the same as DescribeThingRegistrationTask with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeThingRegistrationTask 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 *IoT) DescribeThingRegistrationTaskWithContext(ctx aws.Context, input *DescribeThingRegistrationTaskInput, opts ...request.Option) (*DescribeThingRegistrationTaskOutput, error) {
- req, out := c.DescribeThingRegistrationTaskRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeThingType = "DescribeThingType"
- // DescribeThingTypeRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeThingType 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 DescribeThingType for more information on using the DescribeThingType
- // 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 DescribeThingTypeRequest method.
- // req, resp := client.DescribeThingTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DescribeThingTypeRequest(input *DescribeThingTypeInput) (req *request.Request, output *DescribeThingTypeOutput) {
- op := &request.Operation{
- Name: opDescribeThingType,
- HTTPMethod: "GET",
- HTTPPath: "/thing-types/{thingTypeName}",
- }
- if input == nil {
- input = &DescribeThingTypeInput{}
- }
- output = &DescribeThingTypeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeThingType API operation for AWS IoT.
- //
- // Gets information about the specified thing type.
- //
- // 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's
- // API operation DescribeThingType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DescribeThingType(input *DescribeThingTypeInput) (*DescribeThingTypeOutput, error) {
- req, out := c.DescribeThingTypeRequest(input)
- return out, req.Send()
- }
- // DescribeThingTypeWithContext is the same as DescribeThingType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeThingType 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 *IoT) DescribeThingTypeWithContext(ctx aws.Context, input *DescribeThingTypeInput, opts ...request.Option) (*DescribeThingTypeOutput, error) {
- req, out := c.DescribeThingTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDetachPolicy = "DetachPolicy"
- // DetachPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the DetachPolicy 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 DetachPolicy for more information on using the DetachPolicy
- // 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 DetachPolicyRequest method.
- // req, resp := client.DetachPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DetachPolicyRequest(input *DetachPolicyInput) (req *request.Request, output *DetachPolicyOutput) {
- op := &request.Operation{
- Name: opDetachPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/target-policies/{policyName}",
- }
- if input == nil {
- input = &DetachPolicyInput{}
- }
- output = &DetachPolicyOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DetachPolicy API operation for AWS IoT.
- //
- // Detaches a policy from the specified target.
- //
- // 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's
- // API operation DetachPolicy for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- func (c *IoT) DetachPolicy(input *DetachPolicyInput) (*DetachPolicyOutput, error) {
- req, out := c.DetachPolicyRequest(input)
- return out, req.Send()
- }
- // DetachPolicyWithContext is the same as DetachPolicy with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DetachPolicy 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 *IoT) DetachPolicyWithContext(ctx aws.Context, input *DetachPolicyInput, opts ...request.Option) (*DetachPolicyOutput, error) {
- req, out := c.DetachPolicyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDetachPrincipalPolicy = "DetachPrincipalPolicy"
- // DetachPrincipalPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the DetachPrincipalPolicy 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 DetachPrincipalPolicy for more information on using the DetachPrincipalPolicy
- // 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 DetachPrincipalPolicyRequest method.
- // req, resp := client.DetachPrincipalPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // Deprecated: DetachPrincipalPolicy has been deprecated
- func (c *IoT) DetachPrincipalPolicyRequest(input *DetachPrincipalPolicyInput) (req *request.Request, output *DetachPrincipalPolicyOutput) {
- if c.Client.Config.Logger != nil {
- c.Client.Config.Logger.Log("This operation, DetachPrincipalPolicy, has been deprecated")
- }
- op := &request.Operation{
- Name: opDetachPrincipalPolicy,
- HTTPMethod: "DELETE",
- HTTPPath: "/principal-policies/{policyName}",
- }
- if input == nil {
- input = &DetachPrincipalPolicyInput{}
- }
- output = &DetachPrincipalPolicyOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DetachPrincipalPolicy API operation for AWS IoT.
- //
- // Removes the specified policy from the specified certificate.
- //
- // Note: This API is deprecated. Please use DetachPolicy instead.
- //
- // 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's
- // API operation DetachPrincipalPolicy for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- //
- // Deprecated: DetachPrincipalPolicy has been deprecated
- func (c *IoT) DetachPrincipalPolicy(input *DetachPrincipalPolicyInput) (*DetachPrincipalPolicyOutput, error) {
- req, out := c.DetachPrincipalPolicyRequest(input)
- return out, req.Send()
- }
- // DetachPrincipalPolicyWithContext is the same as DetachPrincipalPolicy with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DetachPrincipalPolicy 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.
- //
- // Deprecated: DetachPrincipalPolicyWithContext has been deprecated
- func (c *IoT) DetachPrincipalPolicyWithContext(ctx aws.Context, input *DetachPrincipalPolicyInput, opts ...request.Option) (*DetachPrincipalPolicyOutput, error) {
- req, out := c.DetachPrincipalPolicyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDetachSecurityProfile = "DetachSecurityProfile"
- // DetachSecurityProfileRequest generates a "aws/request.Request" representing the
- // client's request for the DetachSecurityProfile 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 DetachSecurityProfile for more information on using the DetachSecurityProfile
- // 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 DetachSecurityProfileRequest method.
- // req, resp := client.DetachSecurityProfileRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DetachSecurityProfileRequest(input *DetachSecurityProfileInput) (req *request.Request, output *DetachSecurityProfileOutput) {
- op := &request.Operation{
- Name: opDetachSecurityProfile,
- HTTPMethod: "DELETE",
- HTTPPath: "/security-profiles/{securityProfileName}/targets",
- }
- if input == nil {
- input = &DetachSecurityProfileInput{}
- }
- output = &DetachSecurityProfileOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DetachSecurityProfile API operation for AWS IoT.
- //
- // Disassociates a Device Defender security profile from a thing group or from
- // this account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation DetachSecurityProfile for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DetachSecurityProfile(input *DetachSecurityProfileInput) (*DetachSecurityProfileOutput, error) {
- req, out := c.DetachSecurityProfileRequest(input)
- return out, req.Send()
- }
- // DetachSecurityProfileWithContext is the same as DetachSecurityProfile with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DetachSecurityProfile 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 *IoT) DetachSecurityProfileWithContext(ctx aws.Context, input *DetachSecurityProfileInput, opts ...request.Option) (*DetachSecurityProfileOutput, error) {
- req, out := c.DetachSecurityProfileRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDetachThingPrincipal = "DetachThingPrincipal"
- // DetachThingPrincipalRequest generates a "aws/request.Request" representing the
- // client's request for the DetachThingPrincipal 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 DetachThingPrincipal for more information on using the DetachThingPrincipal
- // 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 DetachThingPrincipalRequest method.
- // req, resp := client.DetachThingPrincipalRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DetachThingPrincipalRequest(input *DetachThingPrincipalInput) (req *request.Request, output *DetachThingPrincipalOutput) {
- op := &request.Operation{
- Name: opDetachThingPrincipal,
- HTTPMethod: "DELETE",
- HTTPPath: "/things/{thingName}/principals",
- }
- if input == nil {
- input = &DetachThingPrincipalInput{}
- }
- output = &DetachThingPrincipalOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DetachThingPrincipal API operation for AWS IoT.
- //
- // Detaches the specified principal from the specified thing.
- //
- // This call is asynchronous. It might take several seconds for the detachment
- // to propagate.
- //
- // 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's
- // API operation DetachThingPrincipal for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) DetachThingPrincipal(input *DetachThingPrincipalInput) (*DetachThingPrincipalOutput, error) {
- req, out := c.DetachThingPrincipalRequest(input)
- return out, req.Send()
- }
- // DetachThingPrincipalWithContext is the same as DetachThingPrincipal with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DetachThingPrincipal 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 *IoT) DetachThingPrincipalWithContext(ctx aws.Context, input *DetachThingPrincipalInput, opts ...request.Option) (*DetachThingPrincipalOutput, error) {
- req, out := c.DetachThingPrincipalRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDisableTopicRule = "DisableTopicRule"
- // DisableTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the DisableTopicRule 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 DisableTopicRule for more information on using the DisableTopicRule
- // 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 DisableTopicRuleRequest method.
- // req, resp := client.DisableTopicRuleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) DisableTopicRuleRequest(input *DisableTopicRuleInput) (req *request.Request, output *DisableTopicRuleOutput) {
- op := &request.Operation{
- Name: opDisableTopicRule,
- HTTPMethod: "POST",
- HTTPPath: "/rules/{ruleName}/disable",
- }
- if input == nil {
- input = &DisableTopicRuleInput{}
- }
- output = &DisableTopicRuleOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DisableTopicRule API operation for AWS IoT.
- //
- // Disables the rule.
- //
- // 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's
- // API operation DisableTopicRule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException"
- // A conflicting resource update exception. This exception is thrown when two
- // pending updates cause a conflict.
- //
- func (c *IoT) DisableTopicRule(input *DisableTopicRuleInput) (*DisableTopicRuleOutput, error) {
- req, out := c.DisableTopicRuleRequest(input)
- return out, req.Send()
- }
- // DisableTopicRuleWithContext is the same as DisableTopicRule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DisableTopicRule 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 *IoT) DisableTopicRuleWithContext(ctx aws.Context, input *DisableTopicRuleInput, opts ...request.Option) (*DisableTopicRuleOutput, error) {
- req, out := c.DisableTopicRuleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opEnableTopicRule = "EnableTopicRule"
- // EnableTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the EnableTopicRule 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 EnableTopicRule for more information on using the EnableTopicRule
- // 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 EnableTopicRuleRequest method.
- // req, resp := client.EnableTopicRuleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) EnableTopicRuleRequest(input *EnableTopicRuleInput) (req *request.Request, output *EnableTopicRuleOutput) {
- op := &request.Operation{
- Name: opEnableTopicRule,
- HTTPMethod: "POST",
- HTTPPath: "/rules/{ruleName}/enable",
- }
- if input == nil {
- input = &EnableTopicRuleInput{}
- }
- output = &EnableTopicRuleOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // EnableTopicRule API operation for AWS IoT.
- //
- // Enables the rule.
- //
- // 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's
- // API operation EnableTopicRule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException"
- // A conflicting resource update exception. This exception is thrown when two
- // pending updates cause a conflict.
- //
- func (c *IoT) EnableTopicRule(input *EnableTopicRuleInput) (*EnableTopicRuleOutput, error) {
- req, out := c.EnableTopicRuleRequest(input)
- return out, req.Send()
- }
- // EnableTopicRuleWithContext is the same as EnableTopicRule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See EnableTopicRule 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 *IoT) EnableTopicRuleWithContext(ctx aws.Context, input *EnableTopicRuleInput, opts ...request.Option) (*EnableTopicRuleOutput, error) {
- req, out := c.EnableTopicRuleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetEffectivePolicies = "GetEffectivePolicies"
- // GetEffectivePoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the GetEffectivePolicies 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 GetEffectivePolicies for more information on using the GetEffectivePolicies
- // 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 GetEffectivePoliciesRequest method.
- // req, resp := client.GetEffectivePoliciesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) GetEffectivePoliciesRequest(input *GetEffectivePoliciesInput) (req *request.Request, output *GetEffectivePoliciesOutput) {
- op := &request.Operation{
- Name: opGetEffectivePolicies,
- HTTPMethod: "POST",
- HTTPPath: "/effective-policies",
- }
- if input == nil {
- input = &GetEffectivePoliciesInput{}
- }
- output = &GetEffectivePoliciesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetEffectivePolicies API operation for AWS IoT.
- //
- // Gets a list of the policies that have an effect on the authorization behavior
- // of the specified device when it connects to the AWS IoT device gateway.
- //
- // 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's
- // API operation GetEffectivePolicies for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- func (c *IoT) GetEffectivePolicies(input *GetEffectivePoliciesInput) (*GetEffectivePoliciesOutput, error) {
- req, out := c.GetEffectivePoliciesRequest(input)
- return out, req.Send()
- }
- // GetEffectivePoliciesWithContext is the same as GetEffectivePolicies with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetEffectivePolicies 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 *IoT) GetEffectivePoliciesWithContext(ctx aws.Context, input *GetEffectivePoliciesInput, opts ...request.Option) (*GetEffectivePoliciesOutput, error) {
- req, out := c.GetEffectivePoliciesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetIndexingConfiguration = "GetIndexingConfiguration"
- // GetIndexingConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the GetIndexingConfiguration 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 GetIndexingConfiguration for more information on using the GetIndexingConfiguration
- // 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 GetIndexingConfigurationRequest method.
- // req, resp := client.GetIndexingConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) GetIndexingConfigurationRequest(input *GetIndexingConfigurationInput) (req *request.Request, output *GetIndexingConfigurationOutput) {
- op := &request.Operation{
- Name: opGetIndexingConfiguration,
- HTTPMethod: "GET",
- HTTPPath: "/indexing/config",
- }
- if input == nil {
- input = &GetIndexingConfigurationInput{}
- }
- output = &GetIndexingConfigurationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetIndexingConfiguration API operation for AWS IoT.
- //
- // Gets the search configuration.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation GetIndexingConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) GetIndexingConfiguration(input *GetIndexingConfigurationInput) (*GetIndexingConfigurationOutput, error) {
- req, out := c.GetIndexingConfigurationRequest(input)
- return out, req.Send()
- }
- // GetIndexingConfigurationWithContext is the same as GetIndexingConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetIndexingConfiguration 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 *IoT) GetIndexingConfigurationWithContext(ctx aws.Context, input *GetIndexingConfigurationInput, opts ...request.Option) (*GetIndexingConfigurationOutput, error) {
- req, out := c.GetIndexingConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetJobDocument = "GetJobDocument"
- // GetJobDocumentRequest generates a "aws/request.Request" representing the
- // client's request for the GetJobDocument 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 GetJobDocument for more information on using the GetJobDocument
- // 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 GetJobDocumentRequest method.
- // req, resp := client.GetJobDocumentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) GetJobDocumentRequest(input *GetJobDocumentInput) (req *request.Request, output *GetJobDocumentOutput) {
- op := &request.Operation{
- Name: opGetJobDocument,
- HTTPMethod: "GET",
- HTTPPath: "/jobs/{jobId}/job-document",
- }
- if input == nil {
- input = &GetJobDocumentInput{}
- }
- output = &GetJobDocumentOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetJobDocument API operation for AWS IoT.
- //
- // Gets a job document.
- //
- // 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's
- // API operation GetJobDocument for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) GetJobDocument(input *GetJobDocumentInput) (*GetJobDocumentOutput, error) {
- req, out := c.GetJobDocumentRequest(input)
- return out, req.Send()
- }
- // GetJobDocumentWithContext is the same as GetJobDocument with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetJobDocument 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 *IoT) GetJobDocumentWithContext(ctx aws.Context, input *GetJobDocumentInput, opts ...request.Option) (*GetJobDocumentOutput, error) {
- req, out := c.GetJobDocumentRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetLoggingOptions = "GetLoggingOptions"
- // GetLoggingOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the GetLoggingOptions 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 GetLoggingOptions for more information on using the GetLoggingOptions
- // 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 GetLoggingOptionsRequest method.
- // req, resp := client.GetLoggingOptionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) GetLoggingOptionsRequest(input *GetLoggingOptionsInput) (req *request.Request, output *GetLoggingOptionsOutput) {
- op := &request.Operation{
- Name: opGetLoggingOptions,
- HTTPMethod: "GET",
- HTTPPath: "/loggingOptions",
- }
- if input == nil {
- input = &GetLoggingOptionsInput{}
- }
- output = &GetLoggingOptionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetLoggingOptions API operation for AWS IoT.
- //
- // Gets the logging options.
- //
- // NOTE: use of this command is not recommended. Use GetV2LoggingOptions instead.
- //
- // 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's
- // API operation GetLoggingOptions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) GetLoggingOptions(input *GetLoggingOptionsInput) (*GetLoggingOptionsOutput, error) {
- req, out := c.GetLoggingOptionsRequest(input)
- return out, req.Send()
- }
- // GetLoggingOptionsWithContext is the same as GetLoggingOptions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetLoggingOptions 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 *IoT) GetLoggingOptionsWithContext(ctx aws.Context, input *GetLoggingOptionsInput, opts ...request.Option) (*GetLoggingOptionsOutput, error) {
- req, out := c.GetLoggingOptionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetOTAUpdate = "GetOTAUpdate"
- // GetOTAUpdateRequest generates a "aws/request.Request" representing the
- // client's request for the GetOTAUpdate 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 GetOTAUpdate for more information on using the GetOTAUpdate
- // 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 GetOTAUpdateRequest method.
- // req, resp := client.GetOTAUpdateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) GetOTAUpdateRequest(input *GetOTAUpdateInput) (req *request.Request, output *GetOTAUpdateOutput) {
- op := &request.Operation{
- Name: opGetOTAUpdate,
- HTTPMethod: "GET",
- HTTPPath: "/otaUpdates/{otaUpdateId}",
- }
- if input == nil {
- input = &GetOTAUpdateInput{}
- }
- output = &GetOTAUpdateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetOTAUpdate API operation for AWS IoT.
- //
- // Gets an OTA update.
- //
- // 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's
- // API operation GetOTAUpdate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) GetOTAUpdate(input *GetOTAUpdateInput) (*GetOTAUpdateOutput, error) {
- req, out := c.GetOTAUpdateRequest(input)
- return out, req.Send()
- }
- // GetOTAUpdateWithContext is the same as GetOTAUpdate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetOTAUpdate 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 *IoT) GetOTAUpdateWithContext(ctx aws.Context, input *GetOTAUpdateInput, opts ...request.Option) (*GetOTAUpdateOutput, error) {
- req, out := c.GetOTAUpdateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetPolicy = "GetPolicy"
- // GetPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the GetPolicy 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 GetPolicy for more information on using the GetPolicy
- // 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 GetPolicyRequest method.
- // req, resp := client.GetPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput) {
- op := &request.Operation{
- Name: opGetPolicy,
- HTTPMethod: "GET",
- HTTPPath: "/policies/{policyName}",
- }
- if input == nil {
- input = &GetPolicyInput{}
- }
- output = &GetPolicyOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetPolicy API operation for AWS IoT.
- //
- // Gets information about the specified policy with the policy document of the
- // default version.
- //
- // 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's
- // API operation GetPolicy for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) {
- req, out := c.GetPolicyRequest(input)
- return out, req.Send()
- }
- // GetPolicyWithContext is the same as GetPolicy with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetPolicy 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 *IoT) GetPolicyWithContext(ctx aws.Context, input *GetPolicyInput, opts ...request.Option) (*GetPolicyOutput, error) {
- req, out := c.GetPolicyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetPolicyVersion = "GetPolicyVersion"
- // GetPolicyVersionRequest generates a "aws/request.Request" representing the
- // client's request for the GetPolicyVersion 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 GetPolicyVersion for more information on using the GetPolicyVersion
- // 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 GetPolicyVersionRequest method.
- // req, resp := client.GetPolicyVersionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *request.Request, output *GetPolicyVersionOutput) {
- op := &request.Operation{
- Name: opGetPolicyVersion,
- HTTPMethod: "GET",
- HTTPPath: "/policies/{policyName}/version/{policyVersionId}",
- }
- if input == nil {
- input = &GetPolicyVersionInput{}
- }
- output = &GetPolicyVersionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetPolicyVersion API operation for AWS IoT.
- //
- // Gets information about the specified policy version.
- //
- // 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's
- // API operation GetPolicyVersion for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) {
- req, out := c.GetPolicyVersionRequest(input)
- return out, req.Send()
- }
- // GetPolicyVersionWithContext is the same as GetPolicyVersion with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetPolicyVersion 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 *IoT) GetPolicyVersionWithContext(ctx aws.Context, input *GetPolicyVersionInput, opts ...request.Option) (*GetPolicyVersionOutput, error) {
- req, out := c.GetPolicyVersionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetRegistrationCode = "GetRegistrationCode"
- // GetRegistrationCodeRequest generates a "aws/request.Request" representing the
- // client's request for the GetRegistrationCode 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 GetRegistrationCode for more information on using the GetRegistrationCode
- // 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 GetRegistrationCodeRequest method.
- // req, resp := client.GetRegistrationCodeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) GetRegistrationCodeRequest(input *GetRegistrationCodeInput) (req *request.Request, output *GetRegistrationCodeOutput) {
- op := &request.Operation{
- Name: opGetRegistrationCode,
- HTTPMethod: "GET",
- HTTPPath: "/registrationcode",
- }
- if input == nil {
- input = &GetRegistrationCodeInput{}
- }
- output = &GetRegistrationCodeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetRegistrationCode API operation for AWS IoT.
- //
- // Gets a registration code used to register a CA certificate with AWS IoT.
- //
- // 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's
- // API operation GetRegistrationCode for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- func (c *IoT) GetRegistrationCode(input *GetRegistrationCodeInput) (*GetRegistrationCodeOutput, error) {
- req, out := c.GetRegistrationCodeRequest(input)
- return out, req.Send()
- }
- // GetRegistrationCodeWithContext is the same as GetRegistrationCode with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetRegistrationCode 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 *IoT) GetRegistrationCodeWithContext(ctx aws.Context, input *GetRegistrationCodeInput, opts ...request.Option) (*GetRegistrationCodeOutput, error) {
- req, out := c.GetRegistrationCodeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetTopicRule = "GetTopicRule"
- // GetTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the GetTopicRule 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 GetTopicRule for more information on using the GetTopicRule
- // 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 GetTopicRuleRequest method.
- // req, resp := client.GetTopicRuleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) GetTopicRuleRequest(input *GetTopicRuleInput) (req *request.Request, output *GetTopicRuleOutput) {
- op := &request.Operation{
- Name: opGetTopicRule,
- HTTPMethod: "GET",
- HTTPPath: "/rules/{ruleName}",
- }
- if input == nil {
- input = &GetTopicRuleInput{}
- }
- output = &GetTopicRuleOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetTopicRule API operation for AWS IoT.
- //
- // Gets information about the rule.
- //
- // 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's
- // API operation GetTopicRule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- func (c *IoT) GetTopicRule(input *GetTopicRuleInput) (*GetTopicRuleOutput, error) {
- req, out := c.GetTopicRuleRequest(input)
- return out, req.Send()
- }
- // GetTopicRuleWithContext is the same as GetTopicRule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetTopicRule 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 *IoT) GetTopicRuleWithContext(ctx aws.Context, input *GetTopicRuleInput, opts ...request.Option) (*GetTopicRuleOutput, error) {
- req, out := c.GetTopicRuleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetV2LoggingOptions = "GetV2LoggingOptions"
- // GetV2LoggingOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the GetV2LoggingOptions 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 GetV2LoggingOptions for more information on using the GetV2LoggingOptions
- // 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 GetV2LoggingOptionsRequest method.
- // req, resp := client.GetV2LoggingOptionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) GetV2LoggingOptionsRequest(input *GetV2LoggingOptionsInput) (req *request.Request, output *GetV2LoggingOptionsOutput) {
- op := &request.Operation{
- Name: opGetV2LoggingOptions,
- HTTPMethod: "GET",
- HTTPPath: "/v2LoggingOptions",
- }
- if input == nil {
- input = &GetV2LoggingOptionsInput{}
- }
- output = &GetV2LoggingOptionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetV2LoggingOptions API operation for AWS IoT.
- //
- // Gets the fine grained 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's
- // API operation GetV2LoggingOptions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeNotConfiguredException "NotConfiguredException"
- // The resource is not configured.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) GetV2LoggingOptions(input *GetV2LoggingOptionsInput) (*GetV2LoggingOptionsOutput, error) {
- req, out := c.GetV2LoggingOptionsRequest(input)
- return out, req.Send()
- }
- // GetV2LoggingOptionsWithContext is the same as GetV2LoggingOptions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetV2LoggingOptions 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 *IoT) GetV2LoggingOptionsWithContext(ctx aws.Context, input *GetV2LoggingOptionsInput, opts ...request.Option) (*GetV2LoggingOptionsOutput, error) {
- req, out := c.GetV2LoggingOptionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListActiveViolations = "ListActiveViolations"
- // ListActiveViolationsRequest generates a "aws/request.Request" representing the
- // client's request for the ListActiveViolations 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 ListActiveViolations for more information on using the ListActiveViolations
- // 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 ListActiveViolationsRequest method.
- // req, resp := client.ListActiveViolationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListActiveViolationsRequest(input *ListActiveViolationsInput) (req *request.Request, output *ListActiveViolationsOutput) {
- op := &request.Operation{
- Name: opListActiveViolations,
- HTTPMethod: "GET",
- HTTPPath: "/active-violations",
- }
- if input == nil {
- input = &ListActiveViolationsInput{}
- }
- output = &ListActiveViolationsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListActiveViolations API operation for AWS IoT.
- //
- // Lists the active violations for a given Device Defender security profile.
- //
- // 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's
- // API operation ListActiveViolations for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListActiveViolations(input *ListActiveViolationsInput) (*ListActiveViolationsOutput, error) {
- req, out := c.ListActiveViolationsRequest(input)
- return out, req.Send()
- }
- // ListActiveViolationsWithContext is the same as ListActiveViolations with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListActiveViolations 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 *IoT) ListActiveViolationsWithContext(ctx aws.Context, input *ListActiveViolationsInput, opts ...request.Option) (*ListActiveViolationsOutput, error) {
- req, out := c.ListActiveViolationsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListAttachedPolicies = "ListAttachedPolicies"
- // ListAttachedPoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the ListAttachedPolicies 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 ListAttachedPolicies for more information on using the ListAttachedPolicies
- // 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 ListAttachedPoliciesRequest method.
- // req, resp := client.ListAttachedPoliciesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListAttachedPoliciesRequest(input *ListAttachedPoliciesInput) (req *request.Request, output *ListAttachedPoliciesOutput) {
- op := &request.Operation{
- Name: opListAttachedPolicies,
- HTTPMethod: "POST",
- HTTPPath: "/attached-policies/{target}",
- }
- if input == nil {
- input = &ListAttachedPoliciesInput{}
- }
- output = &ListAttachedPoliciesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListAttachedPolicies API operation for AWS IoT.
- //
- // Lists the policies attached to the specified thing group.
- //
- // 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's
- // API operation ListAttachedPolicies for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- func (c *IoT) ListAttachedPolicies(input *ListAttachedPoliciesInput) (*ListAttachedPoliciesOutput, error) {
- req, out := c.ListAttachedPoliciesRequest(input)
- return out, req.Send()
- }
- // ListAttachedPoliciesWithContext is the same as ListAttachedPolicies with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListAttachedPolicies 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 *IoT) ListAttachedPoliciesWithContext(ctx aws.Context, input *ListAttachedPoliciesInput, opts ...request.Option) (*ListAttachedPoliciesOutput, error) {
- req, out := c.ListAttachedPoliciesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListAuditFindings = "ListAuditFindings"
- // ListAuditFindingsRequest generates a "aws/request.Request" representing the
- // client's request for the ListAuditFindings 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 ListAuditFindings for more information on using the ListAuditFindings
- // 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 ListAuditFindingsRequest method.
- // req, resp := client.ListAuditFindingsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListAuditFindingsRequest(input *ListAuditFindingsInput) (req *request.Request, output *ListAuditFindingsOutput) {
- op := &request.Operation{
- Name: opListAuditFindings,
- HTTPMethod: "POST",
- HTTPPath: "/audit/findings",
- }
- if input == nil {
- input = &ListAuditFindingsInput{}
- }
- output = &ListAuditFindingsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListAuditFindings API operation for AWS IoT.
- //
- // Lists the findings (results) of a Device Defender audit or of the audits
- // performed during a specified time period. (Findings are retained for 180
- // days.)
- //
- // 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's
- // API operation ListAuditFindings for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListAuditFindings(input *ListAuditFindingsInput) (*ListAuditFindingsOutput, error) {
- req, out := c.ListAuditFindingsRequest(input)
- return out, req.Send()
- }
- // ListAuditFindingsWithContext is the same as ListAuditFindings with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListAuditFindings 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 *IoT) ListAuditFindingsWithContext(ctx aws.Context, input *ListAuditFindingsInput, opts ...request.Option) (*ListAuditFindingsOutput, error) {
- req, out := c.ListAuditFindingsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListAuditTasks = "ListAuditTasks"
- // ListAuditTasksRequest generates a "aws/request.Request" representing the
- // client's request for the ListAuditTasks 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 ListAuditTasks for more information on using the ListAuditTasks
- // 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 ListAuditTasksRequest method.
- // req, resp := client.ListAuditTasksRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListAuditTasksRequest(input *ListAuditTasksInput) (req *request.Request, output *ListAuditTasksOutput) {
- op := &request.Operation{
- Name: opListAuditTasks,
- HTTPMethod: "GET",
- HTTPPath: "/audit/tasks",
- }
- if input == nil {
- input = &ListAuditTasksInput{}
- }
- output = &ListAuditTasksOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListAuditTasks API operation for AWS IoT.
- //
- // Lists the Device Defender audits that have been performed during a given
- // time period.
- //
- // 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's
- // API operation ListAuditTasks for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListAuditTasks(input *ListAuditTasksInput) (*ListAuditTasksOutput, error) {
- req, out := c.ListAuditTasksRequest(input)
- return out, req.Send()
- }
- // ListAuditTasksWithContext is the same as ListAuditTasks with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListAuditTasks 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 *IoT) ListAuditTasksWithContext(ctx aws.Context, input *ListAuditTasksInput, opts ...request.Option) (*ListAuditTasksOutput, error) {
- req, out := c.ListAuditTasksRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListAuthorizers = "ListAuthorizers"
- // ListAuthorizersRequest generates a "aws/request.Request" representing the
- // client's request for the ListAuthorizers 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 ListAuthorizers for more information on using the ListAuthorizers
- // 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 ListAuthorizersRequest method.
- // req, resp := client.ListAuthorizersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListAuthorizersRequest(input *ListAuthorizersInput) (req *request.Request, output *ListAuthorizersOutput) {
- op := &request.Operation{
- Name: opListAuthorizers,
- HTTPMethod: "GET",
- HTTPPath: "/authorizers/",
- }
- if input == nil {
- input = &ListAuthorizersInput{}
- }
- output = &ListAuthorizersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListAuthorizers API operation for AWS IoT.
- //
- // Lists the authorizers registered in your account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation ListAuthorizers for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListAuthorizers(input *ListAuthorizersInput) (*ListAuthorizersOutput, error) {
- req, out := c.ListAuthorizersRequest(input)
- return out, req.Send()
- }
- // ListAuthorizersWithContext is the same as ListAuthorizers with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListAuthorizers 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 *IoT) ListAuthorizersWithContext(ctx aws.Context, input *ListAuthorizersInput, opts ...request.Option) (*ListAuthorizersOutput, error) {
- req, out := c.ListAuthorizersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListBillingGroups = "ListBillingGroups"
- // ListBillingGroupsRequest generates a "aws/request.Request" representing the
- // client's request for the ListBillingGroups 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 ListBillingGroups for more information on using the ListBillingGroups
- // 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 ListBillingGroupsRequest method.
- // req, resp := client.ListBillingGroupsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListBillingGroupsRequest(input *ListBillingGroupsInput) (req *request.Request, output *ListBillingGroupsOutput) {
- op := &request.Operation{
- Name: opListBillingGroups,
- HTTPMethod: "GET",
- HTTPPath: "/billing-groups",
- }
- if input == nil {
- input = &ListBillingGroupsInput{}
- }
- output = &ListBillingGroupsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListBillingGroups API operation for AWS IoT.
- //
- // Lists the billing groups you have 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's
- // API operation ListBillingGroups for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- func (c *IoT) ListBillingGroups(input *ListBillingGroupsInput) (*ListBillingGroupsOutput, error) {
- req, out := c.ListBillingGroupsRequest(input)
- return out, req.Send()
- }
- // ListBillingGroupsWithContext is the same as ListBillingGroups with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListBillingGroups 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 *IoT) ListBillingGroupsWithContext(ctx aws.Context, input *ListBillingGroupsInput, opts ...request.Option) (*ListBillingGroupsOutput, error) {
- req, out := c.ListBillingGroupsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListCACertificates = "ListCACertificates"
- // ListCACertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the ListCACertificates 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 ListCACertificates for more information on using the ListCACertificates
- // 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 ListCACertificatesRequest method.
- // req, resp := client.ListCACertificatesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListCACertificatesRequest(input *ListCACertificatesInput) (req *request.Request, output *ListCACertificatesOutput) {
- op := &request.Operation{
- Name: opListCACertificates,
- HTTPMethod: "GET",
- HTTPPath: "/cacertificates",
- }
- if input == nil {
- input = &ListCACertificatesInput{}
- }
- output = &ListCACertificatesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListCACertificates API operation for AWS IoT.
- //
- // Lists the CA certificates registered for your AWS account.
- //
- // The results are paginated with a default page size of 25. You can use the
- // returned marker to retrieve additional results.
- //
- // 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's
- // API operation ListCACertificates for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListCACertificates(input *ListCACertificatesInput) (*ListCACertificatesOutput, error) {
- req, out := c.ListCACertificatesRequest(input)
- return out, req.Send()
- }
- // ListCACertificatesWithContext is the same as ListCACertificates with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListCACertificates 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 *IoT) ListCACertificatesWithContext(ctx aws.Context, input *ListCACertificatesInput, opts ...request.Option) (*ListCACertificatesOutput, error) {
- req, out := c.ListCACertificatesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListCertificates = "ListCertificates"
- // ListCertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the ListCertificates 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 ListCertificates for more information on using the ListCertificates
- // 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 ListCertificatesRequest method.
- // req, resp := client.ListCertificatesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListCertificatesRequest(input *ListCertificatesInput) (req *request.Request, output *ListCertificatesOutput) {
- op := &request.Operation{
- Name: opListCertificates,
- HTTPMethod: "GET",
- HTTPPath: "/certificates",
- }
- if input == nil {
- input = &ListCertificatesInput{}
- }
- output = &ListCertificatesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListCertificates API operation for AWS IoT.
- //
- // Lists the certificates registered in your AWS account.
- //
- // The results are paginated with a default page size of 25. You can use the
- // returned marker to retrieve additional results.
- //
- // 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's
- // API operation ListCertificates for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) {
- req, out := c.ListCertificatesRequest(input)
- return out, req.Send()
- }
- // ListCertificatesWithContext is the same as ListCertificates with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListCertificates 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 *IoT) ListCertificatesWithContext(ctx aws.Context, input *ListCertificatesInput, opts ...request.Option) (*ListCertificatesOutput, error) {
- req, out := c.ListCertificatesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListCertificatesByCA = "ListCertificatesByCA"
- // ListCertificatesByCARequest generates a "aws/request.Request" representing the
- // client's request for the ListCertificatesByCA 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 ListCertificatesByCA for more information on using the ListCertificatesByCA
- // 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 ListCertificatesByCARequest method.
- // req, resp := client.ListCertificatesByCARequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListCertificatesByCARequest(input *ListCertificatesByCAInput) (req *request.Request, output *ListCertificatesByCAOutput) {
- op := &request.Operation{
- Name: opListCertificatesByCA,
- HTTPMethod: "GET",
- HTTPPath: "/certificates-by-ca/{caCertificateId}",
- }
- if input == nil {
- input = &ListCertificatesByCAInput{}
- }
- output = &ListCertificatesByCAOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListCertificatesByCA API operation for AWS IoT.
- //
- // List the device certificates signed by the specified CA certificate.
- //
- // 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's
- // API operation ListCertificatesByCA for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListCertificatesByCA(input *ListCertificatesByCAInput) (*ListCertificatesByCAOutput, error) {
- req, out := c.ListCertificatesByCARequest(input)
- return out, req.Send()
- }
- // ListCertificatesByCAWithContext is the same as ListCertificatesByCA with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListCertificatesByCA 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 *IoT) ListCertificatesByCAWithContext(ctx aws.Context, input *ListCertificatesByCAInput, opts ...request.Option) (*ListCertificatesByCAOutput, error) {
- req, out := c.ListCertificatesByCARequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListIndices = "ListIndices"
- // ListIndicesRequest generates a "aws/request.Request" representing the
- // client's request for the ListIndices 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 ListIndices for more information on using the ListIndices
- // 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 ListIndicesRequest method.
- // req, resp := client.ListIndicesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListIndicesRequest(input *ListIndicesInput) (req *request.Request, output *ListIndicesOutput) {
- op := &request.Operation{
- Name: opListIndices,
- HTTPMethod: "GET",
- HTTPPath: "/indices",
- }
- if input == nil {
- input = &ListIndicesInput{}
- }
- output = &ListIndicesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListIndices API operation for AWS IoT.
- //
- // Lists the search indices.
- //
- // 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's
- // API operation ListIndices for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListIndices(input *ListIndicesInput) (*ListIndicesOutput, error) {
- req, out := c.ListIndicesRequest(input)
- return out, req.Send()
- }
- // ListIndicesWithContext is the same as ListIndices with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListIndices 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 *IoT) ListIndicesWithContext(ctx aws.Context, input *ListIndicesInput, opts ...request.Option) (*ListIndicesOutput, error) {
- req, out := c.ListIndicesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListJobExecutionsForJob = "ListJobExecutionsForJob"
- // ListJobExecutionsForJobRequest generates a "aws/request.Request" representing the
- // client's request for the ListJobExecutionsForJob 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 ListJobExecutionsForJob for more information on using the ListJobExecutionsForJob
- // 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 ListJobExecutionsForJobRequest method.
- // req, resp := client.ListJobExecutionsForJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListJobExecutionsForJobRequest(input *ListJobExecutionsForJobInput) (req *request.Request, output *ListJobExecutionsForJobOutput) {
- op := &request.Operation{
- Name: opListJobExecutionsForJob,
- HTTPMethod: "GET",
- HTTPPath: "/jobs/{jobId}/things",
- }
- if input == nil {
- input = &ListJobExecutionsForJobInput{}
- }
- output = &ListJobExecutionsForJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListJobExecutionsForJob API operation for AWS IoT.
- //
- // Lists the job executions for a job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation ListJobExecutionsForJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) ListJobExecutionsForJob(input *ListJobExecutionsForJobInput) (*ListJobExecutionsForJobOutput, error) {
- req, out := c.ListJobExecutionsForJobRequest(input)
- return out, req.Send()
- }
- // ListJobExecutionsForJobWithContext is the same as ListJobExecutionsForJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListJobExecutionsForJob 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 *IoT) ListJobExecutionsForJobWithContext(ctx aws.Context, input *ListJobExecutionsForJobInput, opts ...request.Option) (*ListJobExecutionsForJobOutput, error) {
- req, out := c.ListJobExecutionsForJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListJobExecutionsForThing = "ListJobExecutionsForThing"
- // ListJobExecutionsForThingRequest generates a "aws/request.Request" representing the
- // client's request for the ListJobExecutionsForThing 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 ListJobExecutionsForThing for more information on using the ListJobExecutionsForThing
- // 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 ListJobExecutionsForThingRequest method.
- // req, resp := client.ListJobExecutionsForThingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListJobExecutionsForThingRequest(input *ListJobExecutionsForThingInput) (req *request.Request, output *ListJobExecutionsForThingOutput) {
- op := &request.Operation{
- Name: opListJobExecutionsForThing,
- HTTPMethod: "GET",
- HTTPPath: "/things/{thingName}/jobs",
- }
- if input == nil {
- input = &ListJobExecutionsForThingInput{}
- }
- output = &ListJobExecutionsForThingOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListJobExecutionsForThing API operation for AWS IoT.
- //
- // Lists the job executions for the specified thing.
- //
- // 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's
- // API operation ListJobExecutionsForThing for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) ListJobExecutionsForThing(input *ListJobExecutionsForThingInput) (*ListJobExecutionsForThingOutput, error) {
- req, out := c.ListJobExecutionsForThingRequest(input)
- return out, req.Send()
- }
- // ListJobExecutionsForThingWithContext is the same as ListJobExecutionsForThing with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListJobExecutionsForThing 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 *IoT) ListJobExecutionsForThingWithContext(ctx aws.Context, input *ListJobExecutionsForThingInput, opts ...request.Option) (*ListJobExecutionsForThingOutput, error) {
- req, out := c.ListJobExecutionsForThingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListJobs = "ListJobs"
- // ListJobsRequest generates a "aws/request.Request" representing the
- // client's request for the ListJobs 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 ListJobs for more information on using the ListJobs
- // 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 ListJobsRequest method.
- // req, resp := client.ListJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) {
- op := &request.Operation{
- Name: opListJobs,
- HTTPMethod: "GET",
- HTTPPath: "/jobs",
- }
- if input == nil {
- input = &ListJobsInput{}
- }
- output = &ListJobsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListJobs API operation for AWS IoT.
- //
- // Lists jobs.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation ListJobs for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) {
- req, out := c.ListJobsRequest(input)
- return out, req.Send()
- }
- // ListJobsWithContext is the same as ListJobs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListJobs 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 *IoT) ListJobsWithContext(ctx aws.Context, input *ListJobsInput, opts ...request.Option) (*ListJobsOutput, error) {
- req, out := c.ListJobsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListOTAUpdates = "ListOTAUpdates"
- // ListOTAUpdatesRequest generates a "aws/request.Request" representing the
- // client's request for the ListOTAUpdates 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 ListOTAUpdates for more information on using the ListOTAUpdates
- // 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 ListOTAUpdatesRequest method.
- // req, resp := client.ListOTAUpdatesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListOTAUpdatesRequest(input *ListOTAUpdatesInput) (req *request.Request, output *ListOTAUpdatesOutput) {
- op := &request.Operation{
- Name: opListOTAUpdates,
- HTTPMethod: "GET",
- HTTPPath: "/otaUpdates",
- }
- if input == nil {
- input = &ListOTAUpdatesInput{}
- }
- output = &ListOTAUpdatesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListOTAUpdates API operation for AWS IoT.
- //
- // Lists OTA updates.
- //
- // 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's
- // API operation ListOTAUpdates for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) ListOTAUpdates(input *ListOTAUpdatesInput) (*ListOTAUpdatesOutput, error) {
- req, out := c.ListOTAUpdatesRequest(input)
- return out, req.Send()
- }
- // ListOTAUpdatesWithContext is the same as ListOTAUpdates with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListOTAUpdates 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 *IoT) ListOTAUpdatesWithContext(ctx aws.Context, input *ListOTAUpdatesInput, opts ...request.Option) (*ListOTAUpdatesOutput, error) {
- req, out := c.ListOTAUpdatesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListOutgoingCertificates = "ListOutgoingCertificates"
- // ListOutgoingCertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the ListOutgoingCertificates 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 ListOutgoingCertificates for more information on using the ListOutgoingCertificates
- // 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 ListOutgoingCertificatesRequest method.
- // req, resp := client.ListOutgoingCertificatesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListOutgoingCertificatesRequest(input *ListOutgoingCertificatesInput) (req *request.Request, output *ListOutgoingCertificatesOutput) {
- op := &request.Operation{
- Name: opListOutgoingCertificates,
- HTTPMethod: "GET",
- HTTPPath: "/certificates-out-going",
- }
- if input == nil {
- input = &ListOutgoingCertificatesInput{}
- }
- output = &ListOutgoingCertificatesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListOutgoingCertificates API operation for AWS IoT.
- //
- // Lists certificates that are being transferred but not yet accepted.
- //
- // 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's
- // API operation ListOutgoingCertificates for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListOutgoingCertificates(input *ListOutgoingCertificatesInput) (*ListOutgoingCertificatesOutput, error) {
- req, out := c.ListOutgoingCertificatesRequest(input)
- return out, req.Send()
- }
- // ListOutgoingCertificatesWithContext is the same as ListOutgoingCertificates with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListOutgoingCertificates 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 *IoT) ListOutgoingCertificatesWithContext(ctx aws.Context, input *ListOutgoingCertificatesInput, opts ...request.Option) (*ListOutgoingCertificatesOutput, error) {
- req, out := c.ListOutgoingCertificatesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListPolicies = "ListPolicies"
- // ListPoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the ListPolicies 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 ListPolicies for more information on using the ListPolicies
- // 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 ListPoliciesRequest method.
- // req, resp := client.ListPoliciesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Request, output *ListPoliciesOutput) {
- op := &request.Operation{
- Name: opListPolicies,
- HTTPMethod: "GET",
- HTTPPath: "/policies",
- }
- if input == nil {
- input = &ListPoliciesInput{}
- }
- output = &ListPoliciesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPolicies API operation for AWS IoT.
- //
- // Lists your policies.
- //
- // 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's
- // API operation ListPolicies for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) {
- req, out := c.ListPoliciesRequest(input)
- return out, req.Send()
- }
- // ListPoliciesWithContext is the same as ListPolicies with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPolicies 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 *IoT) ListPoliciesWithContext(ctx aws.Context, input *ListPoliciesInput, opts ...request.Option) (*ListPoliciesOutput, error) {
- req, out := c.ListPoliciesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListPolicyPrincipals = "ListPolicyPrincipals"
- // ListPolicyPrincipalsRequest generates a "aws/request.Request" representing the
- // client's request for the ListPolicyPrincipals 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 ListPolicyPrincipals for more information on using the ListPolicyPrincipals
- // 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 ListPolicyPrincipalsRequest method.
- // req, resp := client.ListPolicyPrincipalsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // Deprecated: ListPolicyPrincipals has been deprecated
- func (c *IoT) ListPolicyPrincipalsRequest(input *ListPolicyPrincipalsInput) (req *request.Request, output *ListPolicyPrincipalsOutput) {
- if c.Client.Config.Logger != nil {
- c.Client.Config.Logger.Log("This operation, ListPolicyPrincipals, has been deprecated")
- }
- op := &request.Operation{
- Name: opListPolicyPrincipals,
- HTTPMethod: "GET",
- HTTPPath: "/policy-principals",
- }
- if input == nil {
- input = &ListPolicyPrincipalsInput{}
- }
- output = &ListPolicyPrincipalsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPolicyPrincipals API operation for AWS IoT.
- //
- // Lists the principals associated with the specified policy.
- //
- // Note: This API is deprecated. Please use ListTargetsForPolicy instead.
- //
- // 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's
- // API operation ListPolicyPrincipals for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- //
- // Deprecated: ListPolicyPrincipals has been deprecated
- func (c *IoT) ListPolicyPrincipals(input *ListPolicyPrincipalsInput) (*ListPolicyPrincipalsOutput, error) {
- req, out := c.ListPolicyPrincipalsRequest(input)
- return out, req.Send()
- }
- // ListPolicyPrincipalsWithContext is the same as ListPolicyPrincipals with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPolicyPrincipals 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.
- //
- // Deprecated: ListPolicyPrincipalsWithContext has been deprecated
- func (c *IoT) ListPolicyPrincipalsWithContext(ctx aws.Context, input *ListPolicyPrincipalsInput, opts ...request.Option) (*ListPolicyPrincipalsOutput, error) {
- req, out := c.ListPolicyPrincipalsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListPolicyVersions = "ListPolicyVersions"
- // ListPolicyVersionsRequest generates a "aws/request.Request" representing the
- // client's request for the ListPolicyVersions 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 ListPolicyVersions for more information on using the ListPolicyVersions
- // 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 ListPolicyVersionsRequest method.
- // req, resp := client.ListPolicyVersionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *request.Request, output *ListPolicyVersionsOutput) {
- op := &request.Operation{
- Name: opListPolicyVersions,
- HTTPMethod: "GET",
- HTTPPath: "/policies/{policyName}/version",
- }
- if input == nil {
- input = &ListPolicyVersionsInput{}
- }
- output = &ListPolicyVersionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPolicyVersions API operation for AWS IoT.
- //
- // Lists the versions of the specified policy and identifies the default version.
- //
- // 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's
- // API operation ListPolicyVersions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) {
- req, out := c.ListPolicyVersionsRequest(input)
- return out, req.Send()
- }
- // ListPolicyVersionsWithContext is the same as ListPolicyVersions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPolicyVersions 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 *IoT) ListPolicyVersionsWithContext(ctx aws.Context, input *ListPolicyVersionsInput, opts ...request.Option) (*ListPolicyVersionsOutput, error) {
- req, out := c.ListPolicyVersionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListPrincipalPolicies = "ListPrincipalPolicies"
- // ListPrincipalPoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the ListPrincipalPolicies 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 ListPrincipalPolicies for more information on using the ListPrincipalPolicies
- // 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 ListPrincipalPoliciesRequest method.
- // req, resp := client.ListPrincipalPoliciesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // Deprecated: ListPrincipalPolicies has been deprecated
- func (c *IoT) ListPrincipalPoliciesRequest(input *ListPrincipalPoliciesInput) (req *request.Request, output *ListPrincipalPoliciesOutput) {
- if c.Client.Config.Logger != nil {
- c.Client.Config.Logger.Log("This operation, ListPrincipalPolicies, has been deprecated")
- }
- op := &request.Operation{
- Name: opListPrincipalPolicies,
- HTTPMethod: "GET",
- HTTPPath: "/principal-policies",
- }
- if input == nil {
- input = &ListPrincipalPoliciesInput{}
- }
- output = &ListPrincipalPoliciesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPrincipalPolicies API operation for AWS IoT.
- //
- // Lists the policies attached to the specified principal. If you use an Cognito
- // identity, the ID must be in AmazonCognito Identity format (http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetCredentialsForIdentity.html#API_GetCredentialsForIdentity_RequestSyntax).
- //
- // Note: This API is deprecated. Please use ListAttachedPolicies instead.
- //
- // 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's
- // API operation ListPrincipalPolicies for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- //
- // Deprecated: ListPrincipalPolicies has been deprecated
- func (c *IoT) ListPrincipalPolicies(input *ListPrincipalPoliciesInput) (*ListPrincipalPoliciesOutput, error) {
- req, out := c.ListPrincipalPoliciesRequest(input)
- return out, req.Send()
- }
- // ListPrincipalPoliciesWithContext is the same as ListPrincipalPolicies with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPrincipalPolicies 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.
- //
- // Deprecated: ListPrincipalPoliciesWithContext has been deprecated
- func (c *IoT) ListPrincipalPoliciesWithContext(ctx aws.Context, input *ListPrincipalPoliciesInput, opts ...request.Option) (*ListPrincipalPoliciesOutput, error) {
- req, out := c.ListPrincipalPoliciesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListPrincipalThings = "ListPrincipalThings"
- // ListPrincipalThingsRequest generates a "aws/request.Request" representing the
- // client's request for the ListPrincipalThings 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 ListPrincipalThings for more information on using the ListPrincipalThings
- // 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 ListPrincipalThingsRequest method.
- // req, resp := client.ListPrincipalThingsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListPrincipalThingsRequest(input *ListPrincipalThingsInput) (req *request.Request, output *ListPrincipalThingsOutput) {
- op := &request.Operation{
- Name: opListPrincipalThings,
- HTTPMethod: "GET",
- HTTPPath: "/principals/things",
- }
- if input == nil {
- input = &ListPrincipalThingsInput{}
- }
- output = &ListPrincipalThingsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPrincipalThings API operation for AWS IoT.
- //
- // Lists the things associated with the specified principal.
- //
- // 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's
- // API operation ListPrincipalThings for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) ListPrincipalThings(input *ListPrincipalThingsInput) (*ListPrincipalThingsOutput, error) {
- req, out := c.ListPrincipalThingsRequest(input)
- return out, req.Send()
- }
- // ListPrincipalThingsWithContext is the same as ListPrincipalThings with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPrincipalThings 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 *IoT) ListPrincipalThingsWithContext(ctx aws.Context, input *ListPrincipalThingsInput, opts ...request.Option) (*ListPrincipalThingsOutput, error) {
- req, out := c.ListPrincipalThingsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListRoleAliases = "ListRoleAliases"
- // ListRoleAliasesRequest generates a "aws/request.Request" representing the
- // client's request for the ListRoleAliases 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 ListRoleAliases for more information on using the ListRoleAliases
- // 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 ListRoleAliasesRequest method.
- // req, resp := client.ListRoleAliasesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListRoleAliasesRequest(input *ListRoleAliasesInput) (req *request.Request, output *ListRoleAliasesOutput) {
- op := &request.Operation{
- Name: opListRoleAliases,
- HTTPMethod: "GET",
- HTTPPath: "/role-aliases",
- }
- if input == nil {
- input = &ListRoleAliasesInput{}
- }
- output = &ListRoleAliasesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListRoleAliases API operation for AWS IoT.
- //
- // Lists the role aliases registered in your account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation ListRoleAliases for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListRoleAliases(input *ListRoleAliasesInput) (*ListRoleAliasesOutput, error) {
- req, out := c.ListRoleAliasesRequest(input)
- return out, req.Send()
- }
- // ListRoleAliasesWithContext is the same as ListRoleAliases with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListRoleAliases 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 *IoT) ListRoleAliasesWithContext(ctx aws.Context, input *ListRoleAliasesInput, opts ...request.Option) (*ListRoleAliasesOutput, error) {
- req, out := c.ListRoleAliasesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListScheduledAudits = "ListScheduledAudits"
- // ListScheduledAuditsRequest generates a "aws/request.Request" representing the
- // client's request for the ListScheduledAudits 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 ListScheduledAudits for more information on using the ListScheduledAudits
- // 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 ListScheduledAuditsRequest method.
- // req, resp := client.ListScheduledAuditsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListScheduledAuditsRequest(input *ListScheduledAuditsInput) (req *request.Request, output *ListScheduledAuditsOutput) {
- op := &request.Operation{
- Name: opListScheduledAudits,
- HTTPMethod: "GET",
- HTTPPath: "/audit/scheduledaudits",
- }
- if input == nil {
- input = &ListScheduledAuditsInput{}
- }
- output = &ListScheduledAuditsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListScheduledAudits API operation for AWS IoT.
- //
- // Lists all of your scheduled audits.
- //
- // 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's
- // API operation ListScheduledAudits for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListScheduledAudits(input *ListScheduledAuditsInput) (*ListScheduledAuditsOutput, error) {
- req, out := c.ListScheduledAuditsRequest(input)
- return out, req.Send()
- }
- // ListScheduledAuditsWithContext is the same as ListScheduledAudits with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListScheduledAudits 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 *IoT) ListScheduledAuditsWithContext(ctx aws.Context, input *ListScheduledAuditsInput, opts ...request.Option) (*ListScheduledAuditsOutput, error) {
- req, out := c.ListScheduledAuditsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListSecurityProfiles = "ListSecurityProfiles"
- // ListSecurityProfilesRequest generates a "aws/request.Request" representing the
- // client's request for the ListSecurityProfiles 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 ListSecurityProfiles for more information on using the ListSecurityProfiles
- // 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 ListSecurityProfilesRequest method.
- // req, resp := client.ListSecurityProfilesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) (req *request.Request, output *ListSecurityProfilesOutput) {
- op := &request.Operation{
- Name: opListSecurityProfiles,
- HTTPMethod: "GET",
- HTTPPath: "/security-profiles",
- }
- if input == nil {
- input = &ListSecurityProfilesInput{}
- }
- output = &ListSecurityProfilesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListSecurityProfiles API operation for AWS IoT.
- //
- // Lists the Device Defender security profiles you have created. You can use
- // filters to list only those security profiles associated with a thing group
- // or only those associated with your account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation ListSecurityProfiles for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListSecurityProfiles(input *ListSecurityProfilesInput) (*ListSecurityProfilesOutput, error) {
- req, out := c.ListSecurityProfilesRequest(input)
- return out, req.Send()
- }
- // ListSecurityProfilesWithContext is the same as ListSecurityProfiles with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListSecurityProfiles 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 *IoT) ListSecurityProfilesWithContext(ctx aws.Context, input *ListSecurityProfilesInput, opts ...request.Option) (*ListSecurityProfilesOutput, error) {
- req, out := c.ListSecurityProfilesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListSecurityProfilesForTarget = "ListSecurityProfilesForTarget"
- // ListSecurityProfilesForTargetRequest generates a "aws/request.Request" representing the
- // client's request for the ListSecurityProfilesForTarget 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 ListSecurityProfilesForTarget for more information on using the ListSecurityProfilesForTarget
- // 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 ListSecurityProfilesForTargetRequest method.
- // req, resp := client.ListSecurityProfilesForTargetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListSecurityProfilesForTargetRequest(input *ListSecurityProfilesForTargetInput) (req *request.Request, output *ListSecurityProfilesForTargetOutput) {
- op := &request.Operation{
- Name: opListSecurityProfilesForTarget,
- HTTPMethod: "GET",
- HTTPPath: "/security-profiles-for-target",
- }
- if input == nil {
- input = &ListSecurityProfilesForTargetInput{}
- }
- output = &ListSecurityProfilesForTargetOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListSecurityProfilesForTarget API operation for AWS IoT.
- //
- // Lists the Device Defender security profiles attached to a target (thing group).
- //
- // 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's
- // API operation ListSecurityProfilesForTarget for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) ListSecurityProfilesForTarget(input *ListSecurityProfilesForTargetInput) (*ListSecurityProfilesForTargetOutput, error) {
- req, out := c.ListSecurityProfilesForTargetRequest(input)
- return out, req.Send()
- }
- // ListSecurityProfilesForTargetWithContext is the same as ListSecurityProfilesForTarget with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListSecurityProfilesForTarget 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 *IoT) ListSecurityProfilesForTargetWithContext(ctx aws.Context, input *ListSecurityProfilesForTargetInput, opts ...request.Option) (*ListSecurityProfilesForTargetOutput, error) {
- req, out := c.ListSecurityProfilesForTargetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListStreams = "ListStreams"
- // ListStreamsRequest generates a "aws/request.Request" representing the
- // client's request for the ListStreams 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 ListStreams for more information on using the ListStreams
- // 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 ListStreamsRequest method.
- // req, resp := client.ListStreamsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListStreamsRequest(input *ListStreamsInput) (req *request.Request, output *ListStreamsOutput) {
- op := &request.Operation{
- Name: opListStreams,
- HTTPMethod: "GET",
- HTTPPath: "/streams",
- }
- if input == nil {
- input = &ListStreamsInput{}
- }
- output = &ListStreamsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListStreams API operation for AWS IoT.
- //
- // Lists all of the streams in your AWS account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation ListStreams for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListStreams(input *ListStreamsInput) (*ListStreamsOutput, error) {
- req, out := c.ListStreamsRequest(input)
- return out, req.Send()
- }
- // ListStreamsWithContext is the same as ListStreams with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListStreams 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 *IoT) ListStreamsWithContext(ctx aws.Context, input *ListStreamsInput, opts ...request.Option) (*ListStreamsOutput, error) {
- req, out := c.ListStreamsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- 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)
- // }
- func (c *IoT) 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.
- //
- // Lists the tags (metadata) 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's
- // API operation ListTagsForResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- func (c *IoT) 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 *IoT) 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 opListTargetsForPolicy = "ListTargetsForPolicy"
- // ListTargetsForPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the ListTargetsForPolicy 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 ListTargetsForPolicy for more information on using the ListTargetsForPolicy
- // 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 ListTargetsForPolicyRequest method.
- // req, resp := client.ListTargetsForPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListTargetsForPolicyRequest(input *ListTargetsForPolicyInput) (req *request.Request, output *ListTargetsForPolicyOutput) {
- op := &request.Operation{
- Name: opListTargetsForPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/policy-targets/{policyName}",
- }
- if input == nil {
- input = &ListTargetsForPolicyInput{}
- }
- output = &ListTargetsForPolicyOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTargetsForPolicy API operation for AWS IoT.
- //
- // List targets for the specified policy.
- //
- // 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's
- // API operation ListTargetsForPolicy for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- func (c *IoT) ListTargetsForPolicy(input *ListTargetsForPolicyInput) (*ListTargetsForPolicyOutput, error) {
- req, out := c.ListTargetsForPolicyRequest(input)
- return out, req.Send()
- }
- // ListTargetsForPolicyWithContext is the same as ListTargetsForPolicy with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTargetsForPolicy 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 *IoT) ListTargetsForPolicyWithContext(ctx aws.Context, input *ListTargetsForPolicyInput, opts ...request.Option) (*ListTargetsForPolicyOutput, error) {
- req, out := c.ListTargetsForPolicyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListTargetsForSecurityProfile = "ListTargetsForSecurityProfile"
- // ListTargetsForSecurityProfileRequest generates a "aws/request.Request" representing the
- // client's request for the ListTargetsForSecurityProfile 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 ListTargetsForSecurityProfile for more information on using the ListTargetsForSecurityProfile
- // 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 ListTargetsForSecurityProfileRequest method.
- // req, resp := client.ListTargetsForSecurityProfileRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListTargetsForSecurityProfileRequest(input *ListTargetsForSecurityProfileInput) (req *request.Request, output *ListTargetsForSecurityProfileOutput) {
- op := &request.Operation{
- Name: opListTargetsForSecurityProfile,
- HTTPMethod: "GET",
- HTTPPath: "/security-profiles/{securityProfileName}/targets",
- }
- if input == nil {
- input = &ListTargetsForSecurityProfileInput{}
- }
- output = &ListTargetsForSecurityProfileOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTargetsForSecurityProfile API operation for AWS IoT.
- //
- // Lists the targets (thing groups) associated with a given Device Defender
- // security profile.
- //
- // 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's
- // API operation ListTargetsForSecurityProfile for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListTargetsForSecurityProfile(input *ListTargetsForSecurityProfileInput) (*ListTargetsForSecurityProfileOutput, error) {
- req, out := c.ListTargetsForSecurityProfileRequest(input)
- return out, req.Send()
- }
- // ListTargetsForSecurityProfileWithContext is the same as ListTargetsForSecurityProfile with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTargetsForSecurityProfile 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 *IoT) ListTargetsForSecurityProfileWithContext(ctx aws.Context, input *ListTargetsForSecurityProfileInput, opts ...request.Option) (*ListTargetsForSecurityProfileOutput, error) {
- req, out := c.ListTargetsForSecurityProfileRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListThingGroups = "ListThingGroups"
- // ListThingGroupsRequest generates a "aws/request.Request" representing the
- // client's request for the ListThingGroups 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 ListThingGroups for more information on using the ListThingGroups
- // 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 ListThingGroupsRequest method.
- // req, resp := client.ListThingGroupsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListThingGroupsRequest(input *ListThingGroupsInput) (req *request.Request, output *ListThingGroupsOutput) {
- op := &request.Operation{
- Name: opListThingGroups,
- HTTPMethod: "GET",
- HTTPPath: "/thing-groups",
- }
- if input == nil {
- input = &ListThingGroupsInput{}
- }
- output = &ListThingGroupsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListThingGroups API operation for AWS IoT.
- //
- // List the thing groups in your account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation ListThingGroups for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) ListThingGroups(input *ListThingGroupsInput) (*ListThingGroupsOutput, error) {
- req, out := c.ListThingGroupsRequest(input)
- return out, req.Send()
- }
- // ListThingGroupsWithContext is the same as ListThingGroups with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListThingGroups 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 *IoT) ListThingGroupsWithContext(ctx aws.Context, input *ListThingGroupsInput, opts ...request.Option) (*ListThingGroupsOutput, error) {
- req, out := c.ListThingGroupsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListThingGroupsForThing = "ListThingGroupsForThing"
- // ListThingGroupsForThingRequest generates a "aws/request.Request" representing the
- // client's request for the ListThingGroupsForThing 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 ListThingGroupsForThing for more information on using the ListThingGroupsForThing
- // 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 ListThingGroupsForThingRequest method.
- // req, resp := client.ListThingGroupsForThingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListThingGroupsForThingRequest(input *ListThingGroupsForThingInput) (req *request.Request, output *ListThingGroupsForThingOutput) {
- op := &request.Operation{
- Name: opListThingGroupsForThing,
- HTTPMethod: "GET",
- HTTPPath: "/things/{thingName}/thing-groups",
- }
- if input == nil {
- input = &ListThingGroupsForThingInput{}
- }
- output = &ListThingGroupsForThingOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListThingGroupsForThing API operation for AWS IoT.
- //
- // List the thing groups to which the specified thing belongs.
- //
- // 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's
- // API operation ListThingGroupsForThing for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) ListThingGroupsForThing(input *ListThingGroupsForThingInput) (*ListThingGroupsForThingOutput, error) {
- req, out := c.ListThingGroupsForThingRequest(input)
- return out, req.Send()
- }
- // ListThingGroupsForThingWithContext is the same as ListThingGroupsForThing with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListThingGroupsForThing 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 *IoT) ListThingGroupsForThingWithContext(ctx aws.Context, input *ListThingGroupsForThingInput, opts ...request.Option) (*ListThingGroupsForThingOutput, error) {
- req, out := c.ListThingGroupsForThingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListThingPrincipals = "ListThingPrincipals"
- // ListThingPrincipalsRequest generates a "aws/request.Request" representing the
- // client's request for the ListThingPrincipals 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 ListThingPrincipals for more information on using the ListThingPrincipals
- // 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 ListThingPrincipalsRequest method.
- // req, resp := client.ListThingPrincipalsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListThingPrincipalsRequest(input *ListThingPrincipalsInput) (req *request.Request, output *ListThingPrincipalsOutput) {
- op := &request.Operation{
- Name: opListThingPrincipals,
- HTTPMethod: "GET",
- HTTPPath: "/things/{thingName}/principals",
- }
- if input == nil {
- input = &ListThingPrincipalsInput{}
- }
- output = &ListThingPrincipalsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListThingPrincipals API operation for AWS IoT.
- //
- // Lists the principals associated with the specified thing.
- //
- // 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's
- // API operation ListThingPrincipals for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) ListThingPrincipals(input *ListThingPrincipalsInput) (*ListThingPrincipalsOutput, error) {
- req, out := c.ListThingPrincipalsRequest(input)
- return out, req.Send()
- }
- // ListThingPrincipalsWithContext is the same as ListThingPrincipals with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListThingPrincipals 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 *IoT) ListThingPrincipalsWithContext(ctx aws.Context, input *ListThingPrincipalsInput, opts ...request.Option) (*ListThingPrincipalsOutput, error) {
- req, out := c.ListThingPrincipalsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListThingRegistrationTaskReports = "ListThingRegistrationTaskReports"
- // ListThingRegistrationTaskReportsRequest generates a "aws/request.Request" representing the
- // client's request for the ListThingRegistrationTaskReports 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 ListThingRegistrationTaskReports for more information on using the ListThingRegistrationTaskReports
- // 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 ListThingRegistrationTaskReportsRequest method.
- // req, resp := client.ListThingRegistrationTaskReportsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListThingRegistrationTaskReportsRequest(input *ListThingRegistrationTaskReportsInput) (req *request.Request, output *ListThingRegistrationTaskReportsOutput) {
- op := &request.Operation{
- Name: opListThingRegistrationTaskReports,
- HTTPMethod: "GET",
- HTTPPath: "/thing-registration-tasks/{taskId}/reports",
- }
- if input == nil {
- input = &ListThingRegistrationTaskReportsInput{}
- }
- output = &ListThingRegistrationTaskReportsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListThingRegistrationTaskReports API operation for AWS IoT.
- //
- // Information about the thing registration tasks.
- //
- // 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's
- // API operation ListThingRegistrationTaskReports for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListThingRegistrationTaskReports(input *ListThingRegistrationTaskReportsInput) (*ListThingRegistrationTaskReportsOutput, error) {
- req, out := c.ListThingRegistrationTaskReportsRequest(input)
- return out, req.Send()
- }
- // ListThingRegistrationTaskReportsWithContext is the same as ListThingRegistrationTaskReports with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListThingRegistrationTaskReports 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 *IoT) ListThingRegistrationTaskReportsWithContext(ctx aws.Context, input *ListThingRegistrationTaskReportsInput, opts ...request.Option) (*ListThingRegistrationTaskReportsOutput, error) {
- req, out := c.ListThingRegistrationTaskReportsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListThingRegistrationTasks = "ListThingRegistrationTasks"
- // ListThingRegistrationTasksRequest generates a "aws/request.Request" representing the
- // client's request for the ListThingRegistrationTasks 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 ListThingRegistrationTasks for more information on using the ListThingRegistrationTasks
- // 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 ListThingRegistrationTasksRequest method.
- // req, resp := client.ListThingRegistrationTasksRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListThingRegistrationTasksRequest(input *ListThingRegistrationTasksInput) (req *request.Request, output *ListThingRegistrationTasksOutput) {
- op := &request.Operation{
- Name: opListThingRegistrationTasks,
- HTTPMethod: "GET",
- HTTPPath: "/thing-registration-tasks",
- }
- if input == nil {
- input = &ListThingRegistrationTasksInput{}
- }
- output = &ListThingRegistrationTasksOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListThingRegistrationTasks API operation for AWS IoT.
- //
- // List bulk thing provisioning tasks.
- //
- // 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's
- // API operation ListThingRegistrationTasks for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListThingRegistrationTasks(input *ListThingRegistrationTasksInput) (*ListThingRegistrationTasksOutput, error) {
- req, out := c.ListThingRegistrationTasksRequest(input)
- return out, req.Send()
- }
- // ListThingRegistrationTasksWithContext is the same as ListThingRegistrationTasks with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListThingRegistrationTasks 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 *IoT) ListThingRegistrationTasksWithContext(ctx aws.Context, input *ListThingRegistrationTasksInput, opts ...request.Option) (*ListThingRegistrationTasksOutput, error) {
- req, out := c.ListThingRegistrationTasksRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListThingTypes = "ListThingTypes"
- // ListThingTypesRequest generates a "aws/request.Request" representing the
- // client's request for the ListThingTypes 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 ListThingTypes for more information on using the ListThingTypes
- // 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 ListThingTypesRequest method.
- // req, resp := client.ListThingTypesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListThingTypesRequest(input *ListThingTypesInput) (req *request.Request, output *ListThingTypesOutput) {
- op := &request.Operation{
- Name: opListThingTypes,
- HTTPMethod: "GET",
- HTTPPath: "/thing-types",
- }
- if input == nil {
- input = &ListThingTypesInput{}
- }
- output = &ListThingTypesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListThingTypes API operation for AWS IoT.
- //
- // Lists the existing thing types.
- //
- // 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's
- // API operation ListThingTypes for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListThingTypes(input *ListThingTypesInput) (*ListThingTypesOutput, error) {
- req, out := c.ListThingTypesRequest(input)
- return out, req.Send()
- }
- // ListThingTypesWithContext is the same as ListThingTypes with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListThingTypes 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 *IoT) ListThingTypesWithContext(ctx aws.Context, input *ListThingTypesInput, opts ...request.Option) (*ListThingTypesOutput, error) {
- req, out := c.ListThingTypesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListThings = "ListThings"
- // ListThingsRequest generates a "aws/request.Request" representing the
- // client's request for the ListThings 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 ListThings for more information on using the ListThings
- // 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 ListThingsRequest method.
- // req, resp := client.ListThingsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListThingsRequest(input *ListThingsInput) (req *request.Request, output *ListThingsOutput) {
- op := &request.Operation{
- Name: opListThings,
- HTTPMethod: "GET",
- HTTPPath: "/things",
- }
- if input == nil {
- input = &ListThingsInput{}
- }
- output = &ListThingsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListThings API operation for AWS IoT.
- //
- // Lists your things. Use the attributeName and attributeValue parameters to
- // filter your things. For example, calling ListThings with attributeName=Color
- // and attributeValue=Red retrieves all things in the registry that contain
- // an attribute Color with the value Red.
- //
- // 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's
- // API operation ListThings for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListThings(input *ListThingsInput) (*ListThingsOutput, error) {
- req, out := c.ListThingsRequest(input)
- return out, req.Send()
- }
- // ListThingsWithContext is the same as ListThings with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListThings 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 *IoT) ListThingsWithContext(ctx aws.Context, input *ListThingsInput, opts ...request.Option) (*ListThingsOutput, error) {
- req, out := c.ListThingsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListThingsInBillingGroup = "ListThingsInBillingGroup"
- // ListThingsInBillingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the ListThingsInBillingGroup 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 ListThingsInBillingGroup for more information on using the ListThingsInBillingGroup
- // 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 ListThingsInBillingGroupRequest method.
- // req, resp := client.ListThingsInBillingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListThingsInBillingGroupRequest(input *ListThingsInBillingGroupInput) (req *request.Request, output *ListThingsInBillingGroupOutput) {
- op := &request.Operation{
- Name: opListThingsInBillingGroup,
- HTTPMethod: "GET",
- HTTPPath: "/billing-groups/{billingGroupName}/things",
- }
- if input == nil {
- input = &ListThingsInBillingGroupInput{}
- }
- output = &ListThingsInBillingGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListThingsInBillingGroup API operation for AWS IoT.
- //
- // Lists the things you have added to the given billing group.
- //
- // 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's
- // API operation ListThingsInBillingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- func (c *IoT) ListThingsInBillingGroup(input *ListThingsInBillingGroupInput) (*ListThingsInBillingGroupOutput, error) {
- req, out := c.ListThingsInBillingGroupRequest(input)
- return out, req.Send()
- }
- // ListThingsInBillingGroupWithContext is the same as ListThingsInBillingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListThingsInBillingGroup 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 *IoT) ListThingsInBillingGroupWithContext(ctx aws.Context, input *ListThingsInBillingGroupInput, opts ...request.Option) (*ListThingsInBillingGroupOutput, error) {
- req, out := c.ListThingsInBillingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListThingsInThingGroup = "ListThingsInThingGroup"
- // ListThingsInThingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the ListThingsInThingGroup 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 ListThingsInThingGroup for more information on using the ListThingsInThingGroup
- // 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 ListThingsInThingGroupRequest method.
- // req, resp := client.ListThingsInThingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListThingsInThingGroupRequest(input *ListThingsInThingGroupInput) (req *request.Request, output *ListThingsInThingGroupOutput) {
- op := &request.Operation{
- Name: opListThingsInThingGroup,
- HTTPMethod: "GET",
- HTTPPath: "/thing-groups/{thingGroupName}/things",
- }
- if input == nil {
- input = &ListThingsInThingGroupInput{}
- }
- output = &ListThingsInThingGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListThingsInThingGroup API operation for AWS IoT.
- //
- // Lists the things in the specified group.
- //
- // 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's
- // API operation ListThingsInThingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) ListThingsInThingGroup(input *ListThingsInThingGroupInput) (*ListThingsInThingGroupOutput, error) {
- req, out := c.ListThingsInThingGroupRequest(input)
- return out, req.Send()
- }
- // ListThingsInThingGroupWithContext is the same as ListThingsInThingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListThingsInThingGroup 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 *IoT) ListThingsInThingGroupWithContext(ctx aws.Context, input *ListThingsInThingGroupInput, opts ...request.Option) (*ListThingsInThingGroupOutput, error) {
- req, out := c.ListThingsInThingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListTopicRules = "ListTopicRules"
- // ListTopicRulesRequest generates a "aws/request.Request" representing the
- // client's request for the ListTopicRules 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 ListTopicRules for more information on using the ListTopicRules
- // 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 ListTopicRulesRequest method.
- // req, resp := client.ListTopicRulesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListTopicRulesRequest(input *ListTopicRulesInput) (req *request.Request, output *ListTopicRulesOutput) {
- op := &request.Operation{
- Name: opListTopicRules,
- HTTPMethod: "GET",
- HTTPPath: "/rules",
- }
- if input == nil {
- input = &ListTopicRulesInput{}
- }
- output = &ListTopicRulesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTopicRules API operation for AWS IoT.
- //
- // Lists the rules for the specific topic.
- //
- // 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's
- // API operation ListTopicRules for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) ListTopicRules(input *ListTopicRulesInput) (*ListTopicRulesOutput, error) {
- req, out := c.ListTopicRulesRequest(input)
- return out, req.Send()
- }
- // ListTopicRulesWithContext is the same as ListTopicRules with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTopicRules 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 *IoT) ListTopicRulesWithContext(ctx aws.Context, input *ListTopicRulesInput, opts ...request.Option) (*ListTopicRulesOutput, error) {
- req, out := c.ListTopicRulesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListV2LoggingLevels = "ListV2LoggingLevels"
- // ListV2LoggingLevelsRequest generates a "aws/request.Request" representing the
- // client's request for the ListV2LoggingLevels 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 ListV2LoggingLevels for more information on using the ListV2LoggingLevels
- // 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 ListV2LoggingLevelsRequest method.
- // req, resp := client.ListV2LoggingLevelsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListV2LoggingLevelsRequest(input *ListV2LoggingLevelsInput) (req *request.Request, output *ListV2LoggingLevelsOutput) {
- op := &request.Operation{
- Name: opListV2LoggingLevels,
- HTTPMethod: "GET",
- HTTPPath: "/v2LoggingLevel",
- }
- if input == nil {
- input = &ListV2LoggingLevelsInput{}
- }
- output = &ListV2LoggingLevelsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListV2LoggingLevels API operation for AWS IoT.
- //
- // Lists logging levels.
- //
- // 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's
- // API operation ListV2LoggingLevels for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeNotConfiguredException "NotConfiguredException"
- // The resource is not configured.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) ListV2LoggingLevels(input *ListV2LoggingLevelsInput) (*ListV2LoggingLevelsOutput, error) {
- req, out := c.ListV2LoggingLevelsRequest(input)
- return out, req.Send()
- }
- // ListV2LoggingLevelsWithContext is the same as ListV2LoggingLevels with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListV2LoggingLevels 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 *IoT) ListV2LoggingLevelsWithContext(ctx aws.Context, input *ListV2LoggingLevelsInput, opts ...request.Option) (*ListV2LoggingLevelsOutput, error) {
- req, out := c.ListV2LoggingLevelsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListViolationEvents = "ListViolationEvents"
- // ListViolationEventsRequest generates a "aws/request.Request" representing the
- // client's request for the ListViolationEvents 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 ListViolationEvents for more information on using the ListViolationEvents
- // 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 ListViolationEventsRequest method.
- // req, resp := client.ListViolationEventsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ListViolationEventsRequest(input *ListViolationEventsInput) (req *request.Request, output *ListViolationEventsOutput) {
- op := &request.Operation{
- Name: opListViolationEvents,
- HTTPMethod: "GET",
- HTTPPath: "/violation-events",
- }
- if input == nil {
- input = &ListViolationEventsInput{}
- }
- output = &ListViolationEventsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListViolationEvents API operation for AWS IoT.
- //
- // Lists the Device Defender security profile violations discovered during the
- // given time period. You can use filters to limit the results to those alerts
- // issued for a particular security profile, behavior or thing (device).
- //
- // 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's
- // API operation ListViolationEvents for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ListViolationEvents(input *ListViolationEventsInput) (*ListViolationEventsOutput, error) {
- req, out := c.ListViolationEventsRequest(input)
- return out, req.Send()
- }
- // ListViolationEventsWithContext is the same as ListViolationEvents with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListViolationEvents 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 *IoT) ListViolationEventsWithContext(ctx aws.Context, input *ListViolationEventsInput, opts ...request.Option) (*ListViolationEventsOutput, error) {
- req, out := c.ListViolationEventsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRegisterCACertificate = "RegisterCACertificate"
- // RegisterCACertificateRequest generates a "aws/request.Request" representing the
- // client's request for the RegisterCACertificate 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 RegisterCACertificate for more information on using the RegisterCACertificate
- // 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 RegisterCACertificateRequest method.
- // req, resp := client.RegisterCACertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) RegisterCACertificateRequest(input *RegisterCACertificateInput) (req *request.Request, output *RegisterCACertificateOutput) {
- op := &request.Operation{
- Name: opRegisterCACertificate,
- HTTPMethod: "POST",
- HTTPPath: "/cacertificate",
- }
- if input == nil {
- input = &RegisterCACertificateInput{}
- }
- output = &RegisterCACertificateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RegisterCACertificate API operation for AWS IoT.
- //
- // Registers a CA certificate with AWS IoT. This CA certificate can then be
- // used to sign device certificates, which can be then registered with AWS IoT.
- // You can register up to 10 CA certificates per AWS account that have the same
- // subject field. This enables you to have up to 10 certificate authorities
- // sign your device certificates. If you have more than one CA certificate registered,
- // make sure you pass the CA certificate when you register your device certificates
- // with the RegisterCertificate API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation RegisterCACertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeRegistrationCodeValidationException "RegistrationCodeValidationException"
- // The registration code is invalid.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeCertificateValidationException "CertificateValidationException"
- // The certificate is invalid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) RegisterCACertificate(input *RegisterCACertificateInput) (*RegisterCACertificateOutput, error) {
- req, out := c.RegisterCACertificateRequest(input)
- return out, req.Send()
- }
- // RegisterCACertificateWithContext is the same as RegisterCACertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RegisterCACertificate 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 *IoT) RegisterCACertificateWithContext(ctx aws.Context, input *RegisterCACertificateInput, opts ...request.Option) (*RegisterCACertificateOutput, error) {
- req, out := c.RegisterCACertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRegisterCertificate = "RegisterCertificate"
- // RegisterCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the RegisterCertificate 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 RegisterCertificate for more information on using the RegisterCertificate
- // 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 RegisterCertificateRequest method.
- // req, resp := client.RegisterCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) RegisterCertificateRequest(input *RegisterCertificateInput) (req *request.Request, output *RegisterCertificateOutput) {
- op := &request.Operation{
- Name: opRegisterCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/certificate/register",
- }
- if input == nil {
- input = &RegisterCertificateInput{}
- }
- output = &RegisterCertificateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RegisterCertificate API operation for AWS IoT.
- //
- // Registers a device certificate with AWS IoT. If you have more than one CA
- // certificate that has the same subject field, you must specify the CA certificate
- // that was used to sign the device certificate being registered.
- //
- // 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's
- // API operation RegisterCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeCertificateValidationException "CertificateValidationException"
- // The certificate is invalid.
- //
- // * ErrCodeCertificateStateException "CertificateStateException"
- // The certificate operation is not allowed.
- //
- // * ErrCodeCertificateConflictException "CertificateConflictException"
- // Unable to verify the CA certificate used to sign the device certificate you
- // are attempting to register. This is happens when you have registered more
- // than one CA certificate that has the same subject field and public key.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) RegisterCertificate(input *RegisterCertificateInput) (*RegisterCertificateOutput, error) {
- req, out := c.RegisterCertificateRequest(input)
- return out, req.Send()
- }
- // RegisterCertificateWithContext is the same as RegisterCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RegisterCertificate 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 *IoT) RegisterCertificateWithContext(ctx aws.Context, input *RegisterCertificateInput, opts ...request.Option) (*RegisterCertificateOutput, error) {
- req, out := c.RegisterCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRegisterThing = "RegisterThing"
- // RegisterThingRequest generates a "aws/request.Request" representing the
- // client's request for the RegisterThing 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 RegisterThing for more information on using the RegisterThing
- // 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 RegisterThingRequest method.
- // req, resp := client.RegisterThingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) RegisterThingRequest(input *RegisterThingInput) (req *request.Request, output *RegisterThingOutput) {
- op := &request.Operation{
- Name: opRegisterThing,
- HTTPMethod: "POST",
- HTTPPath: "/things",
- }
- if input == nil {
- input = &RegisterThingInput{}
- }
- output = &RegisterThingOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RegisterThing API operation for AWS IoT.
- //
- // Provisions a thing.
- //
- // 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's
- // API operation RegisterThing for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException"
- // A conflicting resource update exception. This exception is thrown when two
- // pending updates cause a conflict.
- //
- // * ErrCodeResourceRegistrationFailureException "ResourceRegistrationFailureException"
- // The resource registration failed.
- //
- func (c *IoT) RegisterThing(input *RegisterThingInput) (*RegisterThingOutput, error) {
- req, out := c.RegisterThingRequest(input)
- return out, req.Send()
- }
- // RegisterThingWithContext is the same as RegisterThing with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RegisterThing 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 *IoT) RegisterThingWithContext(ctx aws.Context, input *RegisterThingInput, opts ...request.Option) (*RegisterThingOutput, error) {
- req, out := c.RegisterThingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRejectCertificateTransfer = "RejectCertificateTransfer"
- // RejectCertificateTransferRequest generates a "aws/request.Request" representing the
- // client's request for the RejectCertificateTransfer 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 RejectCertificateTransfer for more information on using the RejectCertificateTransfer
- // 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 RejectCertificateTransferRequest method.
- // req, resp := client.RejectCertificateTransferRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) RejectCertificateTransferRequest(input *RejectCertificateTransferInput) (req *request.Request, output *RejectCertificateTransferOutput) {
- op := &request.Operation{
- Name: opRejectCertificateTransfer,
- HTTPMethod: "PATCH",
- HTTPPath: "/reject-certificate-transfer/{certificateId}",
- }
- if input == nil {
- input = &RejectCertificateTransferInput{}
- }
- output = &RejectCertificateTransferOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // RejectCertificateTransfer API operation for AWS IoT.
- //
- // Rejects a pending certificate transfer. After AWS IoT rejects a certificate
- // transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE.
- //
- // To check for pending certificate transfers, call ListCertificates to enumerate
- // your certificates.
- //
- // This operation can only be called by the transfer destination. After it is
- // called, the certificate will be returned to the source's account in the INACTIVE
- // state.
- //
- // 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's
- // API operation RejectCertificateTransfer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeTransferAlreadyCompletedException "TransferAlreadyCompletedException"
- // You can't revert the certificate transfer because the transfer is already
- // complete.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) RejectCertificateTransfer(input *RejectCertificateTransferInput) (*RejectCertificateTransferOutput, error) {
- req, out := c.RejectCertificateTransferRequest(input)
- return out, req.Send()
- }
- // RejectCertificateTransferWithContext is the same as RejectCertificateTransfer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RejectCertificateTransfer 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 *IoT) RejectCertificateTransferWithContext(ctx aws.Context, input *RejectCertificateTransferInput, opts ...request.Option) (*RejectCertificateTransferOutput, error) {
- req, out := c.RejectCertificateTransferRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRemoveThingFromBillingGroup = "RemoveThingFromBillingGroup"
- // RemoveThingFromBillingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the RemoveThingFromBillingGroup 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 RemoveThingFromBillingGroup for more information on using the RemoveThingFromBillingGroup
- // 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 RemoveThingFromBillingGroupRequest method.
- // req, resp := client.RemoveThingFromBillingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) RemoveThingFromBillingGroupRequest(input *RemoveThingFromBillingGroupInput) (req *request.Request, output *RemoveThingFromBillingGroupOutput) {
- op := &request.Operation{
- Name: opRemoveThingFromBillingGroup,
- HTTPMethod: "PUT",
- HTTPPath: "/billing-groups/removeThingFromBillingGroup",
- }
- if input == nil {
- input = &RemoveThingFromBillingGroupInput{}
- }
- output = &RemoveThingFromBillingGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // RemoveThingFromBillingGroup API operation for AWS IoT.
- //
- // Removes the given thing from the billing group.
- //
- // 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's
- // API operation RemoveThingFromBillingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) RemoveThingFromBillingGroup(input *RemoveThingFromBillingGroupInput) (*RemoveThingFromBillingGroupOutput, error) {
- req, out := c.RemoveThingFromBillingGroupRequest(input)
- return out, req.Send()
- }
- // RemoveThingFromBillingGroupWithContext is the same as RemoveThingFromBillingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RemoveThingFromBillingGroup 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 *IoT) RemoveThingFromBillingGroupWithContext(ctx aws.Context, input *RemoveThingFromBillingGroupInput, opts ...request.Option) (*RemoveThingFromBillingGroupOutput, error) {
- req, out := c.RemoveThingFromBillingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRemoveThingFromThingGroup = "RemoveThingFromThingGroup"
- // RemoveThingFromThingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the RemoveThingFromThingGroup 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 RemoveThingFromThingGroup for more information on using the RemoveThingFromThingGroup
- // 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 RemoveThingFromThingGroupRequest method.
- // req, resp := client.RemoveThingFromThingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) RemoveThingFromThingGroupRequest(input *RemoveThingFromThingGroupInput) (req *request.Request, output *RemoveThingFromThingGroupOutput) {
- op := &request.Operation{
- Name: opRemoveThingFromThingGroup,
- HTTPMethod: "PUT",
- HTTPPath: "/thing-groups/removeThingFromThingGroup",
- }
- if input == nil {
- input = &RemoveThingFromThingGroupInput{}
- }
- output = &RemoveThingFromThingGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // RemoveThingFromThingGroup API operation for AWS IoT.
- //
- // Remove the specified thing from the specified group.
- //
- // 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's
- // API operation RemoveThingFromThingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) RemoveThingFromThingGroup(input *RemoveThingFromThingGroupInput) (*RemoveThingFromThingGroupOutput, error) {
- req, out := c.RemoveThingFromThingGroupRequest(input)
- return out, req.Send()
- }
- // RemoveThingFromThingGroupWithContext is the same as RemoveThingFromThingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RemoveThingFromThingGroup 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 *IoT) RemoveThingFromThingGroupWithContext(ctx aws.Context, input *RemoveThingFromThingGroupInput, opts ...request.Option) (*RemoveThingFromThingGroupOutput, error) {
- req, out := c.RemoveThingFromThingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opReplaceTopicRule = "ReplaceTopicRule"
- // ReplaceTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the ReplaceTopicRule 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 ReplaceTopicRule for more information on using the ReplaceTopicRule
- // 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 ReplaceTopicRuleRequest method.
- // req, resp := client.ReplaceTopicRuleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ReplaceTopicRuleRequest(input *ReplaceTopicRuleInput) (req *request.Request, output *ReplaceTopicRuleOutput) {
- op := &request.Operation{
- Name: opReplaceTopicRule,
- HTTPMethod: "PATCH",
- HTTPPath: "/rules/{ruleName}",
- }
- if input == nil {
- input = &ReplaceTopicRuleInput{}
- }
- output = &ReplaceTopicRuleOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // ReplaceTopicRule API operation for AWS IoT.
- //
- // Replaces the rule. You must specify all parameters for the new rule. Creating
- // rules is an administrator-level action. Any user who has permission to create
- // rules will be able to access data processed by the rule.
- //
- // 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's
- // API operation ReplaceTopicRule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeSqlParseException "SqlParseException"
- // The Rule-SQL expression can't be parsed correctly.
- //
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException"
- // A conflicting resource update exception. This exception is thrown when two
- // pending updates cause a conflict.
- //
- func (c *IoT) ReplaceTopicRule(input *ReplaceTopicRuleInput) (*ReplaceTopicRuleOutput, error) {
- req, out := c.ReplaceTopicRuleRequest(input)
- return out, req.Send()
- }
- // ReplaceTopicRuleWithContext is the same as ReplaceTopicRule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ReplaceTopicRule 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 *IoT) ReplaceTopicRuleWithContext(ctx aws.Context, input *ReplaceTopicRuleInput, opts ...request.Option) (*ReplaceTopicRuleOutput, error) {
- req, out := c.ReplaceTopicRuleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSearchIndex = "SearchIndex"
- // SearchIndexRequest generates a "aws/request.Request" representing the
- // client's request for the SearchIndex 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 SearchIndex for more information on using the SearchIndex
- // 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 SearchIndexRequest method.
- // req, resp := client.SearchIndexRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) SearchIndexRequest(input *SearchIndexInput) (req *request.Request, output *SearchIndexOutput) {
- op := &request.Operation{
- Name: opSearchIndex,
- HTTPMethod: "POST",
- HTTPPath: "/indices/search",
- }
- if input == nil {
- input = &SearchIndexInput{}
- }
- output = &SearchIndexOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // SearchIndex API operation for AWS IoT.
- //
- // The query search index.
- //
- // 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's
- // API operation SearchIndex for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidQueryException "InvalidQueryException"
- // The query is invalid.
- //
- // * ErrCodeIndexNotReadyException "IndexNotReadyException"
- // The index is not ready.
- //
- func (c *IoT) SearchIndex(input *SearchIndexInput) (*SearchIndexOutput, error) {
- req, out := c.SearchIndexRequest(input)
- return out, req.Send()
- }
- // SearchIndexWithContext is the same as SearchIndex with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SearchIndex 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 *IoT) SearchIndexWithContext(ctx aws.Context, input *SearchIndexInput, opts ...request.Option) (*SearchIndexOutput, error) {
- req, out := c.SearchIndexRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetDefaultAuthorizer = "SetDefaultAuthorizer"
- // SetDefaultAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the SetDefaultAuthorizer 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 SetDefaultAuthorizer for more information on using the SetDefaultAuthorizer
- // 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 SetDefaultAuthorizerRequest method.
- // req, resp := client.SetDefaultAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) SetDefaultAuthorizerRequest(input *SetDefaultAuthorizerInput) (req *request.Request, output *SetDefaultAuthorizerOutput) {
- op := &request.Operation{
- Name: opSetDefaultAuthorizer,
- HTTPMethod: "POST",
- HTTPPath: "/default-authorizer",
- }
- if input == nil {
- input = &SetDefaultAuthorizerInput{}
- }
- output = &SetDefaultAuthorizerOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // SetDefaultAuthorizer API operation for AWS IoT.
- //
- // Sets the default authorizer. This will be used if a websocket connection
- // is made without specifying an authorizer.
- //
- // 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's
- // API operation SetDefaultAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- func (c *IoT) SetDefaultAuthorizer(input *SetDefaultAuthorizerInput) (*SetDefaultAuthorizerOutput, error) {
- req, out := c.SetDefaultAuthorizerRequest(input)
- return out, req.Send()
- }
- // SetDefaultAuthorizerWithContext is the same as SetDefaultAuthorizer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetDefaultAuthorizer 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 *IoT) SetDefaultAuthorizerWithContext(ctx aws.Context, input *SetDefaultAuthorizerInput, opts ...request.Option) (*SetDefaultAuthorizerOutput, error) {
- req, out := c.SetDefaultAuthorizerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetDefaultPolicyVersion = "SetDefaultPolicyVersion"
- // SetDefaultPolicyVersionRequest generates a "aws/request.Request" representing the
- // client's request for the SetDefaultPolicyVersion 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 SetDefaultPolicyVersion for more information on using the SetDefaultPolicyVersion
- // 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 SetDefaultPolicyVersionRequest method.
- // req, resp := client.SetDefaultPolicyVersionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput) (req *request.Request, output *SetDefaultPolicyVersionOutput) {
- op := &request.Operation{
- Name: opSetDefaultPolicyVersion,
- HTTPMethod: "PATCH",
- HTTPPath: "/policies/{policyName}/version/{policyVersionId}",
- }
- if input == nil {
- input = &SetDefaultPolicyVersionInput{}
- }
- output = &SetDefaultPolicyVersionOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // SetDefaultPolicyVersion API operation for AWS IoT.
- //
- // Sets the specified version of the specified policy as the policy's default
- // (operative) version. This action affects all certificates to which the policy
- // is attached. To list the principals the policy is attached to, use the ListPrincipalPolicy
- // API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation SetDefaultPolicyVersion for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) {
- req, out := c.SetDefaultPolicyVersionRequest(input)
- return out, req.Send()
- }
- // SetDefaultPolicyVersionWithContext is the same as SetDefaultPolicyVersion with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetDefaultPolicyVersion 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 *IoT) SetDefaultPolicyVersionWithContext(ctx aws.Context, input *SetDefaultPolicyVersionInput, opts ...request.Option) (*SetDefaultPolicyVersionOutput, error) {
- req, out := c.SetDefaultPolicyVersionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetLoggingOptions = "SetLoggingOptions"
- // SetLoggingOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the SetLoggingOptions 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 SetLoggingOptions for more information on using the SetLoggingOptions
- // 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 SetLoggingOptionsRequest method.
- // req, resp := client.SetLoggingOptionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) SetLoggingOptionsRequest(input *SetLoggingOptionsInput) (req *request.Request, output *SetLoggingOptionsOutput) {
- op := &request.Operation{
- Name: opSetLoggingOptions,
- HTTPMethod: "POST",
- HTTPPath: "/loggingOptions",
- }
- if input == nil {
- input = &SetLoggingOptionsInput{}
- }
- output = &SetLoggingOptionsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // SetLoggingOptions API operation for AWS IoT.
- //
- // Sets the logging options.
- //
- // NOTE: use of this command is not recommended. Use SetV2LoggingOptions instead.
- //
- // 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's
- // API operation SetLoggingOptions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) SetLoggingOptions(input *SetLoggingOptionsInput) (*SetLoggingOptionsOutput, error) {
- req, out := c.SetLoggingOptionsRequest(input)
- return out, req.Send()
- }
- // SetLoggingOptionsWithContext is the same as SetLoggingOptions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetLoggingOptions 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 *IoT) SetLoggingOptionsWithContext(ctx aws.Context, input *SetLoggingOptionsInput, opts ...request.Option) (*SetLoggingOptionsOutput, error) {
- req, out := c.SetLoggingOptionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetV2LoggingLevel = "SetV2LoggingLevel"
- // SetV2LoggingLevelRequest generates a "aws/request.Request" representing the
- // client's request for the SetV2LoggingLevel 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 SetV2LoggingLevel for more information on using the SetV2LoggingLevel
- // 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 SetV2LoggingLevelRequest method.
- // req, resp := client.SetV2LoggingLevelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) SetV2LoggingLevelRequest(input *SetV2LoggingLevelInput) (req *request.Request, output *SetV2LoggingLevelOutput) {
- op := &request.Operation{
- Name: opSetV2LoggingLevel,
- HTTPMethod: "POST",
- HTTPPath: "/v2LoggingLevel",
- }
- if input == nil {
- input = &SetV2LoggingLevelInput{}
- }
- output = &SetV2LoggingLevelOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // SetV2LoggingLevel API operation for AWS IoT.
- //
- // Sets the logging level.
- //
- // 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's
- // API operation SetV2LoggingLevel for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeNotConfiguredException "NotConfiguredException"
- // The resource is not configured.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) SetV2LoggingLevel(input *SetV2LoggingLevelInput) (*SetV2LoggingLevelOutput, error) {
- req, out := c.SetV2LoggingLevelRequest(input)
- return out, req.Send()
- }
- // SetV2LoggingLevelWithContext is the same as SetV2LoggingLevel with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetV2LoggingLevel 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 *IoT) SetV2LoggingLevelWithContext(ctx aws.Context, input *SetV2LoggingLevelInput, opts ...request.Option) (*SetV2LoggingLevelOutput, error) {
- req, out := c.SetV2LoggingLevelRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetV2LoggingOptions = "SetV2LoggingOptions"
- // SetV2LoggingOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the SetV2LoggingOptions 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 SetV2LoggingOptions for more information on using the SetV2LoggingOptions
- // 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 SetV2LoggingOptionsRequest method.
- // req, resp := client.SetV2LoggingOptionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) SetV2LoggingOptionsRequest(input *SetV2LoggingOptionsInput) (req *request.Request, output *SetV2LoggingOptionsOutput) {
- op := &request.Operation{
- Name: opSetV2LoggingOptions,
- HTTPMethod: "POST",
- HTTPPath: "/v2LoggingOptions",
- }
- if input == nil {
- input = &SetV2LoggingOptionsInput{}
- }
- output = &SetV2LoggingOptionsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // SetV2LoggingOptions API operation for AWS IoT.
- //
- // Sets the logging options for the V2 logging service.
- //
- // 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's
- // API operation SetV2LoggingOptions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalException "InternalException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) SetV2LoggingOptions(input *SetV2LoggingOptionsInput) (*SetV2LoggingOptionsOutput, error) {
- req, out := c.SetV2LoggingOptionsRequest(input)
- return out, req.Send()
- }
- // SetV2LoggingOptionsWithContext is the same as SetV2LoggingOptions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetV2LoggingOptions 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 *IoT) SetV2LoggingOptionsWithContext(ctx aws.Context, input *SetV2LoggingOptionsInput, opts ...request.Option) (*SetV2LoggingOptionsOutput, error) {
- req, out := c.SetV2LoggingOptionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStartOnDemandAuditTask = "StartOnDemandAuditTask"
- // StartOnDemandAuditTaskRequest generates a "aws/request.Request" representing the
- // client's request for the StartOnDemandAuditTask 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 StartOnDemandAuditTask for more information on using the StartOnDemandAuditTask
- // 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 StartOnDemandAuditTaskRequest method.
- // req, resp := client.StartOnDemandAuditTaskRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) StartOnDemandAuditTaskRequest(input *StartOnDemandAuditTaskInput) (req *request.Request, output *StartOnDemandAuditTaskOutput) {
- op := &request.Operation{
- Name: opStartOnDemandAuditTask,
- HTTPMethod: "POST",
- HTTPPath: "/audit/tasks",
- }
- if input == nil {
- input = &StartOnDemandAuditTaskInput{}
- }
- output = &StartOnDemandAuditTaskOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // StartOnDemandAuditTask API operation for AWS IoT.
- //
- // Starts an on-demand Device Defender audit.
- //
- // 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's
- // API operation StartOnDemandAuditTask for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- func (c *IoT) StartOnDemandAuditTask(input *StartOnDemandAuditTaskInput) (*StartOnDemandAuditTaskOutput, error) {
- req, out := c.StartOnDemandAuditTaskRequest(input)
- return out, req.Send()
- }
- // StartOnDemandAuditTaskWithContext is the same as StartOnDemandAuditTask with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StartOnDemandAuditTask 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 *IoT) StartOnDemandAuditTaskWithContext(ctx aws.Context, input *StartOnDemandAuditTaskInput, opts ...request.Option) (*StartOnDemandAuditTaskOutput, error) {
- req, out := c.StartOnDemandAuditTaskRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStartThingRegistrationTask = "StartThingRegistrationTask"
- // StartThingRegistrationTaskRequest generates a "aws/request.Request" representing the
- // client's request for the StartThingRegistrationTask 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 StartThingRegistrationTask for more information on using the StartThingRegistrationTask
- // 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 StartThingRegistrationTaskRequest method.
- // req, resp := client.StartThingRegistrationTaskRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) StartThingRegistrationTaskRequest(input *StartThingRegistrationTaskInput) (req *request.Request, output *StartThingRegistrationTaskOutput) {
- op := &request.Operation{
- Name: opStartThingRegistrationTask,
- HTTPMethod: "POST",
- HTTPPath: "/thing-registration-tasks",
- }
- if input == nil {
- input = &StartThingRegistrationTaskInput{}
- }
- output = &StartThingRegistrationTaskOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // StartThingRegistrationTask API operation for AWS IoT.
- //
- // Creates a bulk thing provisioning task.
- //
- // 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's
- // API operation StartThingRegistrationTask for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) StartThingRegistrationTask(input *StartThingRegistrationTaskInput) (*StartThingRegistrationTaskOutput, error) {
- req, out := c.StartThingRegistrationTaskRequest(input)
- return out, req.Send()
- }
- // StartThingRegistrationTaskWithContext is the same as StartThingRegistrationTask with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StartThingRegistrationTask 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 *IoT) StartThingRegistrationTaskWithContext(ctx aws.Context, input *StartThingRegistrationTaskInput, opts ...request.Option) (*StartThingRegistrationTaskOutput, error) {
- req, out := c.StartThingRegistrationTaskRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStopThingRegistrationTask = "StopThingRegistrationTask"
- // StopThingRegistrationTaskRequest generates a "aws/request.Request" representing the
- // client's request for the StopThingRegistrationTask 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 StopThingRegistrationTask for more information on using the StopThingRegistrationTask
- // 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 StopThingRegistrationTaskRequest method.
- // req, resp := client.StopThingRegistrationTaskRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) StopThingRegistrationTaskRequest(input *StopThingRegistrationTaskInput) (req *request.Request, output *StopThingRegistrationTaskOutput) {
- op := &request.Operation{
- Name: opStopThingRegistrationTask,
- HTTPMethod: "PUT",
- HTTPPath: "/thing-registration-tasks/{taskId}/cancel",
- }
- if input == nil {
- input = &StopThingRegistrationTaskInput{}
- }
- output = &StopThingRegistrationTaskOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StopThingRegistrationTask API operation for AWS IoT.
- //
- // Cancels a bulk thing provisioning task.
- //
- // 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's
- // API operation StopThingRegistrationTask for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) StopThingRegistrationTask(input *StopThingRegistrationTaskInput) (*StopThingRegistrationTaskOutput, error) {
- req, out := c.StopThingRegistrationTaskRequest(input)
- return out, req.Send()
- }
- // StopThingRegistrationTaskWithContext is the same as StopThingRegistrationTask with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StopThingRegistrationTask 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 *IoT) StopThingRegistrationTaskWithContext(ctx aws.Context, input *StopThingRegistrationTaskInput, opts ...request.Option) (*StopThingRegistrationTaskOutput, error) {
- req, out := c.StopThingRegistrationTaskRequest(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)
- // }
- func (c *IoT) 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.
- //
- // 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's
- // API operation TagResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- func (c *IoT) 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 *IoT) 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 opTestAuthorization = "TestAuthorization"
- // TestAuthorizationRequest generates a "aws/request.Request" representing the
- // client's request for the TestAuthorization 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 TestAuthorization for more information on using the TestAuthorization
- // 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 TestAuthorizationRequest method.
- // req, resp := client.TestAuthorizationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) TestAuthorizationRequest(input *TestAuthorizationInput) (req *request.Request, output *TestAuthorizationOutput) {
- op := &request.Operation{
- Name: opTestAuthorization,
- HTTPMethod: "POST",
- HTTPPath: "/test-authorization",
- }
- if input == nil {
- input = &TestAuthorizationInput{}
- }
- output = &TestAuthorizationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // TestAuthorization API operation for AWS IoT.
- //
- // Tests if a specified principal is authorized to perform an AWS IoT action
- // on a specified resource. Use this to test and debug the authorization behavior
- // of devices that connect to the AWS IoT device gateway.
- //
- // 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's
- // API operation TestAuthorization for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- func (c *IoT) TestAuthorization(input *TestAuthorizationInput) (*TestAuthorizationOutput, error) {
- req, out := c.TestAuthorizationRequest(input)
- return out, req.Send()
- }
- // TestAuthorizationWithContext is the same as TestAuthorization with the addition of
- // the ability to pass a context and additional request options.
- //
- // See TestAuthorization 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 *IoT) TestAuthorizationWithContext(ctx aws.Context, input *TestAuthorizationInput, opts ...request.Option) (*TestAuthorizationOutput, error) {
- req, out := c.TestAuthorizationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opTestInvokeAuthorizer = "TestInvokeAuthorizer"
- // TestInvokeAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the TestInvokeAuthorizer 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 TestInvokeAuthorizer for more information on using the TestInvokeAuthorizer
- // 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 TestInvokeAuthorizerRequest method.
- // req, resp := client.TestInvokeAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInput) (req *request.Request, output *TestInvokeAuthorizerOutput) {
- op := &request.Operation{
- Name: opTestInvokeAuthorizer,
- HTTPMethod: "POST",
- HTTPPath: "/authorizer/{authorizerName}/test",
- }
- if input == nil {
- input = &TestInvokeAuthorizerInput{}
- }
- output = &TestInvokeAuthorizerOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // TestInvokeAuthorizer API operation for AWS IoT.
- //
- // Tests a custom authorization behavior by invoking a specified custom authorizer.
- // Use this to test and debug the custom authorization behavior of devices that
- // connect to the AWS IoT device gateway.
- //
- // 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's
- // API operation TestInvokeAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeInvalidResponseException "InvalidResponseException"
- // The response is invalid.
- //
- func (c *IoT) TestInvokeAuthorizer(input *TestInvokeAuthorizerInput) (*TestInvokeAuthorizerOutput, error) {
- req, out := c.TestInvokeAuthorizerRequest(input)
- return out, req.Send()
- }
- // TestInvokeAuthorizerWithContext is the same as TestInvokeAuthorizer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See TestInvokeAuthorizer 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 *IoT) TestInvokeAuthorizerWithContext(ctx aws.Context, input *TestInvokeAuthorizerInput, opts ...request.Option) (*TestInvokeAuthorizerOutput, error) {
- req, out := c.TestInvokeAuthorizerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opTransferCertificate = "TransferCertificate"
- // TransferCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the TransferCertificate 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 TransferCertificate for more information on using the TransferCertificate
- // 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 TransferCertificateRequest method.
- // req, resp := client.TransferCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) TransferCertificateRequest(input *TransferCertificateInput) (req *request.Request, output *TransferCertificateOutput) {
- op := &request.Operation{
- Name: opTransferCertificate,
- HTTPMethod: "PATCH",
- HTTPPath: "/transfer-certificate/{certificateId}",
- }
- if input == nil {
- input = &TransferCertificateInput{}
- }
- output = &TransferCertificateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // TransferCertificate API operation for AWS IoT.
- //
- // Transfers the specified certificate to the specified AWS account.
- //
- // You can cancel the transfer until it is acknowledged by the recipient.
- //
- // No notification is sent to the transfer destination's account. It is up to
- // the caller to notify the transfer target.
- //
- // The certificate being transferred must not be in the ACTIVE state. You can
- // use the UpdateCertificate API to deactivate it.
- //
- // The certificate must not have any policies attached to it. You can use the
- // DetachPrincipalPolicy API to detach them.
- //
- // 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's
- // API operation TransferCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeCertificateStateException "CertificateStateException"
- // The certificate operation is not allowed.
- //
- // * ErrCodeTransferConflictException "TransferConflictException"
- // You can't transfer the certificate because authorization policies are still
- // attached.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) TransferCertificate(input *TransferCertificateInput) (*TransferCertificateOutput, error) {
- req, out := c.TransferCertificateRequest(input)
- return out, req.Send()
- }
- // TransferCertificateWithContext is the same as TransferCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See TransferCertificate 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 *IoT) TransferCertificateWithContext(ctx aws.Context, input *TransferCertificateInput, opts ...request.Option) (*TransferCertificateOutput, error) {
- req, out := c.TransferCertificateRequest(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)
- // }
- func (c *IoT) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
- op := &request.Operation{
- Name: opUntagResource,
- HTTPMethod: "POST",
- HTTPPath: "/untag",
- }
- 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.
- //
- // 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's
- // API operation UntagResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- func (c *IoT) 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 *IoT) 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 opUpdateAccountAuditConfiguration = "UpdateAccountAuditConfiguration"
- // UpdateAccountAuditConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateAccountAuditConfiguration 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 UpdateAccountAuditConfiguration for more information on using the UpdateAccountAuditConfiguration
- // 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 UpdateAccountAuditConfigurationRequest method.
- // req, resp := client.UpdateAccountAuditConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateAccountAuditConfigurationRequest(input *UpdateAccountAuditConfigurationInput) (req *request.Request, output *UpdateAccountAuditConfigurationOutput) {
- op := &request.Operation{
- Name: opUpdateAccountAuditConfiguration,
- HTTPMethod: "PATCH",
- HTTPPath: "/audit/configuration",
- }
- if input == nil {
- input = &UpdateAccountAuditConfigurationInput{}
- }
- output = &UpdateAccountAuditConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateAccountAuditConfiguration API operation for AWS IoT.
- //
- // Configures or reconfigures the Device Defender audit settings for this account.
- // Settings include how audit notifications are sent and which audit checks
- // are enabled or disabled.
- //
- // 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's
- // API operation UpdateAccountAuditConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) UpdateAccountAuditConfiguration(input *UpdateAccountAuditConfigurationInput) (*UpdateAccountAuditConfigurationOutput, error) {
- req, out := c.UpdateAccountAuditConfigurationRequest(input)
- return out, req.Send()
- }
- // UpdateAccountAuditConfigurationWithContext is the same as UpdateAccountAuditConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateAccountAuditConfiguration 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 *IoT) UpdateAccountAuditConfigurationWithContext(ctx aws.Context, input *UpdateAccountAuditConfigurationInput, opts ...request.Option) (*UpdateAccountAuditConfigurationOutput, error) {
- req, out := c.UpdateAccountAuditConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateAuthorizer = "UpdateAuthorizer"
- // UpdateAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateAuthorizer 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 UpdateAuthorizer for more information on using the UpdateAuthorizer
- // 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 UpdateAuthorizerRequest method.
- // req, resp := client.UpdateAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (req *request.Request, output *UpdateAuthorizerOutput) {
- op := &request.Operation{
- Name: opUpdateAuthorizer,
- HTTPMethod: "PUT",
- HTTPPath: "/authorizer/{authorizerName}",
- }
- if input == nil {
- input = &UpdateAuthorizerInput{}
- }
- output = &UpdateAuthorizerOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateAuthorizer API operation for AWS IoT.
- //
- // Updates an authorizer.
- //
- // 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's
- // API operation UpdateAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // A limit has been exceeded.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) UpdateAuthorizer(input *UpdateAuthorizerInput) (*UpdateAuthorizerOutput, error) {
- req, out := c.UpdateAuthorizerRequest(input)
- return out, req.Send()
- }
- // UpdateAuthorizerWithContext is the same as UpdateAuthorizer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateAuthorizer 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 *IoT) UpdateAuthorizerWithContext(ctx aws.Context, input *UpdateAuthorizerInput, opts ...request.Option) (*UpdateAuthorizerOutput, error) {
- req, out := c.UpdateAuthorizerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateBillingGroup = "UpdateBillingGroup"
- // UpdateBillingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateBillingGroup 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 UpdateBillingGroup for more information on using the UpdateBillingGroup
- // 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 UpdateBillingGroupRequest method.
- // req, resp := client.UpdateBillingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateBillingGroupRequest(input *UpdateBillingGroupInput) (req *request.Request, output *UpdateBillingGroupOutput) {
- op := &request.Operation{
- Name: opUpdateBillingGroup,
- HTTPMethod: "PATCH",
- HTTPPath: "/billing-groups/{billingGroupName}",
- }
- if input == nil {
- input = &UpdateBillingGroupInput{}
- }
- output = &UpdateBillingGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateBillingGroup API operation for AWS IoT.
- //
- // Updates information about the billing group.
- //
- // 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's
- // API operation UpdateBillingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) UpdateBillingGroup(input *UpdateBillingGroupInput) (*UpdateBillingGroupOutput, error) {
- req, out := c.UpdateBillingGroupRequest(input)
- return out, req.Send()
- }
- // UpdateBillingGroupWithContext is the same as UpdateBillingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateBillingGroup 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 *IoT) UpdateBillingGroupWithContext(ctx aws.Context, input *UpdateBillingGroupInput, opts ...request.Option) (*UpdateBillingGroupOutput, error) {
- req, out := c.UpdateBillingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateCACertificate = "UpdateCACertificate"
- // UpdateCACertificateRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateCACertificate 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 UpdateCACertificate for more information on using the UpdateCACertificate
- // 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 UpdateCACertificateRequest method.
- // req, resp := client.UpdateCACertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateCACertificateRequest(input *UpdateCACertificateInput) (req *request.Request, output *UpdateCACertificateOutput) {
- op := &request.Operation{
- Name: opUpdateCACertificate,
- HTTPMethod: "PUT",
- HTTPPath: "/cacertificate/{caCertificateId}",
- }
- if input == nil {
- input = &UpdateCACertificateInput{}
- }
- output = &UpdateCACertificateOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateCACertificate API operation for AWS IoT.
- //
- // Updates a registered CA certificate.
- //
- // 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's
- // API operation UpdateCACertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) UpdateCACertificate(input *UpdateCACertificateInput) (*UpdateCACertificateOutput, error) {
- req, out := c.UpdateCACertificateRequest(input)
- return out, req.Send()
- }
- // UpdateCACertificateWithContext is the same as UpdateCACertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateCACertificate 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 *IoT) UpdateCACertificateWithContext(ctx aws.Context, input *UpdateCACertificateInput, opts ...request.Option) (*UpdateCACertificateOutput, error) {
- req, out := c.UpdateCACertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateCertificate = "UpdateCertificate"
- // UpdateCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateCertificate 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 UpdateCertificate for more information on using the UpdateCertificate
- // 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 UpdateCertificateRequest method.
- // req, resp := client.UpdateCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateCertificateRequest(input *UpdateCertificateInput) (req *request.Request, output *UpdateCertificateOutput) {
- op := &request.Operation{
- Name: opUpdateCertificate,
- HTTPMethod: "PUT",
- HTTPPath: "/certificates/{certificateId}",
- }
- if input == nil {
- input = &UpdateCertificateInput{}
- }
- output = &UpdateCertificateOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateCertificate API operation for AWS IoT.
- //
- // Updates the status of the specified certificate. This operation is idempotent.
- //
- // Moving a certificate from the ACTIVE state (including REVOKED) will not disconnect
- // currently connected devices, but these devices will be unable to reconnect.
- //
- // The ACTIVE state is required to authenticate devices connecting to AWS IoT
- // using a certificate.
- //
- // 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's
- // API operation UpdateCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeCertificateStateException "CertificateStateException"
- // The certificate operation is not allowed.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) UpdateCertificate(input *UpdateCertificateInput) (*UpdateCertificateOutput, error) {
- req, out := c.UpdateCertificateRequest(input)
- return out, req.Send()
- }
- // UpdateCertificateWithContext is the same as UpdateCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateCertificate 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 *IoT) UpdateCertificateWithContext(ctx aws.Context, input *UpdateCertificateInput, opts ...request.Option) (*UpdateCertificateOutput, error) {
- req, out := c.UpdateCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateDynamicThingGroup = "UpdateDynamicThingGroup"
- // UpdateDynamicThingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDynamicThingGroup 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 UpdateDynamicThingGroup for more information on using the UpdateDynamicThingGroup
- // 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 UpdateDynamicThingGroupRequest method.
- // req, resp := client.UpdateDynamicThingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateDynamicThingGroupRequest(input *UpdateDynamicThingGroupInput) (req *request.Request, output *UpdateDynamicThingGroupOutput) {
- op := &request.Operation{
- Name: opUpdateDynamicThingGroup,
- HTTPMethod: "PATCH",
- HTTPPath: "/dynamic-thing-groups/{thingGroupName}",
- }
- if input == nil {
- input = &UpdateDynamicThingGroupInput{}
- }
- output = &UpdateDynamicThingGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateDynamicThingGroup API operation for AWS IoT.
- //
- // Updates a dynamic thing group.
- //
- // 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's
- // API operation UpdateDynamicThingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidQueryException "InvalidQueryException"
- // The query is invalid.
- //
- func (c *IoT) UpdateDynamicThingGroup(input *UpdateDynamicThingGroupInput) (*UpdateDynamicThingGroupOutput, error) {
- req, out := c.UpdateDynamicThingGroupRequest(input)
- return out, req.Send()
- }
- // UpdateDynamicThingGroupWithContext is the same as UpdateDynamicThingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateDynamicThingGroup 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 *IoT) UpdateDynamicThingGroupWithContext(ctx aws.Context, input *UpdateDynamicThingGroupInput, opts ...request.Option) (*UpdateDynamicThingGroupOutput, error) {
- req, out := c.UpdateDynamicThingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateEventConfigurations = "UpdateEventConfigurations"
- // UpdateEventConfigurationsRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateEventConfigurations 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 UpdateEventConfigurations for more information on using the UpdateEventConfigurations
- // 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 UpdateEventConfigurationsRequest method.
- // req, resp := client.UpdateEventConfigurationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateEventConfigurationsRequest(input *UpdateEventConfigurationsInput) (req *request.Request, output *UpdateEventConfigurationsOutput) {
- op := &request.Operation{
- Name: opUpdateEventConfigurations,
- HTTPMethod: "PATCH",
- HTTPPath: "/event-configurations",
- }
- if input == nil {
- input = &UpdateEventConfigurationsInput{}
- }
- output = &UpdateEventConfigurationsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateEventConfigurations API operation for AWS IoT.
- //
- // Updates the event configurations.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation UpdateEventConfigurations for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- func (c *IoT) UpdateEventConfigurations(input *UpdateEventConfigurationsInput) (*UpdateEventConfigurationsOutput, error) {
- req, out := c.UpdateEventConfigurationsRequest(input)
- return out, req.Send()
- }
- // UpdateEventConfigurationsWithContext is the same as UpdateEventConfigurations with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateEventConfigurations 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 *IoT) UpdateEventConfigurationsWithContext(ctx aws.Context, input *UpdateEventConfigurationsInput, opts ...request.Option) (*UpdateEventConfigurationsOutput, error) {
- req, out := c.UpdateEventConfigurationsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateIndexingConfiguration = "UpdateIndexingConfiguration"
- // UpdateIndexingConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateIndexingConfiguration 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 UpdateIndexingConfiguration for more information on using the UpdateIndexingConfiguration
- // 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 UpdateIndexingConfigurationRequest method.
- // req, resp := client.UpdateIndexingConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateIndexingConfigurationRequest(input *UpdateIndexingConfigurationInput) (req *request.Request, output *UpdateIndexingConfigurationOutput) {
- op := &request.Operation{
- Name: opUpdateIndexingConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/indexing/config",
- }
- if input == nil {
- input = &UpdateIndexingConfigurationInput{}
- }
- output = &UpdateIndexingConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateIndexingConfiguration API operation for AWS IoT.
- //
- // Updates the search configuration.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation UpdateIndexingConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) UpdateIndexingConfiguration(input *UpdateIndexingConfigurationInput) (*UpdateIndexingConfigurationOutput, error) {
- req, out := c.UpdateIndexingConfigurationRequest(input)
- return out, req.Send()
- }
- // UpdateIndexingConfigurationWithContext is the same as UpdateIndexingConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateIndexingConfiguration 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 *IoT) UpdateIndexingConfigurationWithContext(ctx aws.Context, input *UpdateIndexingConfigurationInput, opts ...request.Option) (*UpdateIndexingConfigurationOutput, error) {
- req, out := c.UpdateIndexingConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateJob = "UpdateJob"
- // UpdateJobRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateJob 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 UpdateJob for more information on using the UpdateJob
- // 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 UpdateJobRequest method.
- // req, resp := client.UpdateJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateJobRequest(input *UpdateJobInput) (req *request.Request, output *UpdateJobOutput) {
- op := &request.Operation{
- Name: opUpdateJob,
- HTTPMethod: "PATCH",
- HTTPPath: "/jobs/{jobId}",
- }
- if input == nil {
- input = &UpdateJobInput{}
- }
- output = &UpdateJobOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateJob API operation for AWS IoT.
- //
- // Updates supported fields of the specified job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT's
- // API operation UpdateJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- func (c *IoT) UpdateJob(input *UpdateJobInput) (*UpdateJobOutput, error) {
- req, out := c.UpdateJobRequest(input)
- return out, req.Send()
- }
- // UpdateJobWithContext is the same as UpdateJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateJob 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 *IoT) UpdateJobWithContext(ctx aws.Context, input *UpdateJobInput, opts ...request.Option) (*UpdateJobOutput, error) {
- req, out := c.UpdateJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateRoleAlias = "UpdateRoleAlias"
- // UpdateRoleAliasRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateRoleAlias 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 UpdateRoleAlias for more information on using the UpdateRoleAlias
- // 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 UpdateRoleAliasRequest method.
- // req, resp := client.UpdateRoleAliasRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateRoleAliasRequest(input *UpdateRoleAliasInput) (req *request.Request, output *UpdateRoleAliasOutput) {
- op := &request.Operation{
- Name: opUpdateRoleAlias,
- HTTPMethod: "PUT",
- HTTPPath: "/role-aliases/{roleAlias}",
- }
- if input == nil {
- input = &UpdateRoleAliasInput{}
- }
- output = &UpdateRoleAliasOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateRoleAlias API operation for AWS IoT.
- //
- // Updates a role alias.
- //
- // 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's
- // API operation UpdateRoleAlias for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) UpdateRoleAlias(input *UpdateRoleAliasInput) (*UpdateRoleAliasOutput, error) {
- req, out := c.UpdateRoleAliasRequest(input)
- return out, req.Send()
- }
- // UpdateRoleAliasWithContext is the same as UpdateRoleAlias with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateRoleAlias 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 *IoT) UpdateRoleAliasWithContext(ctx aws.Context, input *UpdateRoleAliasInput, opts ...request.Option) (*UpdateRoleAliasOutput, error) {
- req, out := c.UpdateRoleAliasRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateScheduledAudit = "UpdateScheduledAudit"
- // UpdateScheduledAuditRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateScheduledAudit 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 UpdateScheduledAudit for more information on using the UpdateScheduledAudit
- // 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 UpdateScheduledAuditRequest method.
- // req, resp := client.UpdateScheduledAuditRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateScheduledAuditRequest(input *UpdateScheduledAuditInput) (req *request.Request, output *UpdateScheduledAuditOutput) {
- op := &request.Operation{
- Name: opUpdateScheduledAudit,
- HTTPMethod: "PATCH",
- HTTPPath: "/audit/scheduledaudits/{scheduledAuditName}",
- }
- if input == nil {
- input = &UpdateScheduledAuditInput{}
- }
- output = &UpdateScheduledAuditOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateScheduledAudit API operation for AWS IoT.
- //
- // Updates a scheduled audit, including what checks are performed and how often
- // the audit takes place.
- //
- // 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's
- // API operation UpdateScheduledAudit for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) UpdateScheduledAudit(input *UpdateScheduledAuditInput) (*UpdateScheduledAuditOutput, error) {
- req, out := c.UpdateScheduledAuditRequest(input)
- return out, req.Send()
- }
- // UpdateScheduledAuditWithContext is the same as UpdateScheduledAudit with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateScheduledAudit 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 *IoT) UpdateScheduledAuditWithContext(ctx aws.Context, input *UpdateScheduledAuditInput, opts ...request.Option) (*UpdateScheduledAuditOutput, error) {
- req, out := c.UpdateScheduledAuditRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateSecurityProfile = "UpdateSecurityProfile"
- // UpdateSecurityProfileRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateSecurityProfile 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 UpdateSecurityProfile for more information on using the UpdateSecurityProfile
- // 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 UpdateSecurityProfileRequest method.
- // req, resp := client.UpdateSecurityProfileRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateSecurityProfileRequest(input *UpdateSecurityProfileInput) (req *request.Request, output *UpdateSecurityProfileOutput) {
- op := &request.Operation{
- Name: opUpdateSecurityProfile,
- HTTPMethod: "PATCH",
- HTTPPath: "/security-profiles/{securityProfileName}",
- }
- if input == nil {
- input = &UpdateSecurityProfileInput{}
- }
- output = &UpdateSecurityProfileOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateSecurityProfile API operation for AWS IoT.
- //
- // Updates a Device Defender security profile.
- //
- // 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's
- // API operation UpdateSecurityProfile for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) UpdateSecurityProfile(input *UpdateSecurityProfileInput) (*UpdateSecurityProfileOutput, error) {
- req, out := c.UpdateSecurityProfileRequest(input)
- return out, req.Send()
- }
- // UpdateSecurityProfileWithContext is the same as UpdateSecurityProfile with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateSecurityProfile 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 *IoT) UpdateSecurityProfileWithContext(ctx aws.Context, input *UpdateSecurityProfileInput, opts ...request.Option) (*UpdateSecurityProfileOutput, error) {
- req, out := c.UpdateSecurityProfileRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateStream = "UpdateStream"
- // UpdateStreamRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateStream 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 UpdateStream for more information on using the UpdateStream
- // 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 UpdateStreamRequest method.
- // req, resp := client.UpdateStreamRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateStreamRequest(input *UpdateStreamInput) (req *request.Request, output *UpdateStreamOutput) {
- op := &request.Operation{
- Name: opUpdateStream,
- HTTPMethod: "PUT",
- HTTPPath: "/streams/{streamId}",
- }
- if input == nil {
- input = &UpdateStreamInput{}
- }
- output = &UpdateStreamOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateStream API operation for AWS IoT.
- //
- // Updates an existing stream. The stream version will be incremented by one.
- //
- // 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's
- // API operation UpdateStream for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) UpdateStream(input *UpdateStreamInput) (*UpdateStreamOutput, error) {
- req, out := c.UpdateStreamRequest(input)
- return out, req.Send()
- }
- // UpdateStreamWithContext is the same as UpdateStream with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateStream 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 *IoT) UpdateStreamWithContext(ctx aws.Context, input *UpdateStreamInput, opts ...request.Option) (*UpdateStreamOutput, error) {
- req, out := c.UpdateStreamRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateThing = "UpdateThing"
- // UpdateThingRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateThing 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 UpdateThing for more information on using the UpdateThing
- // 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 UpdateThingRequest method.
- // req, resp := client.UpdateThingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateThingRequest(input *UpdateThingInput) (req *request.Request, output *UpdateThingOutput) {
- op := &request.Operation{
- Name: opUpdateThing,
- HTTPMethod: "PATCH",
- HTTPPath: "/things/{thingName}",
- }
- if input == nil {
- input = &UpdateThingInput{}
- }
- output = &UpdateThingOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateThing API operation for AWS IoT.
- //
- // Updates the data for a thing.
- //
- // 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's
- // API operation UpdateThing for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) UpdateThing(input *UpdateThingInput) (*UpdateThingOutput, error) {
- req, out := c.UpdateThingRequest(input)
- return out, req.Send()
- }
- // UpdateThingWithContext is the same as UpdateThing with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateThing 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 *IoT) UpdateThingWithContext(ctx aws.Context, input *UpdateThingInput, opts ...request.Option) (*UpdateThingOutput, error) {
- req, out := c.UpdateThingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateThingGroup = "UpdateThingGroup"
- // UpdateThingGroupRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateThingGroup 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 UpdateThingGroup for more information on using the UpdateThingGroup
- // 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 UpdateThingGroupRequest method.
- // req, resp := client.UpdateThingGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateThingGroupRequest(input *UpdateThingGroupInput) (req *request.Request, output *UpdateThingGroupOutput) {
- op := &request.Operation{
- Name: opUpdateThingGroup,
- HTTPMethod: "PATCH",
- HTTPPath: "/thing-groups/{thingGroupName}",
- }
- if input == nil {
- input = &UpdateThingGroupInput{}
- }
- output = &UpdateThingGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateThingGroup API operation for AWS IoT.
- //
- // Update a thing group.
- //
- // 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's
- // API operation UpdateThingGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeVersionConflictException "VersionConflictException"
- // An exception thrown when the version of an entity specified with the expectedVersion
- // parameter does not match the latest version in the system.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) UpdateThingGroup(input *UpdateThingGroupInput) (*UpdateThingGroupOutput, error) {
- req, out := c.UpdateThingGroupRequest(input)
- return out, req.Send()
- }
- // UpdateThingGroupWithContext is the same as UpdateThingGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateThingGroup 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 *IoT) UpdateThingGroupWithContext(ctx aws.Context, input *UpdateThingGroupInput, opts ...request.Option) (*UpdateThingGroupOutput, error) {
- req, out := c.UpdateThingGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateThingGroupsForThing = "UpdateThingGroupsForThing"
- // UpdateThingGroupsForThingRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateThingGroupsForThing 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 UpdateThingGroupsForThing for more information on using the UpdateThingGroupsForThing
- // 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 UpdateThingGroupsForThingRequest method.
- // req, resp := client.UpdateThingGroupsForThingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) UpdateThingGroupsForThingRequest(input *UpdateThingGroupsForThingInput) (req *request.Request, output *UpdateThingGroupsForThingOutput) {
- op := &request.Operation{
- Name: opUpdateThingGroupsForThing,
- HTTPMethod: "PUT",
- HTTPPath: "/thing-groups/updateThingGroupsForThing",
- }
- if input == nil {
- input = &UpdateThingGroupsForThingInput{}
- }
- output = &UpdateThingGroupsForThingOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateThingGroupsForThing API operation for AWS IoT.
- //
- // Updates the groups to which the thing belongs.
- //
- // 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's
- // API operation UpdateThingGroupsForThing for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource does not exist.
- //
- func (c *IoT) UpdateThingGroupsForThing(input *UpdateThingGroupsForThingInput) (*UpdateThingGroupsForThingOutput, error) {
- req, out := c.UpdateThingGroupsForThingRequest(input)
- return out, req.Send()
- }
- // UpdateThingGroupsForThingWithContext is the same as UpdateThingGroupsForThing with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateThingGroupsForThing 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 *IoT) UpdateThingGroupsForThingWithContext(ctx aws.Context, input *UpdateThingGroupsForThingInput, opts ...request.Option) (*UpdateThingGroupsForThingOutput, error) {
- req, out := c.UpdateThingGroupsForThingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opValidateSecurityProfileBehaviors = "ValidateSecurityProfileBehaviors"
- // ValidateSecurityProfileBehaviorsRequest generates a "aws/request.Request" representing the
- // client's request for the ValidateSecurityProfileBehaviors 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 ValidateSecurityProfileBehaviors for more information on using the ValidateSecurityProfileBehaviors
- // 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 ValidateSecurityProfileBehaviorsRequest method.
- // req, resp := client.ValidateSecurityProfileBehaviorsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- func (c *IoT) ValidateSecurityProfileBehaviorsRequest(input *ValidateSecurityProfileBehaviorsInput) (req *request.Request, output *ValidateSecurityProfileBehaviorsOutput) {
- op := &request.Operation{
- Name: opValidateSecurityProfileBehaviors,
- HTTPMethod: "POST",
- HTTPPath: "/security-profile-behaviors/validate",
- }
- if input == nil {
- input = &ValidateSecurityProfileBehaviorsInput{}
- }
- output = &ValidateSecurityProfileBehaviorsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ValidateSecurityProfileBehaviors API operation for AWS IoT.
- //
- // Validates a Device Defender security profile behaviors specification.
- //
- // 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's
- // API operation ValidateSecurityProfileBehaviors for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The rate exceeds the limit.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An unexpected error has occurred.
- //
- func (c *IoT) ValidateSecurityProfileBehaviors(input *ValidateSecurityProfileBehaviorsInput) (*ValidateSecurityProfileBehaviorsOutput, error) {
- req, out := c.ValidateSecurityProfileBehaviorsRequest(input)
- return out, req.Send()
- }
- // ValidateSecurityProfileBehaviorsWithContext is the same as ValidateSecurityProfileBehaviors with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ValidateSecurityProfileBehaviors 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 *IoT) ValidateSecurityProfileBehaviorsWithContext(ctx aws.Context, input *ValidateSecurityProfileBehaviorsInput, opts ...request.Option) (*ValidateSecurityProfileBehaviorsOutput, error) {
- req, out := c.ValidateSecurityProfileBehaviorsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // Details of abort criteria to abort the job.
- type AbortConfig struct {
- _ struct{} `type:"structure"`
- // The list of abort criteria to define rules to abort the job.
- //
- // CriteriaList is a required field
- CriteriaList []*AbortCriteria `locationName:"criteriaList" min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s AbortConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AbortConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AbortConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AbortConfig"}
- if s.CriteriaList == nil {
- invalidParams.Add(request.NewErrParamRequired("CriteriaList"))
- }
- if s.CriteriaList != nil && len(s.CriteriaList) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CriteriaList", 1))
- }
- if s.CriteriaList != nil {
- for i, v := range s.CriteriaList {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CriteriaList", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCriteriaList sets the CriteriaList field's value.
- func (s *AbortConfig) SetCriteriaList(v []*AbortCriteria) *AbortConfig {
- s.CriteriaList = v
- return s
- }
- // Details of abort criteria to define rules to abort the job.
- type AbortCriteria struct {
- _ struct{} `type:"structure"`
- // The type of abort action to initiate a job abort.
- //
- // Action is a required field
- Action *string `locationName:"action" type:"string" required:"true" enum:"AbortAction"`
- // The type of job execution failure to define a rule to initiate a job abort.
- //
- // FailureType is a required field
- FailureType *string `locationName:"failureType" type:"string" required:"true" enum:"JobExecutionFailureType"`
- // Minimum number of executed things before evaluating an abort rule.
- //
- // MinNumberOfExecutedThings is a required field
- MinNumberOfExecutedThings *int64 `locationName:"minNumberOfExecutedThings" min:"1" type:"integer" required:"true"`
- // The threshold as a percentage of the total number of executed things that
- // will initiate a job abort.
- //
- // AWS IoT supports up to two digits after the decimal (for example, 10.9 and
- // 10.99, but not 10.999).
- //
- // ThresholdPercentage is a required field
- ThresholdPercentage *float64 `locationName:"thresholdPercentage" type:"double" required:"true"`
- }
- // String returns the string representation
- func (s AbortCriteria) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AbortCriteria) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AbortCriteria) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AbortCriteria"}
- if s.Action == nil {
- invalidParams.Add(request.NewErrParamRequired("Action"))
- }
- if s.FailureType == nil {
- invalidParams.Add(request.NewErrParamRequired("FailureType"))
- }
- if s.MinNumberOfExecutedThings == nil {
- invalidParams.Add(request.NewErrParamRequired("MinNumberOfExecutedThings"))
- }
- if s.MinNumberOfExecutedThings != nil && *s.MinNumberOfExecutedThings < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MinNumberOfExecutedThings", 1))
- }
- if s.ThresholdPercentage == nil {
- invalidParams.Add(request.NewErrParamRequired("ThresholdPercentage"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAction sets the Action field's value.
- func (s *AbortCriteria) SetAction(v string) *AbortCriteria {
- s.Action = &v
- return s
- }
- // SetFailureType sets the FailureType field's value.
- func (s *AbortCriteria) SetFailureType(v string) *AbortCriteria {
- s.FailureType = &v
- return s
- }
- // SetMinNumberOfExecutedThings sets the MinNumberOfExecutedThings field's value.
- func (s *AbortCriteria) SetMinNumberOfExecutedThings(v int64) *AbortCriteria {
- s.MinNumberOfExecutedThings = &v
- return s
- }
- // SetThresholdPercentage sets the ThresholdPercentage field's value.
- func (s *AbortCriteria) SetThresholdPercentage(v float64) *AbortCriteria {
- s.ThresholdPercentage = &v
- return s
- }
- // The input for the AcceptCertificateTransfer operation.
- type AcceptCertificateTransferInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate. (The last part of the certificate ARN contains
- // the certificate ID.)
- //
- // CertificateId is a required field
- CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"`
- // Specifies whether the certificate is active.
- SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"`
- }
- // String returns the string representation
- func (s AcceptCertificateTransferInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcceptCertificateTransferInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AcceptCertificateTransferInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AcceptCertificateTransferInput"}
- if s.CertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateId"))
- }
- if s.CertificateId != nil && len(*s.CertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *AcceptCertificateTransferInput) SetCertificateId(v string) *AcceptCertificateTransferInput {
- s.CertificateId = &v
- return s
- }
- // SetSetAsActive sets the SetAsActive field's value.
- func (s *AcceptCertificateTransferInput) SetSetAsActive(v bool) *AcceptCertificateTransferInput {
- s.SetAsActive = &v
- return s
- }
- type AcceptCertificateTransferOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AcceptCertificateTransferOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcceptCertificateTransferOutput) GoString() string {
- return s.String()
- }
- // Describes the actions associated with a rule.
- type Action struct {
- _ struct{} `type:"structure"`
- // Change the state of a CloudWatch alarm.
- CloudwatchAlarm *CloudwatchAlarmAction `locationName:"cloudwatchAlarm" type:"structure"`
- // Capture a CloudWatch metric.
- CloudwatchMetric *CloudwatchMetricAction `locationName:"cloudwatchMetric" type:"structure"`
- // Write to a DynamoDB table.
- DynamoDB *DynamoDBAction `locationName:"dynamoDB" type:"structure"`
- // Write to a DynamoDB table. This is a new version of the DynamoDB action.
- // It allows you to write each attribute in an MQTT message payload into a separate
- // DynamoDB column.
- DynamoDBv2 *DynamoDBv2Action `locationName:"dynamoDBv2" type:"structure"`
- // Write data to an Amazon Elasticsearch Service domain.
- Elasticsearch *ElasticsearchAction `locationName:"elasticsearch" type:"structure"`
- // Write to an Amazon Kinesis Firehose stream.
- Firehose *FirehoseAction `locationName:"firehose" type:"structure"`
- // Sends message data to an AWS IoT Analytics channel.
- IotAnalytics *IotAnalyticsAction `locationName:"iotAnalytics" type:"structure"`
- // Sends an input to an AWS IoT Events detector.
- IotEvents *IotEventsAction `locationName:"iotEvents" type:"structure"`
- // Write data to an Amazon Kinesis stream.
- Kinesis *KinesisAction `locationName:"kinesis" type:"structure"`
- // Invoke a Lambda function.
- Lambda *LambdaAction `locationName:"lambda" type:"structure"`
- // Publish to another MQTT topic.
- Republish *RepublishAction `locationName:"republish" type:"structure"`
- // Write to an Amazon S3 bucket.
- S3 *S3Action `locationName:"s3" type:"structure"`
- // Send a message to a Salesforce IoT Cloud Input Stream.
- Salesforce *SalesforceAction `locationName:"salesforce" type:"structure"`
- // Publish to an Amazon SNS topic.
- Sns *SnsAction `locationName:"sns" type:"structure"`
- // Publish to an Amazon SQS queue.
- Sqs *SqsAction `locationName:"sqs" type:"structure"`
- // Starts execution of a Step Functions state machine.
- StepFunctions *StepFunctionsAction `locationName:"stepFunctions" type:"structure"`
- }
- // String returns the string representation
- func (s Action) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Action) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Action) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Action"}
- if s.CloudwatchAlarm != nil {
- if err := s.CloudwatchAlarm.Validate(); err != nil {
- invalidParams.AddNested("CloudwatchAlarm", err.(request.ErrInvalidParams))
- }
- }
- if s.CloudwatchMetric != nil {
- if err := s.CloudwatchMetric.Validate(); err != nil {
- invalidParams.AddNested("CloudwatchMetric", err.(request.ErrInvalidParams))
- }
- }
- if s.DynamoDB != nil {
- if err := s.DynamoDB.Validate(); err != nil {
- invalidParams.AddNested("DynamoDB", err.(request.ErrInvalidParams))
- }
- }
- if s.DynamoDBv2 != nil {
- if err := s.DynamoDBv2.Validate(); err != nil {
- invalidParams.AddNested("DynamoDBv2", err.(request.ErrInvalidParams))
- }
- }
- if s.Elasticsearch != nil {
- if err := s.Elasticsearch.Validate(); err != nil {
- invalidParams.AddNested("Elasticsearch", err.(request.ErrInvalidParams))
- }
- }
- if s.Firehose != nil {
- if err := s.Firehose.Validate(); err != nil {
- invalidParams.AddNested("Firehose", err.(request.ErrInvalidParams))
- }
- }
- if s.IotEvents != nil {
- if err := s.IotEvents.Validate(); err != nil {
- invalidParams.AddNested("IotEvents", err.(request.ErrInvalidParams))
- }
- }
- if s.Kinesis != nil {
- if err := s.Kinesis.Validate(); err != nil {
- invalidParams.AddNested("Kinesis", err.(request.ErrInvalidParams))
- }
- }
- if s.Lambda != nil {
- if err := s.Lambda.Validate(); err != nil {
- invalidParams.AddNested("Lambda", err.(request.ErrInvalidParams))
- }
- }
- if s.Republish != nil {
- if err := s.Republish.Validate(); err != nil {
- invalidParams.AddNested("Republish", err.(request.ErrInvalidParams))
- }
- }
- if s.S3 != nil {
- if err := s.S3.Validate(); err != nil {
- invalidParams.AddNested("S3", err.(request.ErrInvalidParams))
- }
- }
- if s.Salesforce != nil {
- if err := s.Salesforce.Validate(); err != nil {
- invalidParams.AddNested("Salesforce", err.(request.ErrInvalidParams))
- }
- }
- if s.Sns != nil {
- if err := s.Sns.Validate(); err != nil {
- invalidParams.AddNested("Sns", err.(request.ErrInvalidParams))
- }
- }
- if s.Sqs != nil {
- if err := s.Sqs.Validate(); err != nil {
- invalidParams.AddNested("Sqs", err.(request.ErrInvalidParams))
- }
- }
- if s.StepFunctions != nil {
- if err := s.StepFunctions.Validate(); err != nil {
- invalidParams.AddNested("StepFunctions", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCloudwatchAlarm sets the CloudwatchAlarm field's value.
- func (s *Action) SetCloudwatchAlarm(v *CloudwatchAlarmAction) *Action {
- s.CloudwatchAlarm = v
- return s
- }
- // SetCloudwatchMetric sets the CloudwatchMetric field's value.
- func (s *Action) SetCloudwatchMetric(v *CloudwatchMetricAction) *Action {
- s.CloudwatchMetric = v
- return s
- }
- // SetDynamoDB sets the DynamoDB field's value.
- func (s *Action) SetDynamoDB(v *DynamoDBAction) *Action {
- s.DynamoDB = v
- return s
- }
- // SetDynamoDBv2 sets the DynamoDBv2 field's value.
- func (s *Action) SetDynamoDBv2(v *DynamoDBv2Action) *Action {
- s.DynamoDBv2 = v
- return s
- }
- // SetElasticsearch sets the Elasticsearch field's value.
- func (s *Action) SetElasticsearch(v *ElasticsearchAction) *Action {
- s.Elasticsearch = v
- return s
- }
- // SetFirehose sets the Firehose field's value.
- func (s *Action) SetFirehose(v *FirehoseAction) *Action {
- s.Firehose = v
- return s
- }
- // SetIotAnalytics sets the IotAnalytics field's value.
- func (s *Action) SetIotAnalytics(v *IotAnalyticsAction) *Action {
- s.IotAnalytics = v
- return s
- }
- // SetIotEvents sets the IotEvents field's value.
- func (s *Action) SetIotEvents(v *IotEventsAction) *Action {
- s.IotEvents = v
- return s
- }
- // SetKinesis sets the Kinesis field's value.
- func (s *Action) SetKinesis(v *KinesisAction) *Action {
- s.Kinesis = v
- return s
- }
- // SetLambda sets the Lambda field's value.
- func (s *Action) SetLambda(v *LambdaAction) *Action {
- s.Lambda = v
- return s
- }
- // SetRepublish sets the Republish field's value.
- func (s *Action) SetRepublish(v *RepublishAction) *Action {
- s.Republish = v
- return s
- }
- // SetS3 sets the S3 field's value.
- func (s *Action) SetS3(v *S3Action) *Action {
- s.S3 = v
- return s
- }
- // SetSalesforce sets the Salesforce field's value.
- func (s *Action) SetSalesforce(v *SalesforceAction) *Action {
- s.Salesforce = v
- return s
- }
- // SetSns sets the Sns field's value.
- func (s *Action) SetSns(v *SnsAction) *Action {
- s.Sns = v
- return s
- }
- // SetSqs sets the Sqs field's value.
- func (s *Action) SetSqs(v *SqsAction) *Action {
- s.Sqs = v
- return s
- }
- // SetStepFunctions sets the StepFunctions field's value.
- func (s *Action) SetStepFunctions(v *StepFunctionsAction) *Action {
- s.StepFunctions = v
- return s
- }
- // Information about an active Device Defender security profile behavior violation.
- type ActiveViolation struct {
- _ struct{} `type:"structure"`
- // The behavior which is being violated.
- Behavior *Behavior `locationName:"behavior" type:"structure"`
- // The time the most recent violation occurred.
- LastViolationTime *time.Time `locationName:"lastViolationTime" type:"timestamp"`
- // The value of the metric (the measurement) which caused the most recent violation.
- LastViolationValue *MetricValue `locationName:"lastViolationValue" type:"structure"`
- // The security profile whose behavior is in violation.
- SecurityProfileName *string `locationName:"securityProfileName" min:"1" type:"string"`
- // The name of the thing responsible for the active violation.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- // The ID of the active violation.
- ViolationId *string `locationName:"violationId" min:"1" type:"string"`
- // The time the violation started.
- ViolationStartTime *time.Time `locationName:"violationStartTime" type:"timestamp"`
- }
- // String returns the string representation
- func (s ActiveViolation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActiveViolation) GoString() string {
- return s.String()
- }
- // SetBehavior sets the Behavior field's value.
- func (s *ActiveViolation) SetBehavior(v *Behavior) *ActiveViolation {
- s.Behavior = v
- return s
- }
- // SetLastViolationTime sets the LastViolationTime field's value.
- func (s *ActiveViolation) SetLastViolationTime(v time.Time) *ActiveViolation {
- s.LastViolationTime = &v
- return s
- }
- // SetLastViolationValue sets the LastViolationValue field's value.
- func (s *ActiveViolation) SetLastViolationValue(v *MetricValue) *ActiveViolation {
- s.LastViolationValue = v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *ActiveViolation) SetSecurityProfileName(v string) *ActiveViolation {
- s.SecurityProfileName = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *ActiveViolation) SetThingName(v string) *ActiveViolation {
- s.ThingName = &v
- return s
- }
- // SetViolationId sets the ViolationId field's value.
- func (s *ActiveViolation) SetViolationId(v string) *ActiveViolation {
- s.ViolationId = &v
- return s
- }
- // SetViolationStartTime sets the ViolationStartTime field's value.
- func (s *ActiveViolation) SetViolationStartTime(v time.Time) *ActiveViolation {
- s.ViolationStartTime = &v
- return s
- }
- type AddThingToBillingGroupInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the billing group.
- BillingGroupArn *string `locationName:"billingGroupArn" type:"string"`
- // The name of the billing group.
- BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"`
- // The ARN of the thing to be added to the billing group.
- ThingArn *string `locationName:"thingArn" type:"string"`
- // The name of the thing to be added to the billing group.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s AddThingToBillingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddThingToBillingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddThingToBillingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddThingToBillingGroupInput"}
- if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1))
- }
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBillingGroupArn sets the BillingGroupArn field's value.
- func (s *AddThingToBillingGroupInput) SetBillingGroupArn(v string) *AddThingToBillingGroupInput {
- s.BillingGroupArn = &v
- return s
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *AddThingToBillingGroupInput) SetBillingGroupName(v string) *AddThingToBillingGroupInput {
- s.BillingGroupName = &v
- return s
- }
- // SetThingArn sets the ThingArn field's value.
- func (s *AddThingToBillingGroupInput) SetThingArn(v string) *AddThingToBillingGroupInput {
- s.ThingArn = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *AddThingToBillingGroupInput) SetThingName(v string) *AddThingToBillingGroupInput {
- s.ThingName = &v
- return s
- }
- type AddThingToBillingGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AddThingToBillingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddThingToBillingGroupOutput) GoString() string {
- return s.String()
- }
- type AddThingToThingGroupInput struct {
- _ struct{} `type:"structure"`
- // Override dynamic thing groups with static thing groups when 10-group limit
- // is reached. If a thing belongs to 10 thing groups, and one or more of those
- // groups are dynamic thing groups, adding a thing to a static group removes
- // the thing from the last dynamic group.
- OverrideDynamicGroups *bool `locationName:"overrideDynamicGroups" type:"boolean"`
- // The ARN of the thing to add to a group.
- ThingArn *string `locationName:"thingArn" type:"string"`
- // The ARN of the group to which you are adding a thing.
- ThingGroupArn *string `locationName:"thingGroupArn" type:"string"`
- // The name of the group to which you are adding a thing.
- ThingGroupName *string `locationName:"thingGroupName" min:"1" type:"string"`
- // The name of the thing to add to a group.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s AddThingToThingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddThingToThingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddThingToThingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddThingToThingGroupInput"}
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetOverrideDynamicGroups sets the OverrideDynamicGroups field's value.
- func (s *AddThingToThingGroupInput) SetOverrideDynamicGroups(v bool) *AddThingToThingGroupInput {
- s.OverrideDynamicGroups = &v
- return s
- }
- // SetThingArn sets the ThingArn field's value.
- func (s *AddThingToThingGroupInput) SetThingArn(v string) *AddThingToThingGroupInput {
- s.ThingArn = &v
- return s
- }
- // SetThingGroupArn sets the ThingGroupArn field's value.
- func (s *AddThingToThingGroupInput) SetThingGroupArn(v string) *AddThingToThingGroupInput {
- s.ThingGroupArn = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *AddThingToThingGroupInput) SetThingGroupName(v string) *AddThingToThingGroupInput {
- s.ThingGroupName = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *AddThingToThingGroupInput) SetThingName(v string) *AddThingToThingGroupInput {
- s.ThingName = &v
- return s
- }
- type AddThingToThingGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AddThingToThingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddThingToThingGroupOutput) GoString() string {
- return s.String()
- }
- // A structure containing the alert target ARN and the role ARN.
- type AlertTarget struct {
- _ struct{} `type:"structure"`
- // The ARN of the notification target to which alerts are sent.
- //
- // AlertTargetArn is a required field
- AlertTargetArn *string `locationName:"alertTargetArn" type:"string" required:"true"`
- // The ARN of the role that grants permission to send alerts to the notification
- // target.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AlertTarget) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AlertTarget) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AlertTarget) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AlertTarget"}
- if s.AlertTargetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("AlertTargetArn"))
- }
- 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
- }
- // SetAlertTargetArn sets the AlertTargetArn field's value.
- func (s *AlertTarget) SetAlertTargetArn(v string) *AlertTarget {
- s.AlertTargetArn = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *AlertTarget) SetRoleArn(v string) *AlertTarget {
- s.RoleArn = &v
- return s
- }
- // Contains information that allowed the authorization.
- type Allowed struct {
- _ struct{} `type:"structure"`
- // A list of policies that allowed the authentication.
- Policies []*Policy `locationName:"policies" type:"list"`
- }
- // String returns the string representation
- func (s Allowed) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Allowed) GoString() string {
- return s.String()
- }
- // SetPolicies sets the Policies field's value.
- func (s *Allowed) SetPolicies(v []*Policy) *Allowed {
- s.Policies = v
- return s
- }
- type AssociateTargetsWithJobInput struct {
- _ struct{} `type:"structure"`
- // An optional comment string describing why the job was associated with the
- // targets.
- Comment *string `locationName:"comment" type:"string"`
- // The unique identifier you assigned to this job when it was created.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- // A list of thing group ARNs that define the targets of the job.
- //
- // Targets is a required field
- Targets []*string `locationName:"targets" min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s AssociateTargetsWithJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociateTargetsWithJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AssociateTargetsWithJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssociateTargetsWithJobInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if s.Targets == nil {
- invalidParams.Add(request.NewErrParamRequired("Targets"))
- }
- if s.Targets != nil && len(s.Targets) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Targets", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetComment sets the Comment field's value.
- func (s *AssociateTargetsWithJobInput) SetComment(v string) *AssociateTargetsWithJobInput {
- s.Comment = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *AssociateTargetsWithJobInput) SetJobId(v string) *AssociateTargetsWithJobInput {
- s.JobId = &v
- return s
- }
- // SetTargets sets the Targets field's value.
- func (s *AssociateTargetsWithJobInput) SetTargets(v []*string) *AssociateTargetsWithJobInput {
- s.Targets = v
- return s
- }
- type AssociateTargetsWithJobOutput struct {
- _ struct{} `type:"structure"`
- // A short text description of the job.
- Description *string `locationName:"description" type:"string"`
- // An ARN identifying the job.
- JobArn *string `locationName:"jobArn" type:"string"`
- // The unique identifier you assigned to this job when it was created.
- JobId *string `locationName:"jobId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s AssociateTargetsWithJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociateTargetsWithJobOutput) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *AssociateTargetsWithJobOutput) SetDescription(v string) *AssociateTargetsWithJobOutput {
- s.Description = &v
- return s
- }
- // SetJobArn sets the JobArn field's value.
- func (s *AssociateTargetsWithJobOutput) SetJobArn(v string) *AssociateTargetsWithJobOutput {
- s.JobArn = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *AssociateTargetsWithJobOutput) SetJobId(v string) *AssociateTargetsWithJobOutput {
- s.JobId = &v
- return s
- }
- type AttachPolicyInput struct {
- _ struct{} `type:"structure"`
- // The name of the policy to attach.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // The identity (https://docs.aws.amazon.com/iot/latest/developerguide/iot-security-identity.html)
- // to which the policy is attached.
- //
- // Target is a required field
- Target *string `locationName:"target" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AttachPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AttachPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AttachPolicyInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if s.Target == nil {
- invalidParams.Add(request.NewErrParamRequired("Target"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *AttachPolicyInput) SetPolicyName(v string) *AttachPolicyInput {
- s.PolicyName = &v
- return s
- }
- // SetTarget sets the Target field's value.
- func (s *AttachPolicyInput) SetTarget(v string) *AttachPolicyInput {
- s.Target = &v
- return s
- }
- type AttachPolicyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AttachPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachPolicyOutput) GoString() string {
- return s.String()
- }
- // The input for the AttachPrincipalPolicy operation.
- type AttachPrincipalPolicyInput struct {
- _ struct{} `type:"structure"`
- // The policy name.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // The principal, which can be a certificate ARN (as returned from the CreateCertificate
- // operation) or an Amazon Cognito ID.
- //
- // Principal is a required field
- Principal *string `location:"header" locationName:"x-amzn-iot-principal" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AttachPrincipalPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachPrincipalPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AttachPrincipalPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AttachPrincipalPolicyInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if s.Principal == nil {
- invalidParams.Add(request.NewErrParamRequired("Principal"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *AttachPrincipalPolicyInput) SetPolicyName(v string) *AttachPrincipalPolicyInput {
- s.PolicyName = &v
- return s
- }
- // SetPrincipal sets the Principal field's value.
- func (s *AttachPrincipalPolicyInput) SetPrincipal(v string) *AttachPrincipalPolicyInput {
- s.Principal = &v
- return s
- }
- type AttachPrincipalPolicyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AttachPrincipalPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachPrincipalPolicyOutput) GoString() string {
- return s.String()
- }
- type AttachSecurityProfileInput struct {
- _ struct{} `type:"structure"`
- // The security profile that is attached.
- //
- // SecurityProfileName is a required field
- SecurityProfileName *string `location:"uri" locationName:"securityProfileName" min:"1" type:"string" required:"true"`
- // The ARN of the target (thing group) to which the security profile is attached.
- //
- // SecurityProfileTargetArn is a required field
- SecurityProfileTargetArn *string `location:"querystring" locationName:"securityProfileTargetArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AttachSecurityProfileInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachSecurityProfileInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AttachSecurityProfileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AttachSecurityProfileInput"}
- if s.SecurityProfileName == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityProfileName"))
- }
- if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
- }
- if s.SecurityProfileTargetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityProfileTargetArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *AttachSecurityProfileInput) SetSecurityProfileName(v string) *AttachSecurityProfileInput {
- s.SecurityProfileName = &v
- return s
- }
- // SetSecurityProfileTargetArn sets the SecurityProfileTargetArn field's value.
- func (s *AttachSecurityProfileInput) SetSecurityProfileTargetArn(v string) *AttachSecurityProfileInput {
- s.SecurityProfileTargetArn = &v
- return s
- }
- type AttachSecurityProfileOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AttachSecurityProfileOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachSecurityProfileOutput) GoString() string {
- return s.String()
- }
- // The input for the AttachThingPrincipal operation.
- type AttachThingPrincipalInput struct {
- _ struct{} `type:"structure"`
- // The principal, such as a certificate or other credential.
- //
- // Principal is a required field
- Principal *string `location:"header" locationName:"x-amzn-principal" type:"string" required:"true"`
- // The name of the thing.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AttachThingPrincipalInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachThingPrincipalInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AttachThingPrincipalInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AttachThingPrincipalInput"}
- if s.Principal == nil {
- invalidParams.Add(request.NewErrParamRequired("Principal"))
- }
- 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
- }
- // SetPrincipal sets the Principal field's value.
- func (s *AttachThingPrincipalInput) SetPrincipal(v string) *AttachThingPrincipalInput {
- s.Principal = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *AttachThingPrincipalInput) SetThingName(v string) *AttachThingPrincipalInput {
- s.ThingName = &v
- return s
- }
- // The output from the AttachThingPrincipal operation.
- type AttachThingPrincipalOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AttachThingPrincipalOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachThingPrincipalOutput) GoString() string {
- return s.String()
- }
- // The attribute payload.
- type AttributePayload struct {
- _ struct{} `type:"structure"`
- // A JSON string containing up to three key-value pair in JSON format. For example:
- //
- // {\"attributes\":{\"string1\":\"string2\"}}
- Attributes map[string]*string `locationName:"attributes" type:"map"`
- // Specifies whether the list of attributes provided in the AttributePayload
- // is merged with the attributes stored in the registry, instead of overwriting
- // them.
- //
- // To remove an attribute, call UpdateThing with an empty attribute value.
- //
- // The merge attribute is only valid when calling UpdateThing.
- Merge *bool `locationName:"merge" type:"boolean"`
- }
- // String returns the string representation
- func (s AttributePayload) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttributePayload) GoString() string {
- return s.String()
- }
- // SetAttributes sets the Attributes field's value.
- func (s *AttributePayload) SetAttributes(v map[string]*string) *AttributePayload {
- s.Attributes = v
- return s
- }
- // SetMerge sets the Merge field's value.
- func (s *AttributePayload) SetMerge(v bool) *AttributePayload {
- s.Merge = &v
- return s
- }
- // Which audit checks are enabled and disabled for this account.
- type AuditCheckConfiguration struct {
- _ struct{} `type:"structure"`
- // True if this audit check is enabled for this account.
- Enabled *bool `locationName:"enabled" type:"boolean"`
- }
- // String returns the string representation
- func (s AuditCheckConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuditCheckConfiguration) GoString() string {
- return s.String()
- }
- // SetEnabled sets the Enabled field's value.
- func (s *AuditCheckConfiguration) SetEnabled(v bool) *AuditCheckConfiguration {
- s.Enabled = &v
- return s
- }
- // Information about the audit check.
- type AuditCheckDetails struct {
- _ struct{} `type:"structure"`
- // True if the check completed and found all resources compliant.
- CheckCompliant *bool `locationName:"checkCompliant" type:"boolean"`
- // The completion status of this check, one of "IN_PROGRESS", "WAITING_FOR_DATA_COLLECTION",
- // "CANCELED", "COMPLETED_COMPLIANT", "COMPLETED_NON_COMPLIANT", or "FAILED".
- CheckRunStatus *string `locationName:"checkRunStatus" type:"string" enum:"AuditCheckRunStatus"`
- // The code of any error encountered when performing this check during this
- // audit. One of "INSUFFICIENT_PERMISSIONS", or "AUDIT_CHECK_DISABLED".
- ErrorCode *string `locationName:"errorCode" type:"string"`
- // The message associated with any error encountered when performing this check
- // during this audit.
- Message *string `locationName:"message" type:"string"`
- // The number of resources that the check found non-compliant.
- NonCompliantResourcesCount *int64 `locationName:"nonCompliantResourcesCount" type:"long"`
- // The number of resources on which the check was performed.
- TotalResourcesCount *int64 `locationName:"totalResourcesCount" type:"long"`
- }
- // String returns the string representation
- func (s AuditCheckDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuditCheckDetails) GoString() string {
- return s.String()
- }
- // SetCheckCompliant sets the CheckCompliant field's value.
- func (s *AuditCheckDetails) SetCheckCompliant(v bool) *AuditCheckDetails {
- s.CheckCompliant = &v
- return s
- }
- // SetCheckRunStatus sets the CheckRunStatus field's value.
- func (s *AuditCheckDetails) SetCheckRunStatus(v string) *AuditCheckDetails {
- s.CheckRunStatus = &v
- return s
- }
- // SetErrorCode sets the ErrorCode field's value.
- func (s *AuditCheckDetails) SetErrorCode(v string) *AuditCheckDetails {
- s.ErrorCode = &v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *AuditCheckDetails) SetMessage(v string) *AuditCheckDetails {
- s.Message = &v
- return s
- }
- // SetNonCompliantResourcesCount sets the NonCompliantResourcesCount field's value.
- func (s *AuditCheckDetails) SetNonCompliantResourcesCount(v int64) *AuditCheckDetails {
- s.NonCompliantResourcesCount = &v
- return s
- }
- // SetTotalResourcesCount sets the TotalResourcesCount field's value.
- func (s *AuditCheckDetails) SetTotalResourcesCount(v int64) *AuditCheckDetails {
- s.TotalResourcesCount = &v
- return s
- }
- // The findings (results) of the audit.
- type AuditFinding struct {
- _ struct{} `type:"structure"`
- // The audit check that generated this result.
- CheckName *string `locationName:"checkName" type:"string"`
- // The time the result (finding) was discovered.
- FindingTime *time.Time `locationName:"findingTime" type:"timestamp"`
- // The resource that was found to be non-compliant with the audit check.
- NonCompliantResource *NonCompliantResource `locationName:"nonCompliantResource" type:"structure"`
- // The reason the resource was non-compliant.
- ReasonForNonCompliance *string `locationName:"reasonForNonCompliance" type:"string"`
- // A code which indicates the reason that the resource was non-compliant.
- ReasonForNonComplianceCode *string `locationName:"reasonForNonComplianceCode" type:"string"`
- // The list of related resources.
- RelatedResources []*RelatedResource `locationName:"relatedResources" type:"list"`
- // The severity of the result (finding).
- Severity *string `locationName:"severity" type:"string" enum:"AuditFindingSeverity"`
- // The ID of the audit that generated this result (finding)
- TaskId *string `locationName:"taskId" min:"1" type:"string"`
- // The time the audit started.
- TaskStartTime *time.Time `locationName:"taskStartTime" type:"timestamp"`
- }
- // String returns the string representation
- func (s AuditFinding) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuditFinding) GoString() string {
- return s.String()
- }
- // SetCheckName sets the CheckName field's value.
- func (s *AuditFinding) SetCheckName(v string) *AuditFinding {
- s.CheckName = &v
- return s
- }
- // SetFindingTime sets the FindingTime field's value.
- func (s *AuditFinding) SetFindingTime(v time.Time) *AuditFinding {
- s.FindingTime = &v
- return s
- }
- // SetNonCompliantResource sets the NonCompliantResource field's value.
- func (s *AuditFinding) SetNonCompliantResource(v *NonCompliantResource) *AuditFinding {
- s.NonCompliantResource = v
- return s
- }
- // SetReasonForNonCompliance sets the ReasonForNonCompliance field's value.
- func (s *AuditFinding) SetReasonForNonCompliance(v string) *AuditFinding {
- s.ReasonForNonCompliance = &v
- return s
- }
- // SetReasonForNonComplianceCode sets the ReasonForNonComplianceCode field's value.
- func (s *AuditFinding) SetReasonForNonComplianceCode(v string) *AuditFinding {
- s.ReasonForNonComplianceCode = &v
- return s
- }
- // SetRelatedResources sets the RelatedResources field's value.
- func (s *AuditFinding) SetRelatedResources(v []*RelatedResource) *AuditFinding {
- s.RelatedResources = v
- return s
- }
- // SetSeverity sets the Severity field's value.
- func (s *AuditFinding) SetSeverity(v string) *AuditFinding {
- s.Severity = &v
- return s
- }
- // SetTaskId sets the TaskId field's value.
- func (s *AuditFinding) SetTaskId(v string) *AuditFinding {
- s.TaskId = &v
- return s
- }
- // SetTaskStartTime sets the TaskStartTime field's value.
- func (s *AuditFinding) SetTaskStartTime(v time.Time) *AuditFinding {
- s.TaskStartTime = &v
- return s
- }
- // Information about the targets to which audit notifications are sent.
- type AuditNotificationTarget struct {
- _ struct{} `type:"structure"`
- // True if notifications to the target are enabled.
- Enabled *bool `locationName:"enabled" type:"boolean"`
- // The ARN of the role that grants permission to send notifications to the target.
- RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
- // The ARN of the target (SNS topic) to which audit notifications are sent.
- TargetArn *string `locationName:"targetArn" type:"string"`
- }
- // String returns the string representation
- func (s AuditNotificationTarget) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuditNotificationTarget) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AuditNotificationTarget) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AuditNotificationTarget"}
- 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 *AuditNotificationTarget) SetEnabled(v bool) *AuditNotificationTarget {
- s.Enabled = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *AuditNotificationTarget) SetRoleArn(v string) *AuditNotificationTarget {
- s.RoleArn = &v
- return s
- }
- // SetTargetArn sets the TargetArn field's value.
- func (s *AuditNotificationTarget) SetTargetArn(v string) *AuditNotificationTarget {
- s.TargetArn = &v
- return s
- }
- // The audits that were performed.
- type AuditTaskMetadata struct {
- _ struct{} `type:"structure"`
- // The ID of this audit.
- TaskId *string `locationName:"taskId" min:"1" type:"string"`
- // The status of this audit: one of "IN_PROGRESS", "COMPLETED", "FAILED" or
- // "CANCELED".
- TaskStatus *string `locationName:"taskStatus" type:"string" enum:"AuditTaskStatus"`
- // The type of this audit: one of "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".
- TaskType *string `locationName:"taskType" type:"string" enum:"AuditTaskType"`
- }
- // String returns the string representation
- func (s AuditTaskMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuditTaskMetadata) GoString() string {
- return s.String()
- }
- // SetTaskId sets the TaskId field's value.
- func (s *AuditTaskMetadata) SetTaskId(v string) *AuditTaskMetadata {
- s.TaskId = &v
- return s
- }
- // SetTaskStatus sets the TaskStatus field's value.
- func (s *AuditTaskMetadata) SetTaskStatus(v string) *AuditTaskMetadata {
- s.TaskStatus = &v
- return s
- }
- // SetTaskType sets the TaskType field's value.
- func (s *AuditTaskMetadata) SetTaskType(v string) *AuditTaskMetadata {
- s.TaskType = &v
- return s
- }
- // A collection of authorization information.
- type AuthInfo struct {
- _ struct{} `type:"structure"`
- // The type of action for which the principal is being authorized.
- ActionType *string `locationName:"actionType" type:"string" enum:"ActionType"`
- // The resources for which the principal is being authorized to perform the
- // specified action.
- Resources []*string `locationName:"resources" type:"list"`
- }
- // String returns the string representation
- func (s AuthInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthInfo) GoString() string {
- return s.String()
- }
- // SetActionType sets the ActionType field's value.
- func (s *AuthInfo) SetActionType(v string) *AuthInfo {
- s.ActionType = &v
- return s
- }
- // SetResources sets the Resources field's value.
- func (s *AuthInfo) SetResources(v []*string) *AuthInfo {
- s.Resources = v
- return s
- }
- // The authorizer result.
- type AuthResult struct {
- _ struct{} `type:"structure"`
- // The policies and statements that allowed the specified action.
- Allowed *Allowed `locationName:"allowed" type:"structure"`
- // The final authorization decision of this scenario. Multiple statements are
- // taken into account when determining the authorization decision. An explicit
- // deny statement can override multiple allow statements.
- AuthDecision *string `locationName:"authDecision" type:"string" enum:"AuthDecision"`
- // Authorization information.
- AuthInfo *AuthInfo `locationName:"authInfo" type:"structure"`
- // The policies and statements that denied the specified action.
- Denied *Denied `locationName:"denied" type:"structure"`
- // Contains any missing context values found while evaluating policy.
- MissingContextValues []*string `locationName:"missingContextValues" type:"list"`
- }
- // String returns the string representation
- func (s AuthResult) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthResult) GoString() string {
- return s.String()
- }
- // SetAllowed sets the Allowed field's value.
- func (s *AuthResult) SetAllowed(v *Allowed) *AuthResult {
- s.Allowed = v
- return s
- }
- // SetAuthDecision sets the AuthDecision field's value.
- func (s *AuthResult) SetAuthDecision(v string) *AuthResult {
- s.AuthDecision = &v
- return s
- }
- // SetAuthInfo sets the AuthInfo field's value.
- func (s *AuthResult) SetAuthInfo(v *AuthInfo) *AuthResult {
- s.AuthInfo = v
- return s
- }
- // SetDenied sets the Denied field's value.
- func (s *AuthResult) SetDenied(v *Denied) *AuthResult {
- s.Denied = v
- return s
- }
- // SetMissingContextValues sets the MissingContextValues field's value.
- func (s *AuthResult) SetMissingContextValues(v []*string) *AuthResult {
- s.MissingContextValues = v
- return s
- }
- // The authorizer description.
- type AuthorizerDescription struct {
- _ struct{} `type:"structure"`
- // The authorizer ARN.
- AuthorizerArn *string `locationName:"authorizerArn" type:"string"`
- // The authorizer's Lambda function ARN.
- AuthorizerFunctionArn *string `locationName:"authorizerFunctionArn" type:"string"`
- // The authorizer name.
- AuthorizerName *string `locationName:"authorizerName" min:"1" type:"string"`
- // The UNIX timestamp of when the authorizer was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The UNIX timestamp of when the authorizer was last updated.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // The status of the authorizer.
- Status *string `locationName:"status" type:"string" enum:"AuthorizerStatus"`
- // The key used to extract the token from the HTTP headers.
- TokenKeyName *string `locationName:"tokenKeyName" min:"1" type:"string"`
- // The public keys used to validate the token signature returned by your custom
- // authentication service.
- TokenSigningPublicKeys map[string]*string `locationName:"tokenSigningPublicKeys" type:"map"`
- }
- // String returns the string representation
- func (s AuthorizerDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthorizerDescription) GoString() string {
- return s.String()
- }
- // SetAuthorizerArn sets the AuthorizerArn field's value.
- func (s *AuthorizerDescription) SetAuthorizerArn(v string) *AuthorizerDescription {
- s.AuthorizerArn = &v
- return s
- }
- // SetAuthorizerFunctionArn sets the AuthorizerFunctionArn field's value.
- func (s *AuthorizerDescription) SetAuthorizerFunctionArn(v string) *AuthorizerDescription {
- s.AuthorizerFunctionArn = &v
- return s
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *AuthorizerDescription) SetAuthorizerName(v string) *AuthorizerDescription {
- s.AuthorizerName = &v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *AuthorizerDescription) SetCreationDate(v time.Time) *AuthorizerDescription {
- s.CreationDate = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *AuthorizerDescription) SetLastModifiedDate(v time.Time) *AuthorizerDescription {
- s.LastModifiedDate = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *AuthorizerDescription) SetStatus(v string) *AuthorizerDescription {
- s.Status = &v
- return s
- }
- // SetTokenKeyName sets the TokenKeyName field's value.
- func (s *AuthorizerDescription) SetTokenKeyName(v string) *AuthorizerDescription {
- s.TokenKeyName = &v
- return s
- }
- // SetTokenSigningPublicKeys sets the TokenSigningPublicKeys field's value.
- func (s *AuthorizerDescription) SetTokenSigningPublicKeys(v map[string]*string) *AuthorizerDescription {
- s.TokenSigningPublicKeys = v
- return s
- }
- // The authorizer summary.
- type AuthorizerSummary struct {
- _ struct{} `type:"structure"`
- // The authorizer ARN.
- AuthorizerArn *string `locationName:"authorizerArn" type:"string"`
- // The authorizer name.
- AuthorizerName *string `locationName:"authorizerName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s AuthorizerSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthorizerSummary) GoString() string {
- return s.String()
- }
- // SetAuthorizerArn sets the AuthorizerArn field's value.
- func (s *AuthorizerSummary) SetAuthorizerArn(v string) *AuthorizerSummary {
- s.AuthorizerArn = &v
- return s
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *AuthorizerSummary) SetAuthorizerName(v string) *AuthorizerSummary {
- s.AuthorizerName = &v
- return s
- }
- // Configuration for the rollout of OTA updates.
- type AwsJobExecutionsRolloutConfig struct {
- _ struct{} `type:"structure"`
- // The maximum number of OTA update job executions started per minute.
- MaximumPerMinute *int64 `locationName:"maximumPerMinute" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s AwsJobExecutionsRolloutConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AwsJobExecutionsRolloutConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AwsJobExecutionsRolloutConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AwsJobExecutionsRolloutConfig"}
- if s.MaximumPerMinute != nil && *s.MaximumPerMinute < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaximumPerMinute", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaximumPerMinute sets the MaximumPerMinute field's value.
- func (s *AwsJobExecutionsRolloutConfig) SetMaximumPerMinute(v int64) *AwsJobExecutionsRolloutConfig {
- s.MaximumPerMinute = &v
- return s
- }
- // A Device Defender security profile behavior.
- type Behavior struct {
- _ struct{} `type:"structure"`
- // The criteria that determine if a device is behaving normally in regard to
- // the metric.
- Criteria *BehaviorCriteria `locationName:"criteria" type:"structure"`
- // What is measured by the behavior.
- Metric *string `locationName:"metric" type:"string"`
- // The name you have given to the behavior.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Behavior) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Behavior) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Behavior) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Behavior"}
- 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
- }
- // SetCriteria sets the Criteria field's value.
- func (s *Behavior) SetCriteria(v *BehaviorCriteria) *Behavior {
- s.Criteria = v
- return s
- }
- // SetMetric sets the Metric field's value.
- func (s *Behavior) SetMetric(v string) *Behavior {
- s.Metric = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Behavior) SetName(v string) *Behavior {
- s.Name = &v
- return s
- }
- // The criteria by which the behavior is determined to be normal.
- type BehaviorCriteria struct {
- _ struct{} `type:"structure"`
- // The operator that relates the thing measured (metric) to the criteria (value).
- ComparisonOperator *string `locationName:"comparisonOperator" type:"string" enum:"ComparisonOperator"`
- // Use this to specify the period of time over which the behavior is evaluated,
- // for those criteria which have a time dimension (for example, NUM_MESSAGES_SENT).
- DurationSeconds *int64 `locationName:"durationSeconds" type:"integer"`
- // The value to be compared with the metric.
- Value *MetricValue `locationName:"value" type:"structure"`
- }
- // String returns the string representation
- func (s BehaviorCriteria) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BehaviorCriteria) GoString() string {
- return s.String()
- }
- // SetComparisonOperator sets the ComparisonOperator field's value.
- func (s *BehaviorCriteria) SetComparisonOperator(v string) *BehaviorCriteria {
- s.ComparisonOperator = &v
- return s
- }
- // SetDurationSeconds sets the DurationSeconds field's value.
- func (s *BehaviorCriteria) SetDurationSeconds(v int64) *BehaviorCriteria {
- s.DurationSeconds = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *BehaviorCriteria) SetValue(v *MetricValue) *BehaviorCriteria {
- s.Value = v
- return s
- }
- // Additional information about the billing group.
- type BillingGroupMetadata struct {
- _ struct{} `type:"structure"`
- // The date the billing group was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- }
- // String returns the string representation
- func (s BillingGroupMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BillingGroupMetadata) GoString() string {
- return s.String()
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *BillingGroupMetadata) SetCreationDate(v time.Time) *BillingGroupMetadata {
- s.CreationDate = &v
- return s
- }
- // The properties of a billing group.
- type BillingGroupProperties struct {
- _ struct{} `type:"structure"`
- // The description of the billing group.
- BillingGroupDescription *string `locationName:"billingGroupDescription" type:"string"`
- }
- // String returns the string representation
- func (s BillingGroupProperties) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BillingGroupProperties) GoString() string {
- return s.String()
- }
- // SetBillingGroupDescription sets the BillingGroupDescription field's value.
- func (s *BillingGroupProperties) SetBillingGroupDescription(v string) *BillingGroupProperties {
- s.BillingGroupDescription = &v
- return s
- }
- // A CA certificate.
- type CACertificate struct {
- _ struct{} `type:"structure"`
- // The ARN of the CA certificate.
- CertificateArn *string `locationName:"certificateArn" type:"string"`
- // The ID of the CA certificate.
- CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
- // The date the CA certificate was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The status of the CA certificate.
- //
- // The status value REGISTER_INACTIVE is deprecated and should not be used.
- Status *string `locationName:"status" type:"string" enum:"CACertificateStatus"`
- }
- // String returns the string representation
- func (s CACertificate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CACertificate) GoString() string {
- return s.String()
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *CACertificate) SetCertificateArn(v string) *CACertificate {
- s.CertificateArn = &v
- return s
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *CACertificate) SetCertificateId(v string) *CACertificate {
- s.CertificateId = &v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *CACertificate) SetCreationDate(v time.Time) *CACertificate {
- s.CreationDate = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *CACertificate) SetStatus(v string) *CACertificate {
- s.Status = &v
- return s
- }
- // Describes a CA certificate.
- type CACertificateDescription struct {
- _ struct{} `type:"structure"`
- // Whether the CA certificate configured for auto registration of device certificates.
- // Valid values are "ENABLE" and "DISABLE"
- AutoRegistrationStatus *string `locationName:"autoRegistrationStatus" type:"string" enum:"AutoRegistrationStatus"`
- // The CA certificate ARN.
- CertificateArn *string `locationName:"certificateArn" type:"string"`
- // The CA certificate ID.
- CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
- // The CA certificate data, in PEM format.
- CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"`
- // The date the CA certificate was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The customer version of the CA certificate.
- CustomerVersion *int64 `locationName:"customerVersion" min:"1" type:"integer"`
- // The generation ID of the CA certificate.
- GenerationId *string `locationName:"generationId" type:"string"`
- // The date the CA certificate was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // The owner of the CA certificate.
- OwnedBy *string `locationName:"ownedBy" min:"12" type:"string"`
- // The status of a CA certificate.
- Status *string `locationName:"status" type:"string" enum:"CACertificateStatus"`
- // When the CA certificate is valid.
- Validity *CertificateValidity `locationName:"validity" type:"structure"`
- }
- // String returns the string representation
- func (s CACertificateDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CACertificateDescription) GoString() string {
- return s.String()
- }
- // SetAutoRegistrationStatus sets the AutoRegistrationStatus field's value.
- func (s *CACertificateDescription) SetAutoRegistrationStatus(v string) *CACertificateDescription {
- s.AutoRegistrationStatus = &v
- return s
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *CACertificateDescription) SetCertificateArn(v string) *CACertificateDescription {
- s.CertificateArn = &v
- return s
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *CACertificateDescription) SetCertificateId(v string) *CACertificateDescription {
- s.CertificateId = &v
- return s
- }
- // SetCertificatePem sets the CertificatePem field's value.
- func (s *CACertificateDescription) SetCertificatePem(v string) *CACertificateDescription {
- s.CertificatePem = &v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *CACertificateDescription) SetCreationDate(v time.Time) *CACertificateDescription {
- s.CreationDate = &v
- return s
- }
- // SetCustomerVersion sets the CustomerVersion field's value.
- func (s *CACertificateDescription) SetCustomerVersion(v int64) *CACertificateDescription {
- s.CustomerVersion = &v
- return s
- }
- // SetGenerationId sets the GenerationId field's value.
- func (s *CACertificateDescription) SetGenerationId(v string) *CACertificateDescription {
- s.GenerationId = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *CACertificateDescription) SetLastModifiedDate(v time.Time) *CACertificateDescription {
- s.LastModifiedDate = &v
- return s
- }
- // SetOwnedBy sets the OwnedBy field's value.
- func (s *CACertificateDescription) SetOwnedBy(v string) *CACertificateDescription {
- s.OwnedBy = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *CACertificateDescription) SetStatus(v string) *CACertificateDescription {
- s.Status = &v
- return s
- }
- // SetValidity sets the Validity field's value.
- func (s *CACertificateDescription) SetValidity(v *CertificateValidity) *CACertificateDescription {
- s.Validity = v
- return s
- }
- type CancelAuditTaskInput struct {
- _ struct{} `type:"structure"`
- // The ID of the audit you want to cancel. You can only cancel an audit that
- // is "IN_PROGRESS".
- //
- // TaskId is a required field
- TaskId *string `location:"uri" locationName:"taskId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CancelAuditTaskInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelAuditTaskInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CancelAuditTaskInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelAuditTaskInput"}
- if s.TaskId == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskId"))
- }
- if s.TaskId != nil && len(*s.TaskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTaskId sets the TaskId field's value.
- func (s *CancelAuditTaskInput) SetTaskId(v string) *CancelAuditTaskInput {
- s.TaskId = &v
- return s
- }
- type CancelAuditTaskOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CancelAuditTaskOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelAuditTaskOutput) GoString() string {
- return s.String()
- }
- // The input for the CancelCertificateTransfer operation.
- type CancelCertificateTransferInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate. (The last part of the certificate ARN contains
- // the certificate ID.)
- //
- // CertificateId is a required field
- CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CancelCertificateTransferInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelCertificateTransferInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CancelCertificateTransferInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelCertificateTransferInput"}
- if s.CertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateId"))
- }
- if s.CertificateId != nil && len(*s.CertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *CancelCertificateTransferInput) SetCertificateId(v string) *CancelCertificateTransferInput {
- s.CertificateId = &v
- return s
- }
- type CancelCertificateTransferOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CancelCertificateTransferOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelCertificateTransferOutput) GoString() string {
- return s.String()
- }
- type CancelJobExecutionInput struct {
- _ struct{} `type:"structure"`
- // (Optional) The expected current version of the job execution. Each time you
- // update the job execution, its version is incremented. If the version of the
- // job execution stored in Jobs does not match, the update is rejected with
- // a VersionMismatch error, and an ErrorResponse that contains the current job
- // execution status data is returned. (This makes it unnecessary to perform
- // a separate DescribeJobExecution request in order to obtain the job execution
- // status data.)
- ExpectedVersion *int64 `locationName:"expectedVersion" type:"long"`
- // (Optional) If true the job execution will be canceled if it has status IN_PROGRESS
- // or QUEUED, otherwise the job execution will be canceled only if it has status
- // QUEUED. If you attempt to cancel a job execution that is IN_PROGRESS, and
- // you do not set force to true, then an InvalidStateTransitionException will
- // be thrown. The default is false.
- //
- // Canceling a job execution which is "IN_PROGRESS", will cause the device to
- // be unable to update the job execution status. Use caution and ensure that
- // the device is able to recover to a valid state.
- Force *bool `location:"querystring" locationName:"force" type:"boolean"`
- // The ID of the job to be canceled.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- // A collection of name/value pairs that describe the status of the job execution.
- // If not specified, the statusDetails are unchanged. You can specify at most
- // 10 name/value pairs.
- StatusDetails map[string]*string `locationName:"statusDetails" type:"map"`
- // The name of the thing whose execution of the job will be canceled.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CancelJobExecutionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelJobExecutionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CancelJobExecutionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelJobExecutionInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- 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
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *CancelJobExecutionInput) SetExpectedVersion(v int64) *CancelJobExecutionInput {
- s.ExpectedVersion = &v
- return s
- }
- // SetForce sets the Force field's value.
- func (s *CancelJobExecutionInput) SetForce(v bool) *CancelJobExecutionInput {
- s.Force = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *CancelJobExecutionInput) SetJobId(v string) *CancelJobExecutionInput {
- s.JobId = &v
- return s
- }
- // SetStatusDetails sets the StatusDetails field's value.
- func (s *CancelJobExecutionInput) SetStatusDetails(v map[string]*string) *CancelJobExecutionInput {
- s.StatusDetails = v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *CancelJobExecutionInput) SetThingName(v string) *CancelJobExecutionInput {
- s.ThingName = &v
- return s
- }
- type CancelJobExecutionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CancelJobExecutionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelJobExecutionOutput) GoString() string {
- return s.String()
- }
- type CancelJobInput struct {
- _ struct{} `type:"structure"`
- // An optional comment string describing why the job was canceled.
- Comment *string `locationName:"comment" type:"string"`
- // (Optional) If true job executions with status "IN_PROGRESS" and "QUEUED"
- // are canceled, otherwise only job executions with status "QUEUED" are canceled.
- // The default is false.
- //
- // Canceling a job which is "IN_PROGRESS", will cause a device which is executing
- // the job to be unable to update the job execution status. Use caution and
- // ensure that each device executing a job which is canceled is able to recover
- // to a valid state.
- Force *bool `location:"querystring" locationName:"force" type:"boolean"`
- // The unique identifier you assigned to this job when it was created.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- // (Optional)A reason code string that explains why the job was canceled.
- ReasonCode *string `locationName:"reasonCode" type:"string"`
- }
- // String returns the string representation
- func (s CancelJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CancelJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelJobInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetComment sets the Comment field's value.
- func (s *CancelJobInput) SetComment(v string) *CancelJobInput {
- s.Comment = &v
- return s
- }
- // SetForce sets the Force field's value.
- func (s *CancelJobInput) SetForce(v bool) *CancelJobInput {
- s.Force = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *CancelJobInput) SetJobId(v string) *CancelJobInput {
- s.JobId = &v
- return s
- }
- // SetReasonCode sets the ReasonCode field's value.
- func (s *CancelJobInput) SetReasonCode(v string) *CancelJobInput {
- s.ReasonCode = &v
- return s
- }
- type CancelJobOutput struct {
- _ struct{} `type:"structure"`
- // A short text description of the job.
- Description *string `locationName:"description" type:"string"`
- // The job ARN.
- JobArn *string `locationName:"jobArn" type:"string"`
- // The unique identifier you assigned to this job when it was created.
- JobId *string `locationName:"jobId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CancelJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelJobOutput) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *CancelJobOutput) SetDescription(v string) *CancelJobOutput {
- s.Description = &v
- return s
- }
- // SetJobArn sets the JobArn field's value.
- func (s *CancelJobOutput) SetJobArn(v string) *CancelJobOutput {
- s.JobArn = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *CancelJobOutput) SetJobId(v string) *CancelJobOutput {
- s.JobId = &v
- return s
- }
- // Information about a certificate.
- type Certificate struct {
- _ struct{} `type:"structure"`
- // The ARN of the certificate.
- CertificateArn *string `locationName:"certificateArn" type:"string"`
- // The ID of the certificate. (The last part of the certificate ARN contains
- // the certificate ID.)
- CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
- // The date and time the certificate was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The status of the certificate.
- //
- // The status value REGISTER_INACTIVE is deprecated and should not be used.
- Status *string `locationName:"status" type:"string" enum:"CertificateStatus"`
- }
- // String returns the string representation
- func (s Certificate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Certificate) GoString() string {
- return s.String()
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *Certificate) SetCertificateArn(v string) *Certificate {
- s.CertificateArn = &v
- return s
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *Certificate) SetCertificateId(v string) *Certificate {
- s.CertificateId = &v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *Certificate) SetCreationDate(v time.Time) *Certificate {
- s.CreationDate = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *Certificate) SetStatus(v string) *Certificate {
- s.Status = &v
- return s
- }
- // Describes a certificate.
- type CertificateDescription struct {
- _ struct{} `type:"structure"`
- // The certificate ID of the CA certificate used to sign this certificate.
- CaCertificateId *string `locationName:"caCertificateId" min:"64" type:"string"`
- // The ARN of the certificate.
- CertificateArn *string `locationName:"certificateArn" type:"string"`
- // The ID of the certificate.
- CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
- // The certificate data, in PEM format.
- CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"`
- // The date and time the certificate was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The customer version of the certificate.
- CustomerVersion *int64 `locationName:"customerVersion" min:"1" type:"integer"`
- // The generation ID of the certificate.
- GenerationId *string `locationName:"generationId" type:"string"`
- // The date and time the certificate was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // The ID of the AWS account that owns the certificate.
- OwnedBy *string `locationName:"ownedBy" min:"12" type:"string"`
- // The ID of the AWS account of the previous owner of the certificate.
- PreviousOwnedBy *string `locationName:"previousOwnedBy" min:"12" type:"string"`
- // The status of the certificate.
- Status *string `locationName:"status" type:"string" enum:"CertificateStatus"`
- // The transfer data.
- TransferData *TransferData `locationName:"transferData" type:"structure"`
- // When the certificate is valid.
- Validity *CertificateValidity `locationName:"validity" type:"structure"`
- }
- // String returns the string representation
- func (s CertificateDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CertificateDescription) GoString() string {
- return s.String()
- }
- // SetCaCertificateId sets the CaCertificateId field's value.
- func (s *CertificateDescription) SetCaCertificateId(v string) *CertificateDescription {
- s.CaCertificateId = &v
- return s
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *CertificateDescription) SetCertificateArn(v string) *CertificateDescription {
- s.CertificateArn = &v
- return s
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *CertificateDescription) SetCertificateId(v string) *CertificateDescription {
- s.CertificateId = &v
- return s
- }
- // SetCertificatePem sets the CertificatePem field's value.
- func (s *CertificateDescription) SetCertificatePem(v string) *CertificateDescription {
- s.CertificatePem = &v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *CertificateDescription) SetCreationDate(v time.Time) *CertificateDescription {
- s.CreationDate = &v
- return s
- }
- // SetCustomerVersion sets the CustomerVersion field's value.
- func (s *CertificateDescription) SetCustomerVersion(v int64) *CertificateDescription {
- s.CustomerVersion = &v
- return s
- }
- // SetGenerationId sets the GenerationId field's value.
- func (s *CertificateDescription) SetGenerationId(v string) *CertificateDescription {
- s.GenerationId = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *CertificateDescription) SetLastModifiedDate(v time.Time) *CertificateDescription {
- s.LastModifiedDate = &v
- return s
- }
- // SetOwnedBy sets the OwnedBy field's value.
- func (s *CertificateDescription) SetOwnedBy(v string) *CertificateDescription {
- s.OwnedBy = &v
- return s
- }
- // SetPreviousOwnedBy sets the PreviousOwnedBy field's value.
- func (s *CertificateDescription) SetPreviousOwnedBy(v string) *CertificateDescription {
- s.PreviousOwnedBy = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *CertificateDescription) SetStatus(v string) *CertificateDescription {
- s.Status = &v
- return s
- }
- // SetTransferData sets the TransferData field's value.
- func (s *CertificateDescription) SetTransferData(v *TransferData) *CertificateDescription {
- s.TransferData = v
- return s
- }
- // SetValidity sets the Validity field's value.
- func (s *CertificateDescription) SetValidity(v *CertificateValidity) *CertificateDescription {
- s.Validity = v
- return s
- }
- // When the certificate is valid.
- type CertificateValidity struct {
- _ struct{} `type:"structure"`
- // The certificate is not valid after this date.
- NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`
- // The certificate is not valid before this date.
- NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`
- }
- // String returns the string representation
- func (s CertificateValidity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CertificateValidity) GoString() string {
- return s.String()
- }
- // SetNotAfter sets the NotAfter field's value.
- func (s *CertificateValidity) SetNotAfter(v time.Time) *CertificateValidity {
- s.NotAfter = &v
- return s
- }
- // SetNotBefore sets the NotBefore field's value.
- func (s *CertificateValidity) SetNotBefore(v time.Time) *CertificateValidity {
- s.NotBefore = &v
- return s
- }
- type ClearDefaultAuthorizerInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ClearDefaultAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClearDefaultAuthorizerInput) GoString() string {
- return s.String()
- }
- type ClearDefaultAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ClearDefaultAuthorizerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClearDefaultAuthorizerOutput) GoString() string {
- return s.String()
- }
- // Describes an action that updates a CloudWatch alarm.
- type CloudwatchAlarmAction struct {
- _ struct{} `type:"structure"`
- // The CloudWatch alarm name.
- //
- // AlarmName is a required field
- AlarmName *string `locationName:"alarmName" type:"string" required:"true"`
- // The IAM role that allows access to the CloudWatch alarm.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The reason for the alarm change.
- //
- // StateReason is a required field
- StateReason *string `locationName:"stateReason" type:"string" required:"true"`
- // The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
- //
- // StateValue is a required field
- StateValue *string `locationName:"stateValue" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CloudwatchAlarmAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CloudwatchAlarmAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CloudwatchAlarmAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CloudwatchAlarmAction"}
- if s.AlarmName == nil {
- invalidParams.Add(request.NewErrParamRequired("AlarmName"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.StateReason == nil {
- invalidParams.Add(request.NewErrParamRequired("StateReason"))
- }
- if s.StateValue == nil {
- invalidParams.Add(request.NewErrParamRequired("StateValue"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlarmName sets the AlarmName field's value.
- func (s *CloudwatchAlarmAction) SetAlarmName(v string) *CloudwatchAlarmAction {
- s.AlarmName = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *CloudwatchAlarmAction) SetRoleArn(v string) *CloudwatchAlarmAction {
- s.RoleArn = &v
- return s
- }
- // SetStateReason sets the StateReason field's value.
- func (s *CloudwatchAlarmAction) SetStateReason(v string) *CloudwatchAlarmAction {
- s.StateReason = &v
- return s
- }
- // SetStateValue sets the StateValue field's value.
- func (s *CloudwatchAlarmAction) SetStateValue(v string) *CloudwatchAlarmAction {
- s.StateValue = &v
- return s
- }
- // Describes an action that captures a CloudWatch metric.
- type CloudwatchMetricAction struct {
- _ struct{} `type:"structure"`
- // The CloudWatch metric name.
- //
- // MetricName is a required field
- MetricName *string `locationName:"metricName" type:"string" required:"true"`
- // The CloudWatch metric namespace name.
- //
- // MetricNamespace is a required field
- MetricNamespace *string `locationName:"metricNamespace" type:"string" required:"true"`
- // An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp).
- MetricTimestamp *string `locationName:"metricTimestamp" type:"string"`
- // The metric unit (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit)
- // supported by CloudWatch.
- //
- // MetricUnit is a required field
- MetricUnit *string `locationName:"metricUnit" type:"string" required:"true"`
- // The CloudWatch metric value.
- //
- // MetricValue is a required field
- MetricValue *string `locationName:"metricValue" type:"string" required:"true"`
- // The IAM role that allows access to the CloudWatch metric.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CloudwatchMetricAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CloudwatchMetricAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CloudwatchMetricAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CloudwatchMetricAction"}
- if s.MetricName == nil {
- invalidParams.Add(request.NewErrParamRequired("MetricName"))
- }
- if s.MetricNamespace == nil {
- invalidParams.Add(request.NewErrParamRequired("MetricNamespace"))
- }
- if s.MetricUnit == nil {
- invalidParams.Add(request.NewErrParamRequired("MetricUnit"))
- }
- if s.MetricValue == nil {
- invalidParams.Add(request.NewErrParamRequired("MetricValue"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMetricName sets the MetricName field's value.
- func (s *CloudwatchMetricAction) SetMetricName(v string) *CloudwatchMetricAction {
- s.MetricName = &v
- return s
- }
- // SetMetricNamespace sets the MetricNamespace field's value.
- func (s *CloudwatchMetricAction) SetMetricNamespace(v string) *CloudwatchMetricAction {
- s.MetricNamespace = &v
- return s
- }
- // SetMetricTimestamp sets the MetricTimestamp field's value.
- func (s *CloudwatchMetricAction) SetMetricTimestamp(v string) *CloudwatchMetricAction {
- s.MetricTimestamp = &v
- return s
- }
- // SetMetricUnit sets the MetricUnit field's value.
- func (s *CloudwatchMetricAction) SetMetricUnit(v string) *CloudwatchMetricAction {
- s.MetricUnit = &v
- return s
- }
- // SetMetricValue sets the MetricValue field's value.
- func (s *CloudwatchMetricAction) SetMetricValue(v string) *CloudwatchMetricAction {
- s.MetricValue = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *CloudwatchMetricAction) SetRoleArn(v string) *CloudwatchMetricAction {
- s.RoleArn = &v
- return s
- }
- // Describes the method to use when code signing a file.
- type CodeSigning struct {
- _ struct{} `type:"structure"`
- // The ID of the AWSSignerJob which was created to sign the file.
- AwsSignerJobId *string `locationName:"awsSignerJobId" type:"string"`
- // A custom method for code signing a file.
- CustomCodeSigning *CustomCodeSigning `locationName:"customCodeSigning" type:"structure"`
- // Describes the code-signing job.
- StartSigningJobParameter *StartSigningJobParameter `locationName:"startSigningJobParameter" type:"structure"`
- }
- // String returns the string representation
- func (s CodeSigning) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CodeSigning) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CodeSigning) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CodeSigning"}
- if s.StartSigningJobParameter != nil {
- if err := s.StartSigningJobParameter.Validate(); err != nil {
- invalidParams.AddNested("StartSigningJobParameter", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAwsSignerJobId sets the AwsSignerJobId field's value.
- func (s *CodeSigning) SetAwsSignerJobId(v string) *CodeSigning {
- s.AwsSignerJobId = &v
- return s
- }
- // SetCustomCodeSigning sets the CustomCodeSigning field's value.
- func (s *CodeSigning) SetCustomCodeSigning(v *CustomCodeSigning) *CodeSigning {
- s.CustomCodeSigning = v
- return s
- }
- // SetStartSigningJobParameter sets the StartSigningJobParameter field's value.
- func (s *CodeSigning) SetStartSigningJobParameter(v *StartSigningJobParameter) *CodeSigning {
- s.StartSigningJobParameter = v
- return s
- }
- // Describes the certificate chain being used when code signing a file.
- type CodeSigningCertificateChain struct {
- _ struct{} `type:"structure"`
- // The name of the certificate.
- CertificateName *string `locationName:"certificateName" type:"string"`
- // A base64 encoded binary representation of the code signing certificate chain.
- InlineDocument *string `locationName:"inlineDocument" type:"string"`
- }
- // String returns the string representation
- func (s CodeSigningCertificateChain) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CodeSigningCertificateChain) GoString() string {
- return s.String()
- }
- // SetCertificateName sets the CertificateName field's value.
- func (s *CodeSigningCertificateChain) SetCertificateName(v string) *CodeSigningCertificateChain {
- s.CertificateName = &v
- return s
- }
- // SetInlineDocument sets the InlineDocument field's value.
- func (s *CodeSigningCertificateChain) SetInlineDocument(v string) *CodeSigningCertificateChain {
- s.InlineDocument = &v
- return s
- }
- // Describes the signature for a file.
- type CodeSigningSignature struct {
- _ struct{} `type:"structure"`
- // A base64 encoded binary representation of the code signing signature.
- //
- // InlineDocument is automatically base64 encoded/decoded by the SDK.
- InlineDocument []byte `locationName:"inlineDocument" type:"blob"`
- }
- // String returns the string representation
- func (s CodeSigningSignature) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CodeSigningSignature) GoString() string {
- return s.String()
- }
- // SetInlineDocument sets the InlineDocument field's value.
- func (s *CodeSigningSignature) SetInlineDocument(v []byte) *CodeSigningSignature {
- s.InlineDocument = v
- return s
- }
- // Configuration.
- type Configuration struct {
- _ struct{} `type:"structure"`
- // True to enable the configuration.
- Enabled *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s Configuration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Configuration) GoString() string {
- return s.String()
- }
- // SetEnabled sets the Enabled field's value.
- func (s *Configuration) SetEnabled(v bool) *Configuration {
- s.Enabled = &v
- return s
- }
- type CreateAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the authorizer's Lambda function.
- //
- // AuthorizerFunctionArn is a required field
- AuthorizerFunctionArn *string `locationName:"authorizerFunctionArn" type:"string" required:"true"`
- // The authorizer name.
- //
- // AuthorizerName is a required field
- AuthorizerName *string `location:"uri" locationName:"authorizerName" min:"1" type:"string" required:"true"`
- // The status of the create authorizer request.
- Status *string `locationName:"status" type:"string" enum:"AuthorizerStatus"`
- // The name of the token key used to extract the token from the HTTP headers.
- //
- // TokenKeyName is a required field
- TokenKeyName *string `locationName:"tokenKeyName" min:"1" type:"string" required:"true"`
- // The public keys used to verify the digital signature returned by your custom
- // authentication service.
- //
- // TokenSigningPublicKeys is a required field
- TokenSigningPublicKeys map[string]*string `locationName:"tokenSigningPublicKeys" type:"map" required:"true"`
- }
- // String returns the string representation
- func (s CreateAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateAuthorizerInput"}
- if s.AuthorizerFunctionArn == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerFunctionArn"))
- }
- if s.AuthorizerName == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerName"))
- }
- if s.AuthorizerName != nil && len(*s.AuthorizerName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AuthorizerName", 1))
- }
- if s.TokenKeyName == nil {
- invalidParams.Add(request.NewErrParamRequired("TokenKeyName"))
- }
- if s.TokenKeyName != nil && len(*s.TokenKeyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TokenKeyName", 1))
- }
- if s.TokenSigningPublicKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TokenSigningPublicKeys"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthorizerFunctionArn sets the AuthorizerFunctionArn field's value.
- func (s *CreateAuthorizerInput) SetAuthorizerFunctionArn(v string) *CreateAuthorizerInput {
- s.AuthorizerFunctionArn = &v
- return s
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *CreateAuthorizerInput) SetAuthorizerName(v string) *CreateAuthorizerInput {
- s.AuthorizerName = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *CreateAuthorizerInput) SetStatus(v string) *CreateAuthorizerInput {
- s.Status = &v
- return s
- }
- // SetTokenKeyName sets the TokenKeyName field's value.
- func (s *CreateAuthorizerInput) SetTokenKeyName(v string) *CreateAuthorizerInput {
- s.TokenKeyName = &v
- return s
- }
- // SetTokenSigningPublicKeys sets the TokenSigningPublicKeys field's value.
- func (s *CreateAuthorizerInput) SetTokenSigningPublicKeys(v map[string]*string) *CreateAuthorizerInput {
- s.TokenSigningPublicKeys = v
- return s
- }
- type CreateAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- // The authorizer ARN.
- AuthorizerArn *string `locationName:"authorizerArn" type:"string"`
- // The authorizer's name.
- AuthorizerName *string `locationName:"authorizerName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateAuthorizerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAuthorizerOutput) GoString() string {
- return s.String()
- }
- // SetAuthorizerArn sets the AuthorizerArn field's value.
- func (s *CreateAuthorizerOutput) SetAuthorizerArn(v string) *CreateAuthorizerOutput {
- s.AuthorizerArn = &v
- return s
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *CreateAuthorizerOutput) SetAuthorizerName(v string) *CreateAuthorizerOutput {
- s.AuthorizerName = &v
- return s
- }
- type CreateBillingGroupInput struct {
- _ struct{} `type:"structure"`
- // The name you wish to give to the billing group.
- //
- // BillingGroupName is a required field
- BillingGroupName *string `location:"uri" locationName:"billingGroupName" min:"1" type:"string" required:"true"`
- // The properties of the billing group.
- BillingGroupProperties *BillingGroupProperties `locationName:"billingGroupProperties" type:"structure"`
- // Metadata which can be used to manage the billing group.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s CreateBillingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateBillingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateBillingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateBillingGroupInput"}
- if s.BillingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("BillingGroupName"))
- }
- if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *CreateBillingGroupInput) SetBillingGroupName(v string) *CreateBillingGroupInput {
- s.BillingGroupName = &v
- return s
- }
- // SetBillingGroupProperties sets the BillingGroupProperties field's value.
- func (s *CreateBillingGroupInput) SetBillingGroupProperties(v *BillingGroupProperties) *CreateBillingGroupInput {
- s.BillingGroupProperties = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateBillingGroupInput) SetTags(v []*Tag) *CreateBillingGroupInput {
- s.Tags = v
- return s
- }
- type CreateBillingGroupOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the billing group.
- BillingGroupArn *string `locationName:"billingGroupArn" type:"string"`
- // The ID of the billing group.
- BillingGroupId *string `locationName:"billingGroupId" min:"1" type:"string"`
- // The name you gave to the billing group.
- BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateBillingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateBillingGroupOutput) GoString() string {
- return s.String()
- }
- // SetBillingGroupArn sets the BillingGroupArn field's value.
- func (s *CreateBillingGroupOutput) SetBillingGroupArn(v string) *CreateBillingGroupOutput {
- s.BillingGroupArn = &v
- return s
- }
- // SetBillingGroupId sets the BillingGroupId field's value.
- func (s *CreateBillingGroupOutput) SetBillingGroupId(v string) *CreateBillingGroupOutput {
- s.BillingGroupId = &v
- return s
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *CreateBillingGroupOutput) SetBillingGroupName(v string) *CreateBillingGroupOutput {
- s.BillingGroupName = &v
- return s
- }
- // The input for the CreateCertificateFromCsr operation.
- type CreateCertificateFromCsrInput struct {
- _ struct{} `type:"structure"`
- // The certificate signing request (CSR).
- //
- // CertificateSigningRequest is a required field
- CertificateSigningRequest *string `locationName:"certificateSigningRequest" min:"1" type:"string" required:"true"`
- // Specifies whether the certificate is active.
- SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"`
- }
- // String returns the string representation
- func (s CreateCertificateFromCsrInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCertificateFromCsrInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateCertificateFromCsrInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCertificateFromCsrInput"}
- if s.CertificateSigningRequest == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateSigningRequest"))
- }
- if s.CertificateSigningRequest != nil && len(*s.CertificateSigningRequest) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateSigningRequest", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateSigningRequest sets the CertificateSigningRequest field's value.
- func (s *CreateCertificateFromCsrInput) SetCertificateSigningRequest(v string) *CreateCertificateFromCsrInput {
- s.CertificateSigningRequest = &v
- return s
- }
- // SetSetAsActive sets the SetAsActive field's value.
- func (s *CreateCertificateFromCsrInput) SetSetAsActive(v bool) *CreateCertificateFromCsrInput {
- s.SetAsActive = &v
- return s
- }
- // The output from the CreateCertificateFromCsr operation.
- type CreateCertificateFromCsrOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the certificate. You can use the ARN as
- // a principal for policy operations.
- CertificateArn *string `locationName:"certificateArn" type:"string"`
- // The ID of the certificate. Certificate management operations only take a
- // certificateId.
- CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
- // The certificate data, in PEM format.
- CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateCertificateFromCsrOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCertificateFromCsrOutput) GoString() string {
- return s.String()
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *CreateCertificateFromCsrOutput) SetCertificateArn(v string) *CreateCertificateFromCsrOutput {
- s.CertificateArn = &v
- return s
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *CreateCertificateFromCsrOutput) SetCertificateId(v string) *CreateCertificateFromCsrOutput {
- s.CertificateId = &v
- return s
- }
- // SetCertificatePem sets the CertificatePem field's value.
- func (s *CreateCertificateFromCsrOutput) SetCertificatePem(v string) *CreateCertificateFromCsrOutput {
- s.CertificatePem = &v
- return s
- }
- type CreateDynamicThingGroupInput struct {
- _ struct{} `type:"structure"`
- // The dynamic thing group index name.
- //
- // Currently one index is supported: "AWS_Things".
- IndexName *string `locationName:"indexName" min:"1" type:"string"`
- // The dynamic thing group search query string.
- //
- // See Query Syntax (http://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html)
- // for information about query string syntax.
- //
- // QueryString is a required field
- QueryString *string `locationName:"queryString" min:"1" type:"string" required:"true"`
- // The dynamic thing group query version.
- //
- // Currently one query version is supported: "2017-09-30". If not specified,
- // the query version defaults to this value.
- QueryVersion *string `locationName:"queryVersion" type:"string"`
- // Metadata which can be used to manage the dynamic thing group.
- Tags []*Tag `locationName:"tags" type:"list"`
- // The dynamic thing group name to create.
- //
- // ThingGroupName is a required field
- ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"`
- // The dynamic thing group properties.
- ThingGroupProperties *ThingGroupProperties `locationName:"thingGroupProperties" type:"structure"`
- }
- // String returns the string representation
- func (s CreateDynamicThingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDynamicThingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDynamicThingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDynamicThingGroupInput"}
- if s.IndexName != nil && len(*s.IndexName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("IndexName", 1))
- }
- if s.QueryString == nil {
- invalidParams.Add(request.NewErrParamRequired("QueryString"))
- }
- if s.QueryString != nil && len(*s.QueryString) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("QueryString", 1))
- }
- if s.ThingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupName"))
- }
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetIndexName sets the IndexName field's value.
- func (s *CreateDynamicThingGroupInput) SetIndexName(v string) *CreateDynamicThingGroupInput {
- s.IndexName = &v
- return s
- }
- // SetQueryString sets the QueryString field's value.
- func (s *CreateDynamicThingGroupInput) SetQueryString(v string) *CreateDynamicThingGroupInput {
- s.QueryString = &v
- return s
- }
- // SetQueryVersion sets the QueryVersion field's value.
- func (s *CreateDynamicThingGroupInput) SetQueryVersion(v string) *CreateDynamicThingGroupInput {
- s.QueryVersion = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateDynamicThingGroupInput) SetTags(v []*Tag) *CreateDynamicThingGroupInput {
- s.Tags = v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *CreateDynamicThingGroupInput) SetThingGroupName(v string) *CreateDynamicThingGroupInput {
- s.ThingGroupName = &v
- return s
- }
- // SetThingGroupProperties sets the ThingGroupProperties field's value.
- func (s *CreateDynamicThingGroupInput) SetThingGroupProperties(v *ThingGroupProperties) *CreateDynamicThingGroupInput {
- s.ThingGroupProperties = v
- return s
- }
- type CreateDynamicThingGroupOutput struct {
- _ struct{} `type:"structure"`
- // The dynamic thing group index name.
- IndexName *string `locationName:"indexName" min:"1" type:"string"`
- // The dynamic thing group search query string.
- QueryString *string `locationName:"queryString" min:"1" type:"string"`
- // The dynamic thing group query version.
- QueryVersion *string `locationName:"queryVersion" type:"string"`
- // The dynamic thing group ARN.
- ThingGroupArn *string `locationName:"thingGroupArn" type:"string"`
- // The dynamic thing group ID.
- ThingGroupId *string `locationName:"thingGroupId" min:"1" type:"string"`
- // The dynamic thing group name.
- ThingGroupName *string `locationName:"thingGroupName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateDynamicThingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDynamicThingGroupOutput) GoString() string {
- return s.String()
- }
- // SetIndexName sets the IndexName field's value.
- func (s *CreateDynamicThingGroupOutput) SetIndexName(v string) *CreateDynamicThingGroupOutput {
- s.IndexName = &v
- return s
- }
- // SetQueryString sets the QueryString field's value.
- func (s *CreateDynamicThingGroupOutput) SetQueryString(v string) *CreateDynamicThingGroupOutput {
- s.QueryString = &v
- return s
- }
- // SetQueryVersion sets the QueryVersion field's value.
- func (s *CreateDynamicThingGroupOutput) SetQueryVersion(v string) *CreateDynamicThingGroupOutput {
- s.QueryVersion = &v
- return s
- }
- // SetThingGroupArn sets the ThingGroupArn field's value.
- func (s *CreateDynamicThingGroupOutput) SetThingGroupArn(v string) *CreateDynamicThingGroupOutput {
- s.ThingGroupArn = &v
- return s
- }
- // SetThingGroupId sets the ThingGroupId field's value.
- func (s *CreateDynamicThingGroupOutput) SetThingGroupId(v string) *CreateDynamicThingGroupOutput {
- s.ThingGroupId = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *CreateDynamicThingGroupOutput) SetThingGroupName(v string) *CreateDynamicThingGroupOutput {
- s.ThingGroupName = &v
- return s
- }
- type CreateJobInput struct {
- _ struct{} `type:"structure"`
- // Allows you to create criteria to abort a job.
- AbortConfig *AbortConfig `locationName:"abortConfig" type:"structure"`
- // A short text description of the job.
- Description *string `locationName:"description" type:"string"`
- // The job document.
- //
- // If the job document resides in an S3 bucket, you must use a placeholder link
- // when specifying the document.
- //
- // The placeholder link is of the following form:
- //
- // ${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
- //
- // where bucket is your bucket name and key is the object in the bucket to which
- // you are linking.
- Document *string `locationName:"document" type:"string"`
- // An S3 link to the job document.
- DocumentSource *string `locationName:"documentSource" min:"1" type:"string"`
- // Allows you to create a staged rollout of the job.
- JobExecutionsRolloutConfig *JobExecutionsRolloutConfig `locationName:"jobExecutionsRolloutConfig" type:"structure"`
- // A job identifier which must be unique for your AWS account. We recommend
- // using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- // Configuration information for pre-signed S3 URLs.
- PresignedUrlConfig *PresignedUrlConfig `locationName:"presignedUrlConfig" type:"structure"`
- // Metadata which can be used to manage the job.
- Tags []*Tag `locationName:"tags" type:"list"`
- // Specifies whether the job will continue to run (CONTINUOUS), or will be complete
- // after all those things specified as targets have completed the job (SNAPSHOT).
- // If continuous, the job may also be run on a thing when a change is detected
- // in a target. For example, a job will run on a thing when the thing is added
- // to a target group, even after the job was completed by all things originally
- // in the group.
- TargetSelection *string `locationName:"targetSelection" type:"string" enum:"TargetSelection"`
- // A list of things and thing groups to which the job should be sent.
- //
- // Targets is a required field
- Targets []*string `locationName:"targets" min:"1" type:"list" required:"true"`
- // Specifies the amount of time each device has to finish its execution of the
- // job. The timer is started when the job execution status is set to IN_PROGRESS.
- // If the job execution status is not set to another terminal state before the
- // time expires, it will be automatically set to TIMED_OUT.
- TimeoutConfig *TimeoutConfig `locationName:"timeoutConfig" type:"structure"`
- }
- // String returns the string representation
- func (s CreateJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateJobInput"}
- if s.DocumentSource != nil && len(*s.DocumentSource) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DocumentSource", 1))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if s.Targets == nil {
- invalidParams.Add(request.NewErrParamRequired("Targets"))
- }
- if s.Targets != nil && len(s.Targets) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Targets", 1))
- }
- if s.AbortConfig != nil {
- if err := s.AbortConfig.Validate(); err != nil {
- invalidParams.AddNested("AbortConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.JobExecutionsRolloutConfig != nil {
- if err := s.JobExecutionsRolloutConfig.Validate(); err != nil {
- invalidParams.AddNested("JobExecutionsRolloutConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.PresignedUrlConfig != nil {
- if err := s.PresignedUrlConfig.Validate(); err != nil {
- invalidParams.AddNested("PresignedUrlConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAbortConfig sets the AbortConfig field's value.
- func (s *CreateJobInput) SetAbortConfig(v *AbortConfig) *CreateJobInput {
- s.AbortConfig = v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateJobInput) SetDescription(v string) *CreateJobInput {
- s.Description = &v
- return s
- }
- // SetDocument sets the Document field's value.
- func (s *CreateJobInput) SetDocument(v string) *CreateJobInput {
- s.Document = &v
- return s
- }
- // SetDocumentSource sets the DocumentSource field's value.
- func (s *CreateJobInput) SetDocumentSource(v string) *CreateJobInput {
- s.DocumentSource = &v
- return s
- }
- // SetJobExecutionsRolloutConfig sets the JobExecutionsRolloutConfig field's value.
- func (s *CreateJobInput) SetJobExecutionsRolloutConfig(v *JobExecutionsRolloutConfig) *CreateJobInput {
- s.JobExecutionsRolloutConfig = v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *CreateJobInput) SetJobId(v string) *CreateJobInput {
- s.JobId = &v
- return s
- }
- // SetPresignedUrlConfig sets the PresignedUrlConfig field's value.
- func (s *CreateJobInput) SetPresignedUrlConfig(v *PresignedUrlConfig) *CreateJobInput {
- s.PresignedUrlConfig = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateJobInput) SetTags(v []*Tag) *CreateJobInput {
- s.Tags = v
- return s
- }
- // SetTargetSelection sets the TargetSelection field's value.
- func (s *CreateJobInput) SetTargetSelection(v string) *CreateJobInput {
- s.TargetSelection = &v
- return s
- }
- // SetTargets sets the Targets field's value.
- func (s *CreateJobInput) SetTargets(v []*string) *CreateJobInput {
- s.Targets = v
- return s
- }
- // SetTimeoutConfig sets the TimeoutConfig field's value.
- func (s *CreateJobInput) SetTimeoutConfig(v *TimeoutConfig) *CreateJobInput {
- s.TimeoutConfig = v
- return s
- }
- type CreateJobOutput struct {
- _ struct{} `type:"structure"`
- // The job description.
- Description *string `locationName:"description" type:"string"`
- // The job ARN.
- JobArn *string `locationName:"jobArn" type:"string"`
- // The unique identifier you assigned to this job.
- JobId *string `locationName:"jobId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateJobOutput) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *CreateJobOutput) SetDescription(v string) *CreateJobOutput {
- s.Description = &v
- return s
- }
- // SetJobArn sets the JobArn field's value.
- func (s *CreateJobOutput) SetJobArn(v string) *CreateJobOutput {
- s.JobArn = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *CreateJobOutput) SetJobId(v string) *CreateJobOutput {
- s.JobId = &v
- return s
- }
- // The input for the CreateKeysAndCertificate operation.
- type CreateKeysAndCertificateInput struct {
- _ struct{} `type:"structure"`
- // Specifies whether the certificate is active.
- SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"`
- }
- // String returns the string representation
- func (s CreateKeysAndCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateKeysAndCertificateInput) GoString() string {
- return s.String()
- }
- // SetSetAsActive sets the SetAsActive field's value.
- func (s *CreateKeysAndCertificateInput) SetSetAsActive(v bool) *CreateKeysAndCertificateInput {
- s.SetAsActive = &v
- return s
- }
- // The output of the CreateKeysAndCertificate operation.
- type CreateKeysAndCertificateOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the certificate.
- CertificateArn *string `locationName:"certificateArn" type:"string"`
- // The ID of the certificate. AWS IoT issues a default subject name for the
- // certificate (for example, AWS IoT Certificate).
- CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
- // The certificate data, in PEM format.
- CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"`
- // The generated key pair.
- KeyPair *KeyPair `locationName:"keyPair" type:"structure"`
- }
- // String returns the string representation
- func (s CreateKeysAndCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateKeysAndCertificateOutput) GoString() string {
- return s.String()
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *CreateKeysAndCertificateOutput) SetCertificateArn(v string) *CreateKeysAndCertificateOutput {
- s.CertificateArn = &v
- return s
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *CreateKeysAndCertificateOutput) SetCertificateId(v string) *CreateKeysAndCertificateOutput {
- s.CertificateId = &v
- return s
- }
- // SetCertificatePem sets the CertificatePem field's value.
- func (s *CreateKeysAndCertificateOutput) SetCertificatePem(v string) *CreateKeysAndCertificateOutput {
- s.CertificatePem = &v
- return s
- }
- // SetKeyPair sets the KeyPair field's value.
- func (s *CreateKeysAndCertificateOutput) SetKeyPair(v *KeyPair) *CreateKeysAndCertificateOutput {
- s.KeyPair = v
- return s
- }
- type CreateOTAUpdateInput struct {
- _ struct{} `type:"structure"`
- // A list of additional OTA update parameters which are name-value pairs.
- AdditionalParameters map[string]*string `locationName:"additionalParameters" type:"map"`
- // Configuration for the rollout of OTA updates.
- AwsJobExecutionsRolloutConfig *AwsJobExecutionsRolloutConfig `locationName:"awsJobExecutionsRolloutConfig" type:"structure"`
- // The description of the OTA update.
- Description *string `locationName:"description" type:"string"`
- // The files to be streamed by the OTA update.
- //
- // Files is a required field
- Files []*OTAUpdateFile `locationName:"files" min:"1" type:"list" required:"true"`
- // The ID of the OTA update to be created.
- //
- // OtaUpdateId is a required field
- OtaUpdateId *string `location:"uri" locationName:"otaUpdateId" min:"1" type:"string" required:"true"`
- // The IAM role that allows access to the AWS IoT Jobs service.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
- // Specifies whether the update will continue to run (CONTINUOUS), or will be
- // complete after all the things specified as targets have completed the update
- // (SNAPSHOT). If continuous, the update may also be run on a thing when a change
- // is detected in a target. For example, an update will run on a thing when
- // the thing is added to a target group, even after the update was completed
- // by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
- TargetSelection *string `locationName:"targetSelection" type:"string" enum:"TargetSelection"`
- // The targeted devices to receive OTA updates.
- //
- // Targets is a required field
- Targets []*string `locationName:"targets" min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s CreateOTAUpdateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateOTAUpdateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateOTAUpdateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateOTAUpdateInput"}
- if s.Files == nil {
- invalidParams.Add(request.NewErrParamRequired("Files"))
- }
- if s.Files != nil && len(s.Files) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Files", 1))
- }
- if s.OtaUpdateId == nil {
- invalidParams.Add(request.NewErrParamRequired("OtaUpdateId"))
- }
- if s.OtaUpdateId != nil && len(*s.OtaUpdateId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("OtaUpdateId", 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.Targets == nil {
- invalidParams.Add(request.NewErrParamRequired("Targets"))
- }
- if s.Targets != nil && len(s.Targets) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Targets", 1))
- }
- if s.AwsJobExecutionsRolloutConfig != nil {
- if err := s.AwsJobExecutionsRolloutConfig.Validate(); err != nil {
- invalidParams.AddNested("AwsJobExecutionsRolloutConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.Files != nil {
- for i, v := range s.Files {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Files", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAdditionalParameters sets the AdditionalParameters field's value.
- func (s *CreateOTAUpdateInput) SetAdditionalParameters(v map[string]*string) *CreateOTAUpdateInput {
- s.AdditionalParameters = v
- return s
- }
- // SetAwsJobExecutionsRolloutConfig sets the AwsJobExecutionsRolloutConfig field's value.
- func (s *CreateOTAUpdateInput) SetAwsJobExecutionsRolloutConfig(v *AwsJobExecutionsRolloutConfig) *CreateOTAUpdateInput {
- s.AwsJobExecutionsRolloutConfig = v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateOTAUpdateInput) SetDescription(v string) *CreateOTAUpdateInput {
- s.Description = &v
- return s
- }
- // SetFiles sets the Files field's value.
- func (s *CreateOTAUpdateInput) SetFiles(v []*OTAUpdateFile) *CreateOTAUpdateInput {
- s.Files = v
- return s
- }
- // SetOtaUpdateId sets the OtaUpdateId field's value.
- func (s *CreateOTAUpdateInput) SetOtaUpdateId(v string) *CreateOTAUpdateInput {
- s.OtaUpdateId = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *CreateOTAUpdateInput) SetRoleArn(v string) *CreateOTAUpdateInput {
- s.RoleArn = &v
- return s
- }
- // SetTargetSelection sets the TargetSelection field's value.
- func (s *CreateOTAUpdateInput) SetTargetSelection(v string) *CreateOTAUpdateInput {
- s.TargetSelection = &v
- return s
- }
- // SetTargets sets the Targets field's value.
- func (s *CreateOTAUpdateInput) SetTargets(v []*string) *CreateOTAUpdateInput {
- s.Targets = v
- return s
- }
- type CreateOTAUpdateOutput struct {
- _ struct{} `type:"structure"`
- // The AWS IoT job ARN associated with the OTA update.
- AwsIotJobArn *string `locationName:"awsIotJobArn" type:"string"`
- // The AWS IoT job ID associated with the OTA update.
- AwsIotJobId *string `locationName:"awsIotJobId" type:"string"`
- // The OTA update ARN.
- OtaUpdateArn *string `locationName:"otaUpdateArn" type:"string"`
- // The OTA update ID.
- OtaUpdateId *string `locationName:"otaUpdateId" min:"1" type:"string"`
- // The OTA update status.
- OtaUpdateStatus *string `locationName:"otaUpdateStatus" type:"string" enum:"OTAUpdateStatus"`
- }
- // String returns the string representation
- func (s CreateOTAUpdateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateOTAUpdateOutput) GoString() string {
- return s.String()
- }
- // SetAwsIotJobArn sets the AwsIotJobArn field's value.
- func (s *CreateOTAUpdateOutput) SetAwsIotJobArn(v string) *CreateOTAUpdateOutput {
- s.AwsIotJobArn = &v
- return s
- }
- // SetAwsIotJobId sets the AwsIotJobId field's value.
- func (s *CreateOTAUpdateOutput) SetAwsIotJobId(v string) *CreateOTAUpdateOutput {
- s.AwsIotJobId = &v
- return s
- }
- // SetOtaUpdateArn sets the OtaUpdateArn field's value.
- func (s *CreateOTAUpdateOutput) SetOtaUpdateArn(v string) *CreateOTAUpdateOutput {
- s.OtaUpdateArn = &v
- return s
- }
- // SetOtaUpdateId sets the OtaUpdateId field's value.
- func (s *CreateOTAUpdateOutput) SetOtaUpdateId(v string) *CreateOTAUpdateOutput {
- s.OtaUpdateId = &v
- return s
- }
- // SetOtaUpdateStatus sets the OtaUpdateStatus field's value.
- func (s *CreateOTAUpdateOutput) SetOtaUpdateStatus(v string) *CreateOTAUpdateOutput {
- s.OtaUpdateStatus = &v
- return s
- }
- // The input for the CreatePolicy operation.
- type CreatePolicyInput struct {
- _ struct{} `type:"structure"`
- // The JSON document that describes the policy. policyDocument must have a minimum
- // length of 1, with a maximum length of 2048, excluding whitespace.
- //
- // PolicyDocument is a required field
- PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"`
- // The policy name.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreatePolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreatePolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreatePolicyInput"}
- if s.PolicyDocument == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
- }
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyDocument sets the PolicyDocument field's value.
- func (s *CreatePolicyInput) SetPolicyDocument(v string) *CreatePolicyInput {
- s.PolicyDocument = &v
- return s
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *CreatePolicyInput) SetPolicyName(v string) *CreatePolicyInput {
- s.PolicyName = &v
- return s
- }
- // The output from the CreatePolicy operation.
- type CreatePolicyOutput struct {
- _ struct{} `type:"structure"`
- // The policy ARN.
- PolicyArn *string `locationName:"policyArn" type:"string"`
- // The JSON document that describes the policy.
- PolicyDocument *string `locationName:"policyDocument" type:"string"`
- // The policy name.
- PolicyName *string `locationName:"policyName" min:"1" type:"string"`
- // The policy version ID.
- PolicyVersionId *string `locationName:"policyVersionId" type:"string"`
- }
- // String returns the string representation
- func (s CreatePolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePolicyOutput) GoString() string {
- return s.String()
- }
- // SetPolicyArn sets the PolicyArn field's value.
- func (s *CreatePolicyOutput) SetPolicyArn(v string) *CreatePolicyOutput {
- s.PolicyArn = &v
- return s
- }
- // SetPolicyDocument sets the PolicyDocument field's value.
- func (s *CreatePolicyOutput) SetPolicyDocument(v string) *CreatePolicyOutput {
- s.PolicyDocument = &v
- return s
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *CreatePolicyOutput) SetPolicyName(v string) *CreatePolicyOutput {
- s.PolicyName = &v
- return s
- }
- // SetPolicyVersionId sets the PolicyVersionId field's value.
- func (s *CreatePolicyOutput) SetPolicyVersionId(v string) *CreatePolicyOutput {
- s.PolicyVersionId = &v
- return s
- }
- // The input for the CreatePolicyVersion operation.
- type CreatePolicyVersionInput struct {
- _ struct{} `type:"structure"`
- // The JSON document that describes the policy. Minimum length of 1. Maximum
- // length of 2048, excluding whitespace.
- //
- // PolicyDocument is a required field
- PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"`
- // The policy name.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // Specifies whether the policy version is set as the default. When this parameter
- // is true, the new policy version becomes the operative version (that is, the
- // version that is in effect for the certificates to which the policy is attached).
- SetAsDefault *bool `location:"querystring" locationName:"setAsDefault" type:"boolean"`
- }
- // String returns the string representation
- func (s CreatePolicyVersionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePolicyVersionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreatePolicyVersionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreatePolicyVersionInput"}
- if s.PolicyDocument == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
- }
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyDocument sets the PolicyDocument field's value.
- func (s *CreatePolicyVersionInput) SetPolicyDocument(v string) *CreatePolicyVersionInput {
- s.PolicyDocument = &v
- return s
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *CreatePolicyVersionInput) SetPolicyName(v string) *CreatePolicyVersionInput {
- s.PolicyName = &v
- return s
- }
- // SetSetAsDefault sets the SetAsDefault field's value.
- func (s *CreatePolicyVersionInput) SetSetAsDefault(v bool) *CreatePolicyVersionInput {
- s.SetAsDefault = &v
- return s
- }
- // The output of the CreatePolicyVersion operation.
- type CreatePolicyVersionOutput struct {
- _ struct{} `type:"structure"`
- // Specifies whether the policy version is the default.
- IsDefaultVersion *bool `locationName:"isDefaultVersion" type:"boolean"`
- // The policy ARN.
- PolicyArn *string `locationName:"policyArn" type:"string"`
- // The JSON document that describes the policy.
- PolicyDocument *string `locationName:"policyDocument" type:"string"`
- // The policy version ID.
- PolicyVersionId *string `locationName:"policyVersionId" type:"string"`
- }
- // String returns the string representation
- func (s CreatePolicyVersionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePolicyVersionOutput) GoString() string {
- return s.String()
- }
- // SetIsDefaultVersion sets the IsDefaultVersion field's value.
- func (s *CreatePolicyVersionOutput) SetIsDefaultVersion(v bool) *CreatePolicyVersionOutput {
- s.IsDefaultVersion = &v
- return s
- }
- // SetPolicyArn sets the PolicyArn field's value.
- func (s *CreatePolicyVersionOutput) SetPolicyArn(v string) *CreatePolicyVersionOutput {
- s.PolicyArn = &v
- return s
- }
- // SetPolicyDocument sets the PolicyDocument field's value.
- func (s *CreatePolicyVersionOutput) SetPolicyDocument(v string) *CreatePolicyVersionOutput {
- s.PolicyDocument = &v
- return s
- }
- // SetPolicyVersionId sets the PolicyVersionId field's value.
- func (s *CreatePolicyVersionOutput) SetPolicyVersionId(v string) *CreatePolicyVersionOutput {
- s.PolicyVersionId = &v
- return s
- }
- type CreateRoleAliasInput struct {
- _ struct{} `type:"structure"`
- // How long (in seconds) the credentials will be valid.
- CredentialDurationSeconds *int64 `locationName:"credentialDurationSeconds" min:"900" type:"integer"`
- // The role alias that points to a role ARN. This allows you to change the role
- // without having to update the device.
- //
- // RoleAlias is a required field
- RoleAlias *string `location:"uri" locationName:"roleAlias" min:"1" type:"string" required:"true"`
- // The role ARN.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateRoleAliasInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateRoleAliasInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateRoleAliasInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateRoleAliasInput"}
- if s.CredentialDurationSeconds != nil && *s.CredentialDurationSeconds < 900 {
- invalidParams.Add(request.NewErrParamMinValue("CredentialDurationSeconds", 900))
- }
- if s.RoleAlias == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleAlias"))
- }
- if s.RoleAlias != nil && len(*s.RoleAlias) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleAlias", 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
- }
- // SetCredentialDurationSeconds sets the CredentialDurationSeconds field's value.
- func (s *CreateRoleAliasInput) SetCredentialDurationSeconds(v int64) *CreateRoleAliasInput {
- s.CredentialDurationSeconds = &v
- return s
- }
- // SetRoleAlias sets the RoleAlias field's value.
- func (s *CreateRoleAliasInput) SetRoleAlias(v string) *CreateRoleAliasInput {
- s.RoleAlias = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *CreateRoleAliasInput) SetRoleArn(v string) *CreateRoleAliasInput {
- s.RoleArn = &v
- return s
- }
- type CreateRoleAliasOutput struct {
- _ struct{} `type:"structure"`
- // The role alias.
- RoleAlias *string `locationName:"roleAlias" min:"1" type:"string"`
- // The role alias ARN.
- RoleAliasArn *string `locationName:"roleAliasArn" type:"string"`
- }
- // String returns the string representation
- func (s CreateRoleAliasOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateRoleAliasOutput) GoString() string {
- return s.String()
- }
- // SetRoleAlias sets the RoleAlias field's value.
- func (s *CreateRoleAliasOutput) SetRoleAlias(v string) *CreateRoleAliasOutput {
- s.RoleAlias = &v
- return s
- }
- // SetRoleAliasArn sets the RoleAliasArn field's value.
- func (s *CreateRoleAliasOutput) SetRoleAliasArn(v string) *CreateRoleAliasOutput {
- s.RoleAliasArn = &v
- return s
- }
- type CreateScheduledAuditInput struct {
- _ struct{} `type:"structure"`
- // The day of the month on which the scheduled audit takes place. Can be "1"
- // through "31" or "LAST". This field is required if the "frequency" parameter
- // is set to "MONTHLY". If days 29-31 are specified, and the month does not
- // have that many days, the audit takes place on the "LAST" day of the month.
- DayOfMonth *string `locationName:"dayOfMonth" type:"string"`
- // The day of the week on which the scheduled audit takes place. Can be one
- // of "SUN", "MON", "TUE", "WED", "THU", "FRI" or "SAT". This field is required
- // if the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".
- DayOfWeek *string `locationName:"dayOfWeek" type:"string" enum:"DayOfWeek"`
- // How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY",
- // "BIWEEKLY" or "MONTHLY". The actual start time of each audit is determined
- // by the system.
- //
- // Frequency is a required field
- Frequency *string `locationName:"frequency" type:"string" required:"true" enum:"AuditFrequency"`
- // The name you want to give to the scheduled audit. (Max. 128 chars)
- //
- // ScheduledAuditName is a required field
- ScheduledAuditName *string `location:"uri" locationName:"scheduledAuditName" min:"1" type:"string" required:"true"`
- // Which checks are performed during the scheduled audit. Checks must be enabled
- // for your account. (Use DescribeAccountAuditConfiguration to see the list
- // of all checks including those that are enabled or UpdateAccountAuditConfiguration
- // to select which checks are enabled.)
- //
- // TargetCheckNames is a required field
- TargetCheckNames []*string `locationName:"targetCheckNames" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s CreateScheduledAuditInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateScheduledAuditInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateScheduledAuditInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateScheduledAuditInput"}
- if s.Frequency == nil {
- invalidParams.Add(request.NewErrParamRequired("Frequency"))
- }
- if s.ScheduledAuditName == nil {
- invalidParams.Add(request.NewErrParamRequired("ScheduledAuditName"))
- }
- if s.ScheduledAuditName != nil && len(*s.ScheduledAuditName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ScheduledAuditName", 1))
- }
- if s.TargetCheckNames == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetCheckNames"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDayOfMonth sets the DayOfMonth field's value.
- func (s *CreateScheduledAuditInput) SetDayOfMonth(v string) *CreateScheduledAuditInput {
- s.DayOfMonth = &v
- return s
- }
- // SetDayOfWeek sets the DayOfWeek field's value.
- func (s *CreateScheduledAuditInput) SetDayOfWeek(v string) *CreateScheduledAuditInput {
- s.DayOfWeek = &v
- return s
- }
- // SetFrequency sets the Frequency field's value.
- func (s *CreateScheduledAuditInput) SetFrequency(v string) *CreateScheduledAuditInput {
- s.Frequency = &v
- return s
- }
- // SetScheduledAuditName sets the ScheduledAuditName field's value.
- func (s *CreateScheduledAuditInput) SetScheduledAuditName(v string) *CreateScheduledAuditInput {
- s.ScheduledAuditName = &v
- return s
- }
- // SetTargetCheckNames sets the TargetCheckNames field's value.
- func (s *CreateScheduledAuditInput) SetTargetCheckNames(v []*string) *CreateScheduledAuditInput {
- s.TargetCheckNames = v
- return s
- }
- type CreateScheduledAuditOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the scheduled audit.
- ScheduledAuditArn *string `locationName:"scheduledAuditArn" type:"string"`
- }
- // String returns the string representation
- func (s CreateScheduledAuditOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateScheduledAuditOutput) GoString() string {
- return s.String()
- }
- // SetScheduledAuditArn sets the ScheduledAuditArn field's value.
- func (s *CreateScheduledAuditOutput) SetScheduledAuditArn(v string) *CreateScheduledAuditOutput {
- s.ScheduledAuditArn = &v
- return s
- }
- type CreateSecurityProfileInput struct {
- _ struct{} `type:"structure"`
- // Specifies the destinations to which alerts are sent. (Alerts are always sent
- // to the console.) Alerts are generated when a device (thing) violates a behavior.
- AlertTargets map[string]*AlertTarget `locationName:"alertTargets" type:"map"`
- // Specifies the behaviors that, when violated by a device (thing), cause an
- // alert.
- //
- // Behaviors is a required field
- Behaviors []*Behavior `locationName:"behaviors" type:"list" required:"true"`
- // A description of the security profile.
- SecurityProfileDescription *string `locationName:"securityProfileDescription" type:"string"`
- // The name you are giving to the security profile.
- //
- // SecurityProfileName is a required field
- SecurityProfileName *string `location:"uri" locationName:"securityProfileName" min:"1" type:"string" required:"true"`
- // Metadata which can be used to manage the security profile.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s CreateSecurityProfileInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateSecurityProfileInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateSecurityProfileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateSecurityProfileInput"}
- if s.Behaviors == nil {
- invalidParams.Add(request.NewErrParamRequired("Behaviors"))
- }
- if s.SecurityProfileName == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityProfileName"))
- }
- if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
- }
- if s.AlertTargets != nil {
- for i, v := range s.AlertTargets {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AlertTargets", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Behaviors != nil {
- for i, v := range s.Behaviors {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Behaviors", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlertTargets sets the AlertTargets field's value.
- func (s *CreateSecurityProfileInput) SetAlertTargets(v map[string]*AlertTarget) *CreateSecurityProfileInput {
- s.AlertTargets = v
- return s
- }
- // SetBehaviors sets the Behaviors field's value.
- func (s *CreateSecurityProfileInput) SetBehaviors(v []*Behavior) *CreateSecurityProfileInput {
- s.Behaviors = v
- return s
- }
- // SetSecurityProfileDescription sets the SecurityProfileDescription field's value.
- func (s *CreateSecurityProfileInput) SetSecurityProfileDescription(v string) *CreateSecurityProfileInput {
- s.SecurityProfileDescription = &v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *CreateSecurityProfileInput) SetSecurityProfileName(v string) *CreateSecurityProfileInput {
- s.SecurityProfileName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateSecurityProfileInput) SetTags(v []*Tag) *CreateSecurityProfileInput {
- s.Tags = v
- return s
- }
- type CreateSecurityProfileOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the security profile.
- SecurityProfileArn *string `locationName:"securityProfileArn" type:"string"`
- // The name you gave to the security profile.
- SecurityProfileName *string `locationName:"securityProfileName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateSecurityProfileOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateSecurityProfileOutput) GoString() string {
- return s.String()
- }
- // SetSecurityProfileArn sets the SecurityProfileArn field's value.
- func (s *CreateSecurityProfileOutput) SetSecurityProfileArn(v string) *CreateSecurityProfileOutput {
- s.SecurityProfileArn = &v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *CreateSecurityProfileOutput) SetSecurityProfileName(v string) *CreateSecurityProfileOutput {
- s.SecurityProfileName = &v
- return s
- }
- type CreateStreamInput struct {
- _ struct{} `type:"structure"`
- // A description of the stream.
- Description *string `locationName:"description" type:"string"`
- // The files to stream.
- //
- // Files is a required field
- Files []*StreamFile `locationName:"files" min:"1" type:"list" required:"true"`
- // An IAM role that allows the IoT service principal assumes to access your
- // S3 files.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
- // The stream ID.
- //
- // StreamId is a required field
- StreamId *string `location:"uri" locationName:"streamId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateStreamInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateStreamInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateStreamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateStreamInput"}
- if s.Files == nil {
- invalidParams.Add(request.NewErrParamRequired("Files"))
- }
- if s.Files != nil && len(s.Files) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Files", 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.StreamId == nil {
- invalidParams.Add(request.NewErrParamRequired("StreamId"))
- }
- if s.StreamId != nil && len(*s.StreamId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StreamId", 1))
- }
- if s.Files != nil {
- for i, v := range s.Files {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Files", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *CreateStreamInput) SetDescription(v string) *CreateStreamInput {
- s.Description = &v
- return s
- }
- // SetFiles sets the Files field's value.
- func (s *CreateStreamInput) SetFiles(v []*StreamFile) *CreateStreamInput {
- s.Files = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *CreateStreamInput) SetRoleArn(v string) *CreateStreamInput {
- s.RoleArn = &v
- return s
- }
- // SetStreamId sets the StreamId field's value.
- func (s *CreateStreamInput) SetStreamId(v string) *CreateStreamInput {
- s.StreamId = &v
- return s
- }
- type CreateStreamOutput struct {
- _ struct{} `type:"structure"`
- // A description of the stream.
- Description *string `locationName:"description" type:"string"`
- // The stream ARN.
- StreamArn *string `locationName:"streamArn" type:"string"`
- // The stream ID.
- StreamId *string `locationName:"streamId" min:"1" type:"string"`
- // The version of the stream.
- StreamVersion *int64 `locationName:"streamVersion" type:"integer"`
- }
- // String returns the string representation
- func (s CreateStreamOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateStreamOutput) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *CreateStreamOutput) SetDescription(v string) *CreateStreamOutput {
- s.Description = &v
- return s
- }
- // SetStreamArn sets the StreamArn field's value.
- func (s *CreateStreamOutput) SetStreamArn(v string) *CreateStreamOutput {
- s.StreamArn = &v
- return s
- }
- // SetStreamId sets the StreamId field's value.
- func (s *CreateStreamOutput) SetStreamId(v string) *CreateStreamOutput {
- s.StreamId = &v
- return s
- }
- // SetStreamVersion sets the StreamVersion field's value.
- func (s *CreateStreamOutput) SetStreamVersion(v int64) *CreateStreamOutput {
- s.StreamVersion = &v
- return s
- }
- type CreateThingGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the parent thing group.
- ParentGroupName *string `locationName:"parentGroupName" min:"1" type:"string"`
- // Metadata which can be used to manage the thing group.
- Tags []*Tag `locationName:"tags" type:"list"`
- // The thing group name to create.
- //
- // ThingGroupName is a required field
- ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"`
- // The thing group properties.
- ThingGroupProperties *ThingGroupProperties `locationName:"thingGroupProperties" type:"structure"`
- }
- // String returns the string representation
- func (s CreateThingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateThingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateThingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateThingGroupInput"}
- if s.ParentGroupName != nil && len(*s.ParentGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ParentGroupName", 1))
- }
- if s.ThingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupName"))
- }
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetParentGroupName sets the ParentGroupName field's value.
- func (s *CreateThingGroupInput) SetParentGroupName(v string) *CreateThingGroupInput {
- s.ParentGroupName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateThingGroupInput) SetTags(v []*Tag) *CreateThingGroupInput {
- s.Tags = v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *CreateThingGroupInput) SetThingGroupName(v string) *CreateThingGroupInput {
- s.ThingGroupName = &v
- return s
- }
- // SetThingGroupProperties sets the ThingGroupProperties field's value.
- func (s *CreateThingGroupInput) SetThingGroupProperties(v *ThingGroupProperties) *CreateThingGroupInput {
- s.ThingGroupProperties = v
- return s
- }
- type CreateThingGroupOutput struct {
- _ struct{} `type:"structure"`
- // The thing group ARN.
- ThingGroupArn *string `locationName:"thingGroupArn" type:"string"`
- // The thing group ID.
- ThingGroupId *string `locationName:"thingGroupId" min:"1" type:"string"`
- // The thing group name.
- ThingGroupName *string `locationName:"thingGroupName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateThingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateThingGroupOutput) GoString() string {
- return s.String()
- }
- // SetThingGroupArn sets the ThingGroupArn field's value.
- func (s *CreateThingGroupOutput) SetThingGroupArn(v string) *CreateThingGroupOutput {
- s.ThingGroupArn = &v
- return s
- }
- // SetThingGroupId sets the ThingGroupId field's value.
- func (s *CreateThingGroupOutput) SetThingGroupId(v string) *CreateThingGroupOutput {
- s.ThingGroupId = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *CreateThingGroupOutput) SetThingGroupName(v string) *CreateThingGroupOutput {
- s.ThingGroupName = &v
- return s
- }
- // The input for the CreateThing operation.
- type CreateThingInput struct {
- _ struct{} `type:"structure"`
- // The attribute payload, which consists of up to three name/value pairs in
- // a JSON document. For example:
- //
- // {\"attributes\":{\"string1\":\"string2\"}}
- AttributePayload *AttributePayload `locationName:"attributePayload" type:"structure"`
- // The name of the billing group the thing will be added to.
- BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"`
- // The name of the thing to create.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- // The name of the thing type associated with the new thing.
- ThingTypeName *string `locationName:"thingTypeName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateThingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateThingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateThingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateThingInput"}
- if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1))
- }
- if s.ThingName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingName"))
- }
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if s.ThingTypeName != nil && len(*s.ThingTypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingTypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributePayload sets the AttributePayload field's value.
- func (s *CreateThingInput) SetAttributePayload(v *AttributePayload) *CreateThingInput {
- s.AttributePayload = v
- return s
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *CreateThingInput) SetBillingGroupName(v string) *CreateThingInput {
- s.BillingGroupName = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *CreateThingInput) SetThingName(v string) *CreateThingInput {
- s.ThingName = &v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *CreateThingInput) SetThingTypeName(v string) *CreateThingInput {
- s.ThingTypeName = &v
- return s
- }
- // The output of the CreateThing operation.
- type CreateThingOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the new thing.
- ThingArn *string `locationName:"thingArn" type:"string"`
- // The thing ID.
- ThingId *string `locationName:"thingId" type:"string"`
- // The name of the new thing.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateThingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateThingOutput) GoString() string {
- return s.String()
- }
- // SetThingArn sets the ThingArn field's value.
- func (s *CreateThingOutput) SetThingArn(v string) *CreateThingOutput {
- s.ThingArn = &v
- return s
- }
- // SetThingId sets the ThingId field's value.
- func (s *CreateThingOutput) SetThingId(v string) *CreateThingOutput {
- s.ThingId = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *CreateThingOutput) SetThingName(v string) *CreateThingOutput {
- s.ThingName = &v
- return s
- }
- // The input for the CreateThingType operation.
- type CreateThingTypeInput struct {
- _ struct{} `type:"structure"`
- // Metadata which can be used to manage the thing type.
- Tags []*Tag `locationName:"tags" type:"list"`
- // The name of the thing type.
- //
- // ThingTypeName is a required field
- ThingTypeName *string `location:"uri" locationName:"thingTypeName" min:"1" type:"string" required:"true"`
- // The ThingTypeProperties for the thing type to create. It contains information
- // about the new thing type including a description, and a list of searchable
- // thing attribute names.
- ThingTypeProperties *ThingTypeProperties `locationName:"thingTypeProperties" type:"structure"`
- }
- // String returns the string representation
- func (s CreateThingTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateThingTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateThingTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateThingTypeInput"}
- if s.ThingTypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingTypeName"))
- }
- if s.ThingTypeName != nil && len(*s.ThingTypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingTypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTags sets the Tags field's value.
- func (s *CreateThingTypeInput) SetTags(v []*Tag) *CreateThingTypeInput {
- s.Tags = v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *CreateThingTypeInput) SetThingTypeName(v string) *CreateThingTypeInput {
- s.ThingTypeName = &v
- return s
- }
- // SetThingTypeProperties sets the ThingTypeProperties field's value.
- func (s *CreateThingTypeInput) SetThingTypeProperties(v *ThingTypeProperties) *CreateThingTypeInput {
- s.ThingTypeProperties = v
- return s
- }
- // The output of the CreateThingType operation.
- type CreateThingTypeOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the thing type.
- ThingTypeArn *string `locationName:"thingTypeArn" type:"string"`
- // The thing type ID.
- ThingTypeId *string `locationName:"thingTypeId" type:"string"`
- // The name of the thing type.
- ThingTypeName *string `locationName:"thingTypeName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateThingTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateThingTypeOutput) GoString() string {
- return s.String()
- }
- // SetThingTypeArn sets the ThingTypeArn field's value.
- func (s *CreateThingTypeOutput) SetThingTypeArn(v string) *CreateThingTypeOutput {
- s.ThingTypeArn = &v
- return s
- }
- // SetThingTypeId sets the ThingTypeId field's value.
- func (s *CreateThingTypeOutput) SetThingTypeId(v string) *CreateThingTypeOutput {
- s.ThingTypeId = &v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *CreateThingTypeOutput) SetThingTypeName(v string) *CreateThingTypeOutput {
- s.ThingTypeName = &v
- return s
- }
- // The input for the CreateTopicRule operation.
- type CreateTopicRuleInput struct {
- _ struct{} `type:"structure" payload:"TopicRulePayload"`
- // The name of the rule.
- //
- // RuleName is a required field
- RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
- // Metadata which can be used to manage the topic rule.
- //
- // For URI Request parameters use format: ...key1=value1&key2=value2...
- //
- // For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
- //
- // For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
- Tags *string `location:"header" locationName:"x-amz-tagging" type:"string"`
- // The rule payload.
- //
- // TopicRulePayload is a required field
- TopicRulePayload *TopicRulePayload `locationName:"topicRulePayload" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateTopicRuleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTopicRuleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTopicRuleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTopicRuleInput"}
- if s.RuleName == nil {
- invalidParams.Add(request.NewErrParamRequired("RuleName"))
- }
- if s.RuleName != nil && len(*s.RuleName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
- }
- if s.TopicRulePayload == nil {
- invalidParams.Add(request.NewErrParamRequired("TopicRulePayload"))
- }
- if s.TopicRulePayload != nil {
- if err := s.TopicRulePayload.Validate(); err != nil {
- invalidParams.AddNested("TopicRulePayload", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRuleName sets the RuleName field's value.
- func (s *CreateTopicRuleInput) SetRuleName(v string) *CreateTopicRuleInput {
- s.RuleName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateTopicRuleInput) SetTags(v string) *CreateTopicRuleInput {
- s.Tags = &v
- return s
- }
- // SetTopicRulePayload sets the TopicRulePayload field's value.
- func (s *CreateTopicRuleInput) SetTopicRulePayload(v *TopicRulePayload) *CreateTopicRuleInput {
- s.TopicRulePayload = v
- return s
- }
- type CreateTopicRuleOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CreateTopicRuleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTopicRuleOutput) GoString() string {
- return s.String()
- }
- // Describes a custom method used to code sign a file.
- type CustomCodeSigning struct {
- _ struct{} `type:"structure"`
- // The certificate chain.
- CertificateChain *CodeSigningCertificateChain `locationName:"certificateChain" type:"structure"`
- // The hash algorithm used to code sign the file.
- HashAlgorithm *string `locationName:"hashAlgorithm" type:"string"`
- // The signature for the file.
- Signature *CodeSigningSignature `locationName:"signature" type:"structure"`
- // The signature algorithm used to code sign the file.
- SignatureAlgorithm *string `locationName:"signatureAlgorithm" type:"string"`
- }
- // String returns the string representation
- func (s CustomCodeSigning) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CustomCodeSigning) GoString() string {
- return s.String()
- }
- // SetCertificateChain sets the CertificateChain field's value.
- func (s *CustomCodeSigning) SetCertificateChain(v *CodeSigningCertificateChain) *CustomCodeSigning {
- s.CertificateChain = v
- return s
- }
- // SetHashAlgorithm sets the HashAlgorithm field's value.
- func (s *CustomCodeSigning) SetHashAlgorithm(v string) *CustomCodeSigning {
- s.HashAlgorithm = &v
- return s
- }
- // SetSignature sets the Signature field's value.
- func (s *CustomCodeSigning) SetSignature(v *CodeSigningSignature) *CustomCodeSigning {
- s.Signature = v
- return s
- }
- // SetSignatureAlgorithm sets the SignatureAlgorithm field's value.
- func (s *CustomCodeSigning) SetSignatureAlgorithm(v string) *CustomCodeSigning {
- s.SignatureAlgorithm = &v
- return s
- }
- type DeleteAccountAuditConfigurationInput struct {
- _ struct{} `type:"structure"`
- // If true, all scheduled audits are deleted.
- DeleteScheduledAudits *bool `location:"querystring" locationName:"deleteScheduledAudits" type:"boolean"`
- }
- // String returns the string representation
- func (s DeleteAccountAuditConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAccountAuditConfigurationInput) GoString() string {
- return s.String()
- }
- // SetDeleteScheduledAudits sets the DeleteScheduledAudits field's value.
- func (s *DeleteAccountAuditConfigurationInput) SetDeleteScheduledAudits(v bool) *DeleteAccountAuditConfigurationInput {
- s.DeleteScheduledAudits = &v
- return s
- }
- type DeleteAccountAuditConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteAccountAuditConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAccountAuditConfigurationOutput) GoString() string {
- return s.String()
- }
- type DeleteAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // The name of the authorizer to delete.
- //
- // AuthorizerName is a required field
- AuthorizerName *string `location:"uri" locationName:"authorizerName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteAuthorizerInput"}
- if s.AuthorizerName == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerName"))
- }
- if s.AuthorizerName != nil && len(*s.AuthorizerName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AuthorizerName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *DeleteAuthorizerInput) SetAuthorizerName(v string) *DeleteAuthorizerInput {
- s.AuthorizerName = &v
- return s
- }
- type DeleteAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteAuthorizerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAuthorizerOutput) GoString() string {
- return s.String()
- }
- type DeleteBillingGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the billing group.
- //
- // BillingGroupName is a required field
- BillingGroupName *string `location:"uri" locationName:"billingGroupName" min:"1" type:"string" required:"true"`
- // The expected version of the billing group. If the version of the billing
- // group does not match the expected version specified in the request, the DeleteBillingGroup
- // request is rejected with a VersionConflictException.
- ExpectedVersion *int64 `location:"querystring" locationName:"expectedVersion" type:"long"`
- }
- // String returns the string representation
- func (s DeleteBillingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteBillingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteBillingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteBillingGroupInput"}
- if s.BillingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("BillingGroupName"))
- }
- if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *DeleteBillingGroupInput) SetBillingGroupName(v string) *DeleteBillingGroupInput {
- s.BillingGroupName = &v
- return s
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *DeleteBillingGroupInput) SetExpectedVersion(v int64) *DeleteBillingGroupInput {
- s.ExpectedVersion = &v
- return s
- }
- type DeleteBillingGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteBillingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteBillingGroupOutput) GoString() string {
- return s.String()
- }
- // Input for the DeleteCACertificate operation.
- type DeleteCACertificateInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate to delete. (The last part of the certificate ARN
- // contains the certificate ID.)
- //
- // CertificateId is a required field
- CertificateId *string `location:"uri" locationName:"caCertificateId" min:"64" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteCACertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCACertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteCACertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCACertificateInput"}
- if s.CertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateId"))
- }
- if s.CertificateId != nil && len(*s.CertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *DeleteCACertificateInput) SetCertificateId(v string) *DeleteCACertificateInput {
- s.CertificateId = &v
- return s
- }
- // The output for the DeleteCACertificate operation.
- type DeleteCACertificateOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteCACertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCACertificateOutput) GoString() string {
- return s.String()
- }
- // The input for the DeleteCertificate operation.
- type DeleteCertificateInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate. (The last part of the certificate ARN contains
- // the certificate ID.)
- //
- // CertificateId is a required field
- CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"`
- // Forces a certificate request to be deleted.
- ForceDelete *bool `location:"querystring" locationName:"forceDelete" type:"boolean"`
- }
- // String returns the string representation
- func (s DeleteCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCertificateInput"}
- if s.CertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateId"))
- }
- if s.CertificateId != nil && len(*s.CertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *DeleteCertificateInput) SetCertificateId(v string) *DeleteCertificateInput {
- s.CertificateId = &v
- return s
- }
- // SetForceDelete sets the ForceDelete field's value.
- func (s *DeleteCertificateInput) SetForceDelete(v bool) *DeleteCertificateInput {
- s.ForceDelete = &v
- return s
- }
- type DeleteCertificateOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCertificateOutput) GoString() string {
- return s.String()
- }
- type DeleteDynamicThingGroupInput struct {
- _ struct{} `type:"structure"`
- // The expected version of the dynamic thing group to delete.
- ExpectedVersion *int64 `location:"querystring" locationName:"expectedVersion" type:"long"`
- // The name of the dynamic thing group to delete.
- //
- // ThingGroupName is a required field
- ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDynamicThingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDynamicThingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDynamicThingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDynamicThingGroupInput"}
- if s.ThingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupName"))
- }
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *DeleteDynamicThingGroupInput) SetExpectedVersion(v int64) *DeleteDynamicThingGroupInput {
- s.ExpectedVersion = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *DeleteDynamicThingGroupInput) SetThingGroupName(v string) *DeleteDynamicThingGroupInput {
- s.ThingGroupName = &v
- return s
- }
- type DeleteDynamicThingGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDynamicThingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDynamicThingGroupOutput) GoString() string {
- return s.String()
- }
- type DeleteJobExecutionInput struct {
- _ struct{} `type:"structure"`
- // The ID of the job execution to be deleted. The executionNumber refers to
- // the execution of a particular job on a particular device.
- //
- // Note that once a job execution is deleted, the executionNumber may be reused
- // by IoT, so be sure you get and use the correct value here.
- //
- // ExecutionNumber is a required field
- ExecutionNumber *int64 `location:"uri" locationName:"executionNumber" type:"long" required:"true"`
- // (Optional) When true, you can delete a job execution which is "IN_PROGRESS".
- // Otherwise, you can only delete a job execution which is in a terminal state
- // ("SUCCEEDED", "FAILED", "REJECTED", "REMOVED" or "CANCELED") or an exception
- // will occur. The default is false.
- //
- // Deleting a job execution which is "IN_PROGRESS", will cause the device to
- // be unable to access job information or update the job execution status. Use
- // caution and ensure that the device is able to recover to a valid state.
- Force *bool `location:"querystring" locationName:"force" type:"boolean"`
- // The ID of the job whose execution on a particular device will be deleted.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- // The name of the thing whose job execution will be deleted.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteJobExecutionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteJobExecutionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteJobExecutionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteJobExecutionInput"}
- if s.ExecutionNumber == nil {
- invalidParams.Add(request.NewErrParamRequired("ExecutionNumber"))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- 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
- }
- // SetExecutionNumber sets the ExecutionNumber field's value.
- func (s *DeleteJobExecutionInput) SetExecutionNumber(v int64) *DeleteJobExecutionInput {
- s.ExecutionNumber = &v
- return s
- }
- // SetForce sets the Force field's value.
- func (s *DeleteJobExecutionInput) SetForce(v bool) *DeleteJobExecutionInput {
- s.Force = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *DeleteJobExecutionInput) SetJobId(v string) *DeleteJobExecutionInput {
- s.JobId = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *DeleteJobExecutionInput) SetThingName(v string) *DeleteJobExecutionInput {
- s.ThingName = &v
- return s
- }
- type DeleteJobExecutionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteJobExecutionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteJobExecutionOutput) GoString() string {
- return s.String()
- }
- type DeleteJobInput struct {
- _ struct{} `type:"structure"`
- // (Optional) When true, you can delete a job which is "IN_PROGRESS". Otherwise,
- // you can only delete a job which is in a terminal state ("COMPLETED" or "CANCELED")
- // or an exception will occur. The default is false.
- //
- // Deleting a job which is "IN_PROGRESS", will cause a device which is executing
- // the job to be unable to access job information or update the job execution
- // status. Use caution and ensure that each device executing a job which is
- // deleted is able to recover to a valid state.
- Force *bool `location:"querystring" locationName:"force" type:"boolean"`
- // The ID of the job to be deleted.
- //
- // After a job deletion is completed, you may reuse this jobId when you create
- // a new job. However, this is not recommended, and you must ensure that your
- // devices are not using the jobId to refer to the deleted job.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteJobInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetForce sets the Force field's value.
- func (s *DeleteJobInput) SetForce(v bool) *DeleteJobInput {
- s.Force = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *DeleteJobInput) SetJobId(v string) *DeleteJobInput {
- s.JobId = &v
- return s
- }
- type DeleteJobOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteJobOutput) GoString() string {
- return s.String()
- }
- type DeleteOTAUpdateInput struct {
- _ struct{} `type:"structure"`
- // Specifies if the stream associated with an OTA update should be deleted when
- // the OTA update is deleted.
- DeleteStream *bool `location:"querystring" locationName:"deleteStream" type:"boolean"`
- // Specifies if the AWS Job associated with the OTA update should be deleted
- // with the OTA update is deleted.
- ForceDeleteAWSJob *bool `location:"querystring" locationName:"forceDeleteAWSJob" type:"boolean"`
- // The OTA update ID to delete.
- //
- // OtaUpdateId is a required field
- OtaUpdateId *string `location:"uri" locationName:"otaUpdateId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteOTAUpdateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteOTAUpdateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteOTAUpdateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteOTAUpdateInput"}
- if s.OtaUpdateId == nil {
- invalidParams.Add(request.NewErrParamRequired("OtaUpdateId"))
- }
- if s.OtaUpdateId != nil && len(*s.OtaUpdateId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("OtaUpdateId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDeleteStream sets the DeleteStream field's value.
- func (s *DeleteOTAUpdateInput) SetDeleteStream(v bool) *DeleteOTAUpdateInput {
- s.DeleteStream = &v
- return s
- }
- // SetForceDeleteAWSJob sets the ForceDeleteAWSJob field's value.
- func (s *DeleteOTAUpdateInput) SetForceDeleteAWSJob(v bool) *DeleteOTAUpdateInput {
- s.ForceDeleteAWSJob = &v
- return s
- }
- // SetOtaUpdateId sets the OtaUpdateId field's value.
- func (s *DeleteOTAUpdateInput) SetOtaUpdateId(v string) *DeleteOTAUpdateInput {
- s.OtaUpdateId = &v
- return s
- }
- type DeleteOTAUpdateOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteOTAUpdateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteOTAUpdateOutput) GoString() string {
- return s.String()
- }
- // The input for the DeletePolicy operation.
- type DeletePolicyInput struct {
- _ struct{} `type:"structure"`
- // The name of the policy to delete.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeletePolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeletePolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeletePolicyInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *DeletePolicyInput) SetPolicyName(v string) *DeletePolicyInput {
- s.PolicyName = &v
- return s
- }
- type DeletePolicyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeletePolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePolicyOutput) GoString() string {
- return s.String()
- }
- // The input for the DeletePolicyVersion operation.
- type DeletePolicyVersionInput struct {
- _ struct{} `type:"structure"`
- // The name of the policy.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // The policy version ID.
- //
- // PolicyVersionId is a required field
- PolicyVersionId *string `location:"uri" locationName:"policyVersionId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeletePolicyVersionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePolicyVersionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeletePolicyVersionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeletePolicyVersionInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if s.PolicyVersionId == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyVersionId"))
- }
- if s.PolicyVersionId != nil && len(*s.PolicyVersionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyVersionId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *DeletePolicyVersionInput) SetPolicyName(v string) *DeletePolicyVersionInput {
- s.PolicyName = &v
- return s
- }
- // SetPolicyVersionId sets the PolicyVersionId field's value.
- func (s *DeletePolicyVersionInput) SetPolicyVersionId(v string) *DeletePolicyVersionInput {
- s.PolicyVersionId = &v
- return s
- }
- type DeletePolicyVersionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeletePolicyVersionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePolicyVersionOutput) GoString() string {
- return s.String()
- }
- // The input for the DeleteRegistrationCode operation.
- type DeleteRegistrationCodeInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteRegistrationCodeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteRegistrationCodeInput) GoString() string {
- return s.String()
- }
- // The output for the DeleteRegistrationCode operation.
- type DeleteRegistrationCodeOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteRegistrationCodeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteRegistrationCodeOutput) GoString() string {
- return s.String()
- }
- type DeleteRoleAliasInput struct {
- _ struct{} `type:"structure"`
- // The role alias to delete.
- //
- // RoleAlias is a required field
- RoleAlias *string `location:"uri" locationName:"roleAlias" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteRoleAliasInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteRoleAliasInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteRoleAliasInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteRoleAliasInput"}
- if s.RoleAlias == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleAlias"))
- }
- if s.RoleAlias != nil && len(*s.RoleAlias) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleAlias", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRoleAlias sets the RoleAlias field's value.
- func (s *DeleteRoleAliasInput) SetRoleAlias(v string) *DeleteRoleAliasInput {
- s.RoleAlias = &v
- return s
- }
- type DeleteRoleAliasOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteRoleAliasOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteRoleAliasOutput) GoString() string {
- return s.String()
- }
- type DeleteScheduledAuditInput struct {
- _ struct{} `type:"structure"`
- // The name of the scheduled audit you want to delete.
- //
- // ScheduledAuditName is a required field
- ScheduledAuditName *string `location:"uri" locationName:"scheduledAuditName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteScheduledAuditInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteScheduledAuditInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteScheduledAuditInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteScheduledAuditInput"}
- if s.ScheduledAuditName == nil {
- invalidParams.Add(request.NewErrParamRequired("ScheduledAuditName"))
- }
- if s.ScheduledAuditName != nil && len(*s.ScheduledAuditName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ScheduledAuditName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetScheduledAuditName sets the ScheduledAuditName field's value.
- func (s *DeleteScheduledAuditInput) SetScheduledAuditName(v string) *DeleteScheduledAuditInput {
- s.ScheduledAuditName = &v
- return s
- }
- type DeleteScheduledAuditOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteScheduledAuditOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteScheduledAuditOutput) GoString() string {
- return s.String()
- }
- type DeleteSecurityProfileInput struct {
- _ struct{} `type:"structure"`
- // The expected version of the security profile. A new version is generated
- // whenever the security profile is updated. If you specify a value that is
- // different than the actual version, a VersionConflictException is thrown.
- ExpectedVersion *int64 `location:"querystring" locationName:"expectedVersion" type:"long"`
- // The name of the security profile to be deleted.
- //
- // SecurityProfileName is a required field
- SecurityProfileName *string `location:"uri" locationName:"securityProfileName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteSecurityProfileInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteSecurityProfileInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteSecurityProfileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteSecurityProfileInput"}
- if s.SecurityProfileName == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityProfileName"))
- }
- if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *DeleteSecurityProfileInput) SetExpectedVersion(v int64) *DeleteSecurityProfileInput {
- s.ExpectedVersion = &v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *DeleteSecurityProfileInput) SetSecurityProfileName(v string) *DeleteSecurityProfileInput {
- s.SecurityProfileName = &v
- return s
- }
- type DeleteSecurityProfileOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteSecurityProfileOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteSecurityProfileOutput) GoString() string {
- return s.String()
- }
- type DeleteStreamInput struct {
- _ struct{} `type:"structure"`
- // The stream ID.
- //
- // StreamId is a required field
- StreamId *string `location:"uri" locationName:"streamId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteStreamInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteStreamInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteStreamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteStreamInput"}
- if s.StreamId == nil {
- invalidParams.Add(request.NewErrParamRequired("StreamId"))
- }
- if s.StreamId != nil && len(*s.StreamId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StreamId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetStreamId sets the StreamId field's value.
- func (s *DeleteStreamInput) SetStreamId(v string) *DeleteStreamInput {
- s.StreamId = &v
- return s
- }
- type DeleteStreamOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteStreamOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteStreamOutput) GoString() string {
- return s.String()
- }
- type DeleteThingGroupInput struct {
- _ struct{} `type:"structure"`
- // The expected version of the thing group to delete.
- ExpectedVersion *int64 `location:"querystring" locationName:"expectedVersion" type:"long"`
- // The name of the thing group to delete.
- //
- // ThingGroupName is a required field
- ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteThingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteThingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteThingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteThingGroupInput"}
- if s.ThingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupName"))
- }
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *DeleteThingGroupInput) SetExpectedVersion(v int64) *DeleteThingGroupInput {
- s.ExpectedVersion = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *DeleteThingGroupInput) SetThingGroupName(v string) *DeleteThingGroupInput {
- s.ThingGroupName = &v
- return s
- }
- type DeleteThingGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteThingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteThingGroupOutput) GoString() string {
- return s.String()
- }
- // The input for the DeleteThing operation.
- type DeleteThingInput struct {
- _ struct{} `type:"structure"`
- // The expected version of the thing record in the registry. If the version
- // of the record in the registry does not match the expected version specified
- // in the request, the DeleteThing request is rejected with a VersionConflictException.
- ExpectedVersion *int64 `location:"querystring" locationName:"expectedVersion" type:"long"`
- // The name of the thing to delete.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteThingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteThingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteThingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteThingInput"}
- 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
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *DeleteThingInput) SetExpectedVersion(v int64) *DeleteThingInput {
- s.ExpectedVersion = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *DeleteThingInput) SetThingName(v string) *DeleteThingInput {
- s.ThingName = &v
- return s
- }
- // The output of the DeleteThing operation.
- type DeleteThingOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteThingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteThingOutput) GoString() string {
- return s.String()
- }
- // The input for the DeleteThingType operation.
- type DeleteThingTypeInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing type.
- //
- // ThingTypeName is a required field
- ThingTypeName *string `location:"uri" locationName:"thingTypeName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteThingTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteThingTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteThingTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteThingTypeInput"}
- if s.ThingTypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingTypeName"))
- }
- if s.ThingTypeName != nil && len(*s.ThingTypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingTypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *DeleteThingTypeInput) SetThingTypeName(v string) *DeleteThingTypeInput {
- s.ThingTypeName = &v
- return s
- }
- // The output for the DeleteThingType operation.
- type DeleteThingTypeOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteThingTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteThingTypeOutput) GoString() string {
- return s.String()
- }
- // The input for the DeleteTopicRule operation.
- type DeleteTopicRuleInput struct {
- _ struct{} `type:"structure"`
- // The name of the rule.
- //
- // RuleName is a required field
- RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteTopicRuleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTopicRuleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteTopicRuleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteTopicRuleInput"}
- if s.RuleName == nil {
- invalidParams.Add(request.NewErrParamRequired("RuleName"))
- }
- if s.RuleName != nil && len(*s.RuleName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRuleName sets the RuleName field's value.
- func (s *DeleteTopicRuleInput) SetRuleName(v string) *DeleteTopicRuleInput {
- s.RuleName = &v
- return s
- }
- type DeleteTopicRuleOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteTopicRuleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTopicRuleOutput) GoString() string {
- return s.String()
- }
- type DeleteV2LoggingLevelInput struct {
- _ struct{} `type:"structure"`
- // The name of the resource for which you are configuring logging.
- //
- // TargetName is a required field
- TargetName *string `location:"querystring" locationName:"targetName" type:"string" required:"true"`
- // The type of resource for which you are configuring logging. Must be THING_Group.
- //
- // TargetType is a required field
- TargetType *string `location:"querystring" locationName:"targetType" type:"string" required:"true" enum:"LogTargetType"`
- }
- // String returns the string representation
- func (s DeleteV2LoggingLevelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteV2LoggingLevelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteV2LoggingLevelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteV2LoggingLevelInput"}
- if s.TargetName == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetName"))
- }
- if s.TargetType == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTargetName sets the TargetName field's value.
- func (s *DeleteV2LoggingLevelInput) SetTargetName(v string) *DeleteV2LoggingLevelInput {
- s.TargetName = &v
- return s
- }
- // SetTargetType sets the TargetType field's value.
- func (s *DeleteV2LoggingLevelInput) SetTargetType(v string) *DeleteV2LoggingLevelInput {
- s.TargetType = &v
- return s
- }
- type DeleteV2LoggingLevelOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteV2LoggingLevelOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteV2LoggingLevelOutput) GoString() string {
- return s.String()
- }
- // Contains information that denied the authorization.
- type Denied struct {
- _ struct{} `type:"structure"`
- // Information that explicitly denies the authorization.
- ExplicitDeny *ExplicitDeny `locationName:"explicitDeny" type:"structure"`
- // Information that implicitly denies the authorization. When a policy doesn't
- // explicitly deny or allow an action on a resource it is considered an implicit
- // deny.
- ImplicitDeny *ImplicitDeny `locationName:"implicitDeny" type:"structure"`
- }
- // String returns the string representation
- func (s Denied) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Denied) GoString() string {
- return s.String()
- }
- // SetExplicitDeny sets the ExplicitDeny field's value.
- func (s *Denied) SetExplicitDeny(v *ExplicitDeny) *Denied {
- s.ExplicitDeny = v
- return s
- }
- // SetImplicitDeny sets the ImplicitDeny field's value.
- func (s *Denied) SetImplicitDeny(v *ImplicitDeny) *Denied {
- s.ImplicitDeny = v
- return s
- }
- // The input for the DeprecateThingType operation.
- type DeprecateThingTypeInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing type to deprecate.
- //
- // ThingTypeName is a required field
- ThingTypeName *string `location:"uri" locationName:"thingTypeName" min:"1" type:"string" required:"true"`
- // Whether to undeprecate a deprecated thing type. If true, the thing type will
- // not be deprecated anymore and you can associate it with things.
- UndoDeprecate *bool `locationName:"undoDeprecate" type:"boolean"`
- }
- // String returns the string representation
- func (s DeprecateThingTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeprecateThingTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeprecateThingTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeprecateThingTypeInput"}
- if s.ThingTypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingTypeName"))
- }
- if s.ThingTypeName != nil && len(*s.ThingTypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingTypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *DeprecateThingTypeInput) SetThingTypeName(v string) *DeprecateThingTypeInput {
- s.ThingTypeName = &v
- return s
- }
- // SetUndoDeprecate sets the UndoDeprecate field's value.
- func (s *DeprecateThingTypeInput) SetUndoDeprecate(v bool) *DeprecateThingTypeInput {
- s.UndoDeprecate = &v
- return s
- }
- // The output for the DeprecateThingType operation.
- type DeprecateThingTypeOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeprecateThingTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeprecateThingTypeOutput) GoString() string {
- return s.String()
- }
- type DescribeAccountAuditConfigurationInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeAccountAuditConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAccountAuditConfigurationInput) GoString() string {
- return s.String()
- }
- type DescribeAccountAuditConfigurationOutput struct {
- _ struct{} `type:"structure"`
- // Which audit checks are enabled and disabled for this account.
- AuditCheckConfigurations map[string]*AuditCheckConfiguration `locationName:"auditCheckConfigurations" type:"map"`
- // Information about the targets to which audit notifications are sent for this
- // account.
- AuditNotificationTargetConfigurations map[string]*AuditNotificationTarget `locationName:"auditNotificationTargetConfigurations" type:"map"`
- // The ARN of the role that grants permission to AWS IoT to access information
- // about your devices, policies, certificates and other items as necessary when
- // performing an audit.
- //
- // On the first call to UpdateAccountAuditConfiguration this parameter is required.
- RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
- }
- // String returns the string representation
- func (s DescribeAccountAuditConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAccountAuditConfigurationOutput) GoString() string {
- return s.String()
- }
- // SetAuditCheckConfigurations sets the AuditCheckConfigurations field's value.
- func (s *DescribeAccountAuditConfigurationOutput) SetAuditCheckConfigurations(v map[string]*AuditCheckConfiguration) *DescribeAccountAuditConfigurationOutput {
- s.AuditCheckConfigurations = v
- return s
- }
- // SetAuditNotificationTargetConfigurations sets the AuditNotificationTargetConfigurations field's value.
- func (s *DescribeAccountAuditConfigurationOutput) SetAuditNotificationTargetConfigurations(v map[string]*AuditNotificationTarget) *DescribeAccountAuditConfigurationOutput {
- s.AuditNotificationTargetConfigurations = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *DescribeAccountAuditConfigurationOutput) SetRoleArn(v string) *DescribeAccountAuditConfigurationOutput {
- s.RoleArn = &v
- return s
- }
- type DescribeAuditTaskInput struct {
- _ struct{} `type:"structure"`
- // The ID of the audit whose information you want to get.
- //
- // TaskId is a required field
- TaskId *string `location:"uri" locationName:"taskId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeAuditTaskInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAuditTaskInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeAuditTaskInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeAuditTaskInput"}
- if s.TaskId == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskId"))
- }
- if s.TaskId != nil && len(*s.TaskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTaskId sets the TaskId field's value.
- func (s *DescribeAuditTaskInput) SetTaskId(v string) *DescribeAuditTaskInput {
- s.TaskId = &v
- return s
- }
- type DescribeAuditTaskOutput struct {
- _ struct{} `type:"structure"`
- // Detailed information about each check performed during this audit.
- AuditDetails map[string]*AuditCheckDetails `locationName:"auditDetails" type:"map"`
- // The name of the scheduled audit (only if the audit was a scheduled audit).
- ScheduledAuditName *string `locationName:"scheduledAuditName" min:"1" type:"string"`
- // The time the audit started.
- TaskStartTime *time.Time `locationName:"taskStartTime" type:"timestamp"`
- // Statistical information about the audit.
- TaskStatistics *TaskStatistics `locationName:"taskStatistics" type:"structure"`
- // The status of the audit: one of "IN_PROGRESS", "COMPLETED", "FAILED", or
- // "CANCELED".
- TaskStatus *string `locationName:"taskStatus" type:"string" enum:"AuditTaskStatus"`
- // The type of audit: "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".
- TaskType *string `locationName:"taskType" type:"string" enum:"AuditTaskType"`
- }
- // String returns the string representation
- func (s DescribeAuditTaskOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAuditTaskOutput) GoString() string {
- return s.String()
- }
- // SetAuditDetails sets the AuditDetails field's value.
- func (s *DescribeAuditTaskOutput) SetAuditDetails(v map[string]*AuditCheckDetails) *DescribeAuditTaskOutput {
- s.AuditDetails = v
- return s
- }
- // SetScheduledAuditName sets the ScheduledAuditName field's value.
- func (s *DescribeAuditTaskOutput) SetScheduledAuditName(v string) *DescribeAuditTaskOutput {
- s.ScheduledAuditName = &v
- return s
- }
- // SetTaskStartTime sets the TaskStartTime field's value.
- func (s *DescribeAuditTaskOutput) SetTaskStartTime(v time.Time) *DescribeAuditTaskOutput {
- s.TaskStartTime = &v
- return s
- }
- // SetTaskStatistics sets the TaskStatistics field's value.
- func (s *DescribeAuditTaskOutput) SetTaskStatistics(v *TaskStatistics) *DescribeAuditTaskOutput {
- s.TaskStatistics = v
- return s
- }
- // SetTaskStatus sets the TaskStatus field's value.
- func (s *DescribeAuditTaskOutput) SetTaskStatus(v string) *DescribeAuditTaskOutput {
- s.TaskStatus = &v
- return s
- }
- // SetTaskType sets the TaskType field's value.
- func (s *DescribeAuditTaskOutput) SetTaskType(v string) *DescribeAuditTaskOutput {
- s.TaskType = &v
- return s
- }
- type DescribeAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // The name of the authorizer to describe.
- //
- // AuthorizerName is a required field
- AuthorizerName *string `location:"uri" locationName:"authorizerName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeAuthorizerInput"}
- if s.AuthorizerName == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerName"))
- }
- if s.AuthorizerName != nil && len(*s.AuthorizerName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AuthorizerName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *DescribeAuthorizerInput) SetAuthorizerName(v string) *DescribeAuthorizerInput {
- s.AuthorizerName = &v
- return s
- }
- type DescribeAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- // The authorizer description.
- AuthorizerDescription *AuthorizerDescription `locationName:"authorizerDescription" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeAuthorizerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAuthorizerOutput) GoString() string {
- return s.String()
- }
- // SetAuthorizerDescription sets the AuthorizerDescription field's value.
- func (s *DescribeAuthorizerOutput) SetAuthorizerDescription(v *AuthorizerDescription) *DescribeAuthorizerOutput {
- s.AuthorizerDescription = v
- return s
- }
- type DescribeBillingGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the billing group.
- //
- // BillingGroupName is a required field
- BillingGroupName *string `location:"uri" locationName:"billingGroupName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeBillingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeBillingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeBillingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeBillingGroupInput"}
- if s.BillingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("BillingGroupName"))
- }
- if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *DescribeBillingGroupInput) SetBillingGroupName(v string) *DescribeBillingGroupInput {
- s.BillingGroupName = &v
- return s
- }
- type DescribeBillingGroupOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the billing group.
- BillingGroupArn *string `locationName:"billingGroupArn" type:"string"`
- // The ID of the billing group.
- BillingGroupId *string `locationName:"billingGroupId" min:"1" type:"string"`
- // Additional information about the billing group.
- BillingGroupMetadata *BillingGroupMetadata `locationName:"billingGroupMetadata" type:"structure"`
- // The name of the billing group.
- BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"`
- // The properties of the billing group.
- BillingGroupProperties *BillingGroupProperties `locationName:"billingGroupProperties" type:"structure"`
- // The version of the billing group.
- Version *int64 `locationName:"version" type:"long"`
- }
- // String returns the string representation
- func (s DescribeBillingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeBillingGroupOutput) GoString() string {
- return s.String()
- }
- // SetBillingGroupArn sets the BillingGroupArn field's value.
- func (s *DescribeBillingGroupOutput) SetBillingGroupArn(v string) *DescribeBillingGroupOutput {
- s.BillingGroupArn = &v
- return s
- }
- // SetBillingGroupId sets the BillingGroupId field's value.
- func (s *DescribeBillingGroupOutput) SetBillingGroupId(v string) *DescribeBillingGroupOutput {
- s.BillingGroupId = &v
- return s
- }
- // SetBillingGroupMetadata sets the BillingGroupMetadata field's value.
- func (s *DescribeBillingGroupOutput) SetBillingGroupMetadata(v *BillingGroupMetadata) *DescribeBillingGroupOutput {
- s.BillingGroupMetadata = v
- return s
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *DescribeBillingGroupOutput) SetBillingGroupName(v string) *DescribeBillingGroupOutput {
- s.BillingGroupName = &v
- return s
- }
- // SetBillingGroupProperties sets the BillingGroupProperties field's value.
- func (s *DescribeBillingGroupOutput) SetBillingGroupProperties(v *BillingGroupProperties) *DescribeBillingGroupOutput {
- s.BillingGroupProperties = v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *DescribeBillingGroupOutput) SetVersion(v int64) *DescribeBillingGroupOutput {
- s.Version = &v
- return s
- }
- // The input for the DescribeCACertificate operation.
- type DescribeCACertificateInput struct {
- _ struct{} `type:"structure"`
- // The CA certificate identifier.
- //
- // CertificateId is a required field
- CertificateId *string `location:"uri" locationName:"caCertificateId" min:"64" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCACertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCACertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeCACertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeCACertificateInput"}
- if s.CertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateId"))
- }
- if s.CertificateId != nil && len(*s.CertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *DescribeCACertificateInput) SetCertificateId(v string) *DescribeCACertificateInput {
- s.CertificateId = &v
- return s
- }
- // The output from the DescribeCACertificate operation.
- type DescribeCACertificateOutput struct {
- _ struct{} `type:"structure"`
- // The CA certificate description.
- CertificateDescription *CACertificateDescription `locationName:"certificateDescription" type:"structure"`
- // Information about the registration configuration.
- RegistrationConfig *RegistrationConfig `locationName:"registrationConfig" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeCACertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCACertificateOutput) GoString() string {
- return s.String()
- }
- // SetCertificateDescription sets the CertificateDescription field's value.
- func (s *DescribeCACertificateOutput) SetCertificateDescription(v *CACertificateDescription) *DescribeCACertificateOutput {
- s.CertificateDescription = v
- return s
- }
- // SetRegistrationConfig sets the RegistrationConfig field's value.
- func (s *DescribeCACertificateOutput) SetRegistrationConfig(v *RegistrationConfig) *DescribeCACertificateOutput {
- s.RegistrationConfig = v
- return s
- }
- // The input for the DescribeCertificate operation.
- type DescribeCertificateInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate. (The last part of the certificate ARN contains
- // the certificate ID.)
- //
- // CertificateId is a required field
- CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeCertificateInput"}
- if s.CertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateId"))
- }
- if s.CertificateId != nil && len(*s.CertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *DescribeCertificateInput) SetCertificateId(v string) *DescribeCertificateInput {
- s.CertificateId = &v
- return s
- }
- // The output of the DescribeCertificate operation.
- type DescribeCertificateOutput struct {
- _ struct{} `type:"structure"`
- // The description of the certificate.
- CertificateDescription *CertificateDescription `locationName:"certificateDescription" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCertificateOutput) GoString() string {
- return s.String()
- }
- // SetCertificateDescription sets the CertificateDescription field's value.
- func (s *DescribeCertificateOutput) SetCertificateDescription(v *CertificateDescription) *DescribeCertificateOutput {
- s.CertificateDescription = v
- return s
- }
- type DescribeDefaultAuthorizerInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeDefaultAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDefaultAuthorizerInput) GoString() string {
- return s.String()
- }
- type DescribeDefaultAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- // The default authorizer's description.
- AuthorizerDescription *AuthorizerDescription `locationName:"authorizerDescription" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeDefaultAuthorizerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDefaultAuthorizerOutput) GoString() string {
- return s.String()
- }
- // SetAuthorizerDescription sets the AuthorizerDescription field's value.
- func (s *DescribeDefaultAuthorizerOutput) SetAuthorizerDescription(v *AuthorizerDescription) *DescribeDefaultAuthorizerOutput {
- s.AuthorizerDescription = v
- return s
- }
- // The input for the DescribeEndpoint operation.
- type DescribeEndpointInput struct {
- _ struct{} `type:"structure"`
- // The endpoint type. Valid endpoint types include:
- //
- // * iot:Data - Returns a VeriSign signed data endpoint.
- //
- // * iot:Data-ATS - Returns an ATS signed data endpoint.
- //
- // * iot:CredentialProvider - Returns an AWS IoT credentials provider API
- // endpoint.
- //
- // * iot:Jobs - Returns an AWS IoT device management Jobs API endpoint.
- EndpointType *string `location:"querystring" locationName:"endpointType" type:"string"`
- }
- // String returns the string representation
- func (s DescribeEndpointInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEndpointInput) GoString() string {
- return s.String()
- }
- // SetEndpointType sets the EndpointType field's value.
- func (s *DescribeEndpointInput) SetEndpointType(v string) *DescribeEndpointInput {
- s.EndpointType = &v
- return s
- }
- // The output from the DescribeEndpoint operation.
- type DescribeEndpointOutput struct {
- _ struct{} `type:"structure"`
- // The endpoint. The format of the endpoint is as follows: identifier.iot.region.amazonaws.com.
- EndpointAddress *string `locationName:"endpointAddress" type:"string"`
- }
- // String returns the string representation
- func (s DescribeEndpointOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEndpointOutput) GoString() string {
- return s.String()
- }
- // SetEndpointAddress sets the EndpointAddress field's value.
- func (s *DescribeEndpointOutput) SetEndpointAddress(v string) *DescribeEndpointOutput {
- s.EndpointAddress = &v
- return s
- }
- type DescribeEventConfigurationsInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeEventConfigurationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEventConfigurationsInput) GoString() string {
- return s.String()
- }
- type DescribeEventConfigurationsOutput struct {
- _ struct{} `type:"structure"`
- // The creation date of the event configuration.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The event configurations.
- EventConfigurations map[string]*Configuration `locationName:"eventConfigurations" type:"map"`
- // The date the event configurations were last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- }
- // String returns the string representation
- func (s DescribeEventConfigurationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEventConfigurationsOutput) GoString() string {
- return s.String()
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *DescribeEventConfigurationsOutput) SetCreationDate(v time.Time) *DescribeEventConfigurationsOutput {
- s.CreationDate = &v
- return s
- }
- // SetEventConfigurations sets the EventConfigurations field's value.
- func (s *DescribeEventConfigurationsOutput) SetEventConfigurations(v map[string]*Configuration) *DescribeEventConfigurationsOutput {
- s.EventConfigurations = v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *DescribeEventConfigurationsOutput) SetLastModifiedDate(v time.Time) *DescribeEventConfigurationsOutput {
- s.LastModifiedDate = &v
- return s
- }
- type DescribeIndexInput struct {
- _ struct{} `type:"structure"`
- // The index name.
- //
- // IndexName is a required field
- IndexName *string `location:"uri" locationName:"indexName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeIndexInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeIndexInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeIndexInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeIndexInput"}
- if s.IndexName == nil {
- invalidParams.Add(request.NewErrParamRequired("IndexName"))
- }
- if s.IndexName != nil && len(*s.IndexName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("IndexName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetIndexName sets the IndexName field's value.
- func (s *DescribeIndexInput) SetIndexName(v string) *DescribeIndexInput {
- s.IndexName = &v
- return s
- }
- type DescribeIndexOutput struct {
- _ struct{} `type:"structure"`
- // The index name.
- IndexName *string `locationName:"indexName" min:"1" type:"string"`
- // The index status.
- IndexStatus *string `locationName:"indexStatus" type:"string" enum:"IndexStatus"`
- // Contains a value that specifies the type of indexing performed. Valid values
- // are:
- //
- // * REGISTRY – Your thing index will contain only registry data.
- //
- // * REGISTRY_AND_SHADOW - Your thing index will contain registry data and
- // shadow data.
- //
- // * REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index will contain registry
- // data and thing connectivity status data.
- //
- // * REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index will
- // contain registry data, shadow data, and thing connectivity status data.
- Schema *string `locationName:"schema" type:"string"`
- }
- // String returns the string representation
- func (s DescribeIndexOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeIndexOutput) GoString() string {
- return s.String()
- }
- // SetIndexName sets the IndexName field's value.
- func (s *DescribeIndexOutput) SetIndexName(v string) *DescribeIndexOutput {
- s.IndexName = &v
- return s
- }
- // SetIndexStatus sets the IndexStatus field's value.
- func (s *DescribeIndexOutput) SetIndexStatus(v string) *DescribeIndexOutput {
- s.IndexStatus = &v
- return s
- }
- // SetSchema sets the Schema field's value.
- func (s *DescribeIndexOutput) SetSchema(v string) *DescribeIndexOutput {
- s.Schema = &v
- return s
- }
- type DescribeJobExecutionInput struct {
- _ struct{} `type:"structure"`
- // A string (consisting of the digits "0" through "9" which is used to specify
- // a particular job execution on a particular device.
- ExecutionNumber *int64 `location:"querystring" locationName:"executionNumber" type:"long"`
- // The unique identifier you assigned to this job when it was created.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- // The name of the thing on which the job execution is running.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeJobExecutionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeJobExecutionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeJobExecutionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeJobExecutionInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- 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
- }
- // SetExecutionNumber sets the ExecutionNumber field's value.
- func (s *DescribeJobExecutionInput) SetExecutionNumber(v int64) *DescribeJobExecutionInput {
- s.ExecutionNumber = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *DescribeJobExecutionInput) SetJobId(v string) *DescribeJobExecutionInput {
- s.JobId = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *DescribeJobExecutionInput) SetThingName(v string) *DescribeJobExecutionInput {
- s.ThingName = &v
- return s
- }
- type DescribeJobExecutionOutput struct {
- _ struct{} `type:"structure"`
- // Information about the job execution.
- Execution *JobExecution `locationName:"execution" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeJobExecutionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeJobExecutionOutput) GoString() string {
- return s.String()
- }
- // SetExecution sets the Execution field's value.
- func (s *DescribeJobExecutionOutput) SetExecution(v *JobExecution) *DescribeJobExecutionOutput {
- s.Execution = v
- return s
- }
- type DescribeJobInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier you assigned to this job when it was created.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeJobInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetJobId sets the JobId field's value.
- func (s *DescribeJobInput) SetJobId(v string) *DescribeJobInput {
- s.JobId = &v
- return s
- }
- type DescribeJobOutput struct {
- _ struct{} `type:"structure"`
- // An S3 link to the job document.
- DocumentSource *string `locationName:"documentSource" min:"1" type:"string"`
- // Information about the job.
- Job *Job `locationName:"job" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeJobOutput) GoString() string {
- return s.String()
- }
- // SetDocumentSource sets the DocumentSource field's value.
- func (s *DescribeJobOutput) SetDocumentSource(v string) *DescribeJobOutput {
- s.DocumentSource = &v
- return s
- }
- // SetJob sets the Job field's value.
- func (s *DescribeJobOutput) SetJob(v *Job) *DescribeJobOutput {
- s.Job = v
- return s
- }
- type DescribeRoleAliasInput struct {
- _ struct{} `type:"structure"`
- // The role alias to describe.
- //
- // RoleAlias is a required field
- RoleAlias *string `location:"uri" locationName:"roleAlias" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeRoleAliasInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeRoleAliasInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeRoleAliasInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeRoleAliasInput"}
- if s.RoleAlias == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleAlias"))
- }
- if s.RoleAlias != nil && len(*s.RoleAlias) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleAlias", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRoleAlias sets the RoleAlias field's value.
- func (s *DescribeRoleAliasInput) SetRoleAlias(v string) *DescribeRoleAliasInput {
- s.RoleAlias = &v
- return s
- }
- type DescribeRoleAliasOutput struct {
- _ struct{} `type:"structure"`
- // The role alias description.
- RoleAliasDescription *RoleAliasDescription `locationName:"roleAliasDescription" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeRoleAliasOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeRoleAliasOutput) GoString() string {
- return s.String()
- }
- // SetRoleAliasDescription sets the RoleAliasDescription field's value.
- func (s *DescribeRoleAliasOutput) SetRoleAliasDescription(v *RoleAliasDescription) *DescribeRoleAliasOutput {
- s.RoleAliasDescription = v
- return s
- }
- type DescribeScheduledAuditInput struct {
- _ struct{} `type:"structure"`
- // The name of the scheduled audit whose information you want to get.
- //
- // ScheduledAuditName is a required field
- ScheduledAuditName *string `location:"uri" locationName:"scheduledAuditName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeScheduledAuditInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeScheduledAuditInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeScheduledAuditInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledAuditInput"}
- if s.ScheduledAuditName == nil {
- invalidParams.Add(request.NewErrParamRequired("ScheduledAuditName"))
- }
- if s.ScheduledAuditName != nil && len(*s.ScheduledAuditName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ScheduledAuditName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetScheduledAuditName sets the ScheduledAuditName field's value.
- func (s *DescribeScheduledAuditInput) SetScheduledAuditName(v string) *DescribeScheduledAuditInput {
- s.ScheduledAuditName = &v
- return s
- }
- type DescribeScheduledAuditOutput struct {
- _ struct{} `type:"structure"`
- // The day of the month on which the scheduled audit takes place. Will be "1"
- // through "31" or "LAST". If days 29-31 are specified, and the month does not
- // have that many days, the audit takes place on the "LAST" day of the month.
- DayOfMonth *string `locationName:"dayOfMonth" type:"string"`
- // The day of the week on which the scheduled audit takes place. One of "SUN",
- // "MON", "TUE", "WED", "THU", "FRI" or "SAT".
- DayOfWeek *string `locationName:"dayOfWeek" type:"string" enum:"DayOfWeek"`
- // How often the scheduled audit takes place. One of "DAILY", "WEEKLY", "BIWEEKLY"
- // or "MONTHLY". The actual start time of each audit is determined by the system.
- Frequency *string `locationName:"frequency" type:"string" enum:"AuditFrequency"`
- // The ARN of the scheduled audit.
- ScheduledAuditArn *string `locationName:"scheduledAuditArn" type:"string"`
- // The name of the scheduled audit.
- ScheduledAuditName *string `locationName:"scheduledAuditName" min:"1" type:"string"`
- // Which checks are performed during the scheduled audit. (Note that checks
- // must be enabled for your account. (Use DescribeAccountAuditConfiguration
- // to see the list of all checks including those that are enabled or UpdateAccountAuditConfiguration
- // to select which checks are enabled.)
- TargetCheckNames []*string `locationName:"targetCheckNames" type:"list"`
- }
- // String returns the string representation
- func (s DescribeScheduledAuditOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeScheduledAuditOutput) GoString() string {
- return s.String()
- }
- // SetDayOfMonth sets the DayOfMonth field's value.
- func (s *DescribeScheduledAuditOutput) SetDayOfMonth(v string) *DescribeScheduledAuditOutput {
- s.DayOfMonth = &v
- return s
- }
- // SetDayOfWeek sets the DayOfWeek field's value.
- func (s *DescribeScheduledAuditOutput) SetDayOfWeek(v string) *DescribeScheduledAuditOutput {
- s.DayOfWeek = &v
- return s
- }
- // SetFrequency sets the Frequency field's value.
- func (s *DescribeScheduledAuditOutput) SetFrequency(v string) *DescribeScheduledAuditOutput {
- s.Frequency = &v
- return s
- }
- // SetScheduledAuditArn sets the ScheduledAuditArn field's value.
- func (s *DescribeScheduledAuditOutput) SetScheduledAuditArn(v string) *DescribeScheduledAuditOutput {
- s.ScheduledAuditArn = &v
- return s
- }
- // SetScheduledAuditName sets the ScheduledAuditName field's value.
- func (s *DescribeScheduledAuditOutput) SetScheduledAuditName(v string) *DescribeScheduledAuditOutput {
- s.ScheduledAuditName = &v
- return s
- }
- // SetTargetCheckNames sets the TargetCheckNames field's value.
- func (s *DescribeScheduledAuditOutput) SetTargetCheckNames(v []*string) *DescribeScheduledAuditOutput {
- s.TargetCheckNames = v
- return s
- }
- type DescribeSecurityProfileInput struct {
- _ struct{} `type:"structure"`
- // The name of the security profile whose information you want to get.
- //
- // SecurityProfileName is a required field
- SecurityProfileName *string `location:"uri" locationName:"securityProfileName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeSecurityProfileInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSecurityProfileInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeSecurityProfileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityProfileInput"}
- if s.SecurityProfileName == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityProfileName"))
- }
- if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *DescribeSecurityProfileInput) SetSecurityProfileName(v string) *DescribeSecurityProfileInput {
- s.SecurityProfileName = &v
- return s
- }
- type DescribeSecurityProfileOutput struct {
- _ struct{} `type:"structure"`
- // Where the alerts are sent. (Alerts are always sent to the console.)
- AlertTargets map[string]*AlertTarget `locationName:"alertTargets" type:"map"`
- // Specifies the behaviors that, when violated by a device (thing), cause an
- // alert.
- Behaviors []*Behavior `locationName:"behaviors" type:"list"`
- // The time the security profile was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The time the security profile was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // The ARN of the security profile.
- SecurityProfileArn *string `locationName:"securityProfileArn" type:"string"`
- // A description of the security profile (associated with the security profile
- // when it was created or updated).
- SecurityProfileDescription *string `locationName:"securityProfileDescription" type:"string"`
- // The name of the security profile.
- SecurityProfileName *string `locationName:"securityProfileName" min:"1" type:"string"`
- // The version of the security profile. A new version is generated whenever
- // the security profile is updated.
- Version *int64 `locationName:"version" type:"long"`
- }
- // String returns the string representation
- func (s DescribeSecurityProfileOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSecurityProfileOutput) GoString() string {
- return s.String()
- }
- // SetAlertTargets sets the AlertTargets field's value.
- func (s *DescribeSecurityProfileOutput) SetAlertTargets(v map[string]*AlertTarget) *DescribeSecurityProfileOutput {
- s.AlertTargets = v
- return s
- }
- // SetBehaviors sets the Behaviors field's value.
- func (s *DescribeSecurityProfileOutput) SetBehaviors(v []*Behavior) *DescribeSecurityProfileOutput {
- s.Behaviors = v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *DescribeSecurityProfileOutput) SetCreationDate(v time.Time) *DescribeSecurityProfileOutput {
- s.CreationDate = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *DescribeSecurityProfileOutput) SetLastModifiedDate(v time.Time) *DescribeSecurityProfileOutput {
- s.LastModifiedDate = &v
- return s
- }
- // SetSecurityProfileArn sets the SecurityProfileArn field's value.
- func (s *DescribeSecurityProfileOutput) SetSecurityProfileArn(v string) *DescribeSecurityProfileOutput {
- s.SecurityProfileArn = &v
- return s
- }
- // SetSecurityProfileDescription sets the SecurityProfileDescription field's value.
- func (s *DescribeSecurityProfileOutput) SetSecurityProfileDescription(v string) *DescribeSecurityProfileOutput {
- s.SecurityProfileDescription = &v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *DescribeSecurityProfileOutput) SetSecurityProfileName(v string) *DescribeSecurityProfileOutput {
- s.SecurityProfileName = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *DescribeSecurityProfileOutput) SetVersion(v int64) *DescribeSecurityProfileOutput {
- s.Version = &v
- return s
- }
- type DescribeStreamInput struct {
- _ struct{} `type:"structure"`
- // The stream ID.
- //
- // StreamId is a required field
- StreamId *string `location:"uri" locationName:"streamId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeStreamInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeStreamInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeStreamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeStreamInput"}
- if s.StreamId == nil {
- invalidParams.Add(request.NewErrParamRequired("StreamId"))
- }
- if s.StreamId != nil && len(*s.StreamId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StreamId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetStreamId sets the StreamId field's value.
- func (s *DescribeStreamInput) SetStreamId(v string) *DescribeStreamInput {
- s.StreamId = &v
- return s
- }
- type DescribeStreamOutput struct {
- _ struct{} `type:"structure"`
- // Information about the stream.
- StreamInfo *StreamInfo `locationName:"streamInfo" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeStreamOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeStreamOutput) GoString() string {
- return s.String()
- }
- // SetStreamInfo sets the StreamInfo field's value.
- func (s *DescribeStreamOutput) SetStreamInfo(v *StreamInfo) *DescribeStreamOutput {
- s.StreamInfo = v
- return s
- }
- type DescribeThingGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing group.
- //
- // ThingGroupName is a required field
- ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeThingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeThingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeThingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeThingGroupInput"}
- if s.ThingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupName"))
- }
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *DescribeThingGroupInput) SetThingGroupName(v string) *DescribeThingGroupInput {
- s.ThingGroupName = &v
- return s
- }
- type DescribeThingGroupOutput struct {
- _ struct{} `type:"structure"`
- // The dynamic thing group index name.
- IndexName *string `locationName:"indexName" min:"1" type:"string"`
- // The dynamic thing group search query string.
- QueryString *string `locationName:"queryString" min:"1" type:"string"`
- // The dynamic thing group query version.
- QueryVersion *string `locationName:"queryVersion" type:"string"`
- // The dynamic thing group status.
- Status *string `locationName:"status" type:"string" enum:"DynamicGroupStatus"`
- // The thing group ARN.
- ThingGroupArn *string `locationName:"thingGroupArn" type:"string"`
- // The thing group ID.
- ThingGroupId *string `locationName:"thingGroupId" min:"1" type:"string"`
- // Thing group metadata.
- ThingGroupMetadata *ThingGroupMetadata `locationName:"thingGroupMetadata" type:"structure"`
- // The name of the thing group.
- ThingGroupName *string `locationName:"thingGroupName" min:"1" type:"string"`
- // The thing group properties.
- ThingGroupProperties *ThingGroupProperties `locationName:"thingGroupProperties" type:"structure"`
- // The version of the thing group.
- Version *int64 `locationName:"version" type:"long"`
- }
- // String returns the string representation
- func (s DescribeThingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeThingGroupOutput) GoString() string {
- return s.String()
- }
- // SetIndexName sets the IndexName field's value.
- func (s *DescribeThingGroupOutput) SetIndexName(v string) *DescribeThingGroupOutput {
- s.IndexName = &v
- return s
- }
- // SetQueryString sets the QueryString field's value.
- func (s *DescribeThingGroupOutput) SetQueryString(v string) *DescribeThingGroupOutput {
- s.QueryString = &v
- return s
- }
- // SetQueryVersion sets the QueryVersion field's value.
- func (s *DescribeThingGroupOutput) SetQueryVersion(v string) *DescribeThingGroupOutput {
- s.QueryVersion = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *DescribeThingGroupOutput) SetStatus(v string) *DescribeThingGroupOutput {
- s.Status = &v
- return s
- }
- // SetThingGroupArn sets the ThingGroupArn field's value.
- func (s *DescribeThingGroupOutput) SetThingGroupArn(v string) *DescribeThingGroupOutput {
- s.ThingGroupArn = &v
- return s
- }
- // SetThingGroupId sets the ThingGroupId field's value.
- func (s *DescribeThingGroupOutput) SetThingGroupId(v string) *DescribeThingGroupOutput {
- s.ThingGroupId = &v
- return s
- }
- // SetThingGroupMetadata sets the ThingGroupMetadata field's value.
- func (s *DescribeThingGroupOutput) SetThingGroupMetadata(v *ThingGroupMetadata) *DescribeThingGroupOutput {
- s.ThingGroupMetadata = v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *DescribeThingGroupOutput) SetThingGroupName(v string) *DescribeThingGroupOutput {
- s.ThingGroupName = &v
- return s
- }
- // SetThingGroupProperties sets the ThingGroupProperties field's value.
- func (s *DescribeThingGroupOutput) SetThingGroupProperties(v *ThingGroupProperties) *DescribeThingGroupOutput {
- s.ThingGroupProperties = v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *DescribeThingGroupOutput) SetVersion(v int64) *DescribeThingGroupOutput {
- s.Version = &v
- return s
- }
- // The input for the DescribeThing operation.
- type DescribeThingInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeThingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeThingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeThingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeThingInput"}
- 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
- }
- // SetThingName sets the ThingName field's value.
- func (s *DescribeThingInput) SetThingName(v string) *DescribeThingInput {
- s.ThingName = &v
- return s
- }
- // The output from the DescribeThing operation.
- type DescribeThingOutput struct {
- _ struct{} `type:"structure"`
- // The thing attributes.
- Attributes map[string]*string `locationName:"attributes" type:"map"`
- // The name of the billing group the thing belongs to.
- BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"`
- // The default client ID.
- DefaultClientId *string `locationName:"defaultClientId" type:"string"`
- // The ARN of the thing to describe.
- ThingArn *string `locationName:"thingArn" type:"string"`
- // The ID of the thing to describe.
- ThingId *string `locationName:"thingId" type:"string"`
- // The name of the thing.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- // The thing type name.
- ThingTypeName *string `locationName:"thingTypeName" min:"1" type:"string"`
- // The current version of the thing record in the registry.
- //
- // To avoid unintentional changes to the information in the registry, you can
- // pass the version information in the expectedVersion parameter of the UpdateThing
- // and DeleteThing calls.
- Version *int64 `locationName:"version" type:"long"`
- }
- // String returns the string representation
- func (s DescribeThingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeThingOutput) GoString() string {
- return s.String()
- }
- // SetAttributes sets the Attributes field's value.
- func (s *DescribeThingOutput) SetAttributes(v map[string]*string) *DescribeThingOutput {
- s.Attributes = v
- return s
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *DescribeThingOutput) SetBillingGroupName(v string) *DescribeThingOutput {
- s.BillingGroupName = &v
- return s
- }
- // SetDefaultClientId sets the DefaultClientId field's value.
- func (s *DescribeThingOutput) SetDefaultClientId(v string) *DescribeThingOutput {
- s.DefaultClientId = &v
- return s
- }
- // SetThingArn sets the ThingArn field's value.
- func (s *DescribeThingOutput) SetThingArn(v string) *DescribeThingOutput {
- s.ThingArn = &v
- return s
- }
- // SetThingId sets the ThingId field's value.
- func (s *DescribeThingOutput) SetThingId(v string) *DescribeThingOutput {
- s.ThingId = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *DescribeThingOutput) SetThingName(v string) *DescribeThingOutput {
- s.ThingName = &v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *DescribeThingOutput) SetThingTypeName(v string) *DescribeThingOutput {
- s.ThingTypeName = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *DescribeThingOutput) SetVersion(v int64) *DescribeThingOutput {
- s.Version = &v
- return s
- }
- type DescribeThingRegistrationTaskInput struct {
- _ struct{} `type:"structure"`
- // The task ID.
- //
- // TaskId is a required field
- TaskId *string `location:"uri" locationName:"taskId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeThingRegistrationTaskInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeThingRegistrationTaskInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeThingRegistrationTaskInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeThingRegistrationTaskInput"}
- if s.TaskId == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskId"))
- }
- if s.TaskId != nil && len(*s.TaskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTaskId sets the TaskId field's value.
- func (s *DescribeThingRegistrationTaskInput) SetTaskId(v string) *DescribeThingRegistrationTaskInput {
- s.TaskId = &v
- return s
- }
- type DescribeThingRegistrationTaskOutput struct {
- _ struct{} `type:"structure"`
- // The task creation date.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The number of things that failed to be provisioned.
- FailureCount *int64 `locationName:"failureCount" type:"integer"`
- // The S3 bucket that contains the input file.
- InputFileBucket *string `locationName:"inputFileBucket" min:"3" type:"string"`
- // The input file key.
- InputFileKey *string `locationName:"inputFileKey" min:"1" type:"string"`
- // The date when the task was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // The message.
- Message *string `locationName:"message" type:"string"`
- // The progress of the bulk provisioning task expressed as a percentage.
- PercentageProgress *int64 `locationName:"percentageProgress" type:"integer"`
- // The role ARN that grants access to the input file bucket.
- RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
- // The status of the bulk thing provisioning task.
- Status *string `locationName:"status" type:"string" enum:"Status"`
- // The number of things successfully provisioned.
- SuccessCount *int64 `locationName:"successCount" type:"integer"`
- // The task ID.
- TaskId *string `locationName:"taskId" type:"string"`
- // The task's template.
- TemplateBody *string `locationName:"templateBody" type:"string"`
- }
- // String returns the string representation
- func (s DescribeThingRegistrationTaskOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeThingRegistrationTaskOutput) GoString() string {
- return s.String()
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetCreationDate(v time.Time) *DescribeThingRegistrationTaskOutput {
- s.CreationDate = &v
- return s
- }
- // SetFailureCount sets the FailureCount field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetFailureCount(v int64) *DescribeThingRegistrationTaskOutput {
- s.FailureCount = &v
- return s
- }
- // SetInputFileBucket sets the InputFileBucket field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetInputFileBucket(v string) *DescribeThingRegistrationTaskOutput {
- s.InputFileBucket = &v
- return s
- }
- // SetInputFileKey sets the InputFileKey field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetInputFileKey(v string) *DescribeThingRegistrationTaskOutput {
- s.InputFileKey = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetLastModifiedDate(v time.Time) *DescribeThingRegistrationTaskOutput {
- s.LastModifiedDate = &v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetMessage(v string) *DescribeThingRegistrationTaskOutput {
- s.Message = &v
- return s
- }
- // SetPercentageProgress sets the PercentageProgress field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetPercentageProgress(v int64) *DescribeThingRegistrationTaskOutput {
- s.PercentageProgress = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetRoleArn(v string) *DescribeThingRegistrationTaskOutput {
- s.RoleArn = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetStatus(v string) *DescribeThingRegistrationTaskOutput {
- s.Status = &v
- return s
- }
- // SetSuccessCount sets the SuccessCount field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetSuccessCount(v int64) *DescribeThingRegistrationTaskOutput {
- s.SuccessCount = &v
- return s
- }
- // SetTaskId sets the TaskId field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetTaskId(v string) *DescribeThingRegistrationTaskOutput {
- s.TaskId = &v
- return s
- }
- // SetTemplateBody sets the TemplateBody field's value.
- func (s *DescribeThingRegistrationTaskOutput) SetTemplateBody(v string) *DescribeThingRegistrationTaskOutput {
- s.TemplateBody = &v
- return s
- }
- // The input for the DescribeThingType operation.
- type DescribeThingTypeInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing type.
- //
- // ThingTypeName is a required field
- ThingTypeName *string `location:"uri" locationName:"thingTypeName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeThingTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeThingTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeThingTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeThingTypeInput"}
- if s.ThingTypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingTypeName"))
- }
- if s.ThingTypeName != nil && len(*s.ThingTypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingTypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *DescribeThingTypeInput) SetThingTypeName(v string) *DescribeThingTypeInput {
- s.ThingTypeName = &v
- return s
- }
- // The output for the DescribeThingType operation.
- type DescribeThingTypeOutput struct {
- _ struct{} `type:"structure"`
- // The thing type ARN.
- ThingTypeArn *string `locationName:"thingTypeArn" type:"string"`
- // The thing type ID.
- ThingTypeId *string `locationName:"thingTypeId" type:"string"`
- // The ThingTypeMetadata contains additional information about the thing type
- // including: creation date and time, a value indicating whether the thing type
- // is deprecated, and a date and time when it was deprecated.
- ThingTypeMetadata *ThingTypeMetadata `locationName:"thingTypeMetadata" type:"structure"`
- // The name of the thing type.
- ThingTypeName *string `locationName:"thingTypeName" min:"1" type:"string"`
- // The ThingTypeProperties contains information about the thing type including
- // description, and a list of searchable thing attribute names.
- ThingTypeProperties *ThingTypeProperties `locationName:"thingTypeProperties" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeThingTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeThingTypeOutput) GoString() string {
- return s.String()
- }
- // SetThingTypeArn sets the ThingTypeArn field's value.
- func (s *DescribeThingTypeOutput) SetThingTypeArn(v string) *DescribeThingTypeOutput {
- s.ThingTypeArn = &v
- return s
- }
- // SetThingTypeId sets the ThingTypeId field's value.
- func (s *DescribeThingTypeOutput) SetThingTypeId(v string) *DescribeThingTypeOutput {
- s.ThingTypeId = &v
- return s
- }
- // SetThingTypeMetadata sets the ThingTypeMetadata field's value.
- func (s *DescribeThingTypeOutput) SetThingTypeMetadata(v *ThingTypeMetadata) *DescribeThingTypeOutput {
- s.ThingTypeMetadata = v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *DescribeThingTypeOutput) SetThingTypeName(v string) *DescribeThingTypeOutput {
- s.ThingTypeName = &v
- return s
- }
- // SetThingTypeProperties sets the ThingTypeProperties field's value.
- func (s *DescribeThingTypeOutput) SetThingTypeProperties(v *ThingTypeProperties) *DescribeThingTypeOutput {
- s.ThingTypeProperties = v
- return s
- }
- // Describes the location of the updated firmware.
- type Destination struct {
- _ struct{} `type:"structure"`
- // Describes the location in S3 of the updated firmware.
- S3Destination *S3Destination `locationName:"s3Destination" type:"structure"`
- }
- // String returns the string representation
- func (s Destination) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Destination) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Destination) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Destination"}
- if s.S3Destination != nil {
- if err := s.S3Destination.Validate(); err != nil {
- invalidParams.AddNested("S3Destination", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetS3Destination sets the S3Destination field's value.
- func (s *Destination) SetS3Destination(v *S3Destination) *Destination {
- s.S3Destination = v
- return s
- }
- type DetachPolicyInput struct {
- _ struct{} `type:"structure"`
- // The policy to detach.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // The target from which the policy will be detached.
- //
- // Target is a required field
- Target *string `locationName:"target" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DetachPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DetachPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DetachPolicyInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if s.Target == nil {
- invalidParams.Add(request.NewErrParamRequired("Target"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *DetachPolicyInput) SetPolicyName(v string) *DetachPolicyInput {
- s.PolicyName = &v
- return s
- }
- // SetTarget sets the Target field's value.
- func (s *DetachPolicyInput) SetTarget(v string) *DetachPolicyInput {
- s.Target = &v
- return s
- }
- type DetachPolicyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DetachPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachPolicyOutput) GoString() string {
- return s.String()
- }
- // The input for the DetachPrincipalPolicy operation.
- type DetachPrincipalPolicyInput struct {
- _ struct{} `type:"structure"`
- // The name of the policy to detach.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // The principal.
- //
- // If the principal is a certificate, specify the certificate ARN. If the principal
- // is an Amazon Cognito identity, specify the identity ID.
- //
- // Principal is a required field
- Principal *string `location:"header" locationName:"x-amzn-iot-principal" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DetachPrincipalPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachPrincipalPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DetachPrincipalPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DetachPrincipalPolicyInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if s.Principal == nil {
- invalidParams.Add(request.NewErrParamRequired("Principal"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *DetachPrincipalPolicyInput) SetPolicyName(v string) *DetachPrincipalPolicyInput {
- s.PolicyName = &v
- return s
- }
- // SetPrincipal sets the Principal field's value.
- func (s *DetachPrincipalPolicyInput) SetPrincipal(v string) *DetachPrincipalPolicyInput {
- s.Principal = &v
- return s
- }
- type DetachPrincipalPolicyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DetachPrincipalPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachPrincipalPolicyOutput) GoString() string {
- return s.String()
- }
- type DetachSecurityProfileInput struct {
- _ struct{} `type:"structure"`
- // The security profile that is detached.
- //
- // SecurityProfileName is a required field
- SecurityProfileName *string `location:"uri" locationName:"securityProfileName" min:"1" type:"string" required:"true"`
- // The ARN of the thing group from which the security profile is detached.
- //
- // SecurityProfileTargetArn is a required field
- SecurityProfileTargetArn *string `location:"querystring" locationName:"securityProfileTargetArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DetachSecurityProfileInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachSecurityProfileInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DetachSecurityProfileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DetachSecurityProfileInput"}
- if s.SecurityProfileName == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityProfileName"))
- }
- if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
- }
- if s.SecurityProfileTargetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityProfileTargetArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *DetachSecurityProfileInput) SetSecurityProfileName(v string) *DetachSecurityProfileInput {
- s.SecurityProfileName = &v
- return s
- }
- // SetSecurityProfileTargetArn sets the SecurityProfileTargetArn field's value.
- func (s *DetachSecurityProfileInput) SetSecurityProfileTargetArn(v string) *DetachSecurityProfileInput {
- s.SecurityProfileTargetArn = &v
- return s
- }
- type DetachSecurityProfileOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DetachSecurityProfileOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachSecurityProfileOutput) GoString() string {
- return s.String()
- }
- // The input for the DetachThingPrincipal operation.
- type DetachThingPrincipalInput struct {
- _ struct{} `type:"structure"`
- // If the principal is a certificate, this value must be ARN of the certificate.
- // If the principal is an Amazon Cognito identity, this value must be the ID
- // of the Amazon Cognito identity.
- //
- // Principal is a required field
- Principal *string `location:"header" locationName:"x-amzn-principal" type:"string" required:"true"`
- // The name of the thing.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DetachThingPrincipalInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachThingPrincipalInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DetachThingPrincipalInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DetachThingPrincipalInput"}
- if s.Principal == nil {
- invalidParams.Add(request.NewErrParamRequired("Principal"))
- }
- 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
- }
- // SetPrincipal sets the Principal field's value.
- func (s *DetachThingPrincipalInput) SetPrincipal(v string) *DetachThingPrincipalInput {
- s.Principal = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *DetachThingPrincipalInput) SetThingName(v string) *DetachThingPrincipalInput {
- s.ThingName = &v
- return s
- }
- // The output from the DetachThingPrincipal operation.
- type DetachThingPrincipalOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DetachThingPrincipalOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachThingPrincipalOutput) GoString() string {
- return s.String()
- }
- // The input for the DisableTopicRuleRequest operation.
- type DisableTopicRuleInput struct {
- _ struct{} `type:"structure"`
- // The name of the rule to disable.
- //
- // RuleName is a required field
- RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DisableTopicRuleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableTopicRuleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisableTopicRuleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisableTopicRuleInput"}
- if s.RuleName == nil {
- invalidParams.Add(request.NewErrParamRequired("RuleName"))
- }
- if s.RuleName != nil && len(*s.RuleName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRuleName sets the RuleName field's value.
- func (s *DisableTopicRuleInput) SetRuleName(v string) *DisableTopicRuleInput {
- s.RuleName = &v
- return s
- }
- type DisableTopicRuleOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DisableTopicRuleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableTopicRuleOutput) GoString() string {
- return s.String()
- }
- // Describes an action to write to a DynamoDB table.
- //
- // The tableName, hashKeyField, and rangeKeyField values must match the values
- // used when you created the table.
- //
- // The hashKeyValue and rangeKeyvalue fields use a substitution template syntax.
- // These templates provide data at runtime. The syntax is as follows: ${sql-expression}.
- //
- // You can specify any valid expression in a WHERE or SELECT clause, including
- // JSON properties, comparisons, calculations, and functions. For example, the
- // following field uses the third level of the topic:
- //
- // "hashKeyValue": "${topic(3)}"
- //
- // The following field uses the timestamp:
- //
- // "rangeKeyValue": "${timestamp()}"
- type DynamoDBAction struct {
- _ struct{} `type:"structure"`
- // The hash key name.
- //
- // HashKeyField is a required field
- HashKeyField *string `locationName:"hashKeyField" type:"string" required:"true"`
- // The hash key type. Valid values are "STRING" or "NUMBER"
- HashKeyType *string `locationName:"hashKeyType" type:"string" enum:"DynamoKeyType"`
- // The hash key value.
- //
- // HashKeyValue is a required field
- HashKeyValue *string `locationName:"hashKeyValue" type:"string" required:"true"`
- // The type of operation to be performed. This follows the substitution template,
- // so it can be ${operation}, but the substitution must result in one of the
- // following: INSERT, UPDATE, or DELETE.
- Operation *string `locationName:"operation" type:"string"`
- // The action payload. This name can be customized.
- PayloadField *string `locationName:"payloadField" type:"string"`
- // The range key name.
- RangeKeyField *string `locationName:"rangeKeyField" type:"string"`
- // The range key type. Valid values are "STRING" or "NUMBER"
- RangeKeyType *string `locationName:"rangeKeyType" type:"string" enum:"DynamoKeyType"`
- // The range key value.
- RangeKeyValue *string `locationName:"rangeKeyValue" type:"string"`
- // The ARN of the IAM role that grants access to the DynamoDB table.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The name of the DynamoDB table.
- //
- // TableName is a required field
- TableName *string `locationName:"tableName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DynamoDBAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DynamoDBAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DynamoDBAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DynamoDBAction"}
- if s.HashKeyField == nil {
- invalidParams.Add(request.NewErrParamRequired("HashKeyField"))
- }
- if s.HashKeyValue == nil {
- invalidParams.Add(request.NewErrParamRequired("HashKeyValue"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.TableName == nil {
- invalidParams.Add(request.NewErrParamRequired("TableName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHashKeyField sets the HashKeyField field's value.
- func (s *DynamoDBAction) SetHashKeyField(v string) *DynamoDBAction {
- s.HashKeyField = &v
- return s
- }
- // SetHashKeyType sets the HashKeyType field's value.
- func (s *DynamoDBAction) SetHashKeyType(v string) *DynamoDBAction {
- s.HashKeyType = &v
- return s
- }
- // SetHashKeyValue sets the HashKeyValue field's value.
- func (s *DynamoDBAction) SetHashKeyValue(v string) *DynamoDBAction {
- s.HashKeyValue = &v
- return s
- }
- // SetOperation sets the Operation field's value.
- func (s *DynamoDBAction) SetOperation(v string) *DynamoDBAction {
- s.Operation = &v
- return s
- }
- // SetPayloadField sets the PayloadField field's value.
- func (s *DynamoDBAction) SetPayloadField(v string) *DynamoDBAction {
- s.PayloadField = &v
- return s
- }
- // SetRangeKeyField sets the RangeKeyField field's value.
- func (s *DynamoDBAction) SetRangeKeyField(v string) *DynamoDBAction {
- s.RangeKeyField = &v
- return s
- }
- // SetRangeKeyType sets the RangeKeyType field's value.
- func (s *DynamoDBAction) SetRangeKeyType(v string) *DynamoDBAction {
- s.RangeKeyType = &v
- return s
- }
- // SetRangeKeyValue sets the RangeKeyValue field's value.
- func (s *DynamoDBAction) SetRangeKeyValue(v string) *DynamoDBAction {
- s.RangeKeyValue = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *DynamoDBAction) SetRoleArn(v string) *DynamoDBAction {
- s.RoleArn = &v
- return s
- }
- // SetTableName sets the TableName field's value.
- func (s *DynamoDBAction) SetTableName(v string) *DynamoDBAction {
- s.TableName = &v
- return s
- }
- // Describes an action to write to a DynamoDB table.
- //
- // This DynamoDB action writes each attribute in the message payload into it's
- // own column in the DynamoDB table.
- type DynamoDBv2Action struct {
- _ struct{} `type:"structure"`
- // Specifies the DynamoDB table to which the message data will be written. For
- // example:
- //
- // { "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName":
- // "my-table" } } }
- //
- // Each attribute in the message payload will be written to a separate column
- // in the DynamoDB database.
- //
- // PutItem is a required field
- PutItem *PutItemInput `locationName:"putItem" type:"structure" required:"true"`
- // The ARN of the IAM role that grants access to the DynamoDB table.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DynamoDBv2Action) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DynamoDBv2Action) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DynamoDBv2Action) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DynamoDBv2Action"}
- if s.PutItem == nil {
- invalidParams.Add(request.NewErrParamRequired("PutItem"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.PutItem != nil {
- if err := s.PutItem.Validate(); err != nil {
- invalidParams.AddNested("PutItem", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPutItem sets the PutItem field's value.
- func (s *DynamoDBv2Action) SetPutItem(v *PutItemInput) *DynamoDBv2Action {
- s.PutItem = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *DynamoDBv2Action) SetRoleArn(v string) *DynamoDBv2Action {
- s.RoleArn = &v
- return s
- }
- // The policy that has the effect on the authorization results.
- type EffectivePolicy struct {
- _ struct{} `type:"structure"`
- // The policy ARN.
- PolicyArn *string `locationName:"policyArn" type:"string"`
- // The IAM policy document.
- PolicyDocument *string `locationName:"policyDocument" type:"string"`
- // The policy name.
- PolicyName *string `locationName:"policyName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s EffectivePolicy) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EffectivePolicy) GoString() string {
- return s.String()
- }
- // SetPolicyArn sets the PolicyArn field's value.
- func (s *EffectivePolicy) SetPolicyArn(v string) *EffectivePolicy {
- s.PolicyArn = &v
- return s
- }
- // SetPolicyDocument sets the PolicyDocument field's value.
- func (s *EffectivePolicy) SetPolicyDocument(v string) *EffectivePolicy {
- s.PolicyDocument = &v
- return s
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *EffectivePolicy) SetPolicyName(v string) *EffectivePolicy {
- s.PolicyName = &v
- return s
- }
- // Describes an action that writes data to an Amazon Elasticsearch Service domain.
- type ElasticsearchAction struct {
- _ struct{} `type:"structure"`
- // The endpoint of your Elasticsearch domain.
- //
- // Endpoint is a required field
- Endpoint *string `locationName:"endpoint" type:"string" required:"true"`
- // The unique identifier for the document you are storing.
- //
- // Id is a required field
- Id *string `locationName:"id" type:"string" required:"true"`
- // The Elasticsearch index where you want to store your data.
- //
- // Index is a required field
- Index *string `locationName:"index" type:"string" required:"true"`
- // The IAM role ARN that has access to Elasticsearch.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The type of document you are storing.
- //
- // Type is a required field
- Type *string `locationName:"type" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ElasticsearchAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ElasticsearchAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ElasticsearchAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ElasticsearchAction"}
- if s.Endpoint == nil {
- invalidParams.Add(request.NewErrParamRequired("Endpoint"))
- }
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Index == nil {
- invalidParams.Add(request.NewErrParamRequired("Index"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndpoint sets the Endpoint field's value.
- func (s *ElasticsearchAction) SetEndpoint(v string) *ElasticsearchAction {
- s.Endpoint = &v
- return s
- }
- // SetId sets the Id field's value.
- func (s *ElasticsearchAction) SetId(v string) *ElasticsearchAction {
- s.Id = &v
- return s
- }
- // SetIndex sets the Index field's value.
- func (s *ElasticsearchAction) SetIndex(v string) *ElasticsearchAction {
- s.Index = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *ElasticsearchAction) SetRoleArn(v string) *ElasticsearchAction {
- s.RoleArn = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *ElasticsearchAction) SetType(v string) *ElasticsearchAction {
- s.Type = &v
- return s
- }
- // The input for the EnableTopicRuleRequest operation.
- type EnableTopicRuleInput struct {
- _ struct{} `type:"structure"`
- // The name of the topic rule to enable.
- //
- // RuleName is a required field
- RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s EnableTopicRuleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableTopicRuleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EnableTopicRuleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EnableTopicRuleInput"}
- if s.RuleName == nil {
- invalidParams.Add(request.NewErrParamRequired("RuleName"))
- }
- if s.RuleName != nil && len(*s.RuleName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRuleName sets the RuleName field's value.
- func (s *EnableTopicRuleInput) SetRuleName(v string) *EnableTopicRuleInput {
- s.RuleName = &v
- return s
- }
- type EnableTopicRuleOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s EnableTopicRuleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableTopicRuleOutput) GoString() string {
- return s.String()
- }
- // Error information.
- type ErrorInfo struct {
- _ struct{} `type:"structure"`
- // The error code.
- Code *string `locationName:"code" type:"string"`
- // The error message.
- Message *string `locationName:"message" type:"string"`
- }
- // String returns the string representation
- func (s ErrorInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ErrorInfo) GoString() string {
- return s.String()
- }
- // SetCode sets the Code field's value.
- func (s *ErrorInfo) SetCode(v string) *ErrorInfo {
- s.Code = &v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *ErrorInfo) SetMessage(v string) *ErrorInfo {
- s.Message = &v
- return s
- }
- // Information that explicitly denies authorization.
- type ExplicitDeny struct {
- _ struct{} `type:"structure"`
- // The policies that denied the authorization.
- Policies []*Policy `locationName:"policies" type:"list"`
- }
- // String returns the string representation
- func (s ExplicitDeny) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ExplicitDeny) GoString() string {
- return s.String()
- }
- // SetPolicies sets the Policies field's value.
- func (s *ExplicitDeny) SetPolicies(v []*Policy) *ExplicitDeny {
- s.Policies = v
- return s
- }
- // Allows you to create an exponential rate of rollout for a job.
- type ExponentialRolloutRate struct {
- _ struct{} `type:"structure"`
- // The minimum number of things that will be notified of a pending job, per
- // minute at the start of job rollout. This parameter allows you to define the
- // initial rate of rollout.
- //
- // BaseRatePerMinute is a required field
- BaseRatePerMinute *int64 `locationName:"baseRatePerMinute" min:"1" type:"integer" required:"true"`
- // The exponential factor to increase the rate of rollout for a job.
- //
- // IncrementFactor is a required field
- IncrementFactor *float64 `locationName:"incrementFactor" min:"1" type:"double" required:"true"`
- // The criteria to initiate the increase in rate of rollout for a job.
- //
- // AWS IoT supports up to one digit after the decimal (for example, 1.5, but
- // not 1.55).
- //
- // RateIncreaseCriteria is a required field
- RateIncreaseCriteria *RateIncreaseCriteria `locationName:"rateIncreaseCriteria" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s ExponentialRolloutRate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ExponentialRolloutRate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ExponentialRolloutRate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ExponentialRolloutRate"}
- if s.BaseRatePerMinute == nil {
- invalidParams.Add(request.NewErrParamRequired("BaseRatePerMinute"))
- }
- if s.BaseRatePerMinute != nil && *s.BaseRatePerMinute < 1 {
- invalidParams.Add(request.NewErrParamMinValue("BaseRatePerMinute", 1))
- }
- if s.IncrementFactor == nil {
- invalidParams.Add(request.NewErrParamRequired("IncrementFactor"))
- }
- if s.IncrementFactor != nil && *s.IncrementFactor < 1 {
- invalidParams.Add(request.NewErrParamMinValue("IncrementFactor", 1))
- }
- if s.RateIncreaseCriteria == nil {
- invalidParams.Add(request.NewErrParamRequired("RateIncreaseCriteria"))
- }
- if s.RateIncreaseCriteria != nil {
- if err := s.RateIncreaseCriteria.Validate(); err != nil {
- invalidParams.AddNested("RateIncreaseCriteria", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBaseRatePerMinute sets the BaseRatePerMinute field's value.
- func (s *ExponentialRolloutRate) SetBaseRatePerMinute(v int64) *ExponentialRolloutRate {
- s.BaseRatePerMinute = &v
- return s
- }
- // SetIncrementFactor sets the IncrementFactor field's value.
- func (s *ExponentialRolloutRate) SetIncrementFactor(v float64) *ExponentialRolloutRate {
- s.IncrementFactor = &v
- return s
- }
- // SetRateIncreaseCriteria sets the RateIncreaseCriteria field's value.
- func (s *ExponentialRolloutRate) SetRateIncreaseCriteria(v *RateIncreaseCriteria) *ExponentialRolloutRate {
- s.RateIncreaseCriteria = v
- return s
- }
- // The location of the OTA update.
- type FileLocation struct {
- _ struct{} `type:"structure"`
- // The location of the updated firmware in S3.
- S3Location *S3Location `locationName:"s3Location" type:"structure"`
- // The stream that contains the OTA update.
- Stream *Stream `locationName:"stream" type:"structure"`
- }
- // String returns the string representation
- func (s FileLocation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FileLocation) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *FileLocation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "FileLocation"}
- if s.S3Location != nil {
- if err := s.S3Location.Validate(); err != nil {
- invalidParams.AddNested("S3Location", err.(request.ErrInvalidParams))
- }
- }
- if s.Stream != nil {
- if err := s.Stream.Validate(); err != nil {
- invalidParams.AddNested("Stream", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetS3Location sets the S3Location field's value.
- func (s *FileLocation) SetS3Location(v *S3Location) *FileLocation {
- s.S3Location = v
- return s
- }
- // SetStream sets the Stream field's value.
- func (s *FileLocation) SetStream(v *Stream) *FileLocation {
- s.Stream = v
- return s
- }
- // Describes an action that writes data to an Amazon Kinesis Firehose stream.
- type FirehoseAction struct {
- _ struct{} `type:"structure"`
- // The delivery stream name.
- //
- // DeliveryStreamName is a required field
- DeliveryStreamName *string `locationName:"deliveryStreamName" type:"string" required:"true"`
- // The IAM role that grants access to the Amazon Kinesis Firehose stream.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // A character separator that will be used to separate records written to the
- // Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows
- // newline), ',' (comma).
- Separator *string `locationName:"separator" type:"string"`
- }
- // String returns the string representation
- func (s FirehoseAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FirehoseAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *FirehoseAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "FirehoseAction"}
- if s.DeliveryStreamName == nil {
- invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDeliveryStreamName sets the DeliveryStreamName field's value.
- func (s *FirehoseAction) SetDeliveryStreamName(v string) *FirehoseAction {
- s.DeliveryStreamName = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *FirehoseAction) SetRoleArn(v string) *FirehoseAction {
- s.RoleArn = &v
- return s
- }
- // SetSeparator sets the Separator field's value.
- func (s *FirehoseAction) SetSeparator(v string) *FirehoseAction {
- s.Separator = &v
- return s
- }
- type GetEffectivePoliciesInput struct {
- _ struct{} `type:"structure"`
- // The Cognito identity pool ID.
- CognitoIdentityPoolId *string `locationName:"cognitoIdentityPoolId" type:"string"`
- // The principal.
- Principal *string `locationName:"principal" type:"string"`
- // The thing name.
- ThingName *string `location:"querystring" locationName:"thingName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s GetEffectivePoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetEffectivePoliciesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetEffectivePoliciesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetEffectivePoliciesInput"}
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCognitoIdentityPoolId sets the CognitoIdentityPoolId field's value.
- func (s *GetEffectivePoliciesInput) SetCognitoIdentityPoolId(v string) *GetEffectivePoliciesInput {
- s.CognitoIdentityPoolId = &v
- return s
- }
- // SetPrincipal sets the Principal field's value.
- func (s *GetEffectivePoliciesInput) SetPrincipal(v string) *GetEffectivePoliciesInput {
- s.Principal = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *GetEffectivePoliciesInput) SetThingName(v string) *GetEffectivePoliciesInput {
- s.ThingName = &v
- return s
- }
- type GetEffectivePoliciesOutput struct {
- _ struct{} `type:"structure"`
- // The effective policies.
- EffectivePolicies []*EffectivePolicy `locationName:"effectivePolicies" type:"list"`
- }
- // String returns the string representation
- func (s GetEffectivePoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetEffectivePoliciesOutput) GoString() string {
- return s.String()
- }
- // SetEffectivePolicies sets the EffectivePolicies field's value.
- func (s *GetEffectivePoliciesOutput) SetEffectivePolicies(v []*EffectivePolicy) *GetEffectivePoliciesOutput {
- s.EffectivePolicies = v
- return s
- }
- type GetIndexingConfigurationInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s GetIndexingConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetIndexingConfigurationInput) GoString() string {
- return s.String()
- }
- type GetIndexingConfigurationOutput struct {
- _ struct{} `type:"structure"`
- // The index configuration.
- ThingGroupIndexingConfiguration *ThingGroupIndexingConfiguration `locationName:"thingGroupIndexingConfiguration" type:"structure"`
- // Thing indexing configuration.
- ThingIndexingConfiguration *ThingIndexingConfiguration `locationName:"thingIndexingConfiguration" type:"structure"`
- }
- // String returns the string representation
- func (s GetIndexingConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetIndexingConfigurationOutput) GoString() string {
- return s.String()
- }
- // SetThingGroupIndexingConfiguration sets the ThingGroupIndexingConfiguration field's value.
- func (s *GetIndexingConfigurationOutput) SetThingGroupIndexingConfiguration(v *ThingGroupIndexingConfiguration) *GetIndexingConfigurationOutput {
- s.ThingGroupIndexingConfiguration = v
- return s
- }
- // SetThingIndexingConfiguration sets the ThingIndexingConfiguration field's value.
- func (s *GetIndexingConfigurationOutput) SetThingIndexingConfiguration(v *ThingIndexingConfiguration) *GetIndexingConfigurationOutput {
- s.ThingIndexingConfiguration = v
- return s
- }
- type GetJobDocumentInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier you assigned to this job when it was created.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetJobDocumentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetJobDocumentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetJobDocumentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetJobDocumentInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetJobId sets the JobId field's value.
- func (s *GetJobDocumentInput) SetJobId(v string) *GetJobDocumentInput {
- s.JobId = &v
- return s
- }
- type GetJobDocumentOutput struct {
- _ struct{} `type:"structure"`
- // The job document content.
- Document *string `locationName:"document" type:"string"`
- }
- // String returns the string representation
- func (s GetJobDocumentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetJobDocumentOutput) GoString() string {
- return s.String()
- }
- // SetDocument sets the Document field's value.
- func (s *GetJobDocumentOutput) SetDocument(v string) *GetJobDocumentOutput {
- s.Document = &v
- return s
- }
- // The input for the GetLoggingOptions operation.
- type GetLoggingOptionsInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s GetLoggingOptionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetLoggingOptionsInput) GoString() string {
- return s.String()
- }
- // The output from the GetLoggingOptions operation.
- type GetLoggingOptionsOutput struct {
- _ struct{} `type:"structure"`
- // The logging level.
- LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"`
- // The ARN of the IAM role that grants access.
- RoleArn *string `locationName:"roleArn" type:"string"`
- }
- // String returns the string representation
- func (s GetLoggingOptionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetLoggingOptionsOutput) GoString() string {
- return s.String()
- }
- // SetLogLevel sets the LogLevel field's value.
- func (s *GetLoggingOptionsOutput) SetLogLevel(v string) *GetLoggingOptionsOutput {
- s.LogLevel = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *GetLoggingOptionsOutput) SetRoleArn(v string) *GetLoggingOptionsOutput {
- s.RoleArn = &v
- return s
- }
- type GetOTAUpdateInput struct {
- _ struct{} `type:"structure"`
- // The OTA update ID.
- //
- // OtaUpdateId is a required field
- OtaUpdateId *string `location:"uri" locationName:"otaUpdateId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetOTAUpdateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetOTAUpdateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetOTAUpdateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetOTAUpdateInput"}
- if s.OtaUpdateId == nil {
- invalidParams.Add(request.NewErrParamRequired("OtaUpdateId"))
- }
- if s.OtaUpdateId != nil && len(*s.OtaUpdateId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("OtaUpdateId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetOtaUpdateId sets the OtaUpdateId field's value.
- func (s *GetOTAUpdateInput) SetOtaUpdateId(v string) *GetOTAUpdateInput {
- s.OtaUpdateId = &v
- return s
- }
- type GetOTAUpdateOutput struct {
- _ struct{} `type:"structure"`
- // The OTA update info.
- OtaUpdateInfo *OTAUpdateInfo `locationName:"otaUpdateInfo" type:"structure"`
- }
- // String returns the string representation
- func (s GetOTAUpdateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetOTAUpdateOutput) GoString() string {
- return s.String()
- }
- // SetOtaUpdateInfo sets the OtaUpdateInfo field's value.
- func (s *GetOTAUpdateOutput) SetOtaUpdateInfo(v *OTAUpdateInfo) *GetOTAUpdateOutput {
- s.OtaUpdateInfo = v
- return s
- }
- // The input for the GetPolicy operation.
- type GetPolicyInput struct {
- _ struct{} `type:"structure"`
- // The name of the policy.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetPolicyInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *GetPolicyInput) SetPolicyName(v string) *GetPolicyInput {
- s.PolicyName = &v
- return s
- }
- // The output from the GetPolicy operation.
- type GetPolicyOutput struct {
- _ struct{} `type:"structure"`
- // The date the policy was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The default policy version ID.
- DefaultVersionId *string `locationName:"defaultVersionId" type:"string"`
- // The generation ID of the policy.
- GenerationId *string `locationName:"generationId" type:"string"`
- // The date the policy was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // The policy ARN.
- PolicyArn *string `locationName:"policyArn" type:"string"`
- // The JSON document that describes the policy.
- PolicyDocument *string `locationName:"policyDocument" type:"string"`
- // The policy name.
- PolicyName *string `locationName:"policyName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s GetPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPolicyOutput) GoString() string {
- return s.String()
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *GetPolicyOutput) SetCreationDate(v time.Time) *GetPolicyOutput {
- s.CreationDate = &v
- return s
- }
- // SetDefaultVersionId sets the DefaultVersionId field's value.
- func (s *GetPolicyOutput) SetDefaultVersionId(v string) *GetPolicyOutput {
- s.DefaultVersionId = &v
- return s
- }
- // SetGenerationId sets the GenerationId field's value.
- func (s *GetPolicyOutput) SetGenerationId(v string) *GetPolicyOutput {
- s.GenerationId = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *GetPolicyOutput) SetLastModifiedDate(v time.Time) *GetPolicyOutput {
- s.LastModifiedDate = &v
- return s
- }
- // SetPolicyArn sets the PolicyArn field's value.
- func (s *GetPolicyOutput) SetPolicyArn(v string) *GetPolicyOutput {
- s.PolicyArn = &v
- return s
- }
- // SetPolicyDocument sets the PolicyDocument field's value.
- func (s *GetPolicyOutput) SetPolicyDocument(v string) *GetPolicyOutput {
- s.PolicyDocument = &v
- return s
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *GetPolicyOutput) SetPolicyName(v string) *GetPolicyOutput {
- s.PolicyName = &v
- return s
- }
- // The input for the GetPolicyVersion operation.
- type GetPolicyVersionInput struct {
- _ struct{} `type:"structure"`
- // The name of the policy.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // The policy version ID.
- //
- // PolicyVersionId is a required field
- PolicyVersionId *string `location:"uri" locationName:"policyVersionId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetPolicyVersionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPolicyVersionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetPolicyVersionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetPolicyVersionInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if s.PolicyVersionId == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyVersionId"))
- }
- if s.PolicyVersionId != nil && len(*s.PolicyVersionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyVersionId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *GetPolicyVersionInput) SetPolicyName(v string) *GetPolicyVersionInput {
- s.PolicyName = &v
- return s
- }
- // SetPolicyVersionId sets the PolicyVersionId field's value.
- func (s *GetPolicyVersionInput) SetPolicyVersionId(v string) *GetPolicyVersionInput {
- s.PolicyVersionId = &v
- return s
- }
- // The output from the GetPolicyVersion operation.
- type GetPolicyVersionOutput struct {
- _ struct{} `type:"structure"`
- // The date the policy version was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The generation ID of the policy version.
- GenerationId *string `locationName:"generationId" type:"string"`
- // Specifies whether the policy version is the default.
- IsDefaultVersion *bool `locationName:"isDefaultVersion" type:"boolean"`
- // The date the policy version was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // The policy ARN.
- PolicyArn *string `locationName:"policyArn" type:"string"`
- // The JSON document that describes the policy.
- PolicyDocument *string `locationName:"policyDocument" type:"string"`
- // The policy name.
- PolicyName *string `locationName:"policyName" min:"1" type:"string"`
- // The policy version ID.
- PolicyVersionId *string `locationName:"policyVersionId" type:"string"`
- }
- // String returns the string representation
- func (s GetPolicyVersionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPolicyVersionOutput) GoString() string {
- return s.String()
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *GetPolicyVersionOutput) SetCreationDate(v time.Time) *GetPolicyVersionOutput {
- s.CreationDate = &v
- return s
- }
- // SetGenerationId sets the GenerationId field's value.
- func (s *GetPolicyVersionOutput) SetGenerationId(v string) *GetPolicyVersionOutput {
- s.GenerationId = &v
- return s
- }
- // SetIsDefaultVersion sets the IsDefaultVersion field's value.
- func (s *GetPolicyVersionOutput) SetIsDefaultVersion(v bool) *GetPolicyVersionOutput {
- s.IsDefaultVersion = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *GetPolicyVersionOutput) SetLastModifiedDate(v time.Time) *GetPolicyVersionOutput {
- s.LastModifiedDate = &v
- return s
- }
- // SetPolicyArn sets the PolicyArn field's value.
- func (s *GetPolicyVersionOutput) SetPolicyArn(v string) *GetPolicyVersionOutput {
- s.PolicyArn = &v
- return s
- }
- // SetPolicyDocument sets the PolicyDocument field's value.
- func (s *GetPolicyVersionOutput) SetPolicyDocument(v string) *GetPolicyVersionOutput {
- s.PolicyDocument = &v
- return s
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *GetPolicyVersionOutput) SetPolicyName(v string) *GetPolicyVersionOutput {
- s.PolicyName = &v
- return s
- }
- // SetPolicyVersionId sets the PolicyVersionId field's value.
- func (s *GetPolicyVersionOutput) SetPolicyVersionId(v string) *GetPolicyVersionOutput {
- s.PolicyVersionId = &v
- return s
- }
- // The input to the GetRegistrationCode operation.
- type GetRegistrationCodeInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s GetRegistrationCodeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetRegistrationCodeInput) GoString() string {
- return s.String()
- }
- // The output from the GetRegistrationCode operation.
- type GetRegistrationCodeOutput struct {
- _ struct{} `type:"structure"`
- // The CA certificate registration code.
- RegistrationCode *string `locationName:"registrationCode" min:"64" type:"string"`
- }
- // String returns the string representation
- func (s GetRegistrationCodeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetRegistrationCodeOutput) GoString() string {
- return s.String()
- }
- // SetRegistrationCode sets the RegistrationCode field's value.
- func (s *GetRegistrationCodeOutput) SetRegistrationCode(v string) *GetRegistrationCodeOutput {
- s.RegistrationCode = &v
- return s
- }
- // The input for the GetTopicRule operation.
- type GetTopicRuleInput struct {
- _ struct{} `type:"structure"`
- // The name of the rule.
- //
- // RuleName is a required field
- RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetTopicRuleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetTopicRuleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetTopicRuleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetTopicRuleInput"}
- if s.RuleName == nil {
- invalidParams.Add(request.NewErrParamRequired("RuleName"))
- }
- if s.RuleName != nil && len(*s.RuleName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRuleName sets the RuleName field's value.
- func (s *GetTopicRuleInput) SetRuleName(v string) *GetTopicRuleInput {
- s.RuleName = &v
- return s
- }
- // The output from the GetTopicRule operation.
- type GetTopicRuleOutput struct {
- _ struct{} `type:"structure"`
- // The rule.
- Rule *TopicRule `locationName:"rule" type:"structure"`
- // The rule ARN.
- RuleArn *string `locationName:"ruleArn" type:"string"`
- }
- // String returns the string representation
- func (s GetTopicRuleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetTopicRuleOutput) GoString() string {
- return s.String()
- }
- // SetRule sets the Rule field's value.
- func (s *GetTopicRuleOutput) SetRule(v *TopicRule) *GetTopicRuleOutput {
- s.Rule = v
- return s
- }
- // SetRuleArn sets the RuleArn field's value.
- func (s *GetTopicRuleOutput) SetRuleArn(v string) *GetTopicRuleOutput {
- s.RuleArn = &v
- return s
- }
- type GetV2LoggingOptionsInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s GetV2LoggingOptionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetV2LoggingOptionsInput) GoString() string {
- return s.String()
- }
- type GetV2LoggingOptionsOutput struct {
- _ struct{} `type:"structure"`
- // The default log level.
- DefaultLogLevel *string `locationName:"defaultLogLevel" type:"string" enum:"LogLevel"`
- // Disables all logs.
- DisableAllLogs *bool `locationName:"disableAllLogs" type:"boolean"`
- // The IAM role ARN AWS IoT uses to write to your CloudWatch logs.
- RoleArn *string `locationName:"roleArn" type:"string"`
- }
- // String returns the string representation
- func (s GetV2LoggingOptionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetV2LoggingOptionsOutput) GoString() string {
- return s.String()
- }
- // SetDefaultLogLevel sets the DefaultLogLevel field's value.
- func (s *GetV2LoggingOptionsOutput) SetDefaultLogLevel(v string) *GetV2LoggingOptionsOutput {
- s.DefaultLogLevel = &v
- return s
- }
- // SetDisableAllLogs sets the DisableAllLogs field's value.
- func (s *GetV2LoggingOptionsOutput) SetDisableAllLogs(v bool) *GetV2LoggingOptionsOutput {
- s.DisableAllLogs = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *GetV2LoggingOptionsOutput) SetRoleArn(v string) *GetV2LoggingOptionsOutput {
- s.RoleArn = &v
- return s
- }
- // The name and ARN of a group.
- type GroupNameAndArn struct {
- _ struct{} `type:"structure"`
- // The group ARN.
- GroupArn *string `locationName:"groupArn" type:"string"`
- // The group name.
- GroupName *string `locationName:"groupName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s GroupNameAndArn) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GroupNameAndArn) GoString() string {
- return s.String()
- }
- // SetGroupArn sets the GroupArn field's value.
- func (s *GroupNameAndArn) SetGroupArn(v string) *GroupNameAndArn {
- s.GroupArn = &v
- return s
- }
- // SetGroupName sets the GroupName field's value.
- func (s *GroupNameAndArn) SetGroupName(v string) *GroupNameAndArn {
- s.GroupName = &v
- return s
- }
- // Information that implicitly denies authorization. When policy doesn't explicitly
- // deny or allow an action on a resource it is considered an implicit deny.
- type ImplicitDeny struct {
- _ struct{} `type:"structure"`
- // Policies that don't contain a matching allow or deny statement for the specified
- // action on the specified resource.
- Policies []*Policy `locationName:"policies" type:"list"`
- }
- // String returns the string representation
- func (s ImplicitDeny) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImplicitDeny) GoString() string {
- return s.String()
- }
- // SetPolicies sets the Policies field's value.
- func (s *ImplicitDeny) SetPolicies(v []*Policy) *ImplicitDeny {
- s.Policies = v
- return s
- }
- // Sends messge data to an AWS IoT Analytics channel.
- type IotAnalyticsAction struct {
- _ struct{} `type:"structure"`
- // (deprecated) The ARN of the IoT Analytics channel to which message data will
- // be sent.
- ChannelArn *string `locationName:"channelArn" type:"string"`
- // The name of the IoT Analytics channel to which message data will be sent.
- ChannelName *string `locationName:"channelName" type:"string"`
- // The ARN of the role which has a policy that grants IoT Analytics permission
- // to send message data via IoT Analytics (iotanalytics:BatchPutMessage).
- RoleArn *string `locationName:"roleArn" type:"string"`
- }
- // String returns the string representation
- func (s IotAnalyticsAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IotAnalyticsAction) GoString() string {
- return s.String()
- }
- // SetChannelArn sets the ChannelArn field's value.
- func (s *IotAnalyticsAction) SetChannelArn(v string) *IotAnalyticsAction {
- s.ChannelArn = &v
- return s
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *IotAnalyticsAction) SetChannelName(v string) *IotAnalyticsAction {
- s.ChannelName = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *IotAnalyticsAction) SetRoleArn(v string) *IotAnalyticsAction {
- s.RoleArn = &v
- return s
- }
- // Sends an input to an AWS IoT Events detector.
- type IotEventsAction struct {
- _ struct{} `type:"structure"`
- // The name of the AWS IoT Events input.
- //
- // InputName is a required field
- InputName *string `locationName:"inputName" min:"1" type:"string" required:"true"`
- // [Optional] Use this to ensure that only one input (message) with a given
- // messageId will be processed by an AWS IoT Events detector.
- MessageId *string `locationName:"messageId" type:"string"`
- // The ARN of the role that grants AWS IoT permission to send an input to an
- // AWS IoT Events detector. ("Action":"iotevents:BatchPutMessage").
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s IotEventsAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IotEventsAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *IotEventsAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "IotEventsAction"}
- 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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetInputName sets the InputName field's value.
- func (s *IotEventsAction) SetInputName(v string) *IotEventsAction {
- s.InputName = &v
- return s
- }
- // SetMessageId sets the MessageId field's value.
- func (s *IotEventsAction) SetMessageId(v string) *IotEventsAction {
- s.MessageId = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *IotEventsAction) SetRoleArn(v string) *IotEventsAction {
- s.RoleArn = &v
- return s
- }
- // The Job object contains details about a job.
- type Job struct {
- _ struct{} `type:"structure"`
- // Configuration for criteria to abort the job.
- AbortConfig *AbortConfig `locationName:"abortConfig" type:"structure"`
- // If the job was updated, describes the reason for the update.
- Comment *string `locationName:"comment" type:"string"`
- // The time, in milliseconds since the epoch, when the job was completed.
- CompletedAt *time.Time `locationName:"completedAt" type:"timestamp"`
- // The time, in milliseconds since the epoch, when the job was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
- // A short text description of the job.
- Description *string `locationName:"description" type:"string"`
- // Will be true if the job was canceled with the optional force parameter set
- // to true.
- ForceCanceled *bool `locationName:"forceCanceled" type:"boolean"`
- // An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".
- JobArn *string `locationName:"jobArn" type:"string"`
- // Allows you to create a staged rollout of a job.
- JobExecutionsRolloutConfig *JobExecutionsRolloutConfig `locationName:"jobExecutionsRolloutConfig" type:"structure"`
- // The unique identifier you assigned to this job when it was created.
- JobId *string `locationName:"jobId" min:"1" type:"string"`
- // Details about the job process.
- JobProcessDetails *JobProcessDetails `locationName:"jobProcessDetails" type:"structure"`
- // The time, in milliseconds since the epoch, when the job was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
- // Configuration for pre-signed S3 URLs.
- PresignedUrlConfig *PresignedUrlConfig `locationName:"presignedUrlConfig" type:"structure"`
- // If the job was updated, provides the reason code for the update.
- ReasonCode *string `locationName:"reasonCode" type:"string"`
- // The status of the job, one of IN_PROGRESS, CANCELED, DELETION_IN_PROGRESS
- // or COMPLETED.
- Status *string `locationName:"status" type:"string" enum:"JobStatus"`
- // Specifies whether the job will continue to run (CONTINUOUS), or will be complete
- // after all those things specified as targets have completed the job (SNAPSHOT).
- // If continuous, the job may also be run on a thing when a change is detected
- // in a target. For example, a job will run on a device when the thing representing
- // the device is added to a target group, even after the job was completed by
- // all things originally in the group.
- TargetSelection *string `locationName:"targetSelection" type:"string" enum:"TargetSelection"`
- // A list of IoT things and thing groups to which the job should be sent.
- Targets []*string `locationName:"targets" min:"1" type:"list"`
- // Specifies the amount of time each device has to finish its execution of the
- // job. A timer is started when the job execution status is set to IN_PROGRESS.
- // If the job execution status is not set to another terminal state before the
- // timer expires, it will be automatically set to TIMED_OUT.
- TimeoutConfig *TimeoutConfig `locationName:"timeoutConfig" type:"structure"`
- }
- // String returns the string representation
- func (s Job) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Job) GoString() string {
- return s.String()
- }
- // SetAbortConfig sets the AbortConfig field's value.
- func (s *Job) SetAbortConfig(v *AbortConfig) *Job {
- s.AbortConfig = v
- return s
- }
- // SetComment sets the Comment field's value.
- func (s *Job) SetComment(v string) *Job {
- s.Comment = &v
- return s
- }
- // SetCompletedAt sets the CompletedAt field's value.
- func (s *Job) SetCompletedAt(v time.Time) *Job {
- s.CompletedAt = &v
- return s
- }
- // SetCreatedAt sets the CreatedAt field's value.
- func (s *Job) SetCreatedAt(v time.Time) *Job {
- s.CreatedAt = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *Job) SetDescription(v string) *Job {
- s.Description = &v
- return s
- }
- // SetForceCanceled sets the ForceCanceled field's value.
- func (s *Job) SetForceCanceled(v bool) *Job {
- s.ForceCanceled = &v
- return s
- }
- // SetJobArn sets the JobArn field's value.
- func (s *Job) SetJobArn(v string) *Job {
- s.JobArn = &v
- return s
- }
- // SetJobExecutionsRolloutConfig sets the JobExecutionsRolloutConfig field's value.
- func (s *Job) SetJobExecutionsRolloutConfig(v *JobExecutionsRolloutConfig) *Job {
- s.JobExecutionsRolloutConfig = v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *Job) SetJobId(v string) *Job {
- s.JobId = &v
- return s
- }
- // SetJobProcessDetails sets the JobProcessDetails field's value.
- func (s *Job) SetJobProcessDetails(v *JobProcessDetails) *Job {
- s.JobProcessDetails = v
- return s
- }
- // SetLastUpdatedAt sets the LastUpdatedAt field's value.
- func (s *Job) SetLastUpdatedAt(v time.Time) *Job {
- s.LastUpdatedAt = &v
- return s
- }
- // SetPresignedUrlConfig sets the PresignedUrlConfig field's value.
- func (s *Job) SetPresignedUrlConfig(v *PresignedUrlConfig) *Job {
- s.PresignedUrlConfig = v
- return s
- }
- // SetReasonCode sets the ReasonCode field's value.
- func (s *Job) SetReasonCode(v string) *Job {
- s.ReasonCode = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *Job) SetStatus(v string) *Job {
- s.Status = &v
- return s
- }
- // SetTargetSelection sets the TargetSelection field's value.
- func (s *Job) SetTargetSelection(v string) *Job {
- s.TargetSelection = &v
- return s
- }
- // SetTargets sets the Targets field's value.
- func (s *Job) SetTargets(v []*string) *Job {
- s.Targets = v
- return s
- }
- // SetTimeoutConfig sets the TimeoutConfig field's value.
- func (s *Job) SetTimeoutConfig(v *TimeoutConfig) *Job {
- s.TimeoutConfig = v
- return s
- }
- // The job execution object represents the execution of a job on a particular
- // device.
- type JobExecution struct {
- _ struct{} `type:"structure"`
- // The estimated number of seconds that remain before the job execution status
- // will be changed to TIMED_OUT. The timeout interval can be anywhere between
- // 1 minute and 7 days (1 to 10080 minutes). The actual job execution timeout
- // can occur up to 60 seconds later than the estimated duration. This value
- // will not be included if the job execution has reached a terminal status.
- ApproximateSecondsBeforeTimedOut *int64 `locationName:"approximateSecondsBeforeTimedOut" type:"long"`
- // A string (consisting of the digits "0" through "9") which identifies this
- // particular job execution on this particular device. It can be used in commands
- // which return or update job execution information.
- ExecutionNumber *int64 `locationName:"executionNumber" type:"long"`
- // Will be true if the job execution was canceled with the optional force parameter
- // set to true.
- ForceCanceled *bool `locationName:"forceCanceled" type:"boolean"`
- // The unique identifier you assigned to the job when it was created.
- JobId *string `locationName:"jobId" min:"1" type:"string"`
- // The time, in milliseconds since the epoch, when the job execution was last
- // updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
- // The time, in milliseconds since the epoch, when the job execution was queued.
- QueuedAt *time.Time `locationName:"queuedAt" type:"timestamp"`
- // The time, in milliseconds since the epoch, when the job execution started.
- StartedAt *time.Time `locationName:"startedAt" type:"timestamp"`
- // The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED,
- // TIMED_OUT, CANCELED, or REJECTED).
- Status *string `locationName:"status" type:"string" enum:"JobExecutionStatus"`
- // A collection of name/value pairs that describe the status of the job execution.
- StatusDetails *JobExecutionStatusDetails `locationName:"statusDetails" type:"structure"`
- // The ARN of the thing on which the job execution is running.
- ThingArn *string `locationName:"thingArn" type:"string"`
- // The version of the job execution. Job execution versions are incremented
- // each time they are updated by a device.
- VersionNumber *int64 `locationName:"versionNumber" type:"long"`
- }
- // String returns the string representation
- func (s JobExecution) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobExecution) GoString() string {
- return s.String()
- }
- // SetApproximateSecondsBeforeTimedOut sets the ApproximateSecondsBeforeTimedOut field's value.
- func (s *JobExecution) SetApproximateSecondsBeforeTimedOut(v int64) *JobExecution {
- s.ApproximateSecondsBeforeTimedOut = &v
- return s
- }
- // SetExecutionNumber sets the ExecutionNumber field's value.
- func (s *JobExecution) SetExecutionNumber(v int64) *JobExecution {
- s.ExecutionNumber = &v
- return s
- }
- // SetForceCanceled sets the ForceCanceled field's value.
- func (s *JobExecution) SetForceCanceled(v bool) *JobExecution {
- s.ForceCanceled = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *JobExecution) SetJobId(v string) *JobExecution {
- s.JobId = &v
- return s
- }
- // SetLastUpdatedAt sets the LastUpdatedAt field's value.
- func (s *JobExecution) SetLastUpdatedAt(v time.Time) *JobExecution {
- s.LastUpdatedAt = &v
- return s
- }
- // SetQueuedAt sets the QueuedAt field's value.
- func (s *JobExecution) SetQueuedAt(v time.Time) *JobExecution {
- s.QueuedAt = &v
- return s
- }
- // SetStartedAt sets the StartedAt field's value.
- func (s *JobExecution) SetStartedAt(v time.Time) *JobExecution {
- s.StartedAt = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *JobExecution) SetStatus(v string) *JobExecution {
- s.Status = &v
- return s
- }
- // SetStatusDetails sets the StatusDetails field's value.
- func (s *JobExecution) SetStatusDetails(v *JobExecutionStatusDetails) *JobExecution {
- s.StatusDetails = v
- return s
- }
- // SetThingArn sets the ThingArn field's value.
- func (s *JobExecution) SetThingArn(v string) *JobExecution {
- s.ThingArn = &v
- return s
- }
- // SetVersionNumber sets the VersionNumber field's value.
- func (s *JobExecution) SetVersionNumber(v int64) *JobExecution {
- s.VersionNumber = &v
- return s
- }
- // Details of the job execution status.
- type JobExecutionStatusDetails struct {
- _ struct{} `type:"structure"`
- // The job execution status.
- DetailsMap map[string]*string `locationName:"detailsMap" type:"map"`
- }
- // String returns the string representation
- func (s JobExecutionStatusDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobExecutionStatusDetails) GoString() string {
- return s.String()
- }
- // SetDetailsMap sets the DetailsMap field's value.
- func (s *JobExecutionStatusDetails) SetDetailsMap(v map[string]*string) *JobExecutionStatusDetails {
- s.DetailsMap = v
- return s
- }
- // The job execution summary.
- type JobExecutionSummary struct {
- _ struct{} `type:"structure"`
- // A string (consisting of the digits "0" through "9") which identifies this
- // particular job execution on this particular device. It can be used later
- // in commands which return or update job execution information.
- ExecutionNumber *int64 `locationName:"executionNumber" type:"long"`
- // The time, in milliseconds since the epoch, when the job execution was last
- // updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
- // The time, in milliseconds since the epoch, when the job execution was queued.
- QueuedAt *time.Time `locationName:"queuedAt" type:"timestamp"`
- // The time, in milliseconds since the epoch, when the job execution started.
- StartedAt *time.Time `locationName:"startedAt" type:"timestamp"`
- // The status of the job execution.
- Status *string `locationName:"status" type:"string" enum:"JobExecutionStatus"`
- }
- // String returns the string representation
- func (s JobExecutionSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobExecutionSummary) GoString() string {
- return s.String()
- }
- // SetExecutionNumber sets the ExecutionNumber field's value.
- func (s *JobExecutionSummary) SetExecutionNumber(v int64) *JobExecutionSummary {
- s.ExecutionNumber = &v
- return s
- }
- // SetLastUpdatedAt sets the LastUpdatedAt field's value.
- func (s *JobExecutionSummary) SetLastUpdatedAt(v time.Time) *JobExecutionSummary {
- s.LastUpdatedAt = &v
- return s
- }
- // SetQueuedAt sets the QueuedAt field's value.
- func (s *JobExecutionSummary) SetQueuedAt(v time.Time) *JobExecutionSummary {
- s.QueuedAt = &v
- return s
- }
- // SetStartedAt sets the StartedAt field's value.
- func (s *JobExecutionSummary) SetStartedAt(v time.Time) *JobExecutionSummary {
- s.StartedAt = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *JobExecutionSummary) SetStatus(v string) *JobExecutionSummary {
- s.Status = &v
- return s
- }
- // Contains a summary of information about job executions for a specific job.
- type JobExecutionSummaryForJob struct {
- _ struct{} `type:"structure"`
- // Contains a subset of information about a job execution.
- JobExecutionSummary *JobExecutionSummary `locationName:"jobExecutionSummary" type:"structure"`
- // The ARN of the thing on which the job execution is running.
- ThingArn *string `locationName:"thingArn" type:"string"`
- }
- // String returns the string representation
- func (s JobExecutionSummaryForJob) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobExecutionSummaryForJob) GoString() string {
- return s.String()
- }
- // SetJobExecutionSummary sets the JobExecutionSummary field's value.
- func (s *JobExecutionSummaryForJob) SetJobExecutionSummary(v *JobExecutionSummary) *JobExecutionSummaryForJob {
- s.JobExecutionSummary = v
- return s
- }
- // SetThingArn sets the ThingArn field's value.
- func (s *JobExecutionSummaryForJob) SetThingArn(v string) *JobExecutionSummaryForJob {
- s.ThingArn = &v
- return s
- }
- // The job execution summary for a thing.
- type JobExecutionSummaryForThing struct {
- _ struct{} `type:"structure"`
- // Contains a subset of information about a job execution.
- JobExecutionSummary *JobExecutionSummary `locationName:"jobExecutionSummary" type:"structure"`
- // The unique identifier you assigned to this job when it was created.
- JobId *string `locationName:"jobId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s JobExecutionSummaryForThing) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobExecutionSummaryForThing) GoString() string {
- return s.String()
- }
- // SetJobExecutionSummary sets the JobExecutionSummary field's value.
- func (s *JobExecutionSummaryForThing) SetJobExecutionSummary(v *JobExecutionSummary) *JobExecutionSummaryForThing {
- s.JobExecutionSummary = v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *JobExecutionSummaryForThing) SetJobId(v string) *JobExecutionSummaryForThing {
- s.JobId = &v
- return s
- }
- // Allows you to create a staged rollout of a job.
- type JobExecutionsRolloutConfig struct {
- _ struct{} `type:"structure"`
- // The rate of increase for a job rollout. This parameter allows you to define
- // an exponential rate for a job rollout.
- ExponentialRate *ExponentialRolloutRate `locationName:"exponentialRate" type:"structure"`
- // The maximum number of things that will be notified of a pending job, per
- // minute. This parameter allows you to create a staged rollout.
- MaximumPerMinute *int64 `locationName:"maximumPerMinute" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s JobExecutionsRolloutConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobExecutionsRolloutConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *JobExecutionsRolloutConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JobExecutionsRolloutConfig"}
- if s.MaximumPerMinute != nil && *s.MaximumPerMinute < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaximumPerMinute", 1))
- }
- if s.ExponentialRate != nil {
- if err := s.ExponentialRate.Validate(); err != nil {
- invalidParams.AddNested("ExponentialRate", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExponentialRate sets the ExponentialRate field's value.
- func (s *JobExecutionsRolloutConfig) SetExponentialRate(v *ExponentialRolloutRate) *JobExecutionsRolloutConfig {
- s.ExponentialRate = v
- return s
- }
- // SetMaximumPerMinute sets the MaximumPerMinute field's value.
- func (s *JobExecutionsRolloutConfig) SetMaximumPerMinute(v int64) *JobExecutionsRolloutConfig {
- s.MaximumPerMinute = &v
- return s
- }
- // The job process details.
- type JobProcessDetails struct {
- _ struct{} `type:"structure"`
- // The number of things that cancelled the job.
- NumberOfCanceledThings *int64 `locationName:"numberOfCanceledThings" type:"integer"`
- // The number of things that failed executing the job.
- NumberOfFailedThings *int64 `locationName:"numberOfFailedThings" type:"integer"`
- // The number of things currently executing the job.
- NumberOfInProgressThings *int64 `locationName:"numberOfInProgressThings" type:"integer"`
- // The number of things that are awaiting execution of the job.
- NumberOfQueuedThings *int64 `locationName:"numberOfQueuedThings" type:"integer"`
- // The number of things that rejected the job.
- NumberOfRejectedThings *int64 `locationName:"numberOfRejectedThings" type:"integer"`
- // The number of things that are no longer scheduled to execute the job because
- // they have been deleted or have been removed from the group that was a target
- // of the job.
- NumberOfRemovedThings *int64 `locationName:"numberOfRemovedThings" type:"integer"`
- // The number of things which successfully completed the job.
- NumberOfSucceededThings *int64 `locationName:"numberOfSucceededThings" type:"integer"`
- // The number of things whose job execution status is TIMED_OUT.
- NumberOfTimedOutThings *int64 `locationName:"numberOfTimedOutThings" type:"integer"`
- // The target devices to which the job execution is being rolled out. This value
- // will be null after the job execution has finished rolling out to all the
- // target devices.
- ProcessingTargets []*string `locationName:"processingTargets" type:"list"`
- }
- // String returns the string representation
- func (s JobProcessDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobProcessDetails) GoString() string {
- return s.String()
- }
- // SetNumberOfCanceledThings sets the NumberOfCanceledThings field's value.
- func (s *JobProcessDetails) SetNumberOfCanceledThings(v int64) *JobProcessDetails {
- s.NumberOfCanceledThings = &v
- return s
- }
- // SetNumberOfFailedThings sets the NumberOfFailedThings field's value.
- func (s *JobProcessDetails) SetNumberOfFailedThings(v int64) *JobProcessDetails {
- s.NumberOfFailedThings = &v
- return s
- }
- // SetNumberOfInProgressThings sets the NumberOfInProgressThings field's value.
- func (s *JobProcessDetails) SetNumberOfInProgressThings(v int64) *JobProcessDetails {
- s.NumberOfInProgressThings = &v
- return s
- }
- // SetNumberOfQueuedThings sets the NumberOfQueuedThings field's value.
- func (s *JobProcessDetails) SetNumberOfQueuedThings(v int64) *JobProcessDetails {
- s.NumberOfQueuedThings = &v
- return s
- }
- // SetNumberOfRejectedThings sets the NumberOfRejectedThings field's value.
- func (s *JobProcessDetails) SetNumberOfRejectedThings(v int64) *JobProcessDetails {
- s.NumberOfRejectedThings = &v
- return s
- }
- // SetNumberOfRemovedThings sets the NumberOfRemovedThings field's value.
- func (s *JobProcessDetails) SetNumberOfRemovedThings(v int64) *JobProcessDetails {
- s.NumberOfRemovedThings = &v
- return s
- }
- // SetNumberOfSucceededThings sets the NumberOfSucceededThings field's value.
- func (s *JobProcessDetails) SetNumberOfSucceededThings(v int64) *JobProcessDetails {
- s.NumberOfSucceededThings = &v
- return s
- }
- // SetNumberOfTimedOutThings sets the NumberOfTimedOutThings field's value.
- func (s *JobProcessDetails) SetNumberOfTimedOutThings(v int64) *JobProcessDetails {
- s.NumberOfTimedOutThings = &v
- return s
- }
- // SetProcessingTargets sets the ProcessingTargets field's value.
- func (s *JobProcessDetails) SetProcessingTargets(v []*string) *JobProcessDetails {
- s.ProcessingTargets = v
- return s
- }
- // The job summary.
- type JobSummary struct {
- _ struct{} `type:"structure"`
- // The time, in milliseconds since the epoch, when the job completed.
- CompletedAt *time.Time `locationName:"completedAt" type:"timestamp"`
- // The time, in milliseconds since the epoch, when the job was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
- // The job ARN.
- JobArn *string `locationName:"jobArn" type:"string"`
- // The unique identifier you assigned to this job when it was created.
- JobId *string `locationName:"jobId" min:"1" type:"string"`
- // The time, in milliseconds since the epoch, when the job was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
- // The job summary status.
- Status *string `locationName:"status" type:"string" enum:"JobStatus"`
- // Specifies whether the job will continue to run (CONTINUOUS), or will be complete
- // after all those things specified as targets have completed the job (SNAPSHOT).
- // If continuous, the job may also be run on a thing when a change is detected
- // in a target. For example, a job will run on a thing when the thing is added
- // to a target group, even after the job was completed by all things originally
- // in the group.
- TargetSelection *string `locationName:"targetSelection" type:"string" enum:"TargetSelection"`
- // The ID of the thing group.
- ThingGroupId *string `locationName:"thingGroupId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s JobSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobSummary) GoString() string {
- return s.String()
- }
- // SetCompletedAt sets the CompletedAt field's value.
- func (s *JobSummary) SetCompletedAt(v time.Time) *JobSummary {
- s.CompletedAt = &v
- return s
- }
- // SetCreatedAt sets the CreatedAt field's value.
- func (s *JobSummary) SetCreatedAt(v time.Time) *JobSummary {
- s.CreatedAt = &v
- return s
- }
- // SetJobArn sets the JobArn field's value.
- func (s *JobSummary) SetJobArn(v string) *JobSummary {
- s.JobArn = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *JobSummary) SetJobId(v string) *JobSummary {
- s.JobId = &v
- return s
- }
- // SetLastUpdatedAt sets the LastUpdatedAt field's value.
- func (s *JobSummary) SetLastUpdatedAt(v time.Time) *JobSummary {
- s.LastUpdatedAt = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *JobSummary) SetStatus(v string) *JobSummary {
- s.Status = &v
- return s
- }
- // SetTargetSelection sets the TargetSelection field's value.
- func (s *JobSummary) SetTargetSelection(v string) *JobSummary {
- s.TargetSelection = &v
- return s
- }
- // SetThingGroupId sets the ThingGroupId field's value.
- func (s *JobSummary) SetThingGroupId(v string) *JobSummary {
- s.ThingGroupId = &v
- return s
- }
- // Describes a key pair.
- type KeyPair struct {
- _ struct{} `type:"structure"`
- // The private key.
- PrivateKey *string `min:"1" type:"string" sensitive:"true"`
- // The public key.
- PublicKey *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s KeyPair) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KeyPair) GoString() string {
- return s.String()
- }
- // SetPrivateKey sets the PrivateKey field's value.
- func (s *KeyPair) SetPrivateKey(v string) *KeyPair {
- s.PrivateKey = &v
- return s
- }
- // SetPublicKey sets the PublicKey field's value.
- func (s *KeyPair) SetPublicKey(v string) *KeyPair {
- s.PublicKey = &v
- return s
- }
- // Describes an action to write data to an Amazon Kinesis stream.
- type KinesisAction struct {
- _ struct{} `type:"structure"`
- // The partition key.
- PartitionKey *string `locationName:"partitionKey" type:"string"`
- // The ARN of the IAM role that grants access to the Amazon Kinesis stream.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The name of the Amazon Kinesis stream.
- //
- // StreamName is a required field
- StreamName *string `locationName:"streamName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s KinesisAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *KinesisAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "KinesisAction"}
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.StreamName == nil {
- invalidParams.Add(request.NewErrParamRequired("StreamName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPartitionKey sets the PartitionKey field's value.
- func (s *KinesisAction) SetPartitionKey(v string) *KinesisAction {
- s.PartitionKey = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *KinesisAction) SetRoleArn(v string) *KinesisAction {
- s.RoleArn = &v
- return s
- }
- // SetStreamName sets the StreamName field's value.
- func (s *KinesisAction) SetStreamName(v string) *KinesisAction {
- s.StreamName = &v
- return s
- }
- // Describes an action to invoke a Lambda function.
- type LambdaAction struct {
- _ struct{} `type:"structure"`
- // The ARN of the Lambda function.
- //
- // FunctionArn is a required field
- FunctionArn *string `locationName:"functionArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s LambdaAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LambdaAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LambdaAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LambdaAction"}
- if s.FunctionArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FunctionArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFunctionArn sets the FunctionArn field's value.
- func (s *LambdaAction) SetFunctionArn(v string) *LambdaAction {
- s.FunctionArn = &v
- return s
- }
- type ListActiveViolationsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- 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"`
- // The name of the Device Defender security profile for which violations are
- // listed.
- SecurityProfileName *string `location:"querystring" locationName:"securityProfileName" min:"1" type:"string"`
- // The name of the thing whose active violations are listed.
- ThingName *string `location:"querystring" locationName:"thingName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListActiveViolationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListActiveViolationsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListActiveViolationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListActiveViolationsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
- }
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListActiveViolationsInput) SetMaxResults(v int64) *ListActiveViolationsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListActiveViolationsInput) SetNextToken(v string) *ListActiveViolationsInput {
- s.NextToken = &v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *ListActiveViolationsInput) SetSecurityProfileName(v string) *ListActiveViolationsInput {
- s.SecurityProfileName = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *ListActiveViolationsInput) SetThingName(v string) *ListActiveViolationsInput {
- s.ThingName = &v
- return s
- }
- type ListActiveViolationsOutput struct {
- _ struct{} `type:"structure"`
- // The list of active violations.
- ActiveViolations []*ActiveViolation `locationName:"activeViolations" type:"list"`
- // A token that can be used to retrieve the next set of results, or null if
- // there are no additional results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListActiveViolationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListActiveViolationsOutput) GoString() string {
- return s.String()
- }
- // SetActiveViolations sets the ActiveViolations field's value.
- func (s *ListActiveViolationsOutput) SetActiveViolations(v []*ActiveViolation) *ListActiveViolationsOutput {
- s.ActiveViolations = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListActiveViolationsOutput) SetNextToken(v string) *ListActiveViolationsOutput {
- s.NextToken = &v
- return s
- }
- type ListAttachedPoliciesInput struct {
- _ struct{} `type:"structure"`
- // The token to retrieve the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The maximum number of results to be returned per request.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- // When true, recursively list attached policies.
- Recursive *bool `location:"querystring" locationName:"recursive" type:"boolean"`
- // The group for which the policies will be listed.
- //
- // Target is a required field
- Target *string `location:"uri" locationName:"target" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListAttachedPoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAttachedPoliciesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListAttachedPoliciesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAttachedPoliciesInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if s.Target == nil {
- invalidParams.Add(request.NewErrParamRequired("Target"))
- }
- if s.Target != nil && len(*s.Target) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Target", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMarker sets the Marker field's value.
- func (s *ListAttachedPoliciesInput) SetMarker(v string) *ListAttachedPoliciesInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListAttachedPoliciesInput) SetPageSize(v int64) *ListAttachedPoliciesInput {
- s.PageSize = &v
- return s
- }
- // SetRecursive sets the Recursive field's value.
- func (s *ListAttachedPoliciesInput) SetRecursive(v bool) *ListAttachedPoliciesInput {
- s.Recursive = &v
- return s
- }
- // SetTarget sets the Target field's value.
- func (s *ListAttachedPoliciesInput) SetTarget(v string) *ListAttachedPoliciesInput {
- s.Target = &v
- return s
- }
- type ListAttachedPoliciesOutput struct {
- _ struct{} `type:"structure"`
- // The token to retrieve the next set of results, or ``null`` if there are no
- // more results.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- // The policies.
- Policies []*Policy `locationName:"policies" type:"list"`
- }
- // String returns the string representation
- func (s ListAttachedPoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAttachedPoliciesOutput) GoString() string {
- return s.String()
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListAttachedPoliciesOutput) SetNextMarker(v string) *ListAttachedPoliciesOutput {
- s.NextMarker = &v
- return s
- }
- // SetPolicies sets the Policies field's value.
- func (s *ListAttachedPoliciesOutput) SetPolicies(v []*Policy) *ListAttachedPoliciesOutput {
- s.Policies = v
- return s
- }
- type ListAuditFindingsInput struct {
- _ struct{} `type:"structure"`
- // A filter to limit results to the findings for the specified audit check.
- CheckName *string `locationName:"checkName" type:"string"`
- // A filter to limit results to those found before the specified time. You must
- // specify either the startTime and endTime or the taskId, but not both.
- EndTime *time.Time `locationName:"endTime" type:"timestamp"`
- // The maximum number of results to return at one time. The default is 25.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next set of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Information identifying the non-compliant resource.
- ResourceIdentifier *ResourceIdentifier `locationName:"resourceIdentifier" type:"structure"`
- // A filter to limit results to those found after the specified time. You must
- // specify either the startTime and endTime or the taskId, but not both.
- StartTime *time.Time `locationName:"startTime" type:"timestamp"`
- // A filter to limit results to the audit with the specified ID. You must specify
- // either the taskId or the startTime and endTime, but not both.
- TaskId *string `locationName:"taskId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListAuditFindingsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAuditFindingsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListAuditFindingsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAuditFindingsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.TaskId != nil && len(*s.TaskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
- }
- if s.ResourceIdentifier != nil {
- if err := s.ResourceIdentifier.Validate(); err != nil {
- invalidParams.AddNested("ResourceIdentifier", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCheckName sets the CheckName field's value.
- func (s *ListAuditFindingsInput) SetCheckName(v string) *ListAuditFindingsInput {
- s.CheckName = &v
- return s
- }
- // SetEndTime sets the EndTime field's value.
- func (s *ListAuditFindingsInput) SetEndTime(v time.Time) *ListAuditFindingsInput {
- s.EndTime = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListAuditFindingsInput) SetMaxResults(v int64) *ListAuditFindingsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAuditFindingsInput) SetNextToken(v string) *ListAuditFindingsInput {
- s.NextToken = &v
- return s
- }
- // SetResourceIdentifier sets the ResourceIdentifier field's value.
- func (s *ListAuditFindingsInput) SetResourceIdentifier(v *ResourceIdentifier) *ListAuditFindingsInput {
- s.ResourceIdentifier = v
- return s
- }
- // SetStartTime sets the StartTime field's value.
- func (s *ListAuditFindingsInput) SetStartTime(v time.Time) *ListAuditFindingsInput {
- s.StartTime = &v
- return s
- }
- // SetTaskId sets the TaskId field's value.
- func (s *ListAuditFindingsInput) SetTaskId(v string) *ListAuditFindingsInput {
- s.TaskId = &v
- return s
- }
- type ListAuditFindingsOutput struct {
- _ struct{} `type:"structure"`
- // The findings (results) of the audit.
- Findings []*AuditFinding `locationName:"findings" type:"list"`
- // A token that can be used to retrieve the next set of results, or null if
- // there are no additional results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListAuditFindingsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAuditFindingsOutput) GoString() string {
- return s.String()
- }
- // SetFindings sets the Findings field's value.
- func (s *ListAuditFindingsOutput) SetFindings(v []*AuditFinding) *ListAuditFindingsOutput {
- s.Findings = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAuditFindingsOutput) SetNextToken(v string) *ListAuditFindingsOutput {
- s.NextToken = &v
- return s
- }
- type ListAuditTasksInput struct {
- _ struct{} `type:"structure"`
- // The end of the time period.
- //
- // EndTime is a required field
- EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" required:"true"`
- // The maximum number of results to return at one time. The default is 25.
- 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"`
- // The beginning of the time period. Note that audit information is retained
- // for a limited time (180 days). Requesting a start time prior to what is retained
- // results in an "InvalidRequestException".
- //
- // StartTime is a required field
- StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" required:"true"`
- // A filter to limit the output to audits with the specified completion status:
- // can be one of "IN_PROGRESS", "COMPLETED", "FAILED" or "CANCELED".
- TaskStatus *string `location:"querystring" locationName:"taskStatus" type:"string" enum:"AuditTaskStatus"`
- // A filter to limit the output to the specified type of audit: can be one of
- // "ON_DEMAND_AUDIT_TASK" or "SCHEDULED__AUDIT_TASK".
- TaskType *string `location:"querystring" locationName:"taskType" type:"string" enum:"AuditTaskType"`
- }
- // String returns the string representation
- func (s ListAuditTasksInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAuditTasksInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListAuditTasksInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAuditTasksInput"}
- if s.EndTime == nil {
- invalidParams.Add(request.NewErrParamRequired("EndTime"))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.StartTime == nil {
- invalidParams.Add(request.NewErrParamRequired("StartTime"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndTime sets the EndTime field's value.
- func (s *ListAuditTasksInput) SetEndTime(v time.Time) *ListAuditTasksInput {
- s.EndTime = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListAuditTasksInput) SetMaxResults(v int64) *ListAuditTasksInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAuditTasksInput) SetNextToken(v string) *ListAuditTasksInput {
- s.NextToken = &v
- return s
- }
- // SetStartTime sets the StartTime field's value.
- func (s *ListAuditTasksInput) SetStartTime(v time.Time) *ListAuditTasksInput {
- s.StartTime = &v
- return s
- }
- // SetTaskStatus sets the TaskStatus field's value.
- func (s *ListAuditTasksInput) SetTaskStatus(v string) *ListAuditTasksInput {
- s.TaskStatus = &v
- return s
- }
- // SetTaskType sets the TaskType field's value.
- func (s *ListAuditTasksInput) SetTaskType(v string) *ListAuditTasksInput {
- s.TaskType = &v
- return s
- }
- type ListAuditTasksOutput struct {
- _ struct{} `type:"structure"`
- // A token that can be used to retrieve the next set of results, or null if
- // there are no additional results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The audits that were performed during the specified time period.
- Tasks []*AuditTaskMetadata `locationName:"tasks" type:"list"`
- }
- // String returns the string representation
- func (s ListAuditTasksOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAuditTasksOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAuditTasksOutput) SetNextToken(v string) *ListAuditTasksOutput {
- s.NextToken = &v
- return s
- }
- // SetTasks sets the Tasks field's value.
- func (s *ListAuditTasksOutput) SetTasks(v []*AuditTaskMetadata) *ListAuditTasksOutput {
- s.Tasks = v
- return s
- }
- type ListAuthorizersInput struct {
- _ struct{} `type:"structure"`
- // Return the list of authorizers in ascending alphabetical order.
- AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"`
- // A marker used to get the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The maximum number of results to return at one time.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- // The status of the list authorizers request.
- Status *string `location:"querystring" locationName:"status" type:"string" enum:"AuthorizerStatus"`
- }
- // String returns the string representation
- func (s ListAuthorizersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAuthorizersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListAuthorizersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAuthorizersInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAscendingOrder sets the AscendingOrder field's value.
- func (s *ListAuthorizersInput) SetAscendingOrder(v bool) *ListAuthorizersInput {
- s.AscendingOrder = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *ListAuthorizersInput) SetMarker(v string) *ListAuthorizersInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListAuthorizersInput) SetPageSize(v int64) *ListAuthorizersInput {
- s.PageSize = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ListAuthorizersInput) SetStatus(v string) *ListAuthorizersInput {
- s.Status = &v
- return s
- }
- type ListAuthorizersOutput struct {
- _ struct{} `type:"structure"`
- // The authorizers.
- Authorizers []*AuthorizerSummary `locationName:"authorizers" type:"list"`
- // A marker used to get the next set of results.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- }
- // String returns the string representation
- func (s ListAuthorizersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAuthorizersOutput) GoString() string {
- return s.String()
- }
- // SetAuthorizers sets the Authorizers field's value.
- func (s *ListAuthorizersOutput) SetAuthorizers(v []*AuthorizerSummary) *ListAuthorizersOutput {
- s.Authorizers = v
- return s
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListAuthorizersOutput) SetNextMarker(v string) *ListAuthorizersOutput {
- s.NextMarker = &v
- return s
- }
- type ListBillingGroupsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return per request.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // Limit the results to billing groups whose names have the given prefix.
- NamePrefixFilter *string `location:"querystring" locationName:"namePrefixFilter" min:"1" type:"string"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListBillingGroupsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListBillingGroupsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListBillingGroupsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListBillingGroupsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NamePrefixFilter != nil && len(*s.NamePrefixFilter) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NamePrefixFilter", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListBillingGroupsInput) SetMaxResults(v int64) *ListBillingGroupsInput {
- s.MaxResults = &v
- return s
- }
- // SetNamePrefixFilter sets the NamePrefixFilter field's value.
- func (s *ListBillingGroupsInput) SetNamePrefixFilter(v string) *ListBillingGroupsInput {
- s.NamePrefixFilter = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListBillingGroupsInput) SetNextToken(v string) *ListBillingGroupsInput {
- s.NextToken = &v
- return s
- }
- type ListBillingGroupsOutput struct {
- _ struct{} `type:"structure"`
- // The list of billing groups.
- BillingGroups []*GroupNameAndArn `locationName:"billingGroups" type:"list"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListBillingGroupsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListBillingGroupsOutput) GoString() string {
- return s.String()
- }
- // SetBillingGroups sets the BillingGroups field's value.
- func (s *ListBillingGroupsOutput) SetBillingGroups(v []*GroupNameAndArn) *ListBillingGroupsOutput {
- s.BillingGroups = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListBillingGroupsOutput) SetNextToken(v string) *ListBillingGroupsOutput {
- s.NextToken = &v
- return s
- }
- // Input for the ListCACertificates operation.
- type ListCACertificatesInput struct {
- _ struct{} `type:"structure"`
- // Determines the order of the results.
- AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"`
- // The marker for the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The result page size.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s ListCACertificatesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCACertificatesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListCACertificatesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListCACertificatesInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAscendingOrder sets the AscendingOrder field's value.
- func (s *ListCACertificatesInput) SetAscendingOrder(v bool) *ListCACertificatesInput {
- s.AscendingOrder = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *ListCACertificatesInput) SetMarker(v string) *ListCACertificatesInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListCACertificatesInput) SetPageSize(v int64) *ListCACertificatesInput {
- s.PageSize = &v
- return s
- }
- // The output from the ListCACertificates operation.
- type ListCACertificatesOutput struct {
- _ struct{} `type:"structure"`
- // The CA certificates registered in your AWS account.
- Certificates []*CACertificate `locationName:"certificates" type:"list"`
- // The current position within the list of CA certificates.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- }
- // String returns the string representation
- func (s ListCACertificatesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCACertificatesOutput) GoString() string {
- return s.String()
- }
- // SetCertificates sets the Certificates field's value.
- func (s *ListCACertificatesOutput) SetCertificates(v []*CACertificate) *ListCACertificatesOutput {
- s.Certificates = v
- return s
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListCACertificatesOutput) SetNextMarker(v string) *ListCACertificatesOutput {
- s.NextMarker = &v
- return s
- }
- // The input to the ListCertificatesByCA operation.
- type ListCertificatesByCAInput struct {
- _ struct{} `type:"structure"`
- // Specifies the order for results. If True, the results are returned in ascending
- // order, based on the creation date.
- AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"`
- // The ID of the CA certificate. This operation will list all registered device
- // certificate that were signed by this CA certificate.
- //
- // CaCertificateId is a required field
- CaCertificateId *string `location:"uri" locationName:"caCertificateId" min:"64" type:"string" required:"true"`
- // The marker for the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The result page size.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s ListCertificatesByCAInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCertificatesByCAInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListCertificatesByCAInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListCertificatesByCAInput"}
- if s.CaCertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CaCertificateId"))
- }
- if s.CaCertificateId != nil && len(*s.CaCertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CaCertificateId", 64))
- }
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAscendingOrder sets the AscendingOrder field's value.
- func (s *ListCertificatesByCAInput) SetAscendingOrder(v bool) *ListCertificatesByCAInput {
- s.AscendingOrder = &v
- return s
- }
- // SetCaCertificateId sets the CaCertificateId field's value.
- func (s *ListCertificatesByCAInput) SetCaCertificateId(v string) *ListCertificatesByCAInput {
- s.CaCertificateId = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *ListCertificatesByCAInput) SetMarker(v string) *ListCertificatesByCAInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListCertificatesByCAInput) SetPageSize(v int64) *ListCertificatesByCAInput {
- s.PageSize = &v
- return s
- }
- // The output of the ListCertificatesByCA operation.
- type ListCertificatesByCAOutput struct {
- _ struct{} `type:"structure"`
- // The device certificates signed by the specified CA certificate.
- Certificates []*Certificate `locationName:"certificates" type:"list"`
- // The marker for the next set of results, or null if there are no additional
- // results.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- }
- // String returns the string representation
- func (s ListCertificatesByCAOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCertificatesByCAOutput) GoString() string {
- return s.String()
- }
- // SetCertificates sets the Certificates field's value.
- func (s *ListCertificatesByCAOutput) SetCertificates(v []*Certificate) *ListCertificatesByCAOutput {
- s.Certificates = v
- return s
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListCertificatesByCAOutput) SetNextMarker(v string) *ListCertificatesByCAOutput {
- s.NextMarker = &v
- return s
- }
- // The input for the ListCertificates operation.
- type ListCertificatesInput struct {
- _ struct{} `type:"structure"`
- // Specifies the order for results. If True, the results are returned in ascending
- // order, based on the creation date.
- AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"`
- // The marker for the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The result page size.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s ListCertificatesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCertificatesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListCertificatesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListCertificatesInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAscendingOrder sets the AscendingOrder field's value.
- func (s *ListCertificatesInput) SetAscendingOrder(v bool) *ListCertificatesInput {
- s.AscendingOrder = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *ListCertificatesInput) SetMarker(v string) *ListCertificatesInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListCertificatesInput) SetPageSize(v int64) *ListCertificatesInput {
- s.PageSize = &v
- return s
- }
- // The output of the ListCertificates operation.
- type ListCertificatesOutput struct {
- _ struct{} `type:"structure"`
- // The descriptions of the certificates.
- Certificates []*Certificate `locationName:"certificates" type:"list"`
- // The marker for the next set of results, or null if there are no additional
- // results.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- }
- // String returns the string representation
- func (s ListCertificatesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCertificatesOutput) GoString() string {
- return s.String()
- }
- // SetCertificates sets the Certificates field's value.
- func (s *ListCertificatesOutput) SetCertificates(v []*Certificate) *ListCertificatesOutput {
- s.Certificates = v
- return s
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListCertificatesOutput) SetNextMarker(v string) *ListCertificatesOutput {
- s.NextMarker = &v
- return s
- }
- type ListIndicesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListIndicesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListIndicesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListIndicesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListIndicesInput"}
- 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 *ListIndicesInput) SetMaxResults(v int64) *ListIndicesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListIndicesInput) SetNextToken(v string) *ListIndicesInput {
- s.NextToken = &v
- return s
- }
- type ListIndicesOutput struct {
- _ struct{} `type:"structure"`
- // The index names.
- IndexNames []*string `locationName:"indexNames" type:"list"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListIndicesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListIndicesOutput) GoString() string {
- return s.String()
- }
- // SetIndexNames sets the IndexNames field's value.
- func (s *ListIndicesOutput) SetIndexNames(v []*string) *ListIndicesOutput {
- s.IndexNames = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListIndicesOutput) SetNextToken(v string) *ListIndicesOutput {
- s.NextToken = &v
- return s
- }
- type ListJobExecutionsForJobInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier you assigned to this job when it was created.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- // The maximum number of results to be returned per request.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The status of the job.
- Status *string `location:"querystring" locationName:"status" type:"string" enum:"JobExecutionStatus"`
- }
- // String returns the string representation
- func (s ListJobExecutionsForJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListJobExecutionsForJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListJobExecutionsForJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListJobExecutionsForJobInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetJobId sets the JobId field's value.
- func (s *ListJobExecutionsForJobInput) SetJobId(v string) *ListJobExecutionsForJobInput {
- s.JobId = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListJobExecutionsForJobInput) SetMaxResults(v int64) *ListJobExecutionsForJobInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListJobExecutionsForJobInput) SetNextToken(v string) *ListJobExecutionsForJobInput {
- s.NextToken = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ListJobExecutionsForJobInput) SetStatus(v string) *ListJobExecutionsForJobInput {
- s.Status = &v
- return s
- }
- type ListJobExecutionsForJobOutput struct {
- _ struct{} `type:"structure"`
- // A list of job execution summaries.
- ExecutionSummaries []*JobExecutionSummaryForJob `locationName:"executionSummaries" type:"list"`
- // The token for the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListJobExecutionsForJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListJobExecutionsForJobOutput) GoString() string {
- return s.String()
- }
- // SetExecutionSummaries sets the ExecutionSummaries field's value.
- func (s *ListJobExecutionsForJobOutput) SetExecutionSummaries(v []*JobExecutionSummaryForJob) *ListJobExecutionsForJobOutput {
- s.ExecutionSummaries = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListJobExecutionsForJobOutput) SetNextToken(v string) *ListJobExecutionsForJobOutput {
- s.NextToken = &v
- return s
- }
- type ListJobExecutionsForThingInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to be returned per request.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // An optional filter that lets you search for jobs that have the specified
- // status.
- Status *string `location:"querystring" locationName:"status" type:"string" enum:"JobExecutionStatus"`
- // The thing name.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListJobExecutionsForThingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListJobExecutionsForThingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListJobExecutionsForThingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListJobExecutionsForThingInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- 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
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListJobExecutionsForThingInput) SetMaxResults(v int64) *ListJobExecutionsForThingInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListJobExecutionsForThingInput) SetNextToken(v string) *ListJobExecutionsForThingInput {
- s.NextToken = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ListJobExecutionsForThingInput) SetStatus(v string) *ListJobExecutionsForThingInput {
- s.Status = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *ListJobExecutionsForThingInput) SetThingName(v string) *ListJobExecutionsForThingInput {
- s.ThingName = &v
- return s
- }
- type ListJobExecutionsForThingOutput struct {
- _ struct{} `type:"structure"`
- // A list of job execution summaries.
- ExecutionSummaries []*JobExecutionSummaryForThing `locationName:"executionSummaries" type:"list"`
- // The token for the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListJobExecutionsForThingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListJobExecutionsForThingOutput) GoString() string {
- return s.String()
- }
- // SetExecutionSummaries sets the ExecutionSummaries field's value.
- func (s *ListJobExecutionsForThingOutput) SetExecutionSummaries(v []*JobExecutionSummaryForThing) *ListJobExecutionsForThingOutput {
- s.ExecutionSummaries = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListJobExecutionsForThingOutput) SetNextToken(v string) *ListJobExecutionsForThingOutput {
- s.NextToken = &v
- return s
- }
- type ListJobsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return per request.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // An optional filter that lets you search for jobs that have the specified
- // status.
- Status *string `location:"querystring" locationName:"status" type:"string" enum:"JobStatus"`
- // Specifies whether the job will continue to run (CONTINUOUS), or will be complete
- // after all those things specified as targets have completed the job (SNAPSHOT).
- // If continuous, the job may also be run on a thing when a change is detected
- // in a target. For example, a job will run on a thing when the thing is added
- // to a target group, even after the job was completed by all things originally
- // in the group.
- TargetSelection *string `location:"querystring" locationName:"targetSelection" type:"string" enum:"TargetSelection"`
- // A filter that limits the returned jobs to those for the specified group.
- ThingGroupId *string `location:"querystring" locationName:"thingGroupId" min:"1" type:"string"`
- // A filter that limits the returned jobs to those for the specified group.
- ThingGroupName *string `location:"querystring" locationName:"thingGroupName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListJobsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.ThingGroupId != nil && len(*s.ThingGroupId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupId", 1))
- }
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListJobsInput) SetMaxResults(v int64) *ListJobsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListJobsInput) SetNextToken(v string) *ListJobsInput {
- s.NextToken = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ListJobsInput) SetStatus(v string) *ListJobsInput {
- s.Status = &v
- return s
- }
- // SetTargetSelection sets the TargetSelection field's value.
- func (s *ListJobsInput) SetTargetSelection(v string) *ListJobsInput {
- s.TargetSelection = &v
- return s
- }
- // SetThingGroupId sets the ThingGroupId field's value.
- func (s *ListJobsInput) SetThingGroupId(v string) *ListJobsInput {
- s.ThingGroupId = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *ListJobsInput) SetThingGroupName(v string) *ListJobsInput {
- s.ThingGroupName = &v
- return s
- }
- type ListJobsOutput struct {
- _ struct{} `type:"structure"`
- // A list of jobs.
- Jobs []*JobSummary `locationName:"jobs" type:"list"`
- // The token for the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListJobsOutput) GoString() string {
- return s.String()
- }
- // SetJobs sets the Jobs field's value.
- func (s *ListJobsOutput) SetJobs(v []*JobSummary) *ListJobsOutput {
- s.Jobs = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput {
- s.NextToken = &v
- return s
- }
- type ListOTAUpdatesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // A token used to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The OTA update job status.
- OtaUpdateStatus *string `location:"querystring" locationName:"otaUpdateStatus" type:"string" enum:"OTAUpdateStatus"`
- }
- // String returns the string representation
- func (s ListOTAUpdatesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListOTAUpdatesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListOTAUpdatesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListOTAUpdatesInput"}
- 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 *ListOTAUpdatesInput) SetMaxResults(v int64) *ListOTAUpdatesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListOTAUpdatesInput) SetNextToken(v string) *ListOTAUpdatesInput {
- s.NextToken = &v
- return s
- }
- // SetOtaUpdateStatus sets the OtaUpdateStatus field's value.
- func (s *ListOTAUpdatesInput) SetOtaUpdateStatus(v string) *ListOTAUpdatesInput {
- s.OtaUpdateStatus = &v
- return s
- }
- type ListOTAUpdatesOutput struct {
- _ struct{} `type:"structure"`
- // A token to use to get the next set of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // A list of OTA update jobs.
- OtaUpdates []*OTAUpdateSummary `locationName:"otaUpdates" type:"list"`
- }
- // String returns the string representation
- func (s ListOTAUpdatesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListOTAUpdatesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListOTAUpdatesOutput) SetNextToken(v string) *ListOTAUpdatesOutput {
- s.NextToken = &v
- return s
- }
- // SetOtaUpdates sets the OtaUpdates field's value.
- func (s *ListOTAUpdatesOutput) SetOtaUpdates(v []*OTAUpdateSummary) *ListOTAUpdatesOutput {
- s.OtaUpdates = v
- return s
- }
- // The input to the ListOutgoingCertificates operation.
- type ListOutgoingCertificatesInput struct {
- _ struct{} `type:"structure"`
- // Specifies the order for results. If True, the results are returned in ascending
- // order, based on the creation date.
- AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"`
- // The marker for the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The result page size.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s ListOutgoingCertificatesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListOutgoingCertificatesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListOutgoingCertificatesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListOutgoingCertificatesInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAscendingOrder sets the AscendingOrder field's value.
- func (s *ListOutgoingCertificatesInput) SetAscendingOrder(v bool) *ListOutgoingCertificatesInput {
- s.AscendingOrder = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *ListOutgoingCertificatesInput) SetMarker(v string) *ListOutgoingCertificatesInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListOutgoingCertificatesInput) SetPageSize(v int64) *ListOutgoingCertificatesInput {
- s.PageSize = &v
- return s
- }
- // The output from the ListOutgoingCertificates operation.
- type ListOutgoingCertificatesOutput struct {
- _ struct{} `type:"structure"`
- // The marker for the next set of results.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- // The certificates that are being transferred but not yet accepted.
- OutgoingCertificates []*OutgoingCertificate `locationName:"outgoingCertificates" type:"list"`
- }
- // String returns the string representation
- func (s ListOutgoingCertificatesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListOutgoingCertificatesOutput) GoString() string {
- return s.String()
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListOutgoingCertificatesOutput) SetNextMarker(v string) *ListOutgoingCertificatesOutput {
- s.NextMarker = &v
- return s
- }
- // SetOutgoingCertificates sets the OutgoingCertificates field's value.
- func (s *ListOutgoingCertificatesOutput) SetOutgoingCertificates(v []*OutgoingCertificate) *ListOutgoingCertificatesOutput {
- s.OutgoingCertificates = v
- return s
- }
- // The input for the ListPolicies operation.
- type ListPoliciesInput struct {
- _ struct{} `type:"structure"`
- // Specifies the order for results. If true, the results are returned in ascending
- // creation order.
- AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"`
- // The marker for the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The result page size.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s ListPoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPoliciesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListPoliciesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListPoliciesInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAscendingOrder sets the AscendingOrder field's value.
- func (s *ListPoliciesInput) SetAscendingOrder(v bool) *ListPoliciesInput {
- s.AscendingOrder = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *ListPoliciesInput) SetMarker(v string) *ListPoliciesInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListPoliciesInput) SetPageSize(v int64) *ListPoliciesInput {
- s.PageSize = &v
- return s
- }
- // The output from the ListPolicies operation.
- type ListPoliciesOutput struct {
- _ struct{} `type:"structure"`
- // The marker for the next set of results, or null if there are no additional
- // results.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- // The descriptions of the policies.
- Policies []*Policy `locationName:"policies" type:"list"`
- }
- // String returns the string representation
- func (s ListPoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPoliciesOutput) GoString() string {
- return s.String()
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListPoliciesOutput) SetNextMarker(v string) *ListPoliciesOutput {
- s.NextMarker = &v
- return s
- }
- // SetPolicies sets the Policies field's value.
- func (s *ListPoliciesOutput) SetPolicies(v []*Policy) *ListPoliciesOutput {
- s.Policies = v
- return s
- }
- // The input for the ListPolicyPrincipals operation.
- type ListPolicyPrincipalsInput struct {
- _ struct{} `type:"structure"`
- // Specifies the order for results. If true, the results are returned in ascending
- // creation order.
- AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"`
- // The marker for the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The result page size.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- // The policy name.
- //
- // PolicyName is a required field
- PolicyName *string `location:"header" locationName:"x-amzn-iot-policy" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListPolicyPrincipalsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPolicyPrincipalsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListPolicyPrincipalsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListPolicyPrincipalsInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAscendingOrder sets the AscendingOrder field's value.
- func (s *ListPolicyPrincipalsInput) SetAscendingOrder(v bool) *ListPolicyPrincipalsInput {
- s.AscendingOrder = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *ListPolicyPrincipalsInput) SetMarker(v string) *ListPolicyPrincipalsInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListPolicyPrincipalsInput) SetPageSize(v int64) *ListPolicyPrincipalsInput {
- s.PageSize = &v
- return s
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *ListPolicyPrincipalsInput) SetPolicyName(v string) *ListPolicyPrincipalsInput {
- s.PolicyName = &v
- return s
- }
- // The output from the ListPolicyPrincipals operation.
- type ListPolicyPrincipalsOutput struct {
- _ struct{} `type:"structure"`
- // The marker for the next set of results, or null if there are no additional
- // results.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- // The descriptions of the principals.
- Principals []*string `locationName:"principals" type:"list"`
- }
- // String returns the string representation
- func (s ListPolicyPrincipalsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPolicyPrincipalsOutput) GoString() string {
- return s.String()
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListPolicyPrincipalsOutput) SetNextMarker(v string) *ListPolicyPrincipalsOutput {
- s.NextMarker = &v
- return s
- }
- // SetPrincipals sets the Principals field's value.
- func (s *ListPolicyPrincipalsOutput) SetPrincipals(v []*string) *ListPolicyPrincipalsOutput {
- s.Principals = v
- return s
- }
- // The input for the ListPolicyVersions operation.
- type ListPolicyVersionsInput struct {
- _ struct{} `type:"structure"`
- // The policy name.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListPolicyVersionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPolicyVersionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListPolicyVersionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListPolicyVersionsInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *ListPolicyVersionsInput) SetPolicyName(v string) *ListPolicyVersionsInput {
- s.PolicyName = &v
- return s
- }
- // The output from the ListPolicyVersions operation.
- type ListPolicyVersionsOutput struct {
- _ struct{} `type:"structure"`
- // The policy versions.
- PolicyVersions []*PolicyVersion `locationName:"policyVersions" type:"list"`
- }
- // String returns the string representation
- func (s ListPolicyVersionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPolicyVersionsOutput) GoString() string {
- return s.String()
- }
- // SetPolicyVersions sets the PolicyVersions field's value.
- func (s *ListPolicyVersionsOutput) SetPolicyVersions(v []*PolicyVersion) *ListPolicyVersionsOutput {
- s.PolicyVersions = v
- return s
- }
- // The input for the ListPrincipalPolicies operation.
- type ListPrincipalPoliciesInput struct {
- _ struct{} `type:"structure"`
- // Specifies the order for results. If true, results are returned in ascending
- // creation order.
- AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"`
- // The marker for the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The result page size.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- // The principal.
- //
- // Principal is a required field
- Principal *string `location:"header" locationName:"x-amzn-iot-principal" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListPrincipalPoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPrincipalPoliciesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListPrincipalPoliciesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListPrincipalPoliciesInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if s.Principal == nil {
- invalidParams.Add(request.NewErrParamRequired("Principal"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAscendingOrder sets the AscendingOrder field's value.
- func (s *ListPrincipalPoliciesInput) SetAscendingOrder(v bool) *ListPrincipalPoliciesInput {
- s.AscendingOrder = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *ListPrincipalPoliciesInput) SetMarker(v string) *ListPrincipalPoliciesInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListPrincipalPoliciesInput) SetPageSize(v int64) *ListPrincipalPoliciesInput {
- s.PageSize = &v
- return s
- }
- // SetPrincipal sets the Principal field's value.
- func (s *ListPrincipalPoliciesInput) SetPrincipal(v string) *ListPrincipalPoliciesInput {
- s.Principal = &v
- return s
- }
- // The output from the ListPrincipalPolicies operation.
- type ListPrincipalPoliciesOutput struct {
- _ struct{} `type:"structure"`
- // The marker for the next set of results, or null if there are no additional
- // results.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- // The policies.
- Policies []*Policy `locationName:"policies" type:"list"`
- }
- // String returns the string representation
- func (s ListPrincipalPoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPrincipalPoliciesOutput) GoString() string {
- return s.String()
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListPrincipalPoliciesOutput) SetNextMarker(v string) *ListPrincipalPoliciesOutput {
- s.NextMarker = &v
- return s
- }
- // SetPolicies sets the Policies field's value.
- func (s *ListPrincipalPoliciesOutput) SetPolicies(v []*Policy) *ListPrincipalPoliciesOutput {
- s.Policies = v
- return s
- }
- // The input for the ListPrincipalThings operation.
- type ListPrincipalThingsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in this operation.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The principal.
- //
- // Principal is a required field
- Principal *string `location:"header" locationName:"x-amzn-principal" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListPrincipalThingsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPrincipalThingsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListPrincipalThingsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListPrincipalThingsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.Principal == nil {
- invalidParams.Add(request.NewErrParamRequired("Principal"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListPrincipalThingsInput) SetMaxResults(v int64) *ListPrincipalThingsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPrincipalThingsInput) SetNextToken(v string) *ListPrincipalThingsInput {
- s.NextToken = &v
- return s
- }
- // SetPrincipal sets the Principal field's value.
- func (s *ListPrincipalThingsInput) SetPrincipal(v string) *ListPrincipalThingsInput {
- s.Principal = &v
- return s
- }
- // The output from the ListPrincipalThings operation.
- type ListPrincipalThingsOutput struct {
- _ struct{} `type:"structure"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The things.
- Things []*string `locationName:"things" type:"list"`
- }
- // String returns the string representation
- func (s ListPrincipalThingsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPrincipalThingsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPrincipalThingsOutput) SetNextToken(v string) *ListPrincipalThingsOutput {
- s.NextToken = &v
- return s
- }
- // SetThings sets the Things field's value.
- func (s *ListPrincipalThingsOutput) SetThings(v []*string) *ListPrincipalThingsOutput {
- s.Things = v
- return s
- }
- type ListRoleAliasesInput struct {
- _ struct{} `type:"structure"`
- // Return the list of role aliases in ascending alphabetical order.
- AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"`
- // A marker used to get the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The maximum number of results to return at one time.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s ListRoleAliasesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListRoleAliasesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListRoleAliasesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListRoleAliasesInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAscendingOrder sets the AscendingOrder field's value.
- func (s *ListRoleAliasesInput) SetAscendingOrder(v bool) *ListRoleAliasesInput {
- s.AscendingOrder = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *ListRoleAliasesInput) SetMarker(v string) *ListRoleAliasesInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListRoleAliasesInput) SetPageSize(v int64) *ListRoleAliasesInput {
- s.PageSize = &v
- return s
- }
- type ListRoleAliasesOutput struct {
- _ struct{} `type:"structure"`
- // A marker used to get the next set of results.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- // The role aliases.
- RoleAliases []*string `locationName:"roleAliases" type:"list"`
- }
- // String returns the string representation
- func (s ListRoleAliasesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListRoleAliasesOutput) GoString() string {
- return s.String()
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListRoleAliasesOutput) SetNextMarker(v string) *ListRoleAliasesOutput {
- s.NextMarker = &v
- return s
- }
- // SetRoleAliases sets the RoleAliases field's value.
- func (s *ListRoleAliasesOutput) SetRoleAliases(v []*string) *ListRoleAliasesOutput {
- s.RoleAliases = v
- return s
- }
- type ListScheduledAuditsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time. The default is 25.
- 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 ListScheduledAuditsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListScheduledAuditsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListScheduledAuditsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListScheduledAuditsInput"}
- 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 *ListScheduledAuditsInput) SetMaxResults(v int64) *ListScheduledAuditsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListScheduledAuditsInput) SetNextToken(v string) *ListScheduledAuditsInput {
- s.NextToken = &v
- return s
- }
- type ListScheduledAuditsOutput struct {
- _ struct{} `type:"structure"`
- // A token that can be used to retrieve the next set of results, or null if
- // there are no additional results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The list of scheduled audits.
- ScheduledAudits []*ScheduledAuditMetadata `locationName:"scheduledAudits" type:"list"`
- }
- // String returns the string representation
- func (s ListScheduledAuditsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListScheduledAuditsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListScheduledAuditsOutput) SetNextToken(v string) *ListScheduledAuditsOutput {
- s.NextToken = &v
- return s
- }
- // SetScheduledAudits sets the ScheduledAudits field's value.
- func (s *ListScheduledAuditsOutput) SetScheduledAudits(v []*ScheduledAuditMetadata) *ListScheduledAuditsOutput {
- s.ScheduledAudits = v
- return s
- }
- type ListSecurityProfilesForTargetInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- 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"`
- // If true, return child groups as well.
- Recursive *bool `location:"querystring" locationName:"recursive" type:"boolean"`
- // The ARN of the target (thing group) whose attached security profiles you
- // want to get.
- //
- // SecurityProfileTargetArn is a required field
- SecurityProfileTargetArn *string `location:"querystring" locationName:"securityProfileTargetArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListSecurityProfilesForTargetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListSecurityProfilesForTargetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListSecurityProfilesForTargetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListSecurityProfilesForTargetInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.SecurityProfileTargetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityProfileTargetArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListSecurityProfilesForTargetInput) SetMaxResults(v int64) *ListSecurityProfilesForTargetInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListSecurityProfilesForTargetInput) SetNextToken(v string) *ListSecurityProfilesForTargetInput {
- s.NextToken = &v
- return s
- }
- // SetRecursive sets the Recursive field's value.
- func (s *ListSecurityProfilesForTargetInput) SetRecursive(v bool) *ListSecurityProfilesForTargetInput {
- s.Recursive = &v
- return s
- }
- // SetSecurityProfileTargetArn sets the SecurityProfileTargetArn field's value.
- func (s *ListSecurityProfilesForTargetInput) SetSecurityProfileTargetArn(v string) *ListSecurityProfilesForTargetInput {
- s.SecurityProfileTargetArn = &v
- return s
- }
- type ListSecurityProfilesForTargetOutput struct {
- _ struct{} `type:"structure"`
- // A token that can be used to retrieve the next set of results, or null if
- // there are no additional results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // A list of security profiles and their associated targets.
- SecurityProfileTargetMappings []*SecurityProfileTargetMapping `locationName:"securityProfileTargetMappings" type:"list"`
- }
- // String returns the string representation
- func (s ListSecurityProfilesForTargetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListSecurityProfilesForTargetOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListSecurityProfilesForTargetOutput) SetNextToken(v string) *ListSecurityProfilesForTargetOutput {
- s.NextToken = &v
- return s
- }
- // SetSecurityProfileTargetMappings sets the SecurityProfileTargetMappings field's value.
- func (s *ListSecurityProfilesForTargetOutput) SetSecurityProfileTargetMappings(v []*SecurityProfileTargetMapping) *ListSecurityProfilesForTargetOutput {
- s.SecurityProfileTargetMappings = v
- return s
- }
- type ListSecurityProfilesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- 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 ListSecurityProfilesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListSecurityProfilesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListSecurityProfilesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListSecurityProfilesInput"}
- 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 *ListSecurityProfilesInput) SetMaxResults(v int64) *ListSecurityProfilesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListSecurityProfilesInput) SetNextToken(v string) *ListSecurityProfilesInput {
- s.NextToken = &v
- return s
- }
- type ListSecurityProfilesOutput struct {
- _ struct{} `type:"structure"`
- // A token that can be used to retrieve the next set of results, or null if
- // there are no additional results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // A list of security profile identifiers (names and ARNs).
- SecurityProfileIdentifiers []*SecurityProfileIdentifier `locationName:"securityProfileIdentifiers" type:"list"`
- }
- // String returns the string representation
- func (s ListSecurityProfilesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListSecurityProfilesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListSecurityProfilesOutput) SetNextToken(v string) *ListSecurityProfilesOutput {
- s.NextToken = &v
- return s
- }
- // SetSecurityProfileIdentifiers sets the SecurityProfileIdentifiers field's value.
- func (s *ListSecurityProfilesOutput) SetSecurityProfileIdentifiers(v []*SecurityProfileIdentifier) *ListSecurityProfilesOutput {
- s.SecurityProfileIdentifiers = v
- return s
- }
- type ListStreamsInput struct {
- _ struct{} `type:"structure"`
- // Set to true to return the list of streams in ascending order.
- AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"`
- // The maximum number of results to return at a time.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // A token used to get the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListStreamsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListStreamsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListStreamsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListStreamsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAscendingOrder sets the AscendingOrder field's value.
- func (s *ListStreamsInput) SetAscendingOrder(v bool) *ListStreamsInput {
- s.AscendingOrder = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListStreamsInput) SetMaxResults(v int64) *ListStreamsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListStreamsInput) SetNextToken(v string) *ListStreamsInput {
- s.NextToken = &v
- return s
- }
- type ListStreamsOutput struct {
- _ struct{} `type:"structure"`
- // A token used to get the next set of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // A list of streams.
- Streams []*StreamSummary `locationName:"streams" type:"list"`
- }
- // String returns the string representation
- func (s ListStreamsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListStreamsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListStreamsOutput) SetNextToken(v string) *ListStreamsOutput {
- s.NextToken = &v
- return s
- }
- // SetStreams sets the Streams field's value.
- func (s *ListStreamsOutput) SetStreams(v []*StreamSummary) *ListStreamsOutput {
- s.Streams = v
- return s
- }
- type ListTagsForResourceInput struct {
- _ struct{} `type:"structure"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The ARN of the resource.
- //
- // ResourceArn is a required field
- ResourceArn *string `location:"querystring" locationName:"resourceArn" 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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput {
- s.NextToken = &v
- return s
- }
- // 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 token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The list of tags assigned to the resource.
- Tags []*Tag `locationName:"tags" 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()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput {
- s.NextToken = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput {
- s.Tags = v
- return s
- }
- type ListTargetsForPolicyInput struct {
- _ struct{} `type:"structure"`
- // A marker used to get the next set of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The maximum number of results to return at one time.
- PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"`
- // The policy name.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListTargetsForPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTargetsForPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTargetsForPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTargetsForPolicyInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMarker sets the Marker field's value.
- func (s *ListTargetsForPolicyInput) SetMarker(v string) *ListTargetsForPolicyInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *ListTargetsForPolicyInput) SetPageSize(v int64) *ListTargetsForPolicyInput {
- s.PageSize = &v
- return s
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *ListTargetsForPolicyInput) SetPolicyName(v string) *ListTargetsForPolicyInput {
- s.PolicyName = &v
- return s
- }
- type ListTargetsForPolicyOutput struct {
- _ struct{} `type:"structure"`
- // A marker used to get the next set of results.
- NextMarker *string `locationName:"nextMarker" type:"string"`
- // The policy targets.
- Targets []*string `locationName:"targets" type:"list"`
- }
- // String returns the string representation
- func (s ListTargetsForPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTargetsForPolicyOutput) GoString() string {
- return s.String()
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *ListTargetsForPolicyOutput) SetNextMarker(v string) *ListTargetsForPolicyOutput {
- s.NextMarker = &v
- return s
- }
- // SetTargets sets the Targets field's value.
- func (s *ListTargetsForPolicyOutput) SetTargets(v []*string) *ListTargetsForPolicyOutput {
- s.Targets = v
- return s
- }
- type ListTargetsForSecurityProfileInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- 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"`
- // The security profile.
- //
- // SecurityProfileName is a required field
- SecurityProfileName *string `location:"uri" locationName:"securityProfileName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListTargetsForSecurityProfileInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTargetsForSecurityProfileInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTargetsForSecurityProfileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTargetsForSecurityProfileInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.SecurityProfileName == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityProfileName"))
- }
- if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListTargetsForSecurityProfileInput) SetMaxResults(v int64) *ListTargetsForSecurityProfileInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTargetsForSecurityProfileInput) SetNextToken(v string) *ListTargetsForSecurityProfileInput {
- s.NextToken = &v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *ListTargetsForSecurityProfileInput) SetSecurityProfileName(v string) *ListTargetsForSecurityProfileInput {
- s.SecurityProfileName = &v
- return s
- }
- type ListTargetsForSecurityProfileOutput struct {
- _ struct{} `type:"structure"`
- // A token that can be used to retrieve the next set of results, or null if
- // there are no additional results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The thing groups to which the security profile is attached.
- SecurityProfileTargets []*SecurityProfileTarget `locationName:"securityProfileTargets" type:"list"`
- }
- // String returns the string representation
- func (s ListTargetsForSecurityProfileOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTargetsForSecurityProfileOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTargetsForSecurityProfileOutput) SetNextToken(v string) *ListTargetsForSecurityProfileOutput {
- s.NextToken = &v
- return s
- }
- // SetSecurityProfileTargets sets the SecurityProfileTargets field's value.
- func (s *ListTargetsForSecurityProfileOutput) SetSecurityProfileTargets(v []*SecurityProfileTarget) *ListTargetsForSecurityProfileOutput {
- s.SecurityProfileTargets = v
- return s
- }
- type ListThingGroupsForThingInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The thing name.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListThingGroupsForThingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingGroupsForThingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListThingGroupsForThingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListThingGroupsForThingInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- 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
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListThingGroupsForThingInput) SetMaxResults(v int64) *ListThingGroupsForThingInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingGroupsForThingInput) SetNextToken(v string) *ListThingGroupsForThingInput {
- s.NextToken = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *ListThingGroupsForThingInput) SetThingName(v string) *ListThingGroupsForThingInput {
- s.ThingName = &v
- return s
- }
- type ListThingGroupsForThingOutput struct {
- _ struct{} `type:"structure"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The thing groups.
- ThingGroups []*GroupNameAndArn `locationName:"thingGroups" type:"list"`
- }
- // String returns the string representation
- func (s ListThingGroupsForThingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingGroupsForThingOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingGroupsForThingOutput) SetNextToken(v string) *ListThingGroupsForThingOutput {
- s.NextToken = &v
- return s
- }
- // SetThingGroups sets the ThingGroups field's value.
- func (s *ListThingGroupsForThingOutput) SetThingGroups(v []*GroupNameAndArn) *ListThingGroupsForThingOutput {
- s.ThingGroups = v
- return s
- }
- type ListThingGroupsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // A filter that limits the results to those with the specified name prefix.
- NamePrefixFilter *string `location:"querystring" locationName:"namePrefixFilter" min:"1" type:"string"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // A filter that limits the results to those with the specified parent group.
- ParentGroup *string `location:"querystring" locationName:"parentGroup" min:"1" type:"string"`
- // If true, return child groups as well.
- Recursive *bool `location:"querystring" locationName:"recursive" type:"boolean"`
- }
- // String returns the string representation
- func (s ListThingGroupsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingGroupsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListThingGroupsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListThingGroupsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NamePrefixFilter != nil && len(*s.NamePrefixFilter) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NamePrefixFilter", 1))
- }
- if s.ParentGroup != nil && len(*s.ParentGroup) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ParentGroup", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListThingGroupsInput) SetMaxResults(v int64) *ListThingGroupsInput {
- s.MaxResults = &v
- return s
- }
- // SetNamePrefixFilter sets the NamePrefixFilter field's value.
- func (s *ListThingGroupsInput) SetNamePrefixFilter(v string) *ListThingGroupsInput {
- s.NamePrefixFilter = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingGroupsInput) SetNextToken(v string) *ListThingGroupsInput {
- s.NextToken = &v
- return s
- }
- // SetParentGroup sets the ParentGroup field's value.
- func (s *ListThingGroupsInput) SetParentGroup(v string) *ListThingGroupsInput {
- s.ParentGroup = &v
- return s
- }
- // SetRecursive sets the Recursive field's value.
- func (s *ListThingGroupsInput) SetRecursive(v bool) *ListThingGroupsInput {
- s.Recursive = &v
- return s
- }
- type ListThingGroupsOutput struct {
- _ struct{} `type:"structure"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The thing groups.
- ThingGroups []*GroupNameAndArn `locationName:"thingGroups" type:"list"`
- }
- // String returns the string representation
- func (s ListThingGroupsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingGroupsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingGroupsOutput) SetNextToken(v string) *ListThingGroupsOutput {
- s.NextToken = &v
- return s
- }
- // SetThingGroups sets the ThingGroups field's value.
- func (s *ListThingGroupsOutput) SetThingGroups(v []*GroupNameAndArn) *ListThingGroupsOutput {
- s.ThingGroups = v
- return s
- }
- // The input for the ListThingPrincipal operation.
- type ListThingPrincipalsInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListThingPrincipalsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingPrincipalsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListThingPrincipalsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListThingPrincipalsInput"}
- 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
- }
- // SetThingName sets the ThingName field's value.
- func (s *ListThingPrincipalsInput) SetThingName(v string) *ListThingPrincipalsInput {
- s.ThingName = &v
- return s
- }
- // The output from the ListThingPrincipals operation.
- type ListThingPrincipalsOutput struct {
- _ struct{} `type:"structure"`
- // The principals associated with the thing.
- Principals []*string `locationName:"principals" type:"list"`
- }
- // String returns the string representation
- func (s ListThingPrincipalsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingPrincipalsOutput) GoString() string {
- return s.String()
- }
- // SetPrincipals sets the Principals field's value.
- func (s *ListThingPrincipalsOutput) SetPrincipals(v []*string) *ListThingPrincipalsOutput {
- s.Principals = v
- return s
- }
- type ListThingRegistrationTaskReportsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return per request.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The type of task report.
- //
- // ReportType is a required field
- ReportType *string `location:"querystring" locationName:"reportType" type:"string" required:"true" enum:"ReportType"`
- // The id of the task.
- //
- // TaskId is a required field
- TaskId *string `location:"uri" locationName:"taskId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListThingRegistrationTaskReportsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingRegistrationTaskReportsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListThingRegistrationTaskReportsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListThingRegistrationTaskReportsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.ReportType == nil {
- invalidParams.Add(request.NewErrParamRequired("ReportType"))
- }
- if s.TaskId == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskId"))
- }
- if s.TaskId != nil && len(*s.TaskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListThingRegistrationTaskReportsInput) SetMaxResults(v int64) *ListThingRegistrationTaskReportsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingRegistrationTaskReportsInput) SetNextToken(v string) *ListThingRegistrationTaskReportsInput {
- s.NextToken = &v
- return s
- }
- // SetReportType sets the ReportType field's value.
- func (s *ListThingRegistrationTaskReportsInput) SetReportType(v string) *ListThingRegistrationTaskReportsInput {
- s.ReportType = &v
- return s
- }
- // SetTaskId sets the TaskId field's value.
- func (s *ListThingRegistrationTaskReportsInput) SetTaskId(v string) *ListThingRegistrationTaskReportsInput {
- s.TaskId = &v
- return s
- }
- type ListThingRegistrationTaskReportsOutput struct {
- _ struct{} `type:"structure"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The type of task report.
- ReportType *string `locationName:"reportType" type:"string" enum:"ReportType"`
- // Links to the task resources.
- ResourceLinks []*string `locationName:"resourceLinks" type:"list"`
- }
- // String returns the string representation
- func (s ListThingRegistrationTaskReportsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingRegistrationTaskReportsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingRegistrationTaskReportsOutput) SetNextToken(v string) *ListThingRegistrationTaskReportsOutput {
- s.NextToken = &v
- return s
- }
- // SetReportType sets the ReportType field's value.
- func (s *ListThingRegistrationTaskReportsOutput) SetReportType(v string) *ListThingRegistrationTaskReportsOutput {
- s.ReportType = &v
- return s
- }
- // SetResourceLinks sets the ResourceLinks field's value.
- func (s *ListThingRegistrationTaskReportsOutput) SetResourceLinks(v []*string) *ListThingRegistrationTaskReportsOutput {
- s.ResourceLinks = v
- return s
- }
- type ListThingRegistrationTasksInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The status of the bulk thing provisioning task.
- Status *string `location:"querystring" locationName:"status" type:"string" enum:"Status"`
- }
- // String returns the string representation
- func (s ListThingRegistrationTasksInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingRegistrationTasksInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListThingRegistrationTasksInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListThingRegistrationTasksInput"}
- 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 *ListThingRegistrationTasksInput) SetMaxResults(v int64) *ListThingRegistrationTasksInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingRegistrationTasksInput) SetNextToken(v string) *ListThingRegistrationTasksInput {
- s.NextToken = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ListThingRegistrationTasksInput) SetStatus(v string) *ListThingRegistrationTasksInput {
- s.Status = &v
- return s
- }
- type ListThingRegistrationTasksOutput struct {
- _ struct{} `type:"structure"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // A list of bulk thing provisioning task IDs.
- TaskIds []*string `locationName:"taskIds" type:"list"`
- }
- // String returns the string representation
- func (s ListThingRegistrationTasksOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingRegistrationTasksOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingRegistrationTasksOutput) SetNextToken(v string) *ListThingRegistrationTasksOutput {
- s.NextToken = &v
- return s
- }
- // SetTaskIds sets the TaskIds field's value.
- func (s *ListThingRegistrationTasksOutput) SetTaskIds(v []*string) *ListThingRegistrationTasksOutput {
- s.TaskIds = v
- return s
- }
- // The input for the ListThingTypes operation.
- type ListThingTypesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in this operation.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The name of the thing type.
- ThingTypeName *string `location:"querystring" locationName:"thingTypeName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListThingTypesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingTypesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListThingTypesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListThingTypesInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.ThingTypeName != nil && len(*s.ThingTypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingTypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListThingTypesInput) SetMaxResults(v int64) *ListThingTypesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingTypesInput) SetNextToken(v string) *ListThingTypesInput {
- s.NextToken = &v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *ListThingTypesInput) SetThingTypeName(v string) *ListThingTypesInput {
- s.ThingTypeName = &v
- return s
- }
- // The output for the ListThingTypes operation.
- type ListThingTypesOutput struct {
- _ struct{} `type:"structure"`
- // The token for the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The thing types.
- ThingTypes []*ThingTypeDefinition `locationName:"thingTypes" type:"list"`
- }
- // String returns the string representation
- func (s ListThingTypesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingTypesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingTypesOutput) SetNextToken(v string) *ListThingTypesOutput {
- s.NextToken = &v
- return s
- }
- // SetThingTypes sets the ThingTypes field's value.
- func (s *ListThingTypesOutput) SetThingTypes(v []*ThingTypeDefinition) *ListThingTypesOutput {
- s.ThingTypes = v
- return s
- }
- type ListThingsInBillingGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the billing group.
- //
- // BillingGroupName is a required field
- BillingGroupName *string `location:"uri" locationName:"billingGroupName" min:"1" type:"string" required:"true"`
- // The maximum number of results to return per request.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListThingsInBillingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingsInBillingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListThingsInBillingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListThingsInBillingGroupInput"}
- if s.BillingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("BillingGroupName"))
- }
- if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *ListThingsInBillingGroupInput) SetBillingGroupName(v string) *ListThingsInBillingGroupInput {
- s.BillingGroupName = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListThingsInBillingGroupInput) SetMaxResults(v int64) *ListThingsInBillingGroupInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingsInBillingGroupInput) SetNextToken(v string) *ListThingsInBillingGroupInput {
- s.NextToken = &v
- return s
- }
- type ListThingsInBillingGroupOutput struct {
- _ struct{} `type:"structure"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // A list of things in the billing group.
- Things []*string `locationName:"things" type:"list"`
- }
- // String returns the string representation
- func (s ListThingsInBillingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingsInBillingGroupOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingsInBillingGroupOutput) SetNextToken(v string) *ListThingsInBillingGroupOutput {
- s.NextToken = &v
- return s
- }
- // SetThings sets the Things field's value.
- func (s *ListThingsInBillingGroupOutput) SetThings(v []*string) *ListThingsInBillingGroupOutput {
- s.Things = v
- return s
- }
- type ListThingsInThingGroupInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // When true, list things in this thing group and in all child groups as well.
- Recursive *bool `location:"querystring" locationName:"recursive" type:"boolean"`
- // The thing group name.
- //
- // ThingGroupName is a required field
- ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListThingsInThingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingsInThingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListThingsInThingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListThingsInThingGroupInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.ThingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupName"))
- }
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListThingsInThingGroupInput) SetMaxResults(v int64) *ListThingsInThingGroupInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingsInThingGroupInput) SetNextToken(v string) *ListThingsInThingGroupInput {
- s.NextToken = &v
- return s
- }
- // SetRecursive sets the Recursive field's value.
- func (s *ListThingsInThingGroupInput) SetRecursive(v bool) *ListThingsInThingGroupInput {
- s.Recursive = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *ListThingsInThingGroupInput) SetThingGroupName(v string) *ListThingsInThingGroupInput {
- s.ThingGroupName = &v
- return s
- }
- type ListThingsInThingGroupOutput struct {
- _ struct{} `type:"structure"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The things in the specified thing group.
- Things []*string `locationName:"things" type:"list"`
- }
- // String returns the string representation
- func (s ListThingsInThingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingsInThingGroupOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingsInThingGroupOutput) SetNextToken(v string) *ListThingsInThingGroupOutput {
- s.NextToken = &v
- return s
- }
- // SetThings sets the Things field's value.
- func (s *ListThingsInThingGroupOutput) SetThings(v []*string) *ListThingsInThingGroupOutput {
- s.Things = v
- return s
- }
- // The input for the ListThings operation.
- type ListThingsInput struct {
- _ struct{} `type:"structure"`
- // The attribute name used to search for things.
- AttributeName *string `location:"querystring" locationName:"attributeName" type:"string"`
- // The attribute value used to search for things.
- AttributeValue *string `location:"querystring" locationName:"attributeValue" type:"string"`
- // The maximum number of results to return in this operation.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token to retrieve the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The name of the thing type used to search for things.
- ThingTypeName *string `location:"querystring" locationName:"thingTypeName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListThingsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListThingsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListThingsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.ThingTypeName != nil && len(*s.ThingTypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingTypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributeName sets the AttributeName field's value.
- func (s *ListThingsInput) SetAttributeName(v string) *ListThingsInput {
- s.AttributeName = &v
- return s
- }
- // SetAttributeValue sets the AttributeValue field's value.
- func (s *ListThingsInput) SetAttributeValue(v string) *ListThingsInput {
- s.AttributeValue = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListThingsInput) SetMaxResults(v int64) *ListThingsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingsInput) SetNextToken(v string) *ListThingsInput {
- s.NextToken = &v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *ListThingsInput) SetThingTypeName(v string) *ListThingsInput {
- s.ThingTypeName = &v
- return s
- }
- // The output from the ListThings operation.
- type ListThingsOutput struct {
- _ struct{} `type:"structure"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The things.
- Things []*ThingAttribute `locationName:"things" type:"list"`
- }
- // String returns the string representation
- func (s ListThingsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListThingsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListThingsOutput) SetNextToken(v string) *ListThingsOutput {
- s.NextToken = &v
- return s
- }
- // SetThings sets the Things field's value.
- func (s *ListThingsOutput) SetThings(v []*ThingAttribute) *ListThingsOutput {
- s.Things = v
- return s
- }
- // The input for the ListTopicRules operation.
- type ListTopicRulesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // A token used to retrieve the next value.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // Specifies whether the rule is disabled.
- RuleDisabled *bool `location:"querystring" locationName:"ruleDisabled" type:"boolean"`
- // The topic.
- Topic *string `location:"querystring" locationName:"topic" type:"string"`
- }
- // String returns the string representation
- func (s ListTopicRulesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTopicRulesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTopicRulesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTopicRulesInput"}
- 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 *ListTopicRulesInput) SetMaxResults(v int64) *ListTopicRulesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTopicRulesInput) SetNextToken(v string) *ListTopicRulesInput {
- s.NextToken = &v
- return s
- }
- // SetRuleDisabled sets the RuleDisabled field's value.
- func (s *ListTopicRulesInput) SetRuleDisabled(v bool) *ListTopicRulesInput {
- s.RuleDisabled = &v
- return s
- }
- // SetTopic sets the Topic field's value.
- func (s *ListTopicRulesInput) SetTopic(v string) *ListTopicRulesInput {
- s.Topic = &v
- return s
- }
- // The output from the ListTopicRules operation.
- type ListTopicRulesOutput struct {
- _ struct{} `type:"structure"`
- // A token used to retrieve the next value.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The rules.
- Rules []*TopicRuleListItem `locationName:"rules" type:"list"`
- }
- // String returns the string representation
- func (s ListTopicRulesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTopicRulesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTopicRulesOutput) SetNextToken(v string) *ListTopicRulesOutput {
- s.NextToken = &v
- return s
- }
- // SetRules sets the Rules field's value.
- func (s *ListTopicRulesOutput) SetRules(v []*TopicRuleListItem) *ListTopicRulesOutput {
- s.Rules = v
- return s
- }
- type ListV2LoggingLevelsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return at one time.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The type of resource for which you are configuring logging. Must be THING_Group.
- TargetType *string `location:"querystring" locationName:"targetType" type:"string" enum:"LogTargetType"`
- }
- // String returns the string representation
- func (s ListV2LoggingLevelsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListV2LoggingLevelsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListV2LoggingLevelsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListV2LoggingLevelsInput"}
- 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 *ListV2LoggingLevelsInput) SetMaxResults(v int64) *ListV2LoggingLevelsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListV2LoggingLevelsInput) SetNextToken(v string) *ListV2LoggingLevelsInput {
- s.NextToken = &v
- return s
- }
- // SetTargetType sets the TargetType field's value.
- func (s *ListV2LoggingLevelsInput) SetTargetType(v string) *ListV2LoggingLevelsInput {
- s.TargetType = &v
- return s
- }
- type ListV2LoggingLevelsOutput struct {
- _ struct{} `type:"structure"`
- // The logging configuration for a target.
- LogTargetConfigurations []*LogTargetConfiguration `locationName:"logTargetConfigurations" type:"list"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListV2LoggingLevelsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListV2LoggingLevelsOutput) GoString() string {
- return s.String()
- }
- // SetLogTargetConfigurations sets the LogTargetConfigurations field's value.
- func (s *ListV2LoggingLevelsOutput) SetLogTargetConfigurations(v []*LogTargetConfiguration) *ListV2LoggingLevelsOutput {
- s.LogTargetConfigurations = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListV2LoggingLevelsOutput) SetNextToken(v string) *ListV2LoggingLevelsOutput {
- s.NextToken = &v
- return s
- }
- type ListViolationEventsInput struct {
- _ struct{} `type:"structure"`
- // The end time for the alerts to be listed.
- //
- // EndTime is a required field
- EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" required:"true"`
- // The maximum number of results to return at one time.
- 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 alerts generated by the specified security
- // profile.
- SecurityProfileName *string `location:"querystring" locationName:"securityProfileName" min:"1" type:"string"`
- // The start time for the alerts to be listed.
- //
- // StartTime is a required field
- StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" required:"true"`
- // A filter to limit results to those alerts caused by the specified thing.
- ThingName *string `location:"querystring" locationName:"thingName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListViolationEventsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListViolationEventsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListViolationEventsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListViolationEventsInput"}
- if s.EndTime == nil {
- invalidParams.Add(request.NewErrParamRequired("EndTime"))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
- }
- if s.StartTime == nil {
- invalidParams.Add(request.NewErrParamRequired("StartTime"))
- }
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndTime sets the EndTime field's value.
- func (s *ListViolationEventsInput) SetEndTime(v time.Time) *ListViolationEventsInput {
- s.EndTime = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListViolationEventsInput) SetMaxResults(v int64) *ListViolationEventsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListViolationEventsInput) SetNextToken(v string) *ListViolationEventsInput {
- s.NextToken = &v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *ListViolationEventsInput) SetSecurityProfileName(v string) *ListViolationEventsInput {
- s.SecurityProfileName = &v
- return s
- }
- // SetStartTime sets the StartTime field's value.
- func (s *ListViolationEventsInput) SetStartTime(v time.Time) *ListViolationEventsInput {
- s.StartTime = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *ListViolationEventsInput) SetThingName(v string) *ListViolationEventsInput {
- s.ThingName = &v
- return s
- }
- type ListViolationEventsOutput struct {
- _ struct{} `type:"structure"`
- // A token that can be used to retrieve the next set of results, or null if
- // there are no additional results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The security profile violation alerts issued for this account during the
- // given time frame, potentially filtered by security profile, behavior violated,
- // or thing (device) violating.
- ViolationEvents []*ViolationEvent `locationName:"violationEvents" type:"list"`
- }
- // String returns the string representation
- func (s ListViolationEventsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListViolationEventsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListViolationEventsOutput) SetNextToken(v string) *ListViolationEventsOutput {
- s.NextToken = &v
- return s
- }
- // SetViolationEvents sets the ViolationEvents field's value.
- func (s *ListViolationEventsOutput) SetViolationEvents(v []*ViolationEvent) *ListViolationEventsOutput {
- s.ViolationEvents = v
- return s
- }
- // A log target.
- type LogTarget struct {
- _ struct{} `type:"structure"`
- // The target name.
- TargetName *string `locationName:"targetName" type:"string"`
- // The target type.
- //
- // TargetType is a required field
- TargetType *string `locationName:"targetType" type:"string" required:"true" enum:"LogTargetType"`
- }
- // String returns the string representation
- func (s LogTarget) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LogTarget) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LogTarget) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LogTarget"}
- if s.TargetType == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTargetName sets the TargetName field's value.
- func (s *LogTarget) SetTargetName(v string) *LogTarget {
- s.TargetName = &v
- return s
- }
- // SetTargetType sets the TargetType field's value.
- func (s *LogTarget) SetTargetType(v string) *LogTarget {
- s.TargetType = &v
- return s
- }
- // The target configuration.
- type LogTargetConfiguration struct {
- _ struct{} `type:"structure"`
- // The logging level.
- LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"`
- // A log target
- LogTarget *LogTarget `locationName:"logTarget" type:"structure"`
- }
- // String returns the string representation
- func (s LogTargetConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LogTargetConfiguration) GoString() string {
- return s.String()
- }
- // SetLogLevel sets the LogLevel field's value.
- func (s *LogTargetConfiguration) SetLogLevel(v string) *LogTargetConfiguration {
- s.LogLevel = &v
- return s
- }
- // SetLogTarget sets the LogTarget field's value.
- func (s *LogTargetConfiguration) SetLogTarget(v *LogTarget) *LogTargetConfiguration {
- s.LogTarget = v
- return s
- }
- // Describes the logging options payload.
- type LoggingOptionsPayload struct {
- _ struct{} `type:"structure"`
- // The log level.
- LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"`
- // The ARN of the IAM role that grants access.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s LoggingOptionsPayload) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoggingOptionsPayload) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LoggingOptionsPayload) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LoggingOptionsPayload"}
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLogLevel sets the LogLevel field's value.
- func (s *LoggingOptionsPayload) SetLogLevel(v string) *LoggingOptionsPayload {
- s.LogLevel = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *LoggingOptionsPayload) SetRoleArn(v string) *LoggingOptionsPayload {
- s.RoleArn = &v
- return s
- }
- // The value to be compared with the metric.
- type MetricValue struct {
- _ struct{} `type:"structure"`
- // If the comparisonOperator calls for a set of CIDRs, use this to specify that
- // set to be compared with the metric.
- Cidrs []*string `locationName:"cidrs" type:"list"`
- // If the comparisonOperator calls for a numeric value, use this to specify
- // that numeric value to be compared with the metric.
- Count *int64 `locationName:"count" type:"long"`
- // If the comparisonOperator calls for a set of ports, use this to specify that
- // set to be compared with the metric.
- Ports []*int64 `locationName:"ports" type:"list"`
- }
- // String returns the string representation
- func (s MetricValue) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MetricValue) GoString() string {
- return s.String()
- }
- // SetCidrs sets the Cidrs field's value.
- func (s *MetricValue) SetCidrs(v []*string) *MetricValue {
- s.Cidrs = v
- return s
- }
- // SetCount sets the Count field's value.
- func (s *MetricValue) SetCount(v int64) *MetricValue {
- s.Count = &v
- return s
- }
- // SetPorts sets the Ports field's value.
- func (s *MetricValue) SetPorts(v []*int64) *MetricValue {
- s.Ports = v
- return s
- }
- // Information about the resource that was non-compliant with the audit check.
- type NonCompliantResource struct {
- _ struct{} `type:"structure"`
- // Additional information about the non-compliant resource.
- AdditionalInfo map[string]*string `locationName:"additionalInfo" type:"map"`
- // Information identifying the non-compliant resource.
- ResourceIdentifier *ResourceIdentifier `locationName:"resourceIdentifier" type:"structure"`
- // The type of the non-compliant resource.
- ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
- }
- // String returns the string representation
- func (s NonCompliantResource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s NonCompliantResource) GoString() string {
- return s.String()
- }
- // SetAdditionalInfo sets the AdditionalInfo field's value.
- func (s *NonCompliantResource) SetAdditionalInfo(v map[string]*string) *NonCompliantResource {
- s.AdditionalInfo = v
- return s
- }
- // SetResourceIdentifier sets the ResourceIdentifier field's value.
- func (s *NonCompliantResource) SetResourceIdentifier(v *ResourceIdentifier) *NonCompliantResource {
- s.ResourceIdentifier = v
- return s
- }
- // SetResourceType sets the ResourceType field's value.
- func (s *NonCompliantResource) SetResourceType(v string) *NonCompliantResource {
- s.ResourceType = &v
- return s
- }
- // Describes a file to be associated with an OTA update.
- type OTAUpdateFile struct {
- _ struct{} `type:"structure"`
- // A list of name/attribute pairs.
- Attributes map[string]*string `locationName:"attributes" type:"map"`
- // The code signing method of the file.
- CodeSigning *CodeSigning `locationName:"codeSigning" type:"structure"`
- // The location of the updated firmware.
- FileLocation *FileLocation `locationName:"fileLocation" type:"structure"`
- // The name of the file.
- FileName *string `locationName:"fileName" type:"string"`
- // The file version.
- FileVersion *string `locationName:"fileVersion" type:"string"`
- }
- // String returns the string representation
- func (s OTAUpdateFile) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OTAUpdateFile) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *OTAUpdateFile) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "OTAUpdateFile"}
- if s.CodeSigning != nil {
- if err := s.CodeSigning.Validate(); err != nil {
- invalidParams.AddNested("CodeSigning", err.(request.ErrInvalidParams))
- }
- }
- if s.FileLocation != nil {
- if err := s.FileLocation.Validate(); err != nil {
- invalidParams.AddNested("FileLocation", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributes sets the Attributes field's value.
- func (s *OTAUpdateFile) SetAttributes(v map[string]*string) *OTAUpdateFile {
- s.Attributes = v
- return s
- }
- // SetCodeSigning sets the CodeSigning field's value.
- func (s *OTAUpdateFile) SetCodeSigning(v *CodeSigning) *OTAUpdateFile {
- s.CodeSigning = v
- return s
- }
- // SetFileLocation sets the FileLocation field's value.
- func (s *OTAUpdateFile) SetFileLocation(v *FileLocation) *OTAUpdateFile {
- s.FileLocation = v
- return s
- }
- // SetFileName sets the FileName field's value.
- func (s *OTAUpdateFile) SetFileName(v string) *OTAUpdateFile {
- s.FileName = &v
- return s
- }
- // SetFileVersion sets the FileVersion field's value.
- func (s *OTAUpdateFile) SetFileVersion(v string) *OTAUpdateFile {
- s.FileVersion = &v
- return s
- }
- // Information about an OTA update.
- type OTAUpdateInfo struct {
- _ struct{} `type:"structure"`
- // A collection of name/value pairs
- AdditionalParameters map[string]*string `locationName:"additionalParameters" type:"map"`
- // The AWS IoT job ARN associated with the OTA update.
- AwsIotJobArn *string `locationName:"awsIotJobArn" type:"string"`
- // The AWS IoT job ID associated with the OTA update.
- AwsIotJobId *string `locationName:"awsIotJobId" type:"string"`
- // Configuration for the rollout of OTA updates.
- AwsJobExecutionsRolloutConfig *AwsJobExecutionsRolloutConfig `locationName:"awsJobExecutionsRolloutConfig" type:"structure"`
- // The date when the OTA update was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // A description of the OTA update.
- Description *string `locationName:"description" type:"string"`
- // Error information associated with the OTA update.
- ErrorInfo *ErrorInfo `locationName:"errorInfo" type:"structure"`
- // The date when the OTA update was last updated.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // The OTA update ARN.
- OtaUpdateArn *string `locationName:"otaUpdateArn" type:"string"`
- // A list of files associated with the OTA update.
- OtaUpdateFiles []*OTAUpdateFile `locationName:"otaUpdateFiles" min:"1" type:"list"`
- // The OTA update ID.
- OtaUpdateId *string `locationName:"otaUpdateId" min:"1" type:"string"`
- // The status of the OTA update.
- OtaUpdateStatus *string `locationName:"otaUpdateStatus" type:"string" enum:"OTAUpdateStatus"`
- // Specifies whether the OTA update will continue to run (CONTINUOUS), or will
- // be complete after all those things specified as targets have completed the
- // OTA update (SNAPSHOT). If continuous, the OTA update may also be run on a
- // thing when a change is detected in a target. For example, an OTA update will
- // run on a thing when the thing is added to a target group, even after the
- // OTA update was completed by all things originally in the group.
- TargetSelection *string `locationName:"targetSelection" type:"string" enum:"TargetSelection"`
- // The targets of the OTA update.
- Targets []*string `locationName:"targets" min:"1" type:"list"`
- }
- // String returns the string representation
- func (s OTAUpdateInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OTAUpdateInfo) GoString() string {
- return s.String()
- }
- // SetAdditionalParameters sets the AdditionalParameters field's value.
- func (s *OTAUpdateInfo) SetAdditionalParameters(v map[string]*string) *OTAUpdateInfo {
- s.AdditionalParameters = v
- return s
- }
- // SetAwsIotJobArn sets the AwsIotJobArn field's value.
- func (s *OTAUpdateInfo) SetAwsIotJobArn(v string) *OTAUpdateInfo {
- s.AwsIotJobArn = &v
- return s
- }
- // SetAwsIotJobId sets the AwsIotJobId field's value.
- func (s *OTAUpdateInfo) SetAwsIotJobId(v string) *OTAUpdateInfo {
- s.AwsIotJobId = &v
- return s
- }
- // SetAwsJobExecutionsRolloutConfig sets the AwsJobExecutionsRolloutConfig field's value.
- func (s *OTAUpdateInfo) SetAwsJobExecutionsRolloutConfig(v *AwsJobExecutionsRolloutConfig) *OTAUpdateInfo {
- s.AwsJobExecutionsRolloutConfig = v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *OTAUpdateInfo) SetCreationDate(v time.Time) *OTAUpdateInfo {
- s.CreationDate = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *OTAUpdateInfo) SetDescription(v string) *OTAUpdateInfo {
- s.Description = &v
- return s
- }
- // SetErrorInfo sets the ErrorInfo field's value.
- func (s *OTAUpdateInfo) SetErrorInfo(v *ErrorInfo) *OTAUpdateInfo {
- s.ErrorInfo = v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *OTAUpdateInfo) SetLastModifiedDate(v time.Time) *OTAUpdateInfo {
- s.LastModifiedDate = &v
- return s
- }
- // SetOtaUpdateArn sets the OtaUpdateArn field's value.
- func (s *OTAUpdateInfo) SetOtaUpdateArn(v string) *OTAUpdateInfo {
- s.OtaUpdateArn = &v
- return s
- }
- // SetOtaUpdateFiles sets the OtaUpdateFiles field's value.
- func (s *OTAUpdateInfo) SetOtaUpdateFiles(v []*OTAUpdateFile) *OTAUpdateInfo {
- s.OtaUpdateFiles = v
- return s
- }
- // SetOtaUpdateId sets the OtaUpdateId field's value.
- func (s *OTAUpdateInfo) SetOtaUpdateId(v string) *OTAUpdateInfo {
- s.OtaUpdateId = &v
- return s
- }
- // SetOtaUpdateStatus sets the OtaUpdateStatus field's value.
- func (s *OTAUpdateInfo) SetOtaUpdateStatus(v string) *OTAUpdateInfo {
- s.OtaUpdateStatus = &v
- return s
- }
- // SetTargetSelection sets the TargetSelection field's value.
- func (s *OTAUpdateInfo) SetTargetSelection(v string) *OTAUpdateInfo {
- s.TargetSelection = &v
- return s
- }
- // SetTargets sets the Targets field's value.
- func (s *OTAUpdateInfo) SetTargets(v []*string) *OTAUpdateInfo {
- s.Targets = v
- return s
- }
- // An OTA update summary.
- type OTAUpdateSummary struct {
- _ struct{} `type:"structure"`
- // The date when the OTA update was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The OTA update ARN.
- OtaUpdateArn *string `locationName:"otaUpdateArn" type:"string"`
- // The OTA update ID.
- OtaUpdateId *string `locationName:"otaUpdateId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s OTAUpdateSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OTAUpdateSummary) GoString() string {
- return s.String()
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *OTAUpdateSummary) SetCreationDate(v time.Time) *OTAUpdateSummary {
- s.CreationDate = &v
- return s
- }
- // SetOtaUpdateArn sets the OtaUpdateArn field's value.
- func (s *OTAUpdateSummary) SetOtaUpdateArn(v string) *OTAUpdateSummary {
- s.OtaUpdateArn = &v
- return s
- }
- // SetOtaUpdateId sets the OtaUpdateId field's value.
- func (s *OTAUpdateSummary) SetOtaUpdateId(v string) *OTAUpdateSummary {
- s.OtaUpdateId = &v
- return s
- }
- // A certificate that has been transferred but not yet accepted.
- type OutgoingCertificate struct {
- _ struct{} `type:"structure"`
- // The certificate ARN.
- CertificateArn *string `locationName:"certificateArn" type:"string"`
- // The certificate ID.
- CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
- // The certificate creation date.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The date the transfer was initiated.
- TransferDate *time.Time `locationName:"transferDate" type:"timestamp"`
- // The transfer message.
- TransferMessage *string `locationName:"transferMessage" type:"string"`
- // The AWS account to which the transfer was made.
- TransferredTo *string `locationName:"transferredTo" min:"12" type:"string"`
- }
- // String returns the string representation
- func (s OutgoingCertificate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OutgoingCertificate) GoString() string {
- return s.String()
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *OutgoingCertificate) SetCertificateArn(v string) *OutgoingCertificate {
- s.CertificateArn = &v
- return s
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *OutgoingCertificate) SetCertificateId(v string) *OutgoingCertificate {
- s.CertificateId = &v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *OutgoingCertificate) SetCreationDate(v time.Time) *OutgoingCertificate {
- s.CreationDate = &v
- return s
- }
- // SetTransferDate sets the TransferDate field's value.
- func (s *OutgoingCertificate) SetTransferDate(v time.Time) *OutgoingCertificate {
- s.TransferDate = &v
- return s
- }
- // SetTransferMessage sets the TransferMessage field's value.
- func (s *OutgoingCertificate) SetTransferMessage(v string) *OutgoingCertificate {
- s.TransferMessage = &v
- return s
- }
- // SetTransferredTo sets the TransferredTo field's value.
- func (s *OutgoingCertificate) SetTransferredTo(v string) *OutgoingCertificate {
- s.TransferredTo = &v
- return s
- }
- // Describes an AWS IoT policy.
- type Policy struct {
- _ struct{} `type:"structure"`
- // The policy ARN.
- PolicyArn *string `locationName:"policyArn" type:"string"`
- // The policy name.
- PolicyName *string `locationName:"policyName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s Policy) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Policy) GoString() string {
- return s.String()
- }
- // SetPolicyArn sets the PolicyArn field's value.
- func (s *Policy) SetPolicyArn(v string) *Policy {
- s.PolicyArn = &v
- return s
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *Policy) SetPolicyName(v string) *Policy {
- s.PolicyName = &v
- return s
- }
- // Describes a policy version.
- type PolicyVersion struct {
- _ struct{} `type:"structure"`
- // The date and time the policy was created.
- CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
- // Specifies whether the policy version is the default.
- IsDefaultVersion *bool `locationName:"isDefaultVersion" type:"boolean"`
- // The policy version ID.
- VersionId *string `locationName:"versionId" type:"string"`
- }
- // String returns the string representation
- func (s PolicyVersion) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyVersion) GoString() string {
- return s.String()
- }
- // SetCreateDate sets the CreateDate field's value.
- func (s *PolicyVersion) SetCreateDate(v time.Time) *PolicyVersion {
- s.CreateDate = &v
- return s
- }
- // SetIsDefaultVersion sets the IsDefaultVersion field's value.
- func (s *PolicyVersion) SetIsDefaultVersion(v bool) *PolicyVersion {
- s.IsDefaultVersion = &v
- return s
- }
- // SetVersionId sets the VersionId field's value.
- func (s *PolicyVersion) SetVersionId(v string) *PolicyVersion {
- s.VersionId = &v
- return s
- }
- // Information about the version of the policy associated with the resource.
- type PolicyVersionIdentifier struct {
- _ struct{} `type:"structure"`
- // The name of the policy.
- PolicyName *string `locationName:"policyName" min:"1" type:"string"`
- // The ID of the version of the policy associated with the resource.
- PolicyVersionId *string `locationName:"policyVersionId" type:"string"`
- }
- // String returns the string representation
- func (s PolicyVersionIdentifier) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyVersionIdentifier) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PolicyVersionIdentifier) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PolicyVersionIdentifier"}
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *PolicyVersionIdentifier) SetPolicyName(v string) *PolicyVersionIdentifier {
- s.PolicyName = &v
- return s
- }
- // SetPolicyVersionId sets the PolicyVersionId field's value.
- func (s *PolicyVersionIdentifier) SetPolicyVersionId(v string) *PolicyVersionIdentifier {
- s.PolicyVersionId = &v
- return s
- }
- // Configuration for pre-signed S3 URLs.
- type PresignedUrlConfig struct {
- _ struct{} `type:"structure"`
- // How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600,
- // the default value is 3600 seconds. Pre-signed URLs are generated when Jobs
- // receives an MQTT request for the job document.
- ExpiresInSec *int64 `locationName:"expiresInSec" min:"60" type:"long"`
- // The ARN of an IAM role that grants grants permission to download files from
- // the S3 bucket where the job data/updates are stored. The role must also grant
- // permission for IoT to download the files.
- RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
- }
- // String returns the string representation
- func (s PresignedUrlConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PresignedUrlConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PresignedUrlConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PresignedUrlConfig"}
- if s.ExpiresInSec != nil && *s.ExpiresInSec < 60 {
- invalidParams.Add(request.NewErrParamMinValue("ExpiresInSec", 60))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExpiresInSec sets the ExpiresInSec field's value.
- func (s *PresignedUrlConfig) SetExpiresInSec(v int64) *PresignedUrlConfig {
- s.ExpiresInSec = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *PresignedUrlConfig) SetRoleArn(v string) *PresignedUrlConfig {
- s.RoleArn = &v
- return s
- }
- // The input for the DynamoActionVS action that specifies the DynamoDB table
- // to which the message data will be written.
- type PutItemInput struct {
- _ struct{} `type:"structure"`
- // The table where the message data will be written
- //
- // TableName is a required field
- TableName *string `locationName:"tableName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutItemInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutItemInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutItemInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutItemInput"}
- if s.TableName == nil {
- invalidParams.Add(request.NewErrParamRequired("TableName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTableName sets the TableName field's value.
- func (s *PutItemInput) SetTableName(v string) *PutItemInput {
- s.TableName = &v
- return s
- }
- // Allows you to define a criteria to initiate the increase in rate of rollout
- // for a job.
- type RateIncreaseCriteria struct {
- _ struct{} `type:"structure"`
- // The threshold for number of notified things that will initiate the increase
- // in rate of rollout.
- NumberOfNotifiedThings *int64 `locationName:"numberOfNotifiedThings" min:"1" type:"integer"`
- // The threshold for number of succeeded things that will initiate the increase
- // in rate of rollout.
- NumberOfSucceededThings *int64 `locationName:"numberOfSucceededThings" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s RateIncreaseCriteria) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RateIncreaseCriteria) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RateIncreaseCriteria) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RateIncreaseCriteria"}
- if s.NumberOfNotifiedThings != nil && *s.NumberOfNotifiedThings < 1 {
- invalidParams.Add(request.NewErrParamMinValue("NumberOfNotifiedThings", 1))
- }
- if s.NumberOfSucceededThings != nil && *s.NumberOfSucceededThings < 1 {
- invalidParams.Add(request.NewErrParamMinValue("NumberOfSucceededThings", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNumberOfNotifiedThings sets the NumberOfNotifiedThings field's value.
- func (s *RateIncreaseCriteria) SetNumberOfNotifiedThings(v int64) *RateIncreaseCriteria {
- s.NumberOfNotifiedThings = &v
- return s
- }
- // SetNumberOfSucceededThings sets the NumberOfSucceededThings field's value.
- func (s *RateIncreaseCriteria) SetNumberOfSucceededThings(v int64) *RateIncreaseCriteria {
- s.NumberOfSucceededThings = &v
- return s
- }
- // The input to the RegisterCACertificate operation.
- type RegisterCACertificateInput struct {
- _ struct{} `type:"structure"`
- // Allows this CA certificate to be used for auto registration of device certificates.
- AllowAutoRegistration *bool `location:"querystring" locationName:"allowAutoRegistration" type:"boolean"`
- // The CA certificate.
- //
- // CaCertificate is a required field
- CaCertificate *string `locationName:"caCertificate" min:"1" type:"string" required:"true"`
- // Information about the registration configuration.
- RegistrationConfig *RegistrationConfig `locationName:"registrationConfig" type:"structure"`
- // A boolean value that specifies if the CA certificate is set to active.
- SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"`
- // The private key verification certificate.
- //
- // VerificationCertificate is a required field
- VerificationCertificate *string `locationName:"verificationCertificate" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RegisterCACertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterCACertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RegisterCACertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RegisterCACertificateInput"}
- if s.CaCertificate == nil {
- invalidParams.Add(request.NewErrParamRequired("CaCertificate"))
- }
- if s.CaCertificate != nil && len(*s.CaCertificate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CaCertificate", 1))
- }
- if s.VerificationCertificate == nil {
- invalidParams.Add(request.NewErrParamRequired("VerificationCertificate"))
- }
- if s.VerificationCertificate != nil && len(*s.VerificationCertificate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("VerificationCertificate", 1))
- }
- if s.RegistrationConfig != nil {
- if err := s.RegistrationConfig.Validate(); err != nil {
- invalidParams.AddNested("RegistrationConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAllowAutoRegistration sets the AllowAutoRegistration field's value.
- func (s *RegisterCACertificateInput) SetAllowAutoRegistration(v bool) *RegisterCACertificateInput {
- s.AllowAutoRegistration = &v
- return s
- }
- // SetCaCertificate sets the CaCertificate field's value.
- func (s *RegisterCACertificateInput) SetCaCertificate(v string) *RegisterCACertificateInput {
- s.CaCertificate = &v
- return s
- }
- // SetRegistrationConfig sets the RegistrationConfig field's value.
- func (s *RegisterCACertificateInput) SetRegistrationConfig(v *RegistrationConfig) *RegisterCACertificateInput {
- s.RegistrationConfig = v
- return s
- }
- // SetSetAsActive sets the SetAsActive field's value.
- func (s *RegisterCACertificateInput) SetSetAsActive(v bool) *RegisterCACertificateInput {
- s.SetAsActive = &v
- return s
- }
- // SetVerificationCertificate sets the VerificationCertificate field's value.
- func (s *RegisterCACertificateInput) SetVerificationCertificate(v string) *RegisterCACertificateInput {
- s.VerificationCertificate = &v
- return s
- }
- // The output from the RegisterCACertificateResponse operation.
- type RegisterCACertificateOutput struct {
- _ struct{} `type:"structure"`
- // The CA certificate ARN.
- CertificateArn *string `locationName:"certificateArn" type:"string"`
- // The CA certificate identifier.
- CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
- }
- // String returns the string representation
- func (s RegisterCACertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterCACertificateOutput) GoString() string {
- return s.String()
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *RegisterCACertificateOutput) SetCertificateArn(v string) *RegisterCACertificateOutput {
- s.CertificateArn = &v
- return s
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *RegisterCACertificateOutput) SetCertificateId(v string) *RegisterCACertificateOutput {
- s.CertificateId = &v
- return s
- }
- // The input to the RegisterCertificate operation.
- type RegisterCertificateInput struct {
- _ struct{} `type:"structure"`
- // The CA certificate used to sign the device certificate being registered.
- CaCertificatePem *string `locationName:"caCertificatePem" min:"1" type:"string"`
- // The certificate data, in PEM format.
- //
- // CertificatePem is a required field
- CertificatePem *string `locationName:"certificatePem" min:"1" type:"string" required:"true"`
- // A boolean value that specifies if the CA certificate is set to active.
- //
- // Deprecated: SetAsActive has been deprecated
- SetAsActive *bool `location:"querystring" locationName:"setAsActive" deprecated:"true" type:"boolean"`
- // The status of the register certificate request.
- Status *string `locationName:"status" type:"string" enum:"CertificateStatus"`
- }
- // String returns the string representation
- func (s RegisterCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RegisterCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RegisterCertificateInput"}
- if s.CaCertificatePem != nil && len(*s.CaCertificatePem) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CaCertificatePem", 1))
- }
- if s.CertificatePem == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificatePem"))
- }
- if s.CertificatePem != nil && len(*s.CertificatePem) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CertificatePem", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCaCertificatePem sets the CaCertificatePem field's value.
- func (s *RegisterCertificateInput) SetCaCertificatePem(v string) *RegisterCertificateInput {
- s.CaCertificatePem = &v
- return s
- }
- // SetCertificatePem sets the CertificatePem field's value.
- func (s *RegisterCertificateInput) SetCertificatePem(v string) *RegisterCertificateInput {
- s.CertificatePem = &v
- return s
- }
- // SetSetAsActive sets the SetAsActive field's value.
- func (s *RegisterCertificateInput) SetSetAsActive(v bool) *RegisterCertificateInput {
- s.SetAsActive = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *RegisterCertificateInput) SetStatus(v string) *RegisterCertificateInput {
- s.Status = &v
- return s
- }
- // The output from the RegisterCertificate operation.
- type RegisterCertificateOutput struct {
- _ struct{} `type:"structure"`
- // The certificate ARN.
- CertificateArn *string `locationName:"certificateArn" type:"string"`
- // The certificate identifier.
- CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
- }
- // String returns the string representation
- func (s RegisterCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterCertificateOutput) GoString() string {
- return s.String()
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *RegisterCertificateOutput) SetCertificateArn(v string) *RegisterCertificateOutput {
- s.CertificateArn = &v
- return s
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *RegisterCertificateOutput) SetCertificateId(v string) *RegisterCertificateOutput {
- s.CertificateId = &v
- return s
- }
- type RegisterThingInput struct {
- _ struct{} `type:"structure"`
- // The parameters for provisioning a thing. See Programmatic Provisioning (http://docs.aws.amazon.com/iot/latest/developerguide/programmatic-provisioning.html)
- // for more information.
- Parameters map[string]*string `locationName:"parameters" type:"map"`
- // The provisioning template. See Programmatic Provisioning (http://docs.aws.amazon.com/iot/latest/developerguide/programmatic-provisioning.html)
- // for more information.
- //
- // TemplateBody is a required field
- TemplateBody *string `locationName:"templateBody" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RegisterThingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterThingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RegisterThingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RegisterThingInput"}
- if s.TemplateBody == nil {
- invalidParams.Add(request.NewErrParamRequired("TemplateBody"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetParameters sets the Parameters field's value.
- func (s *RegisterThingInput) SetParameters(v map[string]*string) *RegisterThingInput {
- s.Parameters = v
- return s
- }
- // SetTemplateBody sets the TemplateBody field's value.
- func (s *RegisterThingInput) SetTemplateBody(v string) *RegisterThingInput {
- s.TemplateBody = &v
- return s
- }
- type RegisterThingOutput struct {
- _ struct{} `type:"structure"`
- // .
- CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"`
- // ARNs for the generated resources.
- ResourceArns map[string]*string `locationName:"resourceArns" type:"map"`
- }
- // String returns the string representation
- func (s RegisterThingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterThingOutput) GoString() string {
- return s.String()
- }
- // SetCertificatePem sets the CertificatePem field's value.
- func (s *RegisterThingOutput) SetCertificatePem(v string) *RegisterThingOutput {
- s.CertificatePem = &v
- return s
- }
- // SetResourceArns sets the ResourceArns field's value.
- func (s *RegisterThingOutput) SetResourceArns(v map[string]*string) *RegisterThingOutput {
- s.ResourceArns = v
- return s
- }
- // The registration configuration.
- type RegistrationConfig struct {
- _ struct{} `type:"structure"`
- // The ARN of the role.
- RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
- // The template body.
- TemplateBody *string `locationName:"templateBody" type:"string"`
- }
- // String returns the string representation
- func (s RegistrationConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegistrationConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RegistrationConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RegistrationConfig"}
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *RegistrationConfig) SetRoleArn(v string) *RegistrationConfig {
- s.RoleArn = &v
- return s
- }
- // SetTemplateBody sets the TemplateBody field's value.
- func (s *RegistrationConfig) SetTemplateBody(v string) *RegistrationConfig {
- s.TemplateBody = &v
- return s
- }
- // The input for the RejectCertificateTransfer operation.
- type RejectCertificateTransferInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate. (The last part of the certificate ARN contains
- // the certificate ID.)
- //
- // CertificateId is a required field
- CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"`
- // The reason the certificate transfer was rejected.
- RejectReason *string `locationName:"rejectReason" type:"string"`
- }
- // String returns the string representation
- func (s RejectCertificateTransferInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RejectCertificateTransferInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RejectCertificateTransferInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RejectCertificateTransferInput"}
- if s.CertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateId"))
- }
- if s.CertificateId != nil && len(*s.CertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *RejectCertificateTransferInput) SetCertificateId(v string) *RejectCertificateTransferInput {
- s.CertificateId = &v
- return s
- }
- // SetRejectReason sets the RejectReason field's value.
- func (s *RejectCertificateTransferInput) SetRejectReason(v string) *RejectCertificateTransferInput {
- s.RejectReason = &v
- return s
- }
- type RejectCertificateTransferOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RejectCertificateTransferOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RejectCertificateTransferOutput) GoString() string {
- return s.String()
- }
- // Information about a related resource.
- type RelatedResource struct {
- _ struct{} `type:"structure"`
- // Additional information about the resource.
- AdditionalInfo map[string]*string `locationName:"additionalInfo" type:"map"`
- // Information identifying the resource.
- ResourceIdentifier *ResourceIdentifier `locationName:"resourceIdentifier" type:"structure"`
- // The type of resource.
- ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
- }
- // String returns the string representation
- func (s RelatedResource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RelatedResource) GoString() string {
- return s.String()
- }
- // SetAdditionalInfo sets the AdditionalInfo field's value.
- func (s *RelatedResource) SetAdditionalInfo(v map[string]*string) *RelatedResource {
- s.AdditionalInfo = v
- return s
- }
- // SetResourceIdentifier sets the ResourceIdentifier field's value.
- func (s *RelatedResource) SetResourceIdentifier(v *ResourceIdentifier) *RelatedResource {
- s.ResourceIdentifier = v
- return s
- }
- // SetResourceType sets the ResourceType field's value.
- func (s *RelatedResource) SetResourceType(v string) *RelatedResource {
- s.ResourceType = &v
- return s
- }
- type RemoveThingFromBillingGroupInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the billing group.
- BillingGroupArn *string `locationName:"billingGroupArn" type:"string"`
- // The name of the billing group.
- BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"`
- // The ARN of the thing to be removed from the billing group.
- ThingArn *string `locationName:"thingArn" type:"string"`
- // The name of the thing to be removed from the billing group.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s RemoveThingFromBillingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveThingFromBillingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RemoveThingFromBillingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveThingFromBillingGroupInput"}
- if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1))
- }
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBillingGroupArn sets the BillingGroupArn field's value.
- func (s *RemoveThingFromBillingGroupInput) SetBillingGroupArn(v string) *RemoveThingFromBillingGroupInput {
- s.BillingGroupArn = &v
- return s
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *RemoveThingFromBillingGroupInput) SetBillingGroupName(v string) *RemoveThingFromBillingGroupInput {
- s.BillingGroupName = &v
- return s
- }
- // SetThingArn sets the ThingArn field's value.
- func (s *RemoveThingFromBillingGroupInput) SetThingArn(v string) *RemoveThingFromBillingGroupInput {
- s.ThingArn = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *RemoveThingFromBillingGroupInput) SetThingName(v string) *RemoveThingFromBillingGroupInput {
- s.ThingName = &v
- return s
- }
- type RemoveThingFromBillingGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RemoveThingFromBillingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveThingFromBillingGroupOutput) GoString() string {
- return s.String()
- }
- type RemoveThingFromThingGroupInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the thing to remove from the group.
- ThingArn *string `locationName:"thingArn" type:"string"`
- // The group ARN.
- ThingGroupArn *string `locationName:"thingGroupArn" type:"string"`
- // The group name.
- ThingGroupName *string `locationName:"thingGroupName" min:"1" type:"string"`
- // The name of the thing to remove from the group.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s RemoveThingFromThingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveThingFromThingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RemoveThingFromThingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveThingFromThingGroupInput"}
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetThingArn sets the ThingArn field's value.
- func (s *RemoveThingFromThingGroupInput) SetThingArn(v string) *RemoveThingFromThingGroupInput {
- s.ThingArn = &v
- return s
- }
- // SetThingGroupArn sets the ThingGroupArn field's value.
- func (s *RemoveThingFromThingGroupInput) SetThingGroupArn(v string) *RemoveThingFromThingGroupInput {
- s.ThingGroupArn = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *RemoveThingFromThingGroupInput) SetThingGroupName(v string) *RemoveThingFromThingGroupInput {
- s.ThingGroupName = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *RemoveThingFromThingGroupInput) SetThingName(v string) *RemoveThingFromThingGroupInput {
- s.ThingName = &v
- return s
- }
- type RemoveThingFromThingGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RemoveThingFromThingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveThingFromThingGroupOutput) GoString() string {
- return s.String()
- }
- // The input for the ReplaceTopicRule operation.
- type ReplaceTopicRuleInput struct {
- _ struct{} `type:"structure" payload:"TopicRulePayload"`
- // The name of the rule.
- //
- // RuleName is a required field
- RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
- // The rule payload.
- //
- // TopicRulePayload is a required field
- TopicRulePayload *TopicRulePayload `locationName:"topicRulePayload" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s ReplaceTopicRuleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReplaceTopicRuleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ReplaceTopicRuleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReplaceTopicRuleInput"}
- if s.RuleName == nil {
- invalidParams.Add(request.NewErrParamRequired("RuleName"))
- }
- if s.RuleName != nil && len(*s.RuleName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
- }
- if s.TopicRulePayload == nil {
- invalidParams.Add(request.NewErrParamRequired("TopicRulePayload"))
- }
- if s.TopicRulePayload != nil {
- if err := s.TopicRulePayload.Validate(); err != nil {
- invalidParams.AddNested("TopicRulePayload", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRuleName sets the RuleName field's value.
- func (s *ReplaceTopicRuleInput) SetRuleName(v string) *ReplaceTopicRuleInput {
- s.RuleName = &v
- return s
- }
- // SetTopicRulePayload sets the TopicRulePayload field's value.
- func (s *ReplaceTopicRuleInput) SetTopicRulePayload(v *TopicRulePayload) *ReplaceTopicRuleInput {
- s.TopicRulePayload = v
- return s
- }
- type ReplaceTopicRuleOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ReplaceTopicRuleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReplaceTopicRuleOutput) GoString() string {
- return s.String()
- }
- // Describes an action to republish to another topic.
- type RepublishAction struct {
- _ struct{} `type:"structure"`
- // The ARN of the IAM role that grants access.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The name of the MQTT topic.
- //
- // Topic is a required field
- Topic *string `locationName:"topic" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RepublishAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RepublishAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RepublishAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RepublishAction"}
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.Topic == nil {
- invalidParams.Add(request.NewErrParamRequired("Topic"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *RepublishAction) SetRoleArn(v string) *RepublishAction {
- s.RoleArn = &v
- return s
- }
- // SetTopic sets the Topic field's value.
- func (s *RepublishAction) SetTopic(v string) *RepublishAction {
- s.Topic = &v
- return s
- }
- // Information identifying the non-compliant resource.
- type ResourceIdentifier struct {
- _ struct{} `type:"structure"`
- // The account with which the resource is associated.
- Account *string `locationName:"account" min:"12" type:"string"`
- // The ID of the CA certificate used to authorize the certificate.
- CaCertificateId *string `locationName:"caCertificateId" min:"64" type:"string"`
- // The client ID.
- ClientId *string `locationName:"clientId" type:"string"`
- // The ID of the Cognito Identity Pool.
- CognitoIdentityPoolId *string `locationName:"cognitoIdentityPoolId" type:"string"`
- // The ID of the certificate attached to the resource.
- DeviceCertificateId *string `locationName:"deviceCertificateId" min:"64" type:"string"`
- // The version of the policy associated with the resource.
- PolicyVersionIdentifier *PolicyVersionIdentifier `locationName:"policyVersionIdentifier" type:"structure"`
- }
- // String returns the string representation
- func (s ResourceIdentifier) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceIdentifier) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ResourceIdentifier) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ResourceIdentifier"}
- if s.Account != nil && len(*s.Account) < 12 {
- invalidParams.Add(request.NewErrParamMinLen("Account", 12))
- }
- if s.CaCertificateId != nil && len(*s.CaCertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CaCertificateId", 64))
- }
- if s.DeviceCertificateId != nil && len(*s.DeviceCertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceCertificateId", 64))
- }
- if s.PolicyVersionIdentifier != nil {
- if err := s.PolicyVersionIdentifier.Validate(); err != nil {
- invalidParams.AddNested("PolicyVersionIdentifier", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAccount sets the Account field's value.
- func (s *ResourceIdentifier) SetAccount(v string) *ResourceIdentifier {
- s.Account = &v
- return s
- }
- // SetCaCertificateId sets the CaCertificateId field's value.
- func (s *ResourceIdentifier) SetCaCertificateId(v string) *ResourceIdentifier {
- s.CaCertificateId = &v
- return s
- }
- // SetClientId sets the ClientId field's value.
- func (s *ResourceIdentifier) SetClientId(v string) *ResourceIdentifier {
- s.ClientId = &v
- return s
- }
- // SetCognitoIdentityPoolId sets the CognitoIdentityPoolId field's value.
- func (s *ResourceIdentifier) SetCognitoIdentityPoolId(v string) *ResourceIdentifier {
- s.CognitoIdentityPoolId = &v
- return s
- }
- // SetDeviceCertificateId sets the DeviceCertificateId field's value.
- func (s *ResourceIdentifier) SetDeviceCertificateId(v string) *ResourceIdentifier {
- s.DeviceCertificateId = &v
- return s
- }
- // SetPolicyVersionIdentifier sets the PolicyVersionIdentifier field's value.
- func (s *ResourceIdentifier) SetPolicyVersionIdentifier(v *PolicyVersionIdentifier) *ResourceIdentifier {
- s.PolicyVersionIdentifier = v
- return s
- }
- // Role alias description.
- type RoleAliasDescription struct {
- _ struct{} `type:"structure"`
- // The UNIX timestamp of when the role alias was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The number of seconds for which the credential is valid.
- CredentialDurationSeconds *int64 `locationName:"credentialDurationSeconds" min:"900" type:"integer"`
- // The UNIX timestamp of when the role alias was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // The role alias owner.
- Owner *string `locationName:"owner" min:"12" type:"string"`
- // The role alias.
- RoleAlias *string `locationName:"roleAlias" min:"1" type:"string"`
- // The ARN of the role alias.
- RoleAliasArn *string `locationName:"roleAliasArn" type:"string"`
- // The role ARN.
- RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
- }
- // String returns the string representation
- func (s RoleAliasDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RoleAliasDescription) GoString() string {
- return s.String()
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *RoleAliasDescription) SetCreationDate(v time.Time) *RoleAliasDescription {
- s.CreationDate = &v
- return s
- }
- // SetCredentialDurationSeconds sets the CredentialDurationSeconds field's value.
- func (s *RoleAliasDescription) SetCredentialDurationSeconds(v int64) *RoleAliasDescription {
- s.CredentialDurationSeconds = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *RoleAliasDescription) SetLastModifiedDate(v time.Time) *RoleAliasDescription {
- s.LastModifiedDate = &v
- return s
- }
- // SetOwner sets the Owner field's value.
- func (s *RoleAliasDescription) SetOwner(v string) *RoleAliasDescription {
- s.Owner = &v
- return s
- }
- // SetRoleAlias sets the RoleAlias field's value.
- func (s *RoleAliasDescription) SetRoleAlias(v string) *RoleAliasDescription {
- s.RoleAlias = &v
- return s
- }
- // SetRoleAliasArn sets the RoleAliasArn field's value.
- func (s *RoleAliasDescription) SetRoleAliasArn(v string) *RoleAliasDescription {
- s.RoleAliasArn = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *RoleAliasDescription) SetRoleArn(v string) *RoleAliasDescription {
- s.RoleArn = &v
- return s
- }
- // Describes an action to write data to an Amazon S3 bucket.
- type S3Action struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 bucket.
- //
- // BucketName is a required field
- BucketName *string `locationName:"bucketName" type:"string" required:"true"`
- // The Amazon S3 canned ACL that controls access to the object identified by
- // the object key. For more information, see S3 canned ACLs (http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl).
- CannedAcl *string `locationName:"cannedAcl" type:"string" enum:"CannedAccessControlList"`
- // The object key.
- //
- // Key is a required field
- Key *string `locationName:"key" type:"string" required:"true"`
- // The ARN of the IAM role that grants access.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s S3Action) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3Action) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *S3Action) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3Action"}
- if s.BucketName == nil {
- invalidParams.Add(request.NewErrParamRequired("BucketName"))
- }
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBucketName sets the BucketName field's value.
- func (s *S3Action) SetBucketName(v string) *S3Action {
- s.BucketName = &v
- return s
- }
- // SetCannedAcl sets the CannedAcl field's value.
- func (s *S3Action) SetCannedAcl(v string) *S3Action {
- s.CannedAcl = &v
- return s
- }
- // SetKey sets the Key field's value.
- func (s *S3Action) SetKey(v string) *S3Action {
- s.Key = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *S3Action) SetRoleArn(v string) *S3Action {
- s.RoleArn = &v
- return s
- }
- // Describes the location of updated firmware in S3.
- type S3Destination struct {
- _ struct{} `type:"structure"`
- // The S3 bucket that contains the updated firmware.
- Bucket *string `locationName:"bucket" min:"1" type:"string"`
- // The S3 prefix.
- Prefix *string `locationName:"prefix" type:"string"`
- }
- // String returns the string representation
- func (s S3Destination) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3Destination) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *S3Destination) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3Destination"}
- if s.Bucket != nil && len(*s.Bucket) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBucket sets the Bucket field's value.
- func (s *S3Destination) SetBucket(v string) *S3Destination {
- s.Bucket = &v
- return s
- }
- // SetPrefix sets the Prefix field's value.
- func (s *S3Destination) SetPrefix(v string) *S3Destination {
- s.Prefix = &v
- return s
- }
- // The S3 location.
- type S3Location struct {
- _ struct{} `type:"structure"`
- // The S3 bucket.
- Bucket *string `locationName:"bucket" min:"1" type:"string"`
- // The S3 key.
- Key *string `locationName:"key" min:"1" type:"string"`
- // The S3 bucket version.
- Version *string `locationName:"version" type:"string"`
- }
- // String returns the string representation
- func (s S3Location) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3Location) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *S3Location) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3Location"}
- if s.Bucket != nil && len(*s.Bucket) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 1))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBucket sets the Bucket field's value.
- func (s *S3Location) SetBucket(v string) *S3Location {
- s.Bucket = &v
- return s
- }
- // SetKey sets the Key field's value.
- func (s *S3Location) SetKey(v string) *S3Location {
- s.Key = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *S3Location) SetVersion(v string) *S3Location {
- s.Version = &v
- return s
- }
- // Describes an action to write a message to a Salesforce IoT Cloud Input Stream.
- type SalesforceAction struct {
- _ struct{} `type:"structure"`
- // The token used to authenticate access to the Salesforce IoT Cloud Input Stream.
- // The token is available from the Salesforce IoT Cloud platform after creation
- // of the Input Stream.
- //
- // Token is a required field
- Token *string `locationName:"token" min:"40" type:"string" required:"true"`
- // The URL exposed by the Salesforce IoT Cloud Input Stream. The URL is available
- // from the Salesforce IoT Cloud platform after creation of the Input Stream.
- //
- // Url is a required field
- Url *string `locationName:"url" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SalesforceAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SalesforceAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SalesforceAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SalesforceAction"}
- if s.Token == nil {
- invalidParams.Add(request.NewErrParamRequired("Token"))
- }
- if s.Token != nil && len(*s.Token) < 40 {
- invalidParams.Add(request.NewErrParamMinLen("Token", 40))
- }
- if s.Url == nil {
- invalidParams.Add(request.NewErrParamRequired("Url"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetToken sets the Token field's value.
- func (s *SalesforceAction) SetToken(v string) *SalesforceAction {
- s.Token = &v
- return s
- }
- // SetUrl sets the Url field's value.
- func (s *SalesforceAction) SetUrl(v string) *SalesforceAction {
- s.Url = &v
- return s
- }
- // Information about the scheduled audit.
- type ScheduledAuditMetadata struct {
- _ struct{} `type:"structure"`
- // The day of the month on which the scheduled audit is run (if the frequency
- // is "MONTHLY"). If days 29-31 are specified, and the month does not have that
- // many days, the audit takes place on the "LAST" day of the month.
- DayOfMonth *string `locationName:"dayOfMonth" type:"string"`
- // The day of the week on which the scheduled audit is run (if the frequency
- // is "WEEKLY" or "BIWEEKLY").
- DayOfWeek *string `locationName:"dayOfWeek" type:"string" enum:"DayOfWeek"`
- // How often the scheduled audit takes place.
- Frequency *string `locationName:"frequency" type:"string" enum:"AuditFrequency"`
- // The ARN of the scheduled audit.
- ScheduledAuditArn *string `locationName:"scheduledAuditArn" type:"string"`
- // The name of the scheduled audit.
- ScheduledAuditName *string `locationName:"scheduledAuditName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ScheduledAuditMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ScheduledAuditMetadata) GoString() string {
- return s.String()
- }
- // SetDayOfMonth sets the DayOfMonth field's value.
- func (s *ScheduledAuditMetadata) SetDayOfMonth(v string) *ScheduledAuditMetadata {
- s.DayOfMonth = &v
- return s
- }
- // SetDayOfWeek sets the DayOfWeek field's value.
- func (s *ScheduledAuditMetadata) SetDayOfWeek(v string) *ScheduledAuditMetadata {
- s.DayOfWeek = &v
- return s
- }
- // SetFrequency sets the Frequency field's value.
- func (s *ScheduledAuditMetadata) SetFrequency(v string) *ScheduledAuditMetadata {
- s.Frequency = &v
- return s
- }
- // SetScheduledAuditArn sets the ScheduledAuditArn field's value.
- func (s *ScheduledAuditMetadata) SetScheduledAuditArn(v string) *ScheduledAuditMetadata {
- s.ScheduledAuditArn = &v
- return s
- }
- // SetScheduledAuditName sets the ScheduledAuditName field's value.
- func (s *ScheduledAuditMetadata) SetScheduledAuditName(v string) *ScheduledAuditMetadata {
- s.ScheduledAuditName = &v
- return s
- }
- type SearchIndexInput struct {
- _ struct{} `type:"structure"`
- // The search index name.
- IndexName *string `locationName:"indexName" min:"1" type:"string"`
- // The maximum number of results to return at one time.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The search query string.
- //
- // QueryString is a required field
- QueryString *string `locationName:"queryString" min:"1" type:"string" required:"true"`
- // The query version.
- QueryVersion *string `locationName:"queryVersion" type:"string"`
- }
- // String returns the string representation
- func (s SearchIndexInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SearchIndexInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SearchIndexInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SearchIndexInput"}
- if s.IndexName != nil && len(*s.IndexName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("IndexName", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.QueryString == nil {
- invalidParams.Add(request.NewErrParamRequired("QueryString"))
- }
- if s.QueryString != nil && len(*s.QueryString) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("QueryString", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetIndexName sets the IndexName field's value.
- func (s *SearchIndexInput) SetIndexName(v string) *SearchIndexInput {
- s.IndexName = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *SearchIndexInput) SetMaxResults(v int64) *SearchIndexInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *SearchIndexInput) SetNextToken(v string) *SearchIndexInput {
- s.NextToken = &v
- return s
- }
- // SetQueryString sets the QueryString field's value.
- func (s *SearchIndexInput) SetQueryString(v string) *SearchIndexInput {
- s.QueryString = &v
- return s
- }
- // SetQueryVersion sets the QueryVersion field's value.
- func (s *SearchIndexInput) SetQueryVersion(v string) *SearchIndexInput {
- s.QueryVersion = &v
- return s
- }
- type SearchIndexOutput struct {
- _ struct{} `type:"structure"`
- // The token used to get the next set of results, or null if there are no additional
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The thing groups that match the search query.
- ThingGroups []*ThingGroupDocument `locationName:"thingGroups" type:"list"`
- // The things that match the search query.
- Things []*ThingDocument `locationName:"things" type:"list"`
- }
- // String returns the string representation
- func (s SearchIndexOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SearchIndexOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *SearchIndexOutput) SetNextToken(v string) *SearchIndexOutput {
- s.NextToken = &v
- return s
- }
- // SetThingGroups sets the ThingGroups field's value.
- func (s *SearchIndexOutput) SetThingGroups(v []*ThingGroupDocument) *SearchIndexOutput {
- s.ThingGroups = v
- return s
- }
- // SetThings sets the Things field's value.
- func (s *SearchIndexOutput) SetThings(v []*ThingDocument) *SearchIndexOutput {
- s.Things = v
- return s
- }
- // Identifying information for a Device Defender security profile.
- type SecurityProfileIdentifier struct {
- _ struct{} `type:"structure"`
- // The ARN of the security profile.
- //
- // Arn is a required field
- Arn *string `locationName:"arn" type:"string" required:"true"`
- // The name you have given to the security profile.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SecurityProfileIdentifier) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SecurityProfileIdentifier) GoString() string {
- return s.String()
- }
- // SetArn sets the Arn field's value.
- func (s *SecurityProfileIdentifier) SetArn(v string) *SecurityProfileIdentifier {
- s.Arn = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *SecurityProfileIdentifier) SetName(v string) *SecurityProfileIdentifier {
- s.Name = &v
- return s
- }
- // A target to which an alert is sent when a security profile behavior is violated.
- type SecurityProfileTarget struct {
- _ struct{} `type:"structure"`
- // The ARN of the security profile.
- //
- // Arn is a required field
- Arn *string `locationName:"arn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SecurityProfileTarget) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SecurityProfileTarget) GoString() string {
- return s.String()
- }
- // SetArn sets the Arn field's value.
- func (s *SecurityProfileTarget) SetArn(v string) *SecurityProfileTarget {
- s.Arn = &v
- return s
- }
- // Information about a security profile and the target associated with it.
- type SecurityProfileTargetMapping struct {
- _ struct{} `type:"structure"`
- // Information that identifies the security profile.
- SecurityProfileIdentifier *SecurityProfileIdentifier `locationName:"securityProfileIdentifier" type:"structure"`
- // Information about the target (thing group) associated with the security profile.
- Target *SecurityProfileTarget `locationName:"target" type:"structure"`
- }
- // String returns the string representation
- func (s SecurityProfileTargetMapping) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SecurityProfileTargetMapping) GoString() string {
- return s.String()
- }
- // SetSecurityProfileIdentifier sets the SecurityProfileIdentifier field's value.
- func (s *SecurityProfileTargetMapping) SetSecurityProfileIdentifier(v *SecurityProfileIdentifier) *SecurityProfileTargetMapping {
- s.SecurityProfileIdentifier = v
- return s
- }
- // SetTarget sets the Target field's value.
- func (s *SecurityProfileTargetMapping) SetTarget(v *SecurityProfileTarget) *SecurityProfileTargetMapping {
- s.Target = v
- return s
- }
- type SetDefaultAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // The authorizer name.
- //
- // AuthorizerName is a required field
- AuthorizerName *string `locationName:"authorizerName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SetDefaultAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetDefaultAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetDefaultAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetDefaultAuthorizerInput"}
- if s.AuthorizerName == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerName"))
- }
- if s.AuthorizerName != nil && len(*s.AuthorizerName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AuthorizerName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *SetDefaultAuthorizerInput) SetAuthorizerName(v string) *SetDefaultAuthorizerInput {
- s.AuthorizerName = &v
- return s
- }
- type SetDefaultAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- // The authorizer ARN.
- AuthorizerArn *string `locationName:"authorizerArn" type:"string"`
- // The authorizer name.
- AuthorizerName *string `locationName:"authorizerName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s SetDefaultAuthorizerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetDefaultAuthorizerOutput) GoString() string {
- return s.String()
- }
- // SetAuthorizerArn sets the AuthorizerArn field's value.
- func (s *SetDefaultAuthorizerOutput) SetAuthorizerArn(v string) *SetDefaultAuthorizerOutput {
- s.AuthorizerArn = &v
- return s
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *SetDefaultAuthorizerOutput) SetAuthorizerName(v string) *SetDefaultAuthorizerOutput {
- s.AuthorizerName = &v
- return s
- }
- // The input for the SetDefaultPolicyVersion operation.
- type SetDefaultPolicyVersionInput struct {
- _ struct{} `type:"structure"`
- // The policy name.
- //
- // PolicyName is a required field
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // The policy version ID.
- //
- // PolicyVersionId is a required field
- PolicyVersionId *string `location:"uri" locationName:"policyVersionId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SetDefaultPolicyVersionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetDefaultPolicyVersionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetDefaultPolicyVersionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetDefaultPolicyVersionInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyName != nil && len(*s.PolicyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
- }
- if s.PolicyVersionId == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyVersionId"))
- }
- if s.PolicyVersionId != nil && len(*s.PolicyVersionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PolicyVersionId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPolicyName sets the PolicyName field's value.
- func (s *SetDefaultPolicyVersionInput) SetPolicyName(v string) *SetDefaultPolicyVersionInput {
- s.PolicyName = &v
- return s
- }
- // SetPolicyVersionId sets the PolicyVersionId field's value.
- func (s *SetDefaultPolicyVersionInput) SetPolicyVersionId(v string) *SetDefaultPolicyVersionInput {
- s.PolicyVersionId = &v
- return s
- }
- type SetDefaultPolicyVersionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SetDefaultPolicyVersionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetDefaultPolicyVersionOutput) GoString() string {
- return s.String()
- }
- // The input for the SetLoggingOptions operation.
- type SetLoggingOptionsInput struct {
- _ struct{} `type:"structure" payload:"LoggingOptionsPayload"`
- // The logging options payload.
- //
- // LoggingOptionsPayload is a required field
- LoggingOptionsPayload *LoggingOptionsPayload `locationName:"loggingOptionsPayload" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s SetLoggingOptionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoggingOptionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetLoggingOptionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetLoggingOptionsInput"}
- if s.LoggingOptionsPayload == nil {
- invalidParams.Add(request.NewErrParamRequired("LoggingOptionsPayload"))
- }
- if s.LoggingOptionsPayload != nil {
- if err := s.LoggingOptionsPayload.Validate(); err != nil {
- invalidParams.AddNested("LoggingOptionsPayload", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLoggingOptionsPayload sets the LoggingOptionsPayload field's value.
- func (s *SetLoggingOptionsInput) SetLoggingOptionsPayload(v *LoggingOptionsPayload) *SetLoggingOptionsInput {
- s.LoggingOptionsPayload = v
- return s
- }
- type SetLoggingOptionsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SetLoggingOptionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoggingOptionsOutput) GoString() string {
- return s.String()
- }
- type SetV2LoggingLevelInput struct {
- _ struct{} `type:"structure"`
- // The log level.
- //
- // LogLevel is a required field
- LogLevel *string `locationName:"logLevel" type:"string" required:"true" enum:"LogLevel"`
- // The log target.
- //
- // LogTarget is a required field
- LogTarget *LogTarget `locationName:"logTarget" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s SetV2LoggingLevelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetV2LoggingLevelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetV2LoggingLevelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetV2LoggingLevelInput"}
- if s.LogLevel == nil {
- invalidParams.Add(request.NewErrParamRequired("LogLevel"))
- }
- if s.LogTarget == nil {
- invalidParams.Add(request.NewErrParamRequired("LogTarget"))
- }
- if s.LogTarget != nil {
- if err := s.LogTarget.Validate(); err != nil {
- invalidParams.AddNested("LogTarget", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLogLevel sets the LogLevel field's value.
- func (s *SetV2LoggingLevelInput) SetLogLevel(v string) *SetV2LoggingLevelInput {
- s.LogLevel = &v
- return s
- }
- // SetLogTarget sets the LogTarget field's value.
- func (s *SetV2LoggingLevelInput) SetLogTarget(v *LogTarget) *SetV2LoggingLevelInput {
- s.LogTarget = v
- return s
- }
- type SetV2LoggingLevelOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SetV2LoggingLevelOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetV2LoggingLevelOutput) GoString() string {
- return s.String()
- }
- type SetV2LoggingOptionsInput struct {
- _ struct{} `type:"structure"`
- // The default logging level.
- DefaultLogLevel *string `locationName:"defaultLogLevel" type:"string" enum:"LogLevel"`
- // If true all logs are disabled. The default is false.
- DisableAllLogs *bool `locationName:"disableAllLogs" type:"boolean"`
- // The ARN of the role that allows IoT to write to Cloudwatch logs.
- RoleArn *string `locationName:"roleArn" type:"string"`
- }
- // String returns the string representation
- func (s SetV2LoggingOptionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetV2LoggingOptionsInput) GoString() string {
- return s.String()
- }
- // SetDefaultLogLevel sets the DefaultLogLevel field's value.
- func (s *SetV2LoggingOptionsInput) SetDefaultLogLevel(v string) *SetV2LoggingOptionsInput {
- s.DefaultLogLevel = &v
- return s
- }
- // SetDisableAllLogs sets the DisableAllLogs field's value.
- func (s *SetV2LoggingOptionsInput) SetDisableAllLogs(v bool) *SetV2LoggingOptionsInput {
- s.DisableAllLogs = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *SetV2LoggingOptionsInput) SetRoleArn(v string) *SetV2LoggingOptionsInput {
- s.RoleArn = &v
- return s
- }
- type SetV2LoggingOptionsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SetV2LoggingOptionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetV2LoggingOptionsOutput) GoString() string {
- return s.String()
- }
- // Describes the code-signing profile.
- type SigningProfileParameter struct {
- _ struct{} `type:"structure"`
- // Certificate ARN.
- CertificateArn *string `locationName:"certificateArn" type:"string"`
- // The location of the code-signing certificate on your device.
- CertificatePathOnDevice *string `locationName:"certificatePathOnDevice" type:"string"`
- // The hardware platform of your device.
- Platform *string `locationName:"platform" type:"string"`
- }
- // String returns the string representation
- func (s SigningProfileParameter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SigningProfileParameter) GoString() string {
- return s.String()
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *SigningProfileParameter) SetCertificateArn(v string) *SigningProfileParameter {
- s.CertificateArn = &v
- return s
- }
- // SetCertificatePathOnDevice sets the CertificatePathOnDevice field's value.
- func (s *SigningProfileParameter) SetCertificatePathOnDevice(v string) *SigningProfileParameter {
- s.CertificatePathOnDevice = &v
- return s
- }
- // SetPlatform sets the Platform field's value.
- func (s *SigningProfileParameter) SetPlatform(v string) *SigningProfileParameter {
- s.Platform = &v
- return s
- }
- // Describes an action to publish to an Amazon SNS topic.
- type SnsAction struct {
- _ struct{} `type:"structure"`
- // (Optional) The message format of the message to publish. Accepted values
- // are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses
- // this setting to determine if the payload should be parsed and relevant platform-specific
- // bits of the payload should be extracted. To read more about SNS message formats,
- // see http://docs.aws.amazon.com/sns/latest/dg/json-formats.html (http://docs.aws.amazon.com/sns/latest/dg/json-formats.html)
- // refer to their official documentation.
- MessageFormat *string `locationName:"messageFormat" type:"string" enum:"MessageFormat"`
- // The ARN of the IAM role that grants access.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The ARN of the SNS topic.
- //
- // TargetArn is a required field
- TargetArn *string `locationName:"targetArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SnsAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SnsAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SnsAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SnsAction"}
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.TargetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMessageFormat sets the MessageFormat field's value.
- func (s *SnsAction) SetMessageFormat(v string) *SnsAction {
- s.MessageFormat = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *SnsAction) SetRoleArn(v string) *SnsAction {
- s.RoleArn = &v
- return s
- }
- // SetTargetArn sets the TargetArn field's value.
- func (s *SnsAction) SetTargetArn(v string) *SnsAction {
- s.TargetArn = &v
- return s
- }
- // Describes an action to publish data to an Amazon SQS queue.
- type SqsAction struct {
- _ struct{} `type:"structure"`
- // The URL of the Amazon SQS queue.
- //
- // QueueUrl is a required field
- QueueUrl *string `locationName:"queueUrl" type:"string" required:"true"`
- // The ARN of the IAM role that grants access.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // Specifies whether to use Base64 encoding.
- UseBase64 *bool `locationName:"useBase64" type:"boolean"`
- }
- // String returns the string representation
- func (s SqsAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SqsAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SqsAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SqsAction"}
- if s.QueueUrl == nil {
- invalidParams.Add(request.NewErrParamRequired("QueueUrl"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetQueueUrl sets the QueueUrl field's value.
- func (s *SqsAction) SetQueueUrl(v string) *SqsAction {
- s.QueueUrl = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *SqsAction) SetRoleArn(v string) *SqsAction {
- s.RoleArn = &v
- return s
- }
- // SetUseBase64 sets the UseBase64 field's value.
- func (s *SqsAction) SetUseBase64(v bool) *SqsAction {
- s.UseBase64 = &v
- return s
- }
- type StartOnDemandAuditTaskInput struct {
- _ struct{} `type:"structure"`
- // Which checks are performed during the audit. The checks you specify must
- // be enabled for your account or an exception occurs. Use DescribeAccountAuditConfiguration
- // to see the list of all checks including those that are enabled or UpdateAccountAuditConfiguration
- // to select which checks are enabled.
- //
- // TargetCheckNames is a required field
- TargetCheckNames []*string `locationName:"targetCheckNames" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s StartOnDemandAuditTaskInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartOnDemandAuditTaskInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartOnDemandAuditTaskInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartOnDemandAuditTaskInput"}
- if s.TargetCheckNames == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetCheckNames"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTargetCheckNames sets the TargetCheckNames field's value.
- func (s *StartOnDemandAuditTaskInput) SetTargetCheckNames(v []*string) *StartOnDemandAuditTaskInput {
- s.TargetCheckNames = v
- return s
- }
- type StartOnDemandAuditTaskOutput struct {
- _ struct{} `type:"structure"`
- // The ID of the on-demand audit you started.
- TaskId *string `locationName:"taskId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s StartOnDemandAuditTaskOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartOnDemandAuditTaskOutput) GoString() string {
- return s.String()
- }
- // SetTaskId sets the TaskId field's value.
- func (s *StartOnDemandAuditTaskOutput) SetTaskId(v string) *StartOnDemandAuditTaskOutput {
- s.TaskId = &v
- return s
- }
- // Information required to start a signing job.
- type StartSigningJobParameter struct {
- _ struct{} `type:"structure"`
- // The location to write the code-signed file.
- Destination *Destination `locationName:"destination" type:"structure"`
- // The code-signing profile name.
- SigningProfileName *string `locationName:"signingProfileName" type:"string"`
- // Describes the code-signing profile.
- SigningProfileParameter *SigningProfileParameter `locationName:"signingProfileParameter" type:"structure"`
- }
- // String returns the string representation
- func (s StartSigningJobParameter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartSigningJobParameter) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartSigningJobParameter) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartSigningJobParameter"}
- 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 *StartSigningJobParameter) SetDestination(v *Destination) *StartSigningJobParameter {
- s.Destination = v
- return s
- }
- // SetSigningProfileName sets the SigningProfileName field's value.
- func (s *StartSigningJobParameter) SetSigningProfileName(v string) *StartSigningJobParameter {
- s.SigningProfileName = &v
- return s
- }
- // SetSigningProfileParameter sets the SigningProfileParameter field's value.
- func (s *StartSigningJobParameter) SetSigningProfileParameter(v *SigningProfileParameter) *StartSigningJobParameter {
- s.SigningProfileParameter = v
- return s
- }
- type StartThingRegistrationTaskInput struct {
- _ struct{} `type:"structure"`
- // The S3 bucket that contains the input file.
- //
- // InputFileBucket is a required field
- InputFileBucket *string `locationName:"inputFileBucket" min:"3" type:"string" required:"true"`
- // The name of input file within the S3 bucket. This file contains a newline
- // delimited JSON file. Each line contains the parameter values to provision
- // one device (thing).
- //
- // InputFileKey is a required field
- InputFileKey *string `locationName:"inputFileKey" min:"1" type:"string" required:"true"`
- // The IAM role ARN that grants permission the input file.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
- // The provisioning template.
- //
- // TemplateBody is a required field
- TemplateBody *string `locationName:"templateBody" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StartThingRegistrationTaskInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartThingRegistrationTaskInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartThingRegistrationTaskInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartThingRegistrationTaskInput"}
- if s.InputFileBucket == nil {
- invalidParams.Add(request.NewErrParamRequired("InputFileBucket"))
- }
- if s.InputFileBucket != nil && len(*s.InputFileBucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("InputFileBucket", 3))
- }
- if s.InputFileKey == nil {
- invalidParams.Add(request.NewErrParamRequired("InputFileKey"))
- }
- if s.InputFileKey != nil && len(*s.InputFileKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InputFileKey", 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.TemplateBody == nil {
- invalidParams.Add(request.NewErrParamRequired("TemplateBody"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetInputFileBucket sets the InputFileBucket field's value.
- func (s *StartThingRegistrationTaskInput) SetInputFileBucket(v string) *StartThingRegistrationTaskInput {
- s.InputFileBucket = &v
- return s
- }
- // SetInputFileKey sets the InputFileKey field's value.
- func (s *StartThingRegistrationTaskInput) SetInputFileKey(v string) *StartThingRegistrationTaskInput {
- s.InputFileKey = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *StartThingRegistrationTaskInput) SetRoleArn(v string) *StartThingRegistrationTaskInput {
- s.RoleArn = &v
- return s
- }
- // SetTemplateBody sets the TemplateBody field's value.
- func (s *StartThingRegistrationTaskInput) SetTemplateBody(v string) *StartThingRegistrationTaskInput {
- s.TemplateBody = &v
- return s
- }
- type StartThingRegistrationTaskOutput struct {
- _ struct{} `type:"structure"`
- // The bulk thing provisioning task ID.
- TaskId *string `locationName:"taskId" type:"string"`
- }
- // String returns the string representation
- func (s StartThingRegistrationTaskOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartThingRegistrationTaskOutput) GoString() string {
- return s.String()
- }
- // SetTaskId sets the TaskId field's value.
- func (s *StartThingRegistrationTaskOutput) SetTaskId(v string) *StartThingRegistrationTaskOutput {
- s.TaskId = &v
- return s
- }
- // Starts execution of a Step Functions state machine.
- type StepFunctionsAction struct {
- _ struct{} `type:"structure"`
- // (Optional) A name will be given to the state machine execution consisting
- // of this prefix followed by a UUID. Step Functions automatically creates a
- // unique name for each state machine execution if one is not provided.
- ExecutionNamePrefix *string `locationName:"executionNamePrefix" type:"string"`
- // The ARN of the role that grants IoT permission to start execution of a state
- // machine ("Action":"states:StartExecution").
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The name of the Step Functions state machine whose execution will be started.
- //
- // StateMachineName is a required field
- StateMachineName *string `locationName:"stateMachineName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StepFunctionsAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StepFunctionsAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StepFunctionsAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StepFunctionsAction"}
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.StateMachineName == nil {
- invalidParams.Add(request.NewErrParamRequired("StateMachineName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExecutionNamePrefix sets the ExecutionNamePrefix field's value.
- func (s *StepFunctionsAction) SetExecutionNamePrefix(v string) *StepFunctionsAction {
- s.ExecutionNamePrefix = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *StepFunctionsAction) SetRoleArn(v string) *StepFunctionsAction {
- s.RoleArn = &v
- return s
- }
- // SetStateMachineName sets the StateMachineName field's value.
- func (s *StepFunctionsAction) SetStateMachineName(v string) *StepFunctionsAction {
- s.StateMachineName = &v
- return s
- }
- type StopThingRegistrationTaskInput struct {
- _ struct{} `type:"structure"`
- // The bulk thing provisioning task ID.
- //
- // TaskId is a required field
- TaskId *string `location:"uri" locationName:"taskId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopThingRegistrationTaskInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopThingRegistrationTaskInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopThingRegistrationTaskInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopThingRegistrationTaskInput"}
- if s.TaskId == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskId"))
- }
- if s.TaskId != nil && len(*s.TaskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTaskId sets the TaskId field's value.
- func (s *StopThingRegistrationTaskInput) SetTaskId(v string) *StopThingRegistrationTaskInput {
- s.TaskId = &v
- return s
- }
- type StopThingRegistrationTaskOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StopThingRegistrationTaskOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopThingRegistrationTaskOutput) GoString() string {
- return s.String()
- }
- // Describes a group of files that can be streamed.
- type Stream struct {
- _ struct{} `type:"structure"`
- // The ID of a file associated with a stream.
- FileId *int64 `locationName:"fileId" type:"integer"`
- // The stream ID.
- StreamId *string `locationName:"streamId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s Stream) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Stream) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Stream) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Stream"}
- if s.StreamId != nil && len(*s.StreamId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StreamId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFileId sets the FileId field's value.
- func (s *Stream) SetFileId(v int64) *Stream {
- s.FileId = &v
- return s
- }
- // SetStreamId sets the StreamId field's value.
- func (s *Stream) SetStreamId(v string) *Stream {
- s.StreamId = &v
- return s
- }
- // Represents a file to stream.
- type StreamFile struct {
- _ struct{} `type:"structure"`
- // The file ID.
- FileId *int64 `locationName:"fileId" type:"integer"`
- // The location of the file in S3.
- S3Location *S3Location `locationName:"s3Location" type:"structure"`
- }
- // String returns the string representation
- func (s StreamFile) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StreamFile) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StreamFile) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StreamFile"}
- if s.S3Location != nil {
- if err := s.S3Location.Validate(); err != nil {
- invalidParams.AddNested("S3Location", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFileId sets the FileId field's value.
- func (s *StreamFile) SetFileId(v int64) *StreamFile {
- s.FileId = &v
- return s
- }
- // SetS3Location sets the S3Location field's value.
- func (s *StreamFile) SetS3Location(v *S3Location) *StreamFile {
- s.S3Location = v
- return s
- }
- // Information about a stream.
- type StreamInfo struct {
- _ struct{} `type:"structure"`
- // The date when the stream was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
- // The description of the stream.
- Description *string `locationName:"description" type:"string"`
- // The files to stream.
- Files []*StreamFile `locationName:"files" min:"1" type:"list"`
- // The date when the stream was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
- // An IAM role AWS IoT assumes to access your S3 files.
- RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
- // The stream ARN.
- StreamArn *string `locationName:"streamArn" type:"string"`
- // The stream ID.
- StreamId *string `locationName:"streamId" min:"1" type:"string"`
- // The stream version.
- StreamVersion *int64 `locationName:"streamVersion" type:"integer"`
- }
- // String returns the string representation
- func (s StreamInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StreamInfo) GoString() string {
- return s.String()
- }
- // SetCreatedAt sets the CreatedAt field's value.
- func (s *StreamInfo) SetCreatedAt(v time.Time) *StreamInfo {
- s.CreatedAt = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *StreamInfo) SetDescription(v string) *StreamInfo {
- s.Description = &v
- return s
- }
- // SetFiles sets the Files field's value.
- func (s *StreamInfo) SetFiles(v []*StreamFile) *StreamInfo {
- s.Files = v
- return s
- }
- // SetLastUpdatedAt sets the LastUpdatedAt field's value.
- func (s *StreamInfo) SetLastUpdatedAt(v time.Time) *StreamInfo {
- s.LastUpdatedAt = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *StreamInfo) SetRoleArn(v string) *StreamInfo {
- s.RoleArn = &v
- return s
- }
- // SetStreamArn sets the StreamArn field's value.
- func (s *StreamInfo) SetStreamArn(v string) *StreamInfo {
- s.StreamArn = &v
- return s
- }
- // SetStreamId sets the StreamId field's value.
- func (s *StreamInfo) SetStreamId(v string) *StreamInfo {
- s.StreamId = &v
- return s
- }
- // SetStreamVersion sets the StreamVersion field's value.
- func (s *StreamInfo) SetStreamVersion(v int64) *StreamInfo {
- s.StreamVersion = &v
- return s
- }
- // A summary of a stream.
- type StreamSummary struct {
- _ struct{} `type:"structure"`
- // A description of the stream.
- Description *string `locationName:"description" type:"string"`
- // The stream ARN.
- StreamArn *string `locationName:"streamArn" type:"string"`
- // The stream ID.
- StreamId *string `locationName:"streamId" min:"1" type:"string"`
- // The stream version.
- StreamVersion *int64 `locationName:"streamVersion" type:"integer"`
- }
- // String returns the string representation
- func (s StreamSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StreamSummary) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *StreamSummary) SetDescription(v string) *StreamSummary {
- s.Description = &v
- return s
- }
- // SetStreamArn sets the StreamArn field's value.
- func (s *StreamSummary) SetStreamArn(v string) *StreamSummary {
- s.StreamArn = &v
- return s
- }
- // SetStreamId sets the StreamId field's value.
- func (s *StreamSummary) SetStreamId(v string) *StreamSummary {
- s.StreamId = &v
- return s
- }
- // SetStreamVersion sets the StreamVersion field's value.
- func (s *StreamSummary) SetStreamVersion(v int64) *StreamSummary {
- s.StreamVersion = &v
- return s
- }
- // A set of key/value pairs that are used to manage the resource.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The tag's key.
- Key *string `type:"string"`
- // The tag's value.
- Value *string `type:"string"`
- }
- // 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()
- }
- // 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.
- //
- // ResourceArn is a required field
- ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
- // The new or modified tags for the resource.
- //
- // Tags is a required field
- Tags []*Tag `locationName:"tags" 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.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- 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()
- }
- // Statistics for the checks performed during the audit.
- type TaskStatistics struct {
- _ struct{} `type:"structure"`
- // The number of checks that did not run because the audit was canceled.
- CanceledChecks *int64 `locationName:"canceledChecks" type:"integer"`
- // The number of checks that found compliant resources.
- CompliantChecks *int64 `locationName:"compliantChecks" type:"integer"`
- // The number of checks
- FailedChecks *int64 `locationName:"failedChecks" type:"integer"`
- // The number of checks in progress.
- InProgressChecks *int64 `locationName:"inProgressChecks" type:"integer"`
- // The number of checks that found non-compliant resources.
- NonCompliantChecks *int64 `locationName:"nonCompliantChecks" type:"integer"`
- // The number of checks in this audit.
- TotalChecks *int64 `locationName:"totalChecks" type:"integer"`
- // The number of checks waiting for data collection.
- WaitingForDataCollectionChecks *int64 `locationName:"waitingForDataCollectionChecks" type:"integer"`
- }
- // String returns the string representation
- func (s TaskStatistics) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TaskStatistics) GoString() string {
- return s.String()
- }
- // SetCanceledChecks sets the CanceledChecks field's value.
- func (s *TaskStatistics) SetCanceledChecks(v int64) *TaskStatistics {
- s.CanceledChecks = &v
- return s
- }
- // SetCompliantChecks sets the CompliantChecks field's value.
- func (s *TaskStatistics) SetCompliantChecks(v int64) *TaskStatistics {
- s.CompliantChecks = &v
- return s
- }
- // SetFailedChecks sets the FailedChecks field's value.
- func (s *TaskStatistics) SetFailedChecks(v int64) *TaskStatistics {
- s.FailedChecks = &v
- return s
- }
- // SetInProgressChecks sets the InProgressChecks field's value.
- func (s *TaskStatistics) SetInProgressChecks(v int64) *TaskStatistics {
- s.InProgressChecks = &v
- return s
- }
- // SetNonCompliantChecks sets the NonCompliantChecks field's value.
- func (s *TaskStatistics) SetNonCompliantChecks(v int64) *TaskStatistics {
- s.NonCompliantChecks = &v
- return s
- }
- // SetTotalChecks sets the TotalChecks field's value.
- func (s *TaskStatistics) SetTotalChecks(v int64) *TaskStatistics {
- s.TotalChecks = &v
- return s
- }
- // SetWaitingForDataCollectionChecks sets the WaitingForDataCollectionChecks field's value.
- func (s *TaskStatistics) SetWaitingForDataCollectionChecks(v int64) *TaskStatistics {
- s.WaitingForDataCollectionChecks = &v
- return s
- }
- type TestAuthorizationInput struct {
- _ struct{} `type:"structure"`
- // A list of authorization info objects. Simulating authorization will create
- // a response for each authInfo object in the list.
- //
- // AuthInfos is a required field
- AuthInfos []*AuthInfo `locationName:"authInfos" min:"1" type:"list" required:"true"`
- // The MQTT client ID.
- ClientId *string `location:"querystring" locationName:"clientId" type:"string"`
- // The Cognito identity pool ID.
- CognitoIdentityPoolId *string `locationName:"cognitoIdentityPoolId" type:"string"`
- // When testing custom authorization, the policies specified here are treated
- // as if they are attached to the principal being authorized.
- PolicyNamesToAdd []*string `locationName:"policyNamesToAdd" type:"list"`
- // When testing custom authorization, the policies specified here are treated
- // as if they are not attached to the principal being authorized.
- PolicyNamesToSkip []*string `locationName:"policyNamesToSkip" type:"list"`
- // The principal.
- Principal *string `locationName:"principal" type:"string"`
- }
- // String returns the string representation
- func (s TestAuthorizationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestAuthorizationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TestAuthorizationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TestAuthorizationInput"}
- if s.AuthInfos == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthInfos"))
- }
- if s.AuthInfos != nil && len(s.AuthInfos) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AuthInfos", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthInfos sets the AuthInfos field's value.
- func (s *TestAuthorizationInput) SetAuthInfos(v []*AuthInfo) *TestAuthorizationInput {
- s.AuthInfos = v
- return s
- }
- // SetClientId sets the ClientId field's value.
- func (s *TestAuthorizationInput) SetClientId(v string) *TestAuthorizationInput {
- s.ClientId = &v
- return s
- }
- // SetCognitoIdentityPoolId sets the CognitoIdentityPoolId field's value.
- func (s *TestAuthorizationInput) SetCognitoIdentityPoolId(v string) *TestAuthorizationInput {
- s.CognitoIdentityPoolId = &v
- return s
- }
- // SetPolicyNamesToAdd sets the PolicyNamesToAdd field's value.
- func (s *TestAuthorizationInput) SetPolicyNamesToAdd(v []*string) *TestAuthorizationInput {
- s.PolicyNamesToAdd = v
- return s
- }
- // SetPolicyNamesToSkip sets the PolicyNamesToSkip field's value.
- func (s *TestAuthorizationInput) SetPolicyNamesToSkip(v []*string) *TestAuthorizationInput {
- s.PolicyNamesToSkip = v
- return s
- }
- // SetPrincipal sets the Principal field's value.
- func (s *TestAuthorizationInput) SetPrincipal(v string) *TestAuthorizationInput {
- s.Principal = &v
- return s
- }
- type TestAuthorizationOutput struct {
- _ struct{} `type:"structure"`
- // The authentication results.
- AuthResults []*AuthResult `locationName:"authResults" type:"list"`
- }
- // String returns the string representation
- func (s TestAuthorizationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestAuthorizationOutput) GoString() string {
- return s.String()
- }
- // SetAuthResults sets the AuthResults field's value.
- func (s *TestAuthorizationOutput) SetAuthResults(v []*AuthResult) *TestAuthorizationOutput {
- s.AuthResults = v
- return s
- }
- type TestInvokeAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // The custom authorizer name.
- //
- // AuthorizerName is a required field
- AuthorizerName *string `location:"uri" locationName:"authorizerName" min:"1" type:"string" required:"true"`
- // The token returned by your custom authentication service.
- //
- // Token is a required field
- Token *string `locationName:"token" min:"1" type:"string" required:"true"`
- // The signature made with the token and your custom authentication service's
- // private key.
- //
- // TokenSignature is a required field
- TokenSignature *string `locationName:"tokenSignature" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s TestInvokeAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestInvokeAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TestInvokeAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TestInvokeAuthorizerInput"}
- if s.AuthorizerName == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerName"))
- }
- if s.AuthorizerName != nil && len(*s.AuthorizerName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AuthorizerName", 1))
- }
- if s.Token == nil {
- invalidParams.Add(request.NewErrParamRequired("Token"))
- }
- if s.Token != nil && len(*s.Token) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Token", 1))
- }
- if s.TokenSignature == nil {
- invalidParams.Add(request.NewErrParamRequired("TokenSignature"))
- }
- if s.TokenSignature != nil && len(*s.TokenSignature) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TokenSignature", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *TestInvokeAuthorizerInput) SetAuthorizerName(v string) *TestInvokeAuthorizerInput {
- s.AuthorizerName = &v
- return s
- }
- // SetToken sets the Token field's value.
- func (s *TestInvokeAuthorizerInput) SetToken(v string) *TestInvokeAuthorizerInput {
- s.Token = &v
- return s
- }
- // SetTokenSignature sets the TokenSignature field's value.
- func (s *TestInvokeAuthorizerInput) SetTokenSignature(v string) *TestInvokeAuthorizerInput {
- s.TokenSignature = &v
- return s
- }
- type TestInvokeAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- // The number of seconds after which the connection is terminated.
- DisconnectAfterInSeconds *int64 `locationName:"disconnectAfterInSeconds" type:"integer"`
- // True if the token is authenticated, otherwise false.
- IsAuthenticated *bool `locationName:"isAuthenticated" type:"boolean"`
- // IAM policy documents.
- PolicyDocuments []*string `locationName:"policyDocuments" type:"list"`
- // The principal ID.
- PrincipalId *string `locationName:"principalId" min:"1" type:"string"`
- // The number of seconds after which the temporary credentials are refreshed.
- RefreshAfterInSeconds *int64 `locationName:"refreshAfterInSeconds" type:"integer"`
- }
- // String returns the string representation
- func (s TestInvokeAuthorizerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestInvokeAuthorizerOutput) GoString() string {
- return s.String()
- }
- // SetDisconnectAfterInSeconds sets the DisconnectAfterInSeconds field's value.
- func (s *TestInvokeAuthorizerOutput) SetDisconnectAfterInSeconds(v int64) *TestInvokeAuthorizerOutput {
- s.DisconnectAfterInSeconds = &v
- return s
- }
- // SetIsAuthenticated sets the IsAuthenticated field's value.
- func (s *TestInvokeAuthorizerOutput) SetIsAuthenticated(v bool) *TestInvokeAuthorizerOutput {
- s.IsAuthenticated = &v
- return s
- }
- // SetPolicyDocuments sets the PolicyDocuments field's value.
- func (s *TestInvokeAuthorizerOutput) SetPolicyDocuments(v []*string) *TestInvokeAuthorizerOutput {
- s.PolicyDocuments = v
- return s
- }
- // SetPrincipalId sets the PrincipalId field's value.
- func (s *TestInvokeAuthorizerOutput) SetPrincipalId(v string) *TestInvokeAuthorizerOutput {
- s.PrincipalId = &v
- return s
- }
- // SetRefreshAfterInSeconds sets the RefreshAfterInSeconds field's value.
- func (s *TestInvokeAuthorizerOutput) SetRefreshAfterInSeconds(v int64) *TestInvokeAuthorizerOutput {
- s.RefreshAfterInSeconds = &v
- return s
- }
- // The properties of the thing, including thing name, thing type name, and a
- // list of thing attributes.
- type ThingAttribute struct {
- _ struct{} `type:"structure"`
- // A list of thing attributes which are name-value pairs.
- Attributes map[string]*string `locationName:"attributes" type:"map"`
- // The thing ARN.
- ThingArn *string `locationName:"thingArn" type:"string"`
- // The name of the thing.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- // The name of the thing type, if the thing has been associated with a type.
- ThingTypeName *string `locationName:"thingTypeName" min:"1" type:"string"`
- // The version of the thing record in the registry.
- Version *int64 `locationName:"version" type:"long"`
- }
- // String returns the string representation
- func (s ThingAttribute) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingAttribute) GoString() string {
- return s.String()
- }
- // SetAttributes sets the Attributes field's value.
- func (s *ThingAttribute) SetAttributes(v map[string]*string) *ThingAttribute {
- s.Attributes = v
- return s
- }
- // SetThingArn sets the ThingArn field's value.
- func (s *ThingAttribute) SetThingArn(v string) *ThingAttribute {
- s.ThingArn = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *ThingAttribute) SetThingName(v string) *ThingAttribute {
- s.ThingName = &v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *ThingAttribute) SetThingTypeName(v string) *ThingAttribute {
- s.ThingTypeName = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *ThingAttribute) SetVersion(v int64) *ThingAttribute {
- s.Version = &v
- return s
- }
- // The connectivity status of the thing.
- type ThingConnectivity struct {
- _ struct{} `type:"structure"`
- // True if the thing is connected to the AWS IoT service, false if it is not
- // connected.
- Connected *bool `locationName:"connected" type:"boolean"`
- // The epoch time (in milliseconds) when the thing last connected or disconnected.
- // Note that if the thing has been disconnected for more than a few weeks, the
- // time value can be missing.
- Timestamp *int64 `locationName:"timestamp" type:"long"`
- }
- // String returns the string representation
- func (s ThingConnectivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingConnectivity) GoString() string {
- return s.String()
- }
- // SetConnected sets the Connected field's value.
- func (s *ThingConnectivity) SetConnected(v bool) *ThingConnectivity {
- s.Connected = &v
- return s
- }
- // SetTimestamp sets the Timestamp field's value.
- func (s *ThingConnectivity) SetTimestamp(v int64) *ThingConnectivity {
- s.Timestamp = &v
- return s
- }
- // The thing search index document.
- type ThingDocument struct {
- _ struct{} `type:"structure"`
- // The attributes.
- Attributes map[string]*string `locationName:"attributes" type:"map"`
- // Indicates whether or not the thing is connected to the AWS IoT service.
- Connectivity *ThingConnectivity `locationName:"connectivity" type:"structure"`
- // The shadow.
- Shadow *string `locationName:"shadow" type:"string"`
- // Thing group names.
- ThingGroupNames []*string `locationName:"thingGroupNames" type:"list"`
- // The thing ID.
- ThingId *string `locationName:"thingId" type:"string"`
- // The thing name.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- // The thing type name.
- ThingTypeName *string `locationName:"thingTypeName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ThingDocument) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingDocument) GoString() string {
- return s.String()
- }
- // SetAttributes sets the Attributes field's value.
- func (s *ThingDocument) SetAttributes(v map[string]*string) *ThingDocument {
- s.Attributes = v
- return s
- }
- // SetConnectivity sets the Connectivity field's value.
- func (s *ThingDocument) SetConnectivity(v *ThingConnectivity) *ThingDocument {
- s.Connectivity = v
- return s
- }
- // SetShadow sets the Shadow field's value.
- func (s *ThingDocument) SetShadow(v string) *ThingDocument {
- s.Shadow = &v
- return s
- }
- // SetThingGroupNames sets the ThingGroupNames field's value.
- func (s *ThingDocument) SetThingGroupNames(v []*string) *ThingDocument {
- s.ThingGroupNames = v
- return s
- }
- // SetThingId sets the ThingId field's value.
- func (s *ThingDocument) SetThingId(v string) *ThingDocument {
- s.ThingId = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *ThingDocument) SetThingName(v string) *ThingDocument {
- s.ThingName = &v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *ThingDocument) SetThingTypeName(v string) *ThingDocument {
- s.ThingTypeName = &v
- return s
- }
- // The thing group search index document.
- type ThingGroupDocument struct {
- _ struct{} `type:"structure"`
- // The thing group attributes.
- Attributes map[string]*string `locationName:"attributes" type:"map"`
- // Parent group names.
- ParentGroupNames []*string `locationName:"parentGroupNames" type:"list"`
- // The thing group description.
- ThingGroupDescription *string `locationName:"thingGroupDescription" type:"string"`
- // The thing group ID.
- ThingGroupId *string `locationName:"thingGroupId" min:"1" type:"string"`
- // The thing group name.
- ThingGroupName *string `locationName:"thingGroupName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ThingGroupDocument) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingGroupDocument) GoString() string {
- return s.String()
- }
- // SetAttributes sets the Attributes field's value.
- func (s *ThingGroupDocument) SetAttributes(v map[string]*string) *ThingGroupDocument {
- s.Attributes = v
- return s
- }
- // SetParentGroupNames sets the ParentGroupNames field's value.
- func (s *ThingGroupDocument) SetParentGroupNames(v []*string) *ThingGroupDocument {
- s.ParentGroupNames = v
- return s
- }
- // SetThingGroupDescription sets the ThingGroupDescription field's value.
- func (s *ThingGroupDocument) SetThingGroupDescription(v string) *ThingGroupDocument {
- s.ThingGroupDescription = &v
- return s
- }
- // SetThingGroupId sets the ThingGroupId field's value.
- func (s *ThingGroupDocument) SetThingGroupId(v string) *ThingGroupDocument {
- s.ThingGroupId = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *ThingGroupDocument) SetThingGroupName(v string) *ThingGroupDocument {
- s.ThingGroupName = &v
- return s
- }
- // Thing group indexing configuration.
- type ThingGroupIndexingConfiguration struct {
- _ struct{} `type:"structure"`
- // Thing group indexing mode.
- //
- // ThingGroupIndexingMode is a required field
- ThingGroupIndexingMode *string `locationName:"thingGroupIndexingMode" type:"string" required:"true" enum:"ThingGroupIndexingMode"`
- }
- // String returns the string representation
- func (s ThingGroupIndexingConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingGroupIndexingConfiguration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ThingGroupIndexingConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ThingGroupIndexingConfiguration"}
- if s.ThingGroupIndexingMode == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupIndexingMode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetThingGroupIndexingMode sets the ThingGroupIndexingMode field's value.
- func (s *ThingGroupIndexingConfiguration) SetThingGroupIndexingMode(v string) *ThingGroupIndexingConfiguration {
- s.ThingGroupIndexingMode = &v
- return s
- }
- // Thing group metadata.
- type ThingGroupMetadata struct {
- _ struct{} `type:"structure"`
- // The UNIX timestamp of when the thing group was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The parent thing group name.
- ParentGroupName *string `locationName:"parentGroupName" min:"1" type:"string"`
- // The root parent thing group.
- RootToParentThingGroups []*GroupNameAndArn `locationName:"rootToParentThingGroups" type:"list"`
- }
- // String returns the string representation
- func (s ThingGroupMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingGroupMetadata) GoString() string {
- return s.String()
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *ThingGroupMetadata) SetCreationDate(v time.Time) *ThingGroupMetadata {
- s.CreationDate = &v
- return s
- }
- // SetParentGroupName sets the ParentGroupName field's value.
- func (s *ThingGroupMetadata) SetParentGroupName(v string) *ThingGroupMetadata {
- s.ParentGroupName = &v
- return s
- }
- // SetRootToParentThingGroups sets the RootToParentThingGroups field's value.
- func (s *ThingGroupMetadata) SetRootToParentThingGroups(v []*GroupNameAndArn) *ThingGroupMetadata {
- s.RootToParentThingGroups = v
- return s
- }
- // Thing group properties.
- type ThingGroupProperties struct {
- _ struct{} `type:"structure"`
- // The thing group attributes in JSON format.
- AttributePayload *AttributePayload `locationName:"attributePayload" type:"structure"`
- // The thing group description.
- ThingGroupDescription *string `locationName:"thingGroupDescription" type:"string"`
- }
- // String returns the string representation
- func (s ThingGroupProperties) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingGroupProperties) GoString() string {
- return s.String()
- }
- // SetAttributePayload sets the AttributePayload field's value.
- func (s *ThingGroupProperties) SetAttributePayload(v *AttributePayload) *ThingGroupProperties {
- s.AttributePayload = v
- return s
- }
- // SetThingGroupDescription sets the ThingGroupDescription field's value.
- func (s *ThingGroupProperties) SetThingGroupDescription(v string) *ThingGroupProperties {
- s.ThingGroupDescription = &v
- return s
- }
- // The thing indexing configuration. For more information, see Managing Thing
- // Indexing (https://docs.aws.amazon.com/iot/latest/developerguide/managing-index.html).
- type ThingIndexingConfiguration struct {
- _ struct{} `type:"structure"`
- // Thing connectivity indexing mode. Valid values are:
- //
- // * STATUS – Your thing index will contain connectivity status. In order
- // to enable thing connectivity indexing, thingIndexMode must not be set
- // to OFF.
- //
- // * OFF - Thing connectivity status indexing is disabled.
- ThingConnectivityIndexingMode *string `locationName:"thingConnectivityIndexingMode" type:"string" enum:"ThingConnectivityIndexingMode"`
- // Thing indexing mode. Valid values are:
- //
- // * REGISTRY – Your thing index will contain only registry data.
- //
- // * REGISTRY_AND_SHADOW - Your thing index will contain registry and shadow
- // data.
- //
- // * OFF - Thing indexing is disabled.
- //
- // ThingIndexingMode is a required field
- ThingIndexingMode *string `locationName:"thingIndexingMode" type:"string" required:"true" enum:"ThingIndexingMode"`
- }
- // String returns the string representation
- func (s ThingIndexingConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingIndexingConfiguration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ThingIndexingConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ThingIndexingConfiguration"}
- if s.ThingIndexingMode == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingIndexingMode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetThingConnectivityIndexingMode sets the ThingConnectivityIndexingMode field's value.
- func (s *ThingIndexingConfiguration) SetThingConnectivityIndexingMode(v string) *ThingIndexingConfiguration {
- s.ThingConnectivityIndexingMode = &v
- return s
- }
- // SetThingIndexingMode sets the ThingIndexingMode field's value.
- func (s *ThingIndexingConfiguration) SetThingIndexingMode(v string) *ThingIndexingConfiguration {
- s.ThingIndexingMode = &v
- return s
- }
- // The definition of the thing type, including thing type name and description.
- type ThingTypeDefinition struct {
- _ struct{} `type:"structure"`
- // The thing type ARN.
- ThingTypeArn *string `locationName:"thingTypeArn" type:"string"`
- // The ThingTypeMetadata contains additional information about the thing type
- // including: creation date and time, a value indicating whether the thing type
- // is deprecated, and a date and time when it was deprecated.
- ThingTypeMetadata *ThingTypeMetadata `locationName:"thingTypeMetadata" type:"structure"`
- // The name of the thing type.
- ThingTypeName *string `locationName:"thingTypeName" min:"1" type:"string"`
- // The ThingTypeProperties for the thing type.
- ThingTypeProperties *ThingTypeProperties `locationName:"thingTypeProperties" type:"structure"`
- }
- // String returns the string representation
- func (s ThingTypeDefinition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingTypeDefinition) GoString() string {
- return s.String()
- }
- // SetThingTypeArn sets the ThingTypeArn field's value.
- func (s *ThingTypeDefinition) SetThingTypeArn(v string) *ThingTypeDefinition {
- s.ThingTypeArn = &v
- return s
- }
- // SetThingTypeMetadata sets the ThingTypeMetadata field's value.
- func (s *ThingTypeDefinition) SetThingTypeMetadata(v *ThingTypeMetadata) *ThingTypeDefinition {
- s.ThingTypeMetadata = v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *ThingTypeDefinition) SetThingTypeName(v string) *ThingTypeDefinition {
- s.ThingTypeName = &v
- return s
- }
- // SetThingTypeProperties sets the ThingTypeProperties field's value.
- func (s *ThingTypeDefinition) SetThingTypeProperties(v *ThingTypeProperties) *ThingTypeDefinition {
- s.ThingTypeProperties = v
- return s
- }
- // The ThingTypeMetadata contains additional information about the thing type
- // including: creation date and time, a value indicating whether the thing type
- // is deprecated, and a date and time when time was deprecated.
- type ThingTypeMetadata struct {
- _ struct{} `type:"structure"`
- // The date and time when the thing type was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // Whether the thing type is deprecated. If true, no new things could be associated
- // with this type.
- Deprecated *bool `locationName:"deprecated" type:"boolean"`
- // The date and time when the thing type was deprecated.
- DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp"`
- }
- // String returns the string representation
- func (s ThingTypeMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingTypeMetadata) GoString() string {
- return s.String()
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *ThingTypeMetadata) SetCreationDate(v time.Time) *ThingTypeMetadata {
- s.CreationDate = &v
- return s
- }
- // SetDeprecated sets the Deprecated field's value.
- func (s *ThingTypeMetadata) SetDeprecated(v bool) *ThingTypeMetadata {
- s.Deprecated = &v
- return s
- }
- // SetDeprecationDate sets the DeprecationDate field's value.
- func (s *ThingTypeMetadata) SetDeprecationDate(v time.Time) *ThingTypeMetadata {
- s.DeprecationDate = &v
- return s
- }
- // The ThingTypeProperties contains information about the thing type including:
- // a thing type description, and a list of searchable thing attribute names.
- type ThingTypeProperties struct {
- _ struct{} `type:"structure"`
- // A list of searchable thing attribute names.
- SearchableAttributes []*string `locationName:"searchableAttributes" type:"list"`
- // The description of the thing type.
- ThingTypeDescription *string `locationName:"thingTypeDescription" type:"string"`
- }
- // String returns the string representation
- func (s ThingTypeProperties) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThingTypeProperties) GoString() string {
- return s.String()
- }
- // SetSearchableAttributes sets the SearchableAttributes field's value.
- func (s *ThingTypeProperties) SetSearchableAttributes(v []*string) *ThingTypeProperties {
- s.SearchableAttributes = v
- return s
- }
- // SetThingTypeDescription sets the ThingTypeDescription field's value.
- func (s *ThingTypeProperties) SetThingTypeDescription(v string) *ThingTypeProperties {
- s.ThingTypeDescription = &v
- return s
- }
- // Specifies the amount of time each device has to finish its execution of the
- // job. A timer is started when the job execution status is set to IN_PROGRESS.
- // If the job execution status is not set to another terminal state before the
- // timer expires, it will be automatically set to TIMED_OUT.
- type TimeoutConfig struct {
- _ struct{} `type:"structure"`
- // Specifies the amount of time, in minutes, this device has to finish execution
- // of this job. The timeout interval can be anywhere between 1 minute and 7
- // days (1 to 10080 minutes). The in progress timer can't be updated and will
- // apply to all job executions for the job. Whenever a job execution remains
- // in the IN_PROGRESS status for longer than this interval, the job execution
- // will fail and switch to the terminal TIMED_OUT status.
- InProgressTimeoutInMinutes *int64 `locationName:"inProgressTimeoutInMinutes" type:"long"`
- }
- // String returns the string representation
- func (s TimeoutConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TimeoutConfig) GoString() string {
- return s.String()
- }
- // SetInProgressTimeoutInMinutes sets the InProgressTimeoutInMinutes field's value.
- func (s *TimeoutConfig) SetInProgressTimeoutInMinutes(v int64) *TimeoutConfig {
- s.InProgressTimeoutInMinutes = &v
- return s
- }
- // Describes a rule.
- type TopicRule struct {
- _ struct{} `type:"structure"`
- // The actions associated with the rule.
- Actions []*Action `locationName:"actions" type:"list"`
- // The version of the SQL rules engine to use when evaluating the rule.
- AwsIotSqlVersion *string `locationName:"awsIotSqlVersion" type:"string"`
- // The date and time the rule was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
- // The description of the rule.
- Description *string `locationName:"description" type:"string"`
- // The action to perform when an error occurs.
- ErrorAction *Action `locationName:"errorAction" type:"structure"`
- // Specifies whether the rule is disabled.
- RuleDisabled *bool `locationName:"ruleDisabled" type:"boolean"`
- // The name of the rule.
- RuleName *string `locationName:"ruleName" min:"1" type:"string"`
- // The SQL statement used to query the topic. When using a SQL query with multiple
- // lines, be sure to escape the newline characters.
- Sql *string `locationName:"sql" type:"string"`
- }
- // String returns the string representation
- func (s TopicRule) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TopicRule) GoString() string {
- return s.String()
- }
- // SetActions sets the Actions field's value.
- func (s *TopicRule) SetActions(v []*Action) *TopicRule {
- s.Actions = v
- return s
- }
- // SetAwsIotSqlVersion sets the AwsIotSqlVersion field's value.
- func (s *TopicRule) SetAwsIotSqlVersion(v string) *TopicRule {
- s.AwsIotSqlVersion = &v
- return s
- }
- // SetCreatedAt sets the CreatedAt field's value.
- func (s *TopicRule) SetCreatedAt(v time.Time) *TopicRule {
- s.CreatedAt = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *TopicRule) SetDescription(v string) *TopicRule {
- s.Description = &v
- return s
- }
- // SetErrorAction sets the ErrorAction field's value.
- func (s *TopicRule) SetErrorAction(v *Action) *TopicRule {
- s.ErrorAction = v
- return s
- }
- // SetRuleDisabled sets the RuleDisabled field's value.
- func (s *TopicRule) SetRuleDisabled(v bool) *TopicRule {
- s.RuleDisabled = &v
- return s
- }
- // SetRuleName sets the RuleName field's value.
- func (s *TopicRule) SetRuleName(v string) *TopicRule {
- s.RuleName = &v
- return s
- }
- // SetSql sets the Sql field's value.
- func (s *TopicRule) SetSql(v string) *TopicRule {
- s.Sql = &v
- return s
- }
- // Describes a rule.
- type TopicRuleListItem struct {
- _ struct{} `type:"structure"`
- // The date and time the rule was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
- // The rule ARN.
- RuleArn *string `locationName:"ruleArn" type:"string"`
- // Specifies whether the rule is disabled.
- RuleDisabled *bool `locationName:"ruleDisabled" type:"boolean"`
- // The name of the rule.
- RuleName *string `locationName:"ruleName" min:"1" type:"string"`
- // The pattern for the topic names that apply.
- TopicPattern *string `locationName:"topicPattern" type:"string"`
- }
- // String returns the string representation
- func (s TopicRuleListItem) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TopicRuleListItem) GoString() string {
- return s.String()
- }
- // SetCreatedAt sets the CreatedAt field's value.
- func (s *TopicRuleListItem) SetCreatedAt(v time.Time) *TopicRuleListItem {
- s.CreatedAt = &v
- return s
- }
- // SetRuleArn sets the RuleArn field's value.
- func (s *TopicRuleListItem) SetRuleArn(v string) *TopicRuleListItem {
- s.RuleArn = &v
- return s
- }
- // SetRuleDisabled sets the RuleDisabled field's value.
- func (s *TopicRuleListItem) SetRuleDisabled(v bool) *TopicRuleListItem {
- s.RuleDisabled = &v
- return s
- }
- // SetRuleName sets the RuleName field's value.
- func (s *TopicRuleListItem) SetRuleName(v string) *TopicRuleListItem {
- s.RuleName = &v
- return s
- }
- // SetTopicPattern sets the TopicPattern field's value.
- func (s *TopicRuleListItem) SetTopicPattern(v string) *TopicRuleListItem {
- s.TopicPattern = &v
- return s
- }
- // Describes a rule.
- type TopicRulePayload struct {
- _ struct{} `type:"structure"`
- // The actions associated with the rule.
- //
- // Actions is a required field
- Actions []*Action `locationName:"actions" type:"list" required:"true"`
- // The version of the SQL rules engine to use when evaluating the rule.
- AwsIotSqlVersion *string `locationName:"awsIotSqlVersion" type:"string"`
- // The description of the rule.
- Description *string `locationName:"description" type:"string"`
- // The action to take when an error occurs.
- ErrorAction *Action `locationName:"errorAction" type:"structure"`
- // Specifies whether the rule is disabled.
- RuleDisabled *bool `locationName:"ruleDisabled" type:"boolean"`
- // The SQL statement used to query the topic. For more information, see AWS
- // IoT SQL Reference (http://docs.aws.amazon.com/iot/latest/developerguide/iot-rules.html#aws-iot-sql-reference)
- // in the AWS IoT Developer Guide.
- //
- // Sql is a required field
- Sql *string `locationName:"sql" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s TopicRulePayload) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TopicRulePayload) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TopicRulePayload) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TopicRulePayload"}
- if s.Actions == nil {
- invalidParams.Add(request.NewErrParamRequired("Actions"))
- }
- if s.Sql == nil {
- invalidParams.Add(request.NewErrParamRequired("Sql"))
- }
- 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.ErrorAction != nil {
- if err := s.ErrorAction.Validate(); err != nil {
- invalidParams.AddNested("ErrorAction", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActions sets the Actions field's value.
- func (s *TopicRulePayload) SetActions(v []*Action) *TopicRulePayload {
- s.Actions = v
- return s
- }
- // SetAwsIotSqlVersion sets the AwsIotSqlVersion field's value.
- func (s *TopicRulePayload) SetAwsIotSqlVersion(v string) *TopicRulePayload {
- s.AwsIotSqlVersion = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *TopicRulePayload) SetDescription(v string) *TopicRulePayload {
- s.Description = &v
- return s
- }
- // SetErrorAction sets the ErrorAction field's value.
- func (s *TopicRulePayload) SetErrorAction(v *Action) *TopicRulePayload {
- s.ErrorAction = v
- return s
- }
- // SetRuleDisabled sets the RuleDisabled field's value.
- func (s *TopicRulePayload) SetRuleDisabled(v bool) *TopicRulePayload {
- s.RuleDisabled = &v
- return s
- }
- // SetSql sets the Sql field's value.
- func (s *TopicRulePayload) SetSql(v string) *TopicRulePayload {
- s.Sql = &v
- return s
- }
- // The input for the TransferCertificate operation.
- type TransferCertificateInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate. (The last part of the certificate ARN contains
- // the certificate ID.)
- //
- // CertificateId is a required field
- CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"`
- // The AWS account.
- //
- // TargetAwsAccount is a required field
- TargetAwsAccount *string `location:"querystring" locationName:"targetAwsAccount" min:"12" type:"string" required:"true"`
- // The transfer message.
- TransferMessage *string `locationName:"transferMessage" type:"string"`
- }
- // String returns the string representation
- func (s TransferCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransferCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TransferCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TransferCertificateInput"}
- if s.CertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateId"))
- }
- if s.CertificateId != nil && len(*s.CertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64))
- }
- if s.TargetAwsAccount == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetAwsAccount"))
- }
- if s.TargetAwsAccount != nil && len(*s.TargetAwsAccount) < 12 {
- invalidParams.Add(request.NewErrParamMinLen("TargetAwsAccount", 12))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *TransferCertificateInput) SetCertificateId(v string) *TransferCertificateInput {
- s.CertificateId = &v
- return s
- }
- // SetTargetAwsAccount sets the TargetAwsAccount field's value.
- func (s *TransferCertificateInput) SetTargetAwsAccount(v string) *TransferCertificateInput {
- s.TargetAwsAccount = &v
- return s
- }
- // SetTransferMessage sets the TransferMessage field's value.
- func (s *TransferCertificateInput) SetTransferMessage(v string) *TransferCertificateInput {
- s.TransferMessage = &v
- return s
- }
- // The output from the TransferCertificate operation.
- type TransferCertificateOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the certificate.
- TransferredCertificateArn *string `locationName:"transferredCertificateArn" type:"string"`
- }
- // String returns the string representation
- func (s TransferCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransferCertificateOutput) GoString() string {
- return s.String()
- }
- // SetTransferredCertificateArn sets the TransferredCertificateArn field's value.
- func (s *TransferCertificateOutput) SetTransferredCertificateArn(v string) *TransferCertificateOutput {
- s.TransferredCertificateArn = &v
- return s
- }
- // Data used to transfer a certificate to an AWS account.
- type TransferData struct {
- _ struct{} `type:"structure"`
- // The date the transfer was accepted.
- AcceptDate *time.Time `locationName:"acceptDate" type:"timestamp"`
- // The date the transfer was rejected.
- RejectDate *time.Time `locationName:"rejectDate" type:"timestamp"`
- // The reason why the transfer was rejected.
- RejectReason *string `locationName:"rejectReason" type:"string"`
- // The date the transfer took place.
- TransferDate *time.Time `locationName:"transferDate" type:"timestamp"`
- // The transfer message.
- TransferMessage *string `locationName:"transferMessage" type:"string"`
- }
- // String returns the string representation
- func (s TransferData) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransferData) GoString() string {
- return s.String()
- }
- // SetAcceptDate sets the AcceptDate field's value.
- func (s *TransferData) SetAcceptDate(v time.Time) *TransferData {
- s.AcceptDate = &v
- return s
- }
- // SetRejectDate sets the RejectDate field's value.
- func (s *TransferData) SetRejectDate(v time.Time) *TransferData {
- s.RejectDate = &v
- return s
- }
- // SetRejectReason sets the RejectReason field's value.
- func (s *TransferData) SetRejectReason(v string) *TransferData {
- s.RejectReason = &v
- return s
- }
- // SetTransferDate sets the TransferDate field's value.
- func (s *TransferData) SetTransferDate(v time.Time) *TransferData {
- s.TransferDate = &v
- return s
- }
- // SetTransferMessage sets the TransferMessage field's value.
- func (s *TransferData) SetTransferMessage(v string) *TransferData {
- s.TransferMessage = &v
- return s
- }
- type UntagResourceInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the resource.
- //
- // ResourceArn is a required field
- ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
- // A list of the keys of the tags to be removed from the resource.
- //
- // TagKeys is a required field
- TagKeys []*string `locationName:"tagKeys" 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.TagKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeys"))
- }
- 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 UpdateAccountAuditConfigurationInput struct {
- _ struct{} `type:"structure"`
- // Specifies which audit checks are enabled and disabled for this account. Use
- // DescribeAccountAuditConfiguration to see the list of all checks including
- // those that are currently enabled.
- //
- // Note that some data collection may begin immediately when certain checks
- // are enabled. When a check is disabled, any data collected so far in relation
- // to the check is deleted.
- //
- // You cannot disable a check if it is used by any scheduled audit. You must
- // first delete the check from the scheduled audit or delete the scheduled audit
- // itself.
- //
- // On the first call to UpdateAccountAuditConfiguration this parameter is required
- // and must specify at least one enabled check.
- AuditCheckConfigurations map[string]*AuditCheckConfiguration `locationName:"auditCheckConfigurations" type:"map"`
- // Information about the targets to which audit notifications are sent.
- AuditNotificationTargetConfigurations map[string]*AuditNotificationTarget `locationName:"auditNotificationTargetConfigurations" type:"map"`
- // The ARN of the role that grants permission to AWS IoT to access information
- // about your devices, policies, certificates and other items as necessary when
- // performing an audit.
- RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
- }
- // String returns the string representation
- func (s UpdateAccountAuditConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAccountAuditConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateAccountAuditConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateAccountAuditConfigurationInput"}
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.AuditNotificationTargetConfigurations != nil {
- for i, v := range s.AuditNotificationTargetConfigurations {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AuditNotificationTargetConfigurations", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuditCheckConfigurations sets the AuditCheckConfigurations field's value.
- func (s *UpdateAccountAuditConfigurationInput) SetAuditCheckConfigurations(v map[string]*AuditCheckConfiguration) *UpdateAccountAuditConfigurationInput {
- s.AuditCheckConfigurations = v
- return s
- }
- // SetAuditNotificationTargetConfigurations sets the AuditNotificationTargetConfigurations field's value.
- func (s *UpdateAccountAuditConfigurationInput) SetAuditNotificationTargetConfigurations(v map[string]*AuditNotificationTarget) *UpdateAccountAuditConfigurationInput {
- s.AuditNotificationTargetConfigurations = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *UpdateAccountAuditConfigurationInput) SetRoleArn(v string) *UpdateAccountAuditConfigurationInput {
- s.RoleArn = &v
- return s
- }
- type UpdateAccountAuditConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateAccountAuditConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAccountAuditConfigurationOutput) GoString() string {
- return s.String()
- }
- type UpdateAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the authorizer's Lambda function.
- AuthorizerFunctionArn *string `locationName:"authorizerFunctionArn" type:"string"`
- // The authorizer name.
- //
- // AuthorizerName is a required field
- AuthorizerName *string `location:"uri" locationName:"authorizerName" min:"1" type:"string" required:"true"`
- // The status of the update authorizer request.
- Status *string `locationName:"status" type:"string" enum:"AuthorizerStatus"`
- // The key used to extract the token from the HTTP headers.
- TokenKeyName *string `locationName:"tokenKeyName" min:"1" type:"string"`
- // The public keys used to verify the token signature.
- TokenSigningPublicKeys map[string]*string `locationName:"tokenSigningPublicKeys" type:"map"`
- }
- // String returns the string representation
- func (s UpdateAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateAuthorizerInput"}
- if s.AuthorizerName == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerName"))
- }
- if s.AuthorizerName != nil && len(*s.AuthorizerName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AuthorizerName", 1))
- }
- if s.TokenKeyName != nil && len(*s.TokenKeyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TokenKeyName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthorizerFunctionArn sets the AuthorizerFunctionArn field's value.
- func (s *UpdateAuthorizerInput) SetAuthorizerFunctionArn(v string) *UpdateAuthorizerInput {
- s.AuthorizerFunctionArn = &v
- return s
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *UpdateAuthorizerInput) SetAuthorizerName(v string) *UpdateAuthorizerInput {
- s.AuthorizerName = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *UpdateAuthorizerInput) SetStatus(v string) *UpdateAuthorizerInput {
- s.Status = &v
- return s
- }
- // SetTokenKeyName sets the TokenKeyName field's value.
- func (s *UpdateAuthorizerInput) SetTokenKeyName(v string) *UpdateAuthorizerInput {
- s.TokenKeyName = &v
- return s
- }
- // SetTokenSigningPublicKeys sets the TokenSigningPublicKeys field's value.
- func (s *UpdateAuthorizerInput) SetTokenSigningPublicKeys(v map[string]*string) *UpdateAuthorizerInput {
- s.TokenSigningPublicKeys = v
- return s
- }
- type UpdateAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- // The authorizer ARN.
- AuthorizerArn *string `locationName:"authorizerArn" type:"string"`
- // The authorizer name.
- AuthorizerName *string `locationName:"authorizerName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s UpdateAuthorizerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAuthorizerOutput) GoString() string {
- return s.String()
- }
- // SetAuthorizerArn sets the AuthorizerArn field's value.
- func (s *UpdateAuthorizerOutput) SetAuthorizerArn(v string) *UpdateAuthorizerOutput {
- s.AuthorizerArn = &v
- return s
- }
- // SetAuthorizerName sets the AuthorizerName field's value.
- func (s *UpdateAuthorizerOutput) SetAuthorizerName(v string) *UpdateAuthorizerOutput {
- s.AuthorizerName = &v
- return s
- }
- type UpdateBillingGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the billing group.
- //
- // BillingGroupName is a required field
- BillingGroupName *string `location:"uri" locationName:"billingGroupName" min:"1" type:"string" required:"true"`
- // The properties of the billing group.
- //
- // BillingGroupProperties is a required field
- BillingGroupProperties *BillingGroupProperties `locationName:"billingGroupProperties" type:"structure" required:"true"`
- // The expected version of the billing group. If the version of the billing
- // group does not match the expected version specified in the request, the UpdateBillingGroup
- // request is rejected with a VersionConflictException.
- ExpectedVersion *int64 `locationName:"expectedVersion" type:"long"`
- }
- // String returns the string representation
- func (s UpdateBillingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateBillingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateBillingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateBillingGroupInput"}
- if s.BillingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("BillingGroupName"))
- }
- if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1))
- }
- if s.BillingGroupProperties == nil {
- invalidParams.Add(request.NewErrParamRequired("BillingGroupProperties"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBillingGroupName sets the BillingGroupName field's value.
- func (s *UpdateBillingGroupInput) SetBillingGroupName(v string) *UpdateBillingGroupInput {
- s.BillingGroupName = &v
- return s
- }
- // SetBillingGroupProperties sets the BillingGroupProperties field's value.
- func (s *UpdateBillingGroupInput) SetBillingGroupProperties(v *BillingGroupProperties) *UpdateBillingGroupInput {
- s.BillingGroupProperties = v
- return s
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *UpdateBillingGroupInput) SetExpectedVersion(v int64) *UpdateBillingGroupInput {
- s.ExpectedVersion = &v
- return s
- }
- type UpdateBillingGroupOutput struct {
- _ struct{} `type:"structure"`
- // The latest version of the billing group.
- Version *int64 `locationName:"version" type:"long"`
- }
- // String returns the string representation
- func (s UpdateBillingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateBillingGroupOutput) GoString() string {
- return s.String()
- }
- // SetVersion sets the Version field's value.
- func (s *UpdateBillingGroupOutput) SetVersion(v int64) *UpdateBillingGroupOutput {
- s.Version = &v
- return s
- }
- // The input to the UpdateCACertificate operation.
- type UpdateCACertificateInput struct {
- _ struct{} `type:"structure"`
- // The CA certificate identifier.
- //
- // CertificateId is a required field
- CertificateId *string `location:"uri" locationName:"caCertificateId" min:"64" type:"string" required:"true"`
- // The new value for the auto registration status. Valid values are: "ENABLE"
- // or "DISABLE".
- NewAutoRegistrationStatus *string `location:"querystring" locationName:"newAutoRegistrationStatus" type:"string" enum:"AutoRegistrationStatus"`
- // The updated status of the CA certificate.
- //
- // Note: The status value REGISTER_INACTIVE is deprecated and should not be
- // used.
- NewStatus *string `location:"querystring" locationName:"newStatus" type:"string" enum:"CACertificateStatus"`
- // Information about the registration configuration.
- RegistrationConfig *RegistrationConfig `locationName:"registrationConfig" type:"structure"`
- // If true, remove auto registration.
- RemoveAutoRegistration *bool `locationName:"removeAutoRegistration" type:"boolean"`
- }
- // String returns the string representation
- func (s UpdateCACertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCACertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateCACertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateCACertificateInput"}
- if s.CertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateId"))
- }
- if s.CertificateId != nil && len(*s.CertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64))
- }
- if s.RegistrationConfig != nil {
- if err := s.RegistrationConfig.Validate(); err != nil {
- invalidParams.AddNested("RegistrationConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *UpdateCACertificateInput) SetCertificateId(v string) *UpdateCACertificateInput {
- s.CertificateId = &v
- return s
- }
- // SetNewAutoRegistrationStatus sets the NewAutoRegistrationStatus field's value.
- func (s *UpdateCACertificateInput) SetNewAutoRegistrationStatus(v string) *UpdateCACertificateInput {
- s.NewAutoRegistrationStatus = &v
- return s
- }
- // SetNewStatus sets the NewStatus field's value.
- func (s *UpdateCACertificateInput) SetNewStatus(v string) *UpdateCACertificateInput {
- s.NewStatus = &v
- return s
- }
- // SetRegistrationConfig sets the RegistrationConfig field's value.
- func (s *UpdateCACertificateInput) SetRegistrationConfig(v *RegistrationConfig) *UpdateCACertificateInput {
- s.RegistrationConfig = v
- return s
- }
- // SetRemoveAutoRegistration sets the RemoveAutoRegistration field's value.
- func (s *UpdateCACertificateInput) SetRemoveAutoRegistration(v bool) *UpdateCACertificateInput {
- s.RemoveAutoRegistration = &v
- return s
- }
- type UpdateCACertificateOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateCACertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCACertificateOutput) GoString() string {
- return s.String()
- }
- // The input for the UpdateCertificate operation.
- type UpdateCertificateInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate. (The last part of the certificate ARN contains
- // the certificate ID.)
- //
- // CertificateId is a required field
- CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"`
- // The new status.
- //
- // Note: Setting the status to PENDING_TRANSFER will result in an exception
- // being thrown. PENDING_TRANSFER is a status used internally by AWS IoT. It
- // is not intended for developer use.
- //
- // Note: The status value REGISTER_INACTIVE is deprecated and should not be
- // used.
- //
- // NewStatus is a required field
- NewStatus *string `location:"querystring" locationName:"newStatus" type:"string" required:"true" enum:"CertificateStatus"`
- }
- // String returns the string representation
- func (s UpdateCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateCertificateInput"}
- if s.CertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateId"))
- }
- if s.CertificateId != nil && len(*s.CertificateId) < 64 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64))
- }
- if s.NewStatus == nil {
- invalidParams.Add(request.NewErrParamRequired("NewStatus"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateId sets the CertificateId field's value.
- func (s *UpdateCertificateInput) SetCertificateId(v string) *UpdateCertificateInput {
- s.CertificateId = &v
- return s
- }
- // SetNewStatus sets the NewStatus field's value.
- func (s *UpdateCertificateInput) SetNewStatus(v string) *UpdateCertificateInput {
- s.NewStatus = &v
- return s
- }
- type UpdateCertificateOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCertificateOutput) GoString() string {
- return s.String()
- }
- type UpdateDynamicThingGroupInput struct {
- _ struct{} `type:"structure"`
- // The expected version of the dynamic thing group to update.
- ExpectedVersion *int64 `locationName:"expectedVersion" type:"long"`
- // The dynamic thing group index to update.
- //
- // Currently one index is supported: 'AWS_Things'.
- IndexName *string `locationName:"indexName" min:"1" type:"string"`
- // The dynamic thing group search query string to update.
- QueryString *string `locationName:"queryString" min:"1" type:"string"`
- // The dynamic thing group query version to update.
- //
- // Currently one query version is supported: "2017-09-30". If not specified,
- // the query version defaults to this value.
- QueryVersion *string `locationName:"queryVersion" type:"string"`
- // The name of the dynamic thing group to update.
- //
- // ThingGroupName is a required field
- ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"`
- // The dynamic thing group properties to update.
- //
- // ThingGroupProperties is a required field
- ThingGroupProperties *ThingGroupProperties `locationName:"thingGroupProperties" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdateDynamicThingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDynamicThingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDynamicThingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDynamicThingGroupInput"}
- if s.IndexName != nil && len(*s.IndexName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("IndexName", 1))
- }
- if s.QueryString != nil && len(*s.QueryString) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("QueryString", 1))
- }
- if s.ThingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupName"))
- }
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if s.ThingGroupProperties == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupProperties"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *UpdateDynamicThingGroupInput) SetExpectedVersion(v int64) *UpdateDynamicThingGroupInput {
- s.ExpectedVersion = &v
- return s
- }
- // SetIndexName sets the IndexName field's value.
- func (s *UpdateDynamicThingGroupInput) SetIndexName(v string) *UpdateDynamicThingGroupInput {
- s.IndexName = &v
- return s
- }
- // SetQueryString sets the QueryString field's value.
- func (s *UpdateDynamicThingGroupInput) SetQueryString(v string) *UpdateDynamicThingGroupInput {
- s.QueryString = &v
- return s
- }
- // SetQueryVersion sets the QueryVersion field's value.
- func (s *UpdateDynamicThingGroupInput) SetQueryVersion(v string) *UpdateDynamicThingGroupInput {
- s.QueryVersion = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *UpdateDynamicThingGroupInput) SetThingGroupName(v string) *UpdateDynamicThingGroupInput {
- s.ThingGroupName = &v
- return s
- }
- // SetThingGroupProperties sets the ThingGroupProperties field's value.
- func (s *UpdateDynamicThingGroupInput) SetThingGroupProperties(v *ThingGroupProperties) *UpdateDynamicThingGroupInput {
- s.ThingGroupProperties = v
- return s
- }
- type UpdateDynamicThingGroupOutput struct {
- _ struct{} `type:"structure"`
- // The dynamic thing group version.
- Version *int64 `locationName:"version" type:"long"`
- }
- // String returns the string representation
- func (s UpdateDynamicThingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDynamicThingGroupOutput) GoString() string {
- return s.String()
- }
- // SetVersion sets the Version field's value.
- func (s *UpdateDynamicThingGroupOutput) SetVersion(v int64) *UpdateDynamicThingGroupOutput {
- s.Version = &v
- return s
- }
- type UpdateEventConfigurationsInput struct {
- _ struct{} `type:"structure"`
- // The new event configuration values.
- EventConfigurations map[string]*Configuration `locationName:"eventConfigurations" type:"map"`
- }
- // String returns the string representation
- func (s UpdateEventConfigurationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateEventConfigurationsInput) GoString() string {
- return s.String()
- }
- // SetEventConfigurations sets the EventConfigurations field's value.
- func (s *UpdateEventConfigurationsInput) SetEventConfigurations(v map[string]*Configuration) *UpdateEventConfigurationsInput {
- s.EventConfigurations = v
- return s
- }
- type UpdateEventConfigurationsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateEventConfigurationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateEventConfigurationsOutput) GoString() string {
- return s.String()
- }
- type UpdateIndexingConfigurationInput struct {
- _ struct{} `type:"structure"`
- // Thing group indexing configuration.
- ThingGroupIndexingConfiguration *ThingGroupIndexingConfiguration `locationName:"thingGroupIndexingConfiguration" type:"structure"`
- // Thing indexing configuration.
- ThingIndexingConfiguration *ThingIndexingConfiguration `locationName:"thingIndexingConfiguration" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateIndexingConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateIndexingConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateIndexingConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateIndexingConfigurationInput"}
- if s.ThingGroupIndexingConfiguration != nil {
- if err := s.ThingGroupIndexingConfiguration.Validate(); err != nil {
- invalidParams.AddNested("ThingGroupIndexingConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if s.ThingIndexingConfiguration != nil {
- if err := s.ThingIndexingConfiguration.Validate(); err != nil {
- invalidParams.AddNested("ThingIndexingConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetThingGroupIndexingConfiguration sets the ThingGroupIndexingConfiguration field's value.
- func (s *UpdateIndexingConfigurationInput) SetThingGroupIndexingConfiguration(v *ThingGroupIndexingConfiguration) *UpdateIndexingConfigurationInput {
- s.ThingGroupIndexingConfiguration = v
- return s
- }
- // SetThingIndexingConfiguration sets the ThingIndexingConfiguration field's value.
- func (s *UpdateIndexingConfigurationInput) SetThingIndexingConfiguration(v *ThingIndexingConfiguration) *UpdateIndexingConfigurationInput {
- s.ThingIndexingConfiguration = v
- return s
- }
- type UpdateIndexingConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateIndexingConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateIndexingConfigurationOutput) GoString() string {
- return s.String()
- }
- type UpdateJobInput struct {
- _ struct{} `type:"structure"`
- // Allows you to create criteria to abort a job.
- AbortConfig *AbortConfig `locationName:"abortConfig" type:"structure"`
- // A short text description of the job.
- Description *string `locationName:"description" type:"string"`
- // Allows you to create a staged rollout of the job.
- JobExecutionsRolloutConfig *JobExecutionsRolloutConfig `locationName:"jobExecutionsRolloutConfig" type:"structure"`
- // The ID of the job to be updated.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"`
- // Configuration information for pre-signed S3 URLs.
- PresignedUrlConfig *PresignedUrlConfig `locationName:"presignedUrlConfig" type:"structure"`
- // Specifies the amount of time each device has to finish its execution of the
- // job. The timer is started when the job execution status is set to IN_PROGRESS.
- // If the job execution status is not set to another terminal state before the
- // time expires, it will be automatically set to TIMED_OUT.
- TimeoutConfig *TimeoutConfig `locationName:"timeoutConfig" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateJobInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if s.AbortConfig != nil {
- if err := s.AbortConfig.Validate(); err != nil {
- invalidParams.AddNested("AbortConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.JobExecutionsRolloutConfig != nil {
- if err := s.JobExecutionsRolloutConfig.Validate(); err != nil {
- invalidParams.AddNested("JobExecutionsRolloutConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.PresignedUrlConfig != nil {
- if err := s.PresignedUrlConfig.Validate(); err != nil {
- invalidParams.AddNested("PresignedUrlConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAbortConfig sets the AbortConfig field's value.
- func (s *UpdateJobInput) SetAbortConfig(v *AbortConfig) *UpdateJobInput {
- s.AbortConfig = v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateJobInput) SetDescription(v string) *UpdateJobInput {
- s.Description = &v
- return s
- }
- // SetJobExecutionsRolloutConfig sets the JobExecutionsRolloutConfig field's value.
- func (s *UpdateJobInput) SetJobExecutionsRolloutConfig(v *JobExecutionsRolloutConfig) *UpdateJobInput {
- s.JobExecutionsRolloutConfig = v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *UpdateJobInput) SetJobId(v string) *UpdateJobInput {
- s.JobId = &v
- return s
- }
- // SetPresignedUrlConfig sets the PresignedUrlConfig field's value.
- func (s *UpdateJobInput) SetPresignedUrlConfig(v *PresignedUrlConfig) *UpdateJobInput {
- s.PresignedUrlConfig = v
- return s
- }
- // SetTimeoutConfig sets the TimeoutConfig field's value.
- func (s *UpdateJobInput) SetTimeoutConfig(v *TimeoutConfig) *UpdateJobInput {
- s.TimeoutConfig = v
- return s
- }
- type UpdateJobOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateJobOutput) GoString() string {
- return s.String()
- }
- type UpdateRoleAliasInput struct {
- _ struct{} `type:"structure"`
- // The number of seconds the credential will be valid.
- CredentialDurationSeconds *int64 `locationName:"credentialDurationSeconds" min:"900" type:"integer"`
- // The role alias to update.
- //
- // RoleAlias is a required field
- RoleAlias *string `location:"uri" locationName:"roleAlias" min:"1" type:"string" required:"true"`
- // The role ARN.
- RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
- }
- // String returns the string representation
- func (s UpdateRoleAliasInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateRoleAliasInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateRoleAliasInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateRoleAliasInput"}
- if s.CredentialDurationSeconds != nil && *s.CredentialDurationSeconds < 900 {
- invalidParams.Add(request.NewErrParamMinValue("CredentialDurationSeconds", 900))
- }
- if s.RoleAlias == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleAlias"))
- }
- if s.RoleAlias != nil && len(*s.RoleAlias) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleAlias", 1))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCredentialDurationSeconds sets the CredentialDurationSeconds field's value.
- func (s *UpdateRoleAliasInput) SetCredentialDurationSeconds(v int64) *UpdateRoleAliasInput {
- s.CredentialDurationSeconds = &v
- return s
- }
- // SetRoleAlias sets the RoleAlias field's value.
- func (s *UpdateRoleAliasInput) SetRoleAlias(v string) *UpdateRoleAliasInput {
- s.RoleAlias = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *UpdateRoleAliasInput) SetRoleArn(v string) *UpdateRoleAliasInput {
- s.RoleArn = &v
- return s
- }
- type UpdateRoleAliasOutput struct {
- _ struct{} `type:"structure"`
- // The role alias.
- RoleAlias *string `locationName:"roleAlias" min:"1" type:"string"`
- // The role alias ARN.
- RoleAliasArn *string `locationName:"roleAliasArn" type:"string"`
- }
- // String returns the string representation
- func (s UpdateRoleAliasOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateRoleAliasOutput) GoString() string {
- return s.String()
- }
- // SetRoleAlias sets the RoleAlias field's value.
- func (s *UpdateRoleAliasOutput) SetRoleAlias(v string) *UpdateRoleAliasOutput {
- s.RoleAlias = &v
- return s
- }
- // SetRoleAliasArn sets the RoleAliasArn field's value.
- func (s *UpdateRoleAliasOutput) SetRoleAliasArn(v string) *UpdateRoleAliasOutput {
- s.RoleAliasArn = &v
- return s
- }
- type UpdateScheduledAuditInput struct {
- _ struct{} `type:"structure"`
- // The day of the month on which the scheduled audit takes place. Can be "1"
- // through "31" or "LAST". This field is required if the "frequency" parameter
- // is set to "MONTHLY". If days 29-31 are specified, and the month does not
- // have that many days, the audit takes place on the "LAST" day of the month.
- DayOfMonth *string `locationName:"dayOfMonth" type:"string"`
- // The day of the week on which the scheduled audit takes place. Can be one
- // of "SUN", "MON", "TUE", "WED", "THU", "FRI" or "SAT". This field is required
- // if the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".
- DayOfWeek *string `locationName:"dayOfWeek" type:"string" enum:"DayOfWeek"`
- // How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY",
- // "BIWEEKLY" or "MONTHLY". The actual start time of each audit is determined
- // by the system.
- Frequency *string `locationName:"frequency" type:"string" enum:"AuditFrequency"`
- // The name of the scheduled audit. (Max. 128 chars)
- //
- // ScheduledAuditName is a required field
- ScheduledAuditName *string `location:"uri" locationName:"scheduledAuditName" min:"1" type:"string" required:"true"`
- // Which checks are performed during the scheduled audit. Checks must be enabled
- // for your account. (Use DescribeAccountAuditConfiguration to see the list
- // of all checks including those that are enabled or UpdateAccountAuditConfiguration
- // to select which checks are enabled.)
- TargetCheckNames []*string `locationName:"targetCheckNames" type:"list"`
- }
- // String returns the string representation
- func (s UpdateScheduledAuditInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateScheduledAuditInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateScheduledAuditInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateScheduledAuditInput"}
- if s.ScheduledAuditName == nil {
- invalidParams.Add(request.NewErrParamRequired("ScheduledAuditName"))
- }
- if s.ScheduledAuditName != nil && len(*s.ScheduledAuditName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ScheduledAuditName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDayOfMonth sets the DayOfMonth field's value.
- func (s *UpdateScheduledAuditInput) SetDayOfMonth(v string) *UpdateScheduledAuditInput {
- s.DayOfMonth = &v
- return s
- }
- // SetDayOfWeek sets the DayOfWeek field's value.
- func (s *UpdateScheduledAuditInput) SetDayOfWeek(v string) *UpdateScheduledAuditInput {
- s.DayOfWeek = &v
- return s
- }
- // SetFrequency sets the Frequency field's value.
- func (s *UpdateScheduledAuditInput) SetFrequency(v string) *UpdateScheduledAuditInput {
- s.Frequency = &v
- return s
- }
- // SetScheduledAuditName sets the ScheduledAuditName field's value.
- func (s *UpdateScheduledAuditInput) SetScheduledAuditName(v string) *UpdateScheduledAuditInput {
- s.ScheduledAuditName = &v
- return s
- }
- // SetTargetCheckNames sets the TargetCheckNames field's value.
- func (s *UpdateScheduledAuditInput) SetTargetCheckNames(v []*string) *UpdateScheduledAuditInput {
- s.TargetCheckNames = v
- return s
- }
- type UpdateScheduledAuditOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the scheduled audit.
- ScheduledAuditArn *string `locationName:"scheduledAuditArn" type:"string"`
- }
- // String returns the string representation
- func (s UpdateScheduledAuditOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateScheduledAuditOutput) GoString() string {
- return s.String()
- }
- // SetScheduledAuditArn sets the ScheduledAuditArn field's value.
- func (s *UpdateScheduledAuditOutput) SetScheduledAuditArn(v string) *UpdateScheduledAuditOutput {
- s.ScheduledAuditArn = &v
- return s
- }
- type UpdateSecurityProfileInput struct {
- _ struct{} `type:"structure"`
- // Where the alerts are sent. (Alerts are always sent to the console.)
- AlertTargets map[string]*AlertTarget `locationName:"alertTargets" type:"map"`
- // Specifies the behaviors that, when violated by a device (thing), cause an
- // alert.
- Behaviors []*Behavior `locationName:"behaviors" type:"list"`
- // The expected version of the security profile. A new version is generated
- // whenever the security profile is updated. If you specify a value that is
- // different than the actual version, a VersionConflictException is thrown.
- ExpectedVersion *int64 `location:"querystring" locationName:"expectedVersion" type:"long"`
- // A description of the security profile.
- SecurityProfileDescription *string `locationName:"securityProfileDescription" type:"string"`
- // The name of the security profile you want to update.
- //
- // SecurityProfileName is a required field
- SecurityProfileName *string `location:"uri" locationName:"securityProfileName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateSecurityProfileInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateSecurityProfileInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateSecurityProfileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateSecurityProfileInput"}
- if s.SecurityProfileName == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityProfileName"))
- }
- if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
- }
- if s.AlertTargets != nil {
- for i, v := range s.AlertTargets {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AlertTargets", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Behaviors != nil {
- for i, v := range s.Behaviors {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Behaviors", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlertTargets sets the AlertTargets field's value.
- func (s *UpdateSecurityProfileInput) SetAlertTargets(v map[string]*AlertTarget) *UpdateSecurityProfileInput {
- s.AlertTargets = v
- return s
- }
- // SetBehaviors sets the Behaviors field's value.
- func (s *UpdateSecurityProfileInput) SetBehaviors(v []*Behavior) *UpdateSecurityProfileInput {
- s.Behaviors = v
- return s
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *UpdateSecurityProfileInput) SetExpectedVersion(v int64) *UpdateSecurityProfileInput {
- s.ExpectedVersion = &v
- return s
- }
- // SetSecurityProfileDescription sets the SecurityProfileDescription field's value.
- func (s *UpdateSecurityProfileInput) SetSecurityProfileDescription(v string) *UpdateSecurityProfileInput {
- s.SecurityProfileDescription = &v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *UpdateSecurityProfileInput) SetSecurityProfileName(v string) *UpdateSecurityProfileInput {
- s.SecurityProfileName = &v
- return s
- }
- type UpdateSecurityProfileOutput struct {
- _ struct{} `type:"structure"`
- // Where the alerts are sent. (Alerts are always sent to the console.)
- AlertTargets map[string]*AlertTarget `locationName:"alertTargets" type:"map"`
- // Specifies the behaviors that, when violated by a device (thing), cause an
- // alert.
- Behaviors []*Behavior `locationName:"behaviors" type:"list"`
- // The time the security profile was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The time the security profile was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // The ARN of the security profile that was updated.
- SecurityProfileArn *string `locationName:"securityProfileArn" type:"string"`
- // The description of the security profile.
- SecurityProfileDescription *string `locationName:"securityProfileDescription" type:"string"`
- // The name of the security profile that was updated.
- SecurityProfileName *string `locationName:"securityProfileName" min:"1" type:"string"`
- // The updated version of the security profile.
- Version *int64 `locationName:"version" type:"long"`
- }
- // String returns the string representation
- func (s UpdateSecurityProfileOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateSecurityProfileOutput) GoString() string {
- return s.String()
- }
- // SetAlertTargets sets the AlertTargets field's value.
- func (s *UpdateSecurityProfileOutput) SetAlertTargets(v map[string]*AlertTarget) *UpdateSecurityProfileOutput {
- s.AlertTargets = v
- return s
- }
- // SetBehaviors sets the Behaviors field's value.
- func (s *UpdateSecurityProfileOutput) SetBehaviors(v []*Behavior) *UpdateSecurityProfileOutput {
- s.Behaviors = v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *UpdateSecurityProfileOutput) SetCreationDate(v time.Time) *UpdateSecurityProfileOutput {
- s.CreationDate = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *UpdateSecurityProfileOutput) SetLastModifiedDate(v time.Time) *UpdateSecurityProfileOutput {
- s.LastModifiedDate = &v
- return s
- }
- // SetSecurityProfileArn sets the SecurityProfileArn field's value.
- func (s *UpdateSecurityProfileOutput) SetSecurityProfileArn(v string) *UpdateSecurityProfileOutput {
- s.SecurityProfileArn = &v
- return s
- }
- // SetSecurityProfileDescription sets the SecurityProfileDescription field's value.
- func (s *UpdateSecurityProfileOutput) SetSecurityProfileDescription(v string) *UpdateSecurityProfileOutput {
- s.SecurityProfileDescription = &v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *UpdateSecurityProfileOutput) SetSecurityProfileName(v string) *UpdateSecurityProfileOutput {
- s.SecurityProfileName = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *UpdateSecurityProfileOutput) SetVersion(v int64) *UpdateSecurityProfileOutput {
- s.Version = &v
- return s
- }
- type UpdateStreamInput struct {
- _ struct{} `type:"structure"`
- // The description of the stream.
- Description *string `locationName:"description" type:"string"`
- // The files associated with the stream.
- Files []*StreamFile `locationName:"files" min:"1" type:"list"`
- // An IAM role that allows the IoT service principal assumes to access your
- // S3 files.
- RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
- // The stream ID.
- //
- // StreamId is a required field
- StreamId *string `location:"uri" locationName:"streamId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateStreamInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateStreamInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateStreamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateStreamInput"}
- if s.Files != nil && len(s.Files) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Files", 1))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.StreamId == nil {
- invalidParams.Add(request.NewErrParamRequired("StreamId"))
- }
- if s.StreamId != nil && len(*s.StreamId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StreamId", 1))
- }
- if s.Files != nil {
- for i, v := range s.Files {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Files", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateStreamInput) SetDescription(v string) *UpdateStreamInput {
- s.Description = &v
- return s
- }
- // SetFiles sets the Files field's value.
- func (s *UpdateStreamInput) SetFiles(v []*StreamFile) *UpdateStreamInput {
- s.Files = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *UpdateStreamInput) SetRoleArn(v string) *UpdateStreamInput {
- s.RoleArn = &v
- return s
- }
- // SetStreamId sets the StreamId field's value.
- func (s *UpdateStreamInput) SetStreamId(v string) *UpdateStreamInput {
- s.StreamId = &v
- return s
- }
- type UpdateStreamOutput struct {
- _ struct{} `type:"structure"`
- // A description of the stream.
- Description *string `locationName:"description" type:"string"`
- // The stream ARN.
- StreamArn *string `locationName:"streamArn" type:"string"`
- // The stream ID.
- StreamId *string `locationName:"streamId" min:"1" type:"string"`
- // The stream version.
- StreamVersion *int64 `locationName:"streamVersion" type:"integer"`
- }
- // String returns the string representation
- func (s UpdateStreamOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateStreamOutput) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateStreamOutput) SetDescription(v string) *UpdateStreamOutput {
- s.Description = &v
- return s
- }
- // SetStreamArn sets the StreamArn field's value.
- func (s *UpdateStreamOutput) SetStreamArn(v string) *UpdateStreamOutput {
- s.StreamArn = &v
- return s
- }
- // SetStreamId sets the StreamId field's value.
- func (s *UpdateStreamOutput) SetStreamId(v string) *UpdateStreamOutput {
- s.StreamId = &v
- return s
- }
- // SetStreamVersion sets the StreamVersion field's value.
- func (s *UpdateStreamOutput) SetStreamVersion(v int64) *UpdateStreamOutput {
- s.StreamVersion = &v
- return s
- }
- type UpdateThingGroupInput struct {
- _ struct{} `type:"structure"`
- // The expected version of the thing group. If this does not match the version
- // of the thing group being updated, the update will fail.
- ExpectedVersion *int64 `locationName:"expectedVersion" type:"long"`
- // The thing group to update.
- //
- // ThingGroupName is a required field
- ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"`
- // The thing group properties.
- //
- // ThingGroupProperties is a required field
- ThingGroupProperties *ThingGroupProperties `locationName:"thingGroupProperties" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdateThingGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateThingGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateThingGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateThingGroupInput"}
- if s.ThingGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupName"))
- }
- if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1))
- }
- if s.ThingGroupProperties == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingGroupProperties"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *UpdateThingGroupInput) SetExpectedVersion(v int64) *UpdateThingGroupInput {
- s.ExpectedVersion = &v
- return s
- }
- // SetThingGroupName sets the ThingGroupName field's value.
- func (s *UpdateThingGroupInput) SetThingGroupName(v string) *UpdateThingGroupInput {
- s.ThingGroupName = &v
- return s
- }
- // SetThingGroupProperties sets the ThingGroupProperties field's value.
- func (s *UpdateThingGroupInput) SetThingGroupProperties(v *ThingGroupProperties) *UpdateThingGroupInput {
- s.ThingGroupProperties = v
- return s
- }
- type UpdateThingGroupOutput struct {
- _ struct{} `type:"structure"`
- // The version of the updated thing group.
- Version *int64 `locationName:"version" type:"long"`
- }
- // String returns the string representation
- func (s UpdateThingGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateThingGroupOutput) GoString() string {
- return s.String()
- }
- // SetVersion sets the Version field's value.
- func (s *UpdateThingGroupOutput) SetVersion(v int64) *UpdateThingGroupOutput {
- s.Version = &v
- return s
- }
- type UpdateThingGroupsForThingInput struct {
- _ struct{} `type:"structure"`
- // Override dynamic thing groups with static thing groups when 10-group limit
- // is reached. If a thing belongs to 10 thing groups, and one or more of those
- // groups are dynamic thing groups, adding a thing to a static group removes
- // the thing from the last dynamic group.
- OverrideDynamicGroups *bool `locationName:"overrideDynamicGroups" type:"boolean"`
- // The groups to which the thing will be added.
- ThingGroupsToAdd []*string `locationName:"thingGroupsToAdd" type:"list"`
- // The groups from which the thing will be removed.
- ThingGroupsToRemove []*string `locationName:"thingGroupsToRemove" type:"list"`
- // The thing whose group memberships will be updated.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s UpdateThingGroupsForThingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateThingGroupsForThingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateThingGroupsForThingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateThingGroupsForThingInput"}
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetOverrideDynamicGroups sets the OverrideDynamicGroups field's value.
- func (s *UpdateThingGroupsForThingInput) SetOverrideDynamicGroups(v bool) *UpdateThingGroupsForThingInput {
- s.OverrideDynamicGroups = &v
- return s
- }
- // SetThingGroupsToAdd sets the ThingGroupsToAdd field's value.
- func (s *UpdateThingGroupsForThingInput) SetThingGroupsToAdd(v []*string) *UpdateThingGroupsForThingInput {
- s.ThingGroupsToAdd = v
- return s
- }
- // SetThingGroupsToRemove sets the ThingGroupsToRemove field's value.
- func (s *UpdateThingGroupsForThingInput) SetThingGroupsToRemove(v []*string) *UpdateThingGroupsForThingInput {
- s.ThingGroupsToRemove = v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *UpdateThingGroupsForThingInput) SetThingName(v string) *UpdateThingGroupsForThingInput {
- s.ThingName = &v
- return s
- }
- type UpdateThingGroupsForThingOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateThingGroupsForThingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateThingGroupsForThingOutput) GoString() string {
- return s.String()
- }
- // The input for the UpdateThing operation.
- type UpdateThingInput struct {
- _ struct{} `type:"structure"`
- // A list of thing attributes, a JSON string containing name-value pairs. For
- // example:
- //
- // {\"attributes\":{\"name1\":\"value2\"}}
- //
- // This data is used to add new attributes or update existing attributes.
- AttributePayload *AttributePayload `locationName:"attributePayload" type:"structure"`
- // The expected version of the thing record in the registry. If the version
- // of the record in the registry does not match the expected version specified
- // in the request, the UpdateThing request is rejected with a VersionConflictException.
- ExpectedVersion *int64 `locationName:"expectedVersion" type:"long"`
- // Remove a thing type association. If true, the association is removed.
- RemoveThingType *bool `locationName:"removeThingType" type:"boolean"`
- // The name of the thing to update.
- //
- // ThingName is a required field
- ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"`
- // The name of the thing type.
- ThingTypeName *string `locationName:"thingTypeName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s UpdateThingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateThingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateThingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateThingInput"}
- if s.ThingName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingName"))
- }
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if s.ThingTypeName != nil && len(*s.ThingTypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingTypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributePayload sets the AttributePayload field's value.
- func (s *UpdateThingInput) SetAttributePayload(v *AttributePayload) *UpdateThingInput {
- s.AttributePayload = v
- return s
- }
- // SetExpectedVersion sets the ExpectedVersion field's value.
- func (s *UpdateThingInput) SetExpectedVersion(v int64) *UpdateThingInput {
- s.ExpectedVersion = &v
- return s
- }
- // SetRemoveThingType sets the RemoveThingType field's value.
- func (s *UpdateThingInput) SetRemoveThingType(v bool) *UpdateThingInput {
- s.RemoveThingType = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *UpdateThingInput) SetThingName(v string) *UpdateThingInput {
- s.ThingName = &v
- return s
- }
- // SetThingTypeName sets the ThingTypeName field's value.
- func (s *UpdateThingInput) SetThingTypeName(v string) *UpdateThingInput {
- s.ThingTypeName = &v
- return s
- }
- // The output from the UpdateThing operation.
- type UpdateThingOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateThingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateThingOutput) GoString() string {
- return s.String()
- }
- type ValidateSecurityProfileBehaviorsInput struct {
- _ struct{} `type:"structure"`
- // Specifies the behaviors that, when violated by a device (thing), cause an
- // alert.
- //
- // Behaviors is a required field
- Behaviors []*Behavior `locationName:"behaviors" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ValidateSecurityProfileBehaviorsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ValidateSecurityProfileBehaviorsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ValidateSecurityProfileBehaviorsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ValidateSecurityProfileBehaviorsInput"}
- if s.Behaviors == nil {
- invalidParams.Add(request.NewErrParamRequired("Behaviors"))
- }
- if s.Behaviors != nil {
- for i, v := range s.Behaviors {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Behaviors", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBehaviors sets the Behaviors field's value.
- func (s *ValidateSecurityProfileBehaviorsInput) SetBehaviors(v []*Behavior) *ValidateSecurityProfileBehaviorsInput {
- s.Behaviors = v
- return s
- }
- type ValidateSecurityProfileBehaviorsOutput struct {
- _ struct{} `type:"structure"`
- // True if the behaviors were valid.
- Valid *bool `locationName:"valid" type:"boolean"`
- // The list of any errors found in the behaviors.
- ValidationErrors []*ValidationError `locationName:"validationErrors" type:"list"`
- }
- // String returns the string representation
- func (s ValidateSecurityProfileBehaviorsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ValidateSecurityProfileBehaviorsOutput) GoString() string {
- return s.String()
- }
- // SetValid sets the Valid field's value.
- func (s *ValidateSecurityProfileBehaviorsOutput) SetValid(v bool) *ValidateSecurityProfileBehaviorsOutput {
- s.Valid = &v
- return s
- }
- // SetValidationErrors sets the ValidationErrors field's value.
- func (s *ValidateSecurityProfileBehaviorsOutput) SetValidationErrors(v []*ValidationError) *ValidateSecurityProfileBehaviorsOutput {
- s.ValidationErrors = v
- return s
- }
- // Information about an error found in a behavior specification.
- type ValidationError struct {
- _ struct{} `type:"structure"`
- // The description of an error found in the behaviors.
- ErrorMessage *string `locationName:"errorMessage" type:"string"`
- }
- // String returns the string representation
- func (s ValidationError) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ValidationError) GoString() string {
- return s.String()
- }
- // SetErrorMessage sets the ErrorMessage field's value.
- func (s *ValidationError) SetErrorMessage(v string) *ValidationError {
- s.ErrorMessage = &v
- return s
- }
- // Information about a Device Defender security profile behavior violation.
- type ViolationEvent struct {
- _ struct{} `type:"structure"`
- // The behavior which was violated.
- Behavior *Behavior `locationName:"behavior" type:"structure"`
- // The value of the metric (the measurement).
- MetricValue *MetricValue `locationName:"metricValue" type:"structure"`
- // The name of the security profile whose behavior was violated.
- SecurityProfileName *string `locationName:"securityProfileName" min:"1" type:"string"`
- // The name of the thing responsible for the violation event.
- ThingName *string `locationName:"thingName" min:"1" type:"string"`
- // The time the violation event occurred.
- ViolationEventTime *time.Time `locationName:"violationEventTime" type:"timestamp"`
- // The type of violation event.
- ViolationEventType *string `locationName:"violationEventType" type:"string" enum:"ViolationEventType"`
- // The ID of the violation event.
- ViolationId *string `locationName:"violationId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ViolationEvent) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ViolationEvent) GoString() string {
- return s.String()
- }
- // SetBehavior sets the Behavior field's value.
- func (s *ViolationEvent) SetBehavior(v *Behavior) *ViolationEvent {
- s.Behavior = v
- return s
- }
- // SetMetricValue sets the MetricValue field's value.
- func (s *ViolationEvent) SetMetricValue(v *MetricValue) *ViolationEvent {
- s.MetricValue = v
- return s
- }
- // SetSecurityProfileName sets the SecurityProfileName field's value.
- func (s *ViolationEvent) SetSecurityProfileName(v string) *ViolationEvent {
- s.SecurityProfileName = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *ViolationEvent) SetThingName(v string) *ViolationEvent {
- s.ThingName = &v
- return s
- }
- // SetViolationEventTime sets the ViolationEventTime field's value.
- func (s *ViolationEvent) SetViolationEventTime(v time.Time) *ViolationEvent {
- s.ViolationEventTime = &v
- return s
- }
- // SetViolationEventType sets the ViolationEventType field's value.
- func (s *ViolationEvent) SetViolationEventType(v string) *ViolationEvent {
- s.ViolationEventType = &v
- return s
- }
- // SetViolationId sets the ViolationId field's value.
- func (s *ViolationEvent) SetViolationId(v string) *ViolationEvent {
- s.ViolationId = &v
- return s
- }
- const (
- // AbortActionCancel is a AbortAction enum value
- AbortActionCancel = "CANCEL"
- )
- const (
- // ActionTypePublish is a ActionType enum value
- ActionTypePublish = "PUBLISH"
- // ActionTypeSubscribe is a ActionType enum value
- ActionTypeSubscribe = "SUBSCRIBE"
- // ActionTypeReceive is a ActionType enum value
- ActionTypeReceive = "RECEIVE"
- // ActionTypeConnect is a ActionType enum value
- ActionTypeConnect = "CONNECT"
- )
- // The type of alert target: one of "SNS".
- const (
- // AlertTargetTypeSns is a AlertTargetType enum value
- AlertTargetTypeSns = "SNS"
- )
- const (
- // AuditCheckRunStatusInProgress is a AuditCheckRunStatus enum value
- AuditCheckRunStatusInProgress = "IN_PROGRESS"
- // AuditCheckRunStatusWaitingForDataCollection is a AuditCheckRunStatus enum value
- AuditCheckRunStatusWaitingForDataCollection = "WAITING_FOR_DATA_COLLECTION"
- // AuditCheckRunStatusCanceled is a AuditCheckRunStatus enum value
- AuditCheckRunStatusCanceled = "CANCELED"
- // AuditCheckRunStatusCompletedCompliant is a AuditCheckRunStatus enum value
- AuditCheckRunStatusCompletedCompliant = "COMPLETED_COMPLIANT"
- // AuditCheckRunStatusCompletedNonCompliant is a AuditCheckRunStatus enum value
- AuditCheckRunStatusCompletedNonCompliant = "COMPLETED_NON_COMPLIANT"
- // AuditCheckRunStatusFailed is a AuditCheckRunStatus enum value
- AuditCheckRunStatusFailed = "FAILED"
- )
- const (
- // AuditFindingSeverityCritical is a AuditFindingSeverity enum value
- AuditFindingSeverityCritical = "CRITICAL"
- // AuditFindingSeverityHigh is a AuditFindingSeverity enum value
- AuditFindingSeverityHigh = "HIGH"
- // AuditFindingSeverityMedium is a AuditFindingSeverity enum value
- AuditFindingSeverityMedium = "MEDIUM"
- // AuditFindingSeverityLow is a AuditFindingSeverity enum value
- AuditFindingSeverityLow = "LOW"
- )
- const (
- // AuditFrequencyDaily is a AuditFrequency enum value
- AuditFrequencyDaily = "DAILY"
- // AuditFrequencyWeekly is a AuditFrequency enum value
- AuditFrequencyWeekly = "WEEKLY"
- // AuditFrequencyBiweekly is a AuditFrequency enum value
- AuditFrequencyBiweekly = "BIWEEKLY"
- // AuditFrequencyMonthly is a AuditFrequency enum value
- AuditFrequencyMonthly = "MONTHLY"
- )
- const (
- // AuditNotificationTypeSns is a AuditNotificationType enum value
- AuditNotificationTypeSns = "SNS"
- )
- const (
- // AuditTaskStatusInProgress is a AuditTaskStatus enum value
- AuditTaskStatusInProgress = "IN_PROGRESS"
- // AuditTaskStatusCompleted is a AuditTaskStatus enum value
- AuditTaskStatusCompleted = "COMPLETED"
- // AuditTaskStatusFailed is a AuditTaskStatus enum value
- AuditTaskStatusFailed = "FAILED"
- // AuditTaskStatusCanceled is a AuditTaskStatus enum value
- AuditTaskStatusCanceled = "CANCELED"
- )
- const (
- // AuditTaskTypeOnDemandAuditTask is a AuditTaskType enum value
- AuditTaskTypeOnDemandAuditTask = "ON_DEMAND_AUDIT_TASK"
- // AuditTaskTypeScheduledAuditTask is a AuditTaskType enum value
- AuditTaskTypeScheduledAuditTask = "SCHEDULED_AUDIT_TASK"
- )
- const (
- // AuthDecisionAllowed is a AuthDecision enum value
- AuthDecisionAllowed = "ALLOWED"
- // AuthDecisionExplicitDeny is a AuthDecision enum value
- AuthDecisionExplicitDeny = "EXPLICIT_DENY"
- // AuthDecisionImplicitDeny is a AuthDecision enum value
- AuthDecisionImplicitDeny = "IMPLICIT_DENY"
- )
- const (
- // AuthorizerStatusActive is a AuthorizerStatus enum value
- AuthorizerStatusActive = "ACTIVE"
- // AuthorizerStatusInactive is a AuthorizerStatus enum value
- AuthorizerStatusInactive = "INACTIVE"
- )
- const (
- // AutoRegistrationStatusEnable is a AutoRegistrationStatus enum value
- AutoRegistrationStatusEnable = "ENABLE"
- // AutoRegistrationStatusDisable is a AutoRegistrationStatus enum value
- AutoRegistrationStatusDisable = "DISABLE"
- )
- const (
- // CACertificateStatusActive is a CACertificateStatus enum value
- CACertificateStatusActive = "ACTIVE"
- // CACertificateStatusInactive is a CACertificateStatus enum value
- CACertificateStatusInactive = "INACTIVE"
- )
- const (
- // CannedAccessControlListPrivate is a CannedAccessControlList enum value
- CannedAccessControlListPrivate = "private"
- // CannedAccessControlListPublicRead is a CannedAccessControlList enum value
- CannedAccessControlListPublicRead = "public-read"
- // CannedAccessControlListPublicReadWrite is a CannedAccessControlList enum value
- CannedAccessControlListPublicReadWrite = "public-read-write"
- // CannedAccessControlListAwsExecRead is a CannedAccessControlList enum value
- CannedAccessControlListAwsExecRead = "aws-exec-read"
- // CannedAccessControlListAuthenticatedRead is a CannedAccessControlList enum value
- CannedAccessControlListAuthenticatedRead = "authenticated-read"
- // CannedAccessControlListBucketOwnerRead is a CannedAccessControlList enum value
- CannedAccessControlListBucketOwnerRead = "bucket-owner-read"
- // CannedAccessControlListBucketOwnerFullControl is a CannedAccessControlList enum value
- CannedAccessControlListBucketOwnerFullControl = "bucket-owner-full-control"
- // CannedAccessControlListLogDeliveryWrite is a CannedAccessControlList enum value
- CannedAccessControlListLogDeliveryWrite = "log-delivery-write"
- )
- const (
- // CertificateStatusActive is a CertificateStatus enum value
- CertificateStatusActive = "ACTIVE"
- // CertificateStatusInactive is a CertificateStatus enum value
- CertificateStatusInactive = "INACTIVE"
- // CertificateStatusRevoked is a CertificateStatus enum value
- CertificateStatusRevoked = "REVOKED"
- // CertificateStatusPendingTransfer is a CertificateStatus enum value
- CertificateStatusPendingTransfer = "PENDING_TRANSFER"
- // CertificateStatusRegisterInactive is a CertificateStatus enum value
- CertificateStatusRegisterInactive = "REGISTER_INACTIVE"
- // CertificateStatusPendingActivation is a CertificateStatus enum value
- CertificateStatusPendingActivation = "PENDING_ACTIVATION"
- )
- const (
- // ComparisonOperatorLessThan is a ComparisonOperator enum value
- ComparisonOperatorLessThan = "less-than"
- // ComparisonOperatorLessThanEquals is a ComparisonOperator enum value
- ComparisonOperatorLessThanEquals = "less-than-equals"
- // ComparisonOperatorGreaterThan is a ComparisonOperator enum value
- ComparisonOperatorGreaterThan = "greater-than"
- // ComparisonOperatorGreaterThanEquals is a ComparisonOperator enum value
- ComparisonOperatorGreaterThanEquals = "greater-than-equals"
- // ComparisonOperatorInCidrSet is a ComparisonOperator enum value
- ComparisonOperatorInCidrSet = "in-cidr-set"
- // ComparisonOperatorNotInCidrSet is a ComparisonOperator enum value
- ComparisonOperatorNotInCidrSet = "not-in-cidr-set"
- // ComparisonOperatorInPortSet is a ComparisonOperator enum value
- ComparisonOperatorInPortSet = "in-port-set"
- // ComparisonOperatorNotInPortSet is a ComparisonOperator enum value
- ComparisonOperatorNotInPortSet = "not-in-port-set"
- )
- const (
- // DayOfWeekSun is a DayOfWeek enum value
- DayOfWeekSun = "SUN"
- // DayOfWeekMon is a DayOfWeek enum value
- DayOfWeekMon = "MON"
- // DayOfWeekTue is a DayOfWeek enum value
- DayOfWeekTue = "TUE"
- // DayOfWeekWed is a DayOfWeek enum value
- DayOfWeekWed = "WED"
- // DayOfWeekThu is a DayOfWeek enum value
- DayOfWeekThu = "THU"
- // DayOfWeekFri is a DayOfWeek enum value
- DayOfWeekFri = "FRI"
- // DayOfWeekSat is a DayOfWeek enum value
- DayOfWeekSat = "SAT"
- )
- const (
- // DynamicGroupStatusActive is a DynamicGroupStatus enum value
- DynamicGroupStatusActive = "ACTIVE"
- // DynamicGroupStatusBuilding is a DynamicGroupStatus enum value
- DynamicGroupStatusBuilding = "BUILDING"
- // DynamicGroupStatusRebuilding is a DynamicGroupStatus enum value
- DynamicGroupStatusRebuilding = "REBUILDING"
- )
- const (
- // DynamoKeyTypeString is a DynamoKeyType enum value
- DynamoKeyTypeString = "STRING"
- // DynamoKeyTypeNumber is a DynamoKeyType enum value
- DynamoKeyTypeNumber = "NUMBER"
- )
- const (
- // EventTypeThing is a EventType enum value
- EventTypeThing = "THING"
- // EventTypeThingGroup is a EventType enum value
- EventTypeThingGroup = "THING_GROUP"
- // EventTypeThingType is a EventType enum value
- EventTypeThingType = "THING_TYPE"
- // EventTypeThingGroupMembership is a EventType enum value
- EventTypeThingGroupMembership = "THING_GROUP_MEMBERSHIP"
- // EventTypeThingGroupHierarchy is a EventType enum value
- EventTypeThingGroupHierarchy = "THING_GROUP_HIERARCHY"
- // EventTypeThingTypeAssociation is a EventType enum value
- EventTypeThingTypeAssociation = "THING_TYPE_ASSOCIATION"
- // EventTypeJob is a EventType enum value
- EventTypeJob = "JOB"
- // EventTypeJobExecution is a EventType enum value
- EventTypeJobExecution = "JOB_EXECUTION"
- // EventTypePolicy is a EventType enum value
- EventTypePolicy = "POLICY"
- // EventTypeCertificate is a EventType enum value
- EventTypeCertificate = "CERTIFICATE"
- // EventTypeCaCertificate is a EventType enum value
- EventTypeCaCertificate = "CA_CERTIFICATE"
- )
- const (
- // IndexStatusActive is a IndexStatus enum value
- IndexStatusActive = "ACTIVE"
- // IndexStatusBuilding is a IndexStatus enum value
- IndexStatusBuilding = "BUILDING"
- // IndexStatusRebuilding is a IndexStatus enum value
- IndexStatusRebuilding = "REBUILDING"
- )
- const (
- // JobExecutionFailureTypeFailed is a JobExecutionFailureType enum value
- JobExecutionFailureTypeFailed = "FAILED"
- // JobExecutionFailureTypeRejected is a JobExecutionFailureType enum value
- JobExecutionFailureTypeRejected = "REJECTED"
- // JobExecutionFailureTypeTimedOut is a JobExecutionFailureType enum value
- JobExecutionFailureTypeTimedOut = "TIMED_OUT"
- // JobExecutionFailureTypeAll is a JobExecutionFailureType enum value
- JobExecutionFailureTypeAll = "ALL"
- )
- const (
- // JobExecutionStatusQueued is a JobExecutionStatus enum value
- JobExecutionStatusQueued = "QUEUED"
- // JobExecutionStatusInProgress is a JobExecutionStatus enum value
- JobExecutionStatusInProgress = "IN_PROGRESS"
- // JobExecutionStatusSucceeded is a JobExecutionStatus enum value
- JobExecutionStatusSucceeded = "SUCCEEDED"
- // JobExecutionStatusFailed is a JobExecutionStatus enum value
- JobExecutionStatusFailed = "FAILED"
- // JobExecutionStatusTimedOut is a JobExecutionStatus enum value
- JobExecutionStatusTimedOut = "TIMED_OUT"
- // JobExecutionStatusRejected is a JobExecutionStatus enum value
- JobExecutionStatusRejected = "REJECTED"
- // JobExecutionStatusRemoved is a JobExecutionStatus enum value
- JobExecutionStatusRemoved = "REMOVED"
- // JobExecutionStatusCanceled is a JobExecutionStatus enum value
- JobExecutionStatusCanceled = "CANCELED"
- )
- const (
- // JobStatusInProgress is a JobStatus enum value
- JobStatusInProgress = "IN_PROGRESS"
- // JobStatusCanceled is a JobStatus enum value
- JobStatusCanceled = "CANCELED"
- // JobStatusCompleted is a JobStatus enum value
- JobStatusCompleted = "COMPLETED"
- // JobStatusDeletionInProgress is a JobStatus enum value
- JobStatusDeletionInProgress = "DELETION_IN_PROGRESS"
- )
- const (
- // LogLevelDebug is a LogLevel enum value
- LogLevelDebug = "DEBUG"
- // LogLevelInfo is a LogLevel enum value
- LogLevelInfo = "INFO"
- // LogLevelError is a LogLevel enum value
- LogLevelError = "ERROR"
- // LogLevelWarn is a LogLevel enum value
- LogLevelWarn = "WARN"
- // LogLevelDisabled is a LogLevel enum value
- LogLevelDisabled = "DISABLED"
- )
- const (
- // LogTargetTypeDefault is a LogTargetType enum value
- LogTargetTypeDefault = "DEFAULT"
- // LogTargetTypeThingGroup is a LogTargetType enum value
- LogTargetTypeThingGroup = "THING_GROUP"
- )
- const (
- // MessageFormatRaw is a MessageFormat enum value
- MessageFormatRaw = "RAW"
- // MessageFormatJson is a MessageFormat enum value
- MessageFormatJson = "JSON"
- )
- const (
- // OTAUpdateStatusCreatePending is a OTAUpdateStatus enum value
- OTAUpdateStatusCreatePending = "CREATE_PENDING"
- // OTAUpdateStatusCreateInProgress is a OTAUpdateStatus enum value
- OTAUpdateStatusCreateInProgress = "CREATE_IN_PROGRESS"
- // OTAUpdateStatusCreateComplete is a OTAUpdateStatus enum value
- OTAUpdateStatusCreateComplete = "CREATE_COMPLETE"
- // OTAUpdateStatusCreateFailed is a OTAUpdateStatus enum value
- OTAUpdateStatusCreateFailed = "CREATE_FAILED"
- )
- const (
- // ReportTypeErrors is a ReportType enum value
- ReportTypeErrors = "ERRORS"
- // ReportTypeResults is a ReportType enum value
- ReportTypeResults = "RESULTS"
- )
- const (
- // ResourceTypeDeviceCertificate is a ResourceType enum value
- ResourceTypeDeviceCertificate = "DEVICE_CERTIFICATE"
- // ResourceTypeCaCertificate is a ResourceType enum value
- ResourceTypeCaCertificate = "CA_CERTIFICATE"
- // ResourceTypeIotPolicy is a ResourceType enum value
- ResourceTypeIotPolicy = "IOT_POLICY"
- // ResourceTypeCognitoIdentityPool is a ResourceType enum value
- ResourceTypeCognitoIdentityPool = "COGNITO_IDENTITY_POOL"
- // ResourceTypeClientId is a ResourceType enum value
- ResourceTypeClientId = "CLIENT_ID"
- // ResourceTypeAccountSettings is a ResourceType enum value
- ResourceTypeAccountSettings = "ACCOUNT_SETTINGS"
- )
- const (
- // StatusInProgress is a Status enum value
- StatusInProgress = "InProgress"
- // StatusCompleted is a Status enum value
- StatusCompleted = "Completed"
- // StatusFailed is a Status enum value
- StatusFailed = "Failed"
- // StatusCancelled is a Status enum value
- StatusCancelled = "Cancelled"
- // StatusCancelling is a Status enum value
- StatusCancelling = "Cancelling"
- )
- const (
- // TargetSelectionContinuous is a TargetSelection enum value
- TargetSelectionContinuous = "CONTINUOUS"
- // TargetSelectionSnapshot is a TargetSelection enum value
- TargetSelectionSnapshot = "SNAPSHOT"
- )
- const (
- // ThingConnectivityIndexingModeOff is a ThingConnectivityIndexingMode enum value
- ThingConnectivityIndexingModeOff = "OFF"
- // ThingConnectivityIndexingModeStatus is a ThingConnectivityIndexingMode enum value
- ThingConnectivityIndexingModeStatus = "STATUS"
- )
- const (
- // ThingGroupIndexingModeOff is a ThingGroupIndexingMode enum value
- ThingGroupIndexingModeOff = "OFF"
- // ThingGroupIndexingModeOn is a ThingGroupIndexingMode enum value
- ThingGroupIndexingModeOn = "ON"
- )
- const (
- // ThingIndexingModeOff is a ThingIndexingMode enum value
- ThingIndexingModeOff = "OFF"
- // ThingIndexingModeRegistry is a ThingIndexingMode enum value
- ThingIndexingModeRegistry = "REGISTRY"
- // ThingIndexingModeRegistryAndShadow is a ThingIndexingMode enum value
- ThingIndexingModeRegistryAndShadow = "REGISTRY_AND_SHADOW"
- )
- const (
- // ViolationEventTypeInAlarm is a ViolationEventType enum value
- ViolationEventTypeInAlarm = "in-alarm"
- // ViolationEventTypeAlarmCleared is a ViolationEventType enum value
- ViolationEventTypeAlarmCleared = "alarm-cleared"
- // ViolationEventTypeAlarmInvalidated is a ViolationEventType enum value
- ViolationEventTypeAlarmInvalidated = "alarm-invalidated"
- )
|