| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package iot provides a client for AWS IoT.
- package iot
- import (
- "fmt"
- "time"
- "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 can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AcceptCertificateTransfer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &AcceptCertificateTransferOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) AcceptCertificateTransfer(input *AcceptCertificateTransferInput) (*AcceptCertificateTransferOutput, error) {
- req, out := c.AcceptCertificateTransferRequest(input)
- err := req.Send()
- return out, err
- }
- const opAttachPrincipalPolicy = "AttachPrincipalPolicy"
- // AttachPrincipalPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the AttachPrincipalPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AttachPrincipalPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *IoT) AttachPrincipalPolicyRequest(input *AttachPrincipalPolicyInput) (req *request.Request, output *AttachPrincipalPolicyOutput) {
- op := &request.Operation{
- Name: opAttachPrincipalPolicy,
- HTTPMethod: "PUT",
- HTTPPath: "/principal-policies/{policyName}",
- }
- if input == nil {
- input = &AttachPrincipalPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &AttachPrincipalPolicyOutput{}
- req.Data = output
- return
- }
- // Attaches the specified policy to the specified principal (certificate or
- // other credential).
- func (c *IoT) AttachPrincipalPolicy(input *AttachPrincipalPolicyInput) (*AttachPrincipalPolicyOutput, error) {
- req, out := c.AttachPrincipalPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opAttachThingPrincipal = "AttachThingPrincipal"
- // AttachThingPrincipalRequest generates a "aws/request.Request" representing the
- // client's request for the AttachThingPrincipal operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AttachThingPrincipal method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &AttachThingPrincipalOutput{}
- req.Data = output
- return
- }
- // Attaches the specified principal to the specified thing.
- func (c *IoT) AttachThingPrincipal(input *AttachThingPrincipalInput) (*AttachThingPrincipalOutput, error) {
- req, out := c.AttachThingPrincipalRequest(input)
- err := req.Send()
- return out, err
- }
- const opCancelCertificateTransfer = "CancelCertificateTransfer"
- // CancelCertificateTransferRequest generates a "aws/request.Request" representing the
- // client's request for the CancelCertificateTransfer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CancelCertificateTransfer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &CancelCertificateTransferOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) CancelCertificateTransfer(input *CancelCertificateTransferInput) (*CancelCertificateTransferOutput, error) {
- req, out := c.CancelCertificateTransferRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateCertificateFromCsr = "CreateCertificateFromCsr"
- // CreateCertificateFromCsrRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCertificateFromCsr operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateCertificateFromCsr method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateCertificateFromCsrOutput{}
- req.Data = output
- return
- }
- // Creates an X.509 certificate using the specified certificate signing request.
- //
- // 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"
- func (c *IoT) CreateCertificateFromCsr(input *CreateCertificateFromCsrInput) (*CreateCertificateFromCsrOutput, error) {
- req, out := c.CreateCertificateFromCsrRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateKeysAndCertificate = "CreateKeysAndCertificate"
- // CreateKeysAndCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the CreateKeysAndCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateKeysAndCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateKeysAndCertificateOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) CreateKeysAndCertificate(input *CreateKeysAndCertificateInput) (*CreateKeysAndCertificateOutput, error) {
- req, out := c.CreateKeysAndCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreatePolicy = "CreatePolicy"
- // CreatePolicyRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreatePolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &CreatePolicyOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) {
- req, out := c.CreatePolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreatePolicyVersion = "CreatePolicyVersion"
- // CreatePolicyVersionRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePolicyVersion operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreatePolicyVersion method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &CreatePolicyVersionOutput{}
- req.Data = output
- return
- }
- // 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).
- func (c *IoT) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) {
- req, out := c.CreatePolicyVersionRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateThing = "CreateThing"
- // CreateThingRequest generates a "aws/request.Request" representing the
- // client's request for the CreateThing operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateThing method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateThingOutput{}
- req.Data = output
- return
- }
- // Creates a thing record in the thing registry.
- func (c *IoT) CreateThing(input *CreateThingInput) (*CreateThingOutput, error) {
- req, out := c.CreateThingRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateThingType = "CreateThingType"
- // CreateThingTypeRequest generates a "aws/request.Request" representing the
- // client's request for the CreateThingType operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateThingType method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateThingTypeOutput{}
- req.Data = output
- return
- }
- // Creates a new thing type.
- func (c *IoT) CreateThingType(input *CreateThingTypeInput) (*CreateThingTypeOutput, error) {
- req, out := c.CreateThingTypeRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateTopicRule = "CreateTopicRule"
- // CreateTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTopicRule operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateTopicRule method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &CreateTopicRuleOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) CreateTopicRule(input *CreateTopicRuleInput) (*CreateTopicRuleOutput, error) {
- req, out := c.CreateTopicRuleRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteCACertificate = "DeleteCACertificate"
- // DeleteCACertificateRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCACertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteCACertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteCACertificateOutput{}
- req.Data = output
- return
- }
- // Deletes a registered CA certificate.
- func (c *IoT) DeleteCACertificate(input *DeleteCACertificateInput) (*DeleteCACertificateOutput, error) {
- req, out := c.DeleteCACertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteCertificate = "DeleteCertificate"
- // DeleteCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteCertificateOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) {
- req, out := c.DeleteCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeletePolicy = "DeletePolicy"
- // DeletePolicyRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeletePolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeletePolicyOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) {
- req, out := c.DeletePolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeletePolicyVersion = "DeletePolicyVersion"
- // DeletePolicyVersionRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePolicyVersion operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeletePolicyVersion method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeletePolicyVersionOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) {
- req, out := c.DeletePolicyVersionRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteRegistrationCode = "DeleteRegistrationCode"
- // DeleteRegistrationCodeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteRegistrationCode operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteRegistrationCode method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteRegistrationCodeOutput{}
- req.Data = output
- return
- }
- // Deletes a CA certificate registration code.
- func (c *IoT) DeleteRegistrationCode(input *DeleteRegistrationCodeInput) (*DeleteRegistrationCodeOutput, error) {
- req, out := c.DeleteRegistrationCodeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteThing = "DeleteThing"
- // DeleteThingRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteThing operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteThing method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteThingOutput{}
- req.Data = output
- return
- }
- // Deletes the specified thing.
- func (c *IoT) DeleteThing(input *DeleteThingInput) (*DeleteThingOutput, error) {
- req, out := c.DeleteThingRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteThingType = "DeleteThingType"
- // DeleteThingTypeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteThingType operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteThingType method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteThingTypeOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) DeleteThingType(input *DeleteThingTypeInput) (*DeleteThingTypeOutput, error) {
- req, out := c.DeleteThingTypeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteTopicRule = "DeleteTopicRule"
- // DeleteTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteTopicRule operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteTopicRule method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteTopicRuleOutput{}
- req.Data = output
- return
- }
- // Deletes the specified rule.
- func (c *IoT) DeleteTopicRule(input *DeleteTopicRuleInput) (*DeleteTopicRuleOutput, error) {
- req, out := c.DeleteTopicRuleRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeprecateThingType = "DeprecateThingType"
- // DeprecateThingTypeRequest generates a "aws/request.Request" representing the
- // client's request for the DeprecateThingType operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeprecateThingType method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DeprecateThingTypeOutput{}
- req.Data = output
- return
- }
- // Deprecates a thing type. You can not associate new things with deprecated
- // thing type.
- func (c *IoT) DeprecateThingType(input *DeprecateThingTypeInput) (*DeprecateThingTypeOutput, error) {
- req, out := c.DeprecateThingTypeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeCACertificate = "DescribeCACertificate"
- // DescribeCACertificateRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCACertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeCACertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeCACertificateOutput{}
- req.Data = output
- return
- }
- // Describes a registered CA certificate.
- func (c *IoT) DescribeCACertificate(input *DescribeCACertificateInput) (*DescribeCACertificateOutput, error) {
- req, out := c.DescribeCACertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeCertificate = "DescribeCertificate"
- // DescribeCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeCertificateOutput{}
- req.Data = output
- return
- }
- // Gets information about the specified certificate.
- func (c *IoT) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) {
- req, out := c.DescribeCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeEndpoint = "DescribeEndpoint"
- // DescribeEndpointRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeEndpoint operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeEndpoint method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeEndpointOutput{}
- req.Data = output
- return
- }
- // Returns a unique endpoint specific to the AWS account making the call.
- func (c *IoT) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) {
- req, out := c.DescribeEndpointRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeThing = "DescribeThing"
- // DescribeThingRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeThing operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeThing method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeThingOutput{}
- req.Data = output
- return
- }
- // Gets information about the specified thing.
- func (c *IoT) DescribeThing(input *DescribeThingInput) (*DescribeThingOutput, error) {
- req, out := c.DescribeThingRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeThingType = "DescribeThingType"
- // DescribeThingTypeRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeThingType operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeThingType method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeThingTypeOutput{}
- req.Data = output
- return
- }
- // Gets information about the specified thing type.
- func (c *IoT) DescribeThingType(input *DescribeThingTypeInput) (*DescribeThingTypeOutput, error) {
- req, out := c.DescribeThingTypeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDetachPrincipalPolicy = "DetachPrincipalPolicy"
- // DetachPrincipalPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the DetachPrincipalPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DetachPrincipalPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *IoT) DetachPrincipalPolicyRequest(input *DetachPrincipalPolicyInput) (req *request.Request, output *DetachPrincipalPolicyOutput) {
- op := &request.Operation{
- Name: opDetachPrincipalPolicy,
- HTTPMethod: "DELETE",
- HTTPPath: "/principal-policies/{policyName}",
- }
- if input == nil {
- input = &DetachPrincipalPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DetachPrincipalPolicyOutput{}
- req.Data = output
- return
- }
- // Removes the specified policy from the specified certificate.
- func (c *IoT) DetachPrincipalPolicy(input *DetachPrincipalPolicyInput) (*DetachPrincipalPolicyOutput, error) {
- req, out := c.DetachPrincipalPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opDetachThingPrincipal = "DetachThingPrincipal"
- // DetachThingPrincipalRequest generates a "aws/request.Request" representing the
- // client's request for the DetachThingPrincipal operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DetachThingPrincipal method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DetachThingPrincipalOutput{}
- req.Data = output
- return
- }
- // Detaches the specified principal from the specified thing.
- func (c *IoT) DetachThingPrincipal(input *DetachThingPrincipalInput) (*DetachThingPrincipalOutput, error) {
- req, out := c.DetachThingPrincipalRequest(input)
- err := req.Send()
- return out, err
- }
- const opDisableTopicRule = "DisableTopicRule"
- // DisableTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the DisableTopicRule operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DisableTopicRule method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DisableTopicRuleOutput{}
- req.Data = output
- return
- }
- // Disables the specified rule.
- func (c *IoT) DisableTopicRule(input *DisableTopicRuleInput) (*DisableTopicRuleOutput, error) {
- req, out := c.DisableTopicRuleRequest(input)
- err := req.Send()
- return out, err
- }
- const opEnableTopicRule = "EnableTopicRule"
- // EnableTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the EnableTopicRule operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the EnableTopicRule method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &EnableTopicRuleOutput{}
- req.Data = output
- return
- }
- // Enables the specified rule.
- func (c *IoT) EnableTopicRule(input *EnableTopicRuleInput) (*EnableTopicRuleOutput, error) {
- req, out := c.EnableTopicRuleRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetLoggingOptions = "GetLoggingOptions"
- // GetLoggingOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the GetLoggingOptions operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetLoggingOptions method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &GetLoggingOptionsOutput{}
- req.Data = output
- return
- }
- // Gets the logging options.
- func (c *IoT) GetLoggingOptions(input *GetLoggingOptionsInput) (*GetLoggingOptionsOutput, error) {
- req, out := c.GetLoggingOptionsRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetPolicy = "GetPolicy"
- // GetPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the GetPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &GetPolicyOutput{}
- req.Data = output
- return
- }
- // Gets information about the specified policy with the policy document of the
- // default version.
- func (c *IoT) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) {
- req, out := c.GetPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetPolicyVersion = "GetPolicyVersion"
- // GetPolicyVersionRequest generates a "aws/request.Request" representing the
- // client's request for the GetPolicyVersion operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetPolicyVersion method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &GetPolicyVersionOutput{}
- req.Data = output
- return
- }
- // Gets information about the specified policy version.
- func (c *IoT) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) {
- req, out := c.GetPolicyVersionRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetRegistrationCode = "GetRegistrationCode"
- // GetRegistrationCodeRequest generates a "aws/request.Request" representing the
- // client's request for the GetRegistrationCode operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetRegistrationCode method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &GetRegistrationCodeOutput{}
- req.Data = output
- return
- }
- // Gets a registration code used to register a CA certificate with AWS IoT.
- func (c *IoT) GetRegistrationCode(input *GetRegistrationCodeInput) (*GetRegistrationCodeOutput, error) {
- req, out := c.GetRegistrationCodeRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetTopicRule = "GetTopicRule"
- // GetTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the GetTopicRule operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetTopicRule method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &GetTopicRuleOutput{}
- req.Data = output
- return
- }
- // Gets information about the specified rule.
- func (c *IoT) GetTopicRule(input *GetTopicRuleInput) (*GetTopicRuleOutput, error) {
- req, out := c.GetTopicRuleRequest(input)
- err := req.Send()
- return out, err
- }
- const opListCACertificates = "ListCACertificates"
- // ListCACertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the ListCACertificates operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListCACertificates method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListCACertificatesOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) ListCACertificates(input *ListCACertificatesInput) (*ListCACertificatesOutput, error) {
- req, out := c.ListCACertificatesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListCertificates = "ListCertificates"
- // ListCertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the ListCertificates operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListCertificates method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListCertificatesOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) {
- req, out := c.ListCertificatesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListCertificatesByCA = "ListCertificatesByCA"
- // ListCertificatesByCARequest generates a "aws/request.Request" representing the
- // client's request for the ListCertificatesByCA operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListCertificatesByCA method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListCertificatesByCAOutput{}
- req.Data = output
- return
- }
- // List the device certificates signed by the specified CA certificate.
- func (c *IoT) ListCertificatesByCA(input *ListCertificatesByCAInput) (*ListCertificatesByCAOutput, error) {
- req, out := c.ListCertificatesByCARequest(input)
- err := req.Send()
- return out, err
- }
- const opListOutgoingCertificates = "ListOutgoingCertificates"
- // ListOutgoingCertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the ListOutgoingCertificates operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListOutgoingCertificates method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListOutgoingCertificatesOutput{}
- req.Data = output
- return
- }
- // Lists certificates that are being transfered but not yet accepted.
- func (c *IoT) ListOutgoingCertificates(input *ListOutgoingCertificatesInput) (*ListOutgoingCertificatesOutput, error) {
- req, out := c.ListOutgoingCertificatesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListPolicies = "ListPolicies"
- // ListPoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the ListPolicies operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListPolicies method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListPoliciesOutput{}
- req.Data = output
- return
- }
- // Lists your policies.
- func (c *IoT) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) {
- req, out := c.ListPoliciesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListPolicyPrincipals = "ListPolicyPrincipals"
- // ListPolicyPrincipalsRequest generates a "aws/request.Request" representing the
- // client's request for the ListPolicyPrincipals operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListPolicyPrincipals method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *IoT) ListPolicyPrincipalsRequest(input *ListPolicyPrincipalsInput) (req *request.Request, output *ListPolicyPrincipalsOutput) {
- op := &request.Operation{
- Name: opListPolicyPrincipals,
- HTTPMethod: "GET",
- HTTPPath: "/policy-principals",
- }
- if input == nil {
- input = &ListPolicyPrincipalsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListPolicyPrincipalsOutput{}
- req.Data = output
- return
- }
- // Lists the principals associated with the specified policy.
- func (c *IoT) ListPolicyPrincipals(input *ListPolicyPrincipalsInput) (*ListPolicyPrincipalsOutput, error) {
- req, out := c.ListPolicyPrincipalsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListPolicyVersions = "ListPolicyVersions"
- // ListPolicyVersionsRequest generates a "aws/request.Request" representing the
- // client's request for the ListPolicyVersions operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListPolicyVersions method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListPolicyVersionsOutput{}
- req.Data = output
- return
- }
- // Lists the versions of the specified policy and identifies the default version.
- func (c *IoT) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) {
- req, out := c.ListPolicyVersionsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListPrincipalPolicies = "ListPrincipalPolicies"
- // ListPrincipalPoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the ListPrincipalPolicies operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListPrincipalPolicies method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *IoT) ListPrincipalPoliciesRequest(input *ListPrincipalPoliciesInput) (req *request.Request, output *ListPrincipalPoliciesOutput) {
- op := &request.Operation{
- Name: opListPrincipalPolicies,
- HTTPMethod: "GET",
- HTTPPath: "/principal-policies",
- }
- if input == nil {
- input = &ListPrincipalPoliciesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListPrincipalPoliciesOutput{}
- req.Data = output
- return
- }
- // 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).
- func (c *IoT) ListPrincipalPolicies(input *ListPrincipalPoliciesInput) (*ListPrincipalPoliciesOutput, error) {
- req, out := c.ListPrincipalPoliciesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListPrincipalThings = "ListPrincipalThings"
- // ListPrincipalThingsRequest generates a "aws/request.Request" representing the
- // client's request for the ListPrincipalThings operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListPrincipalThings method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListPrincipalThingsOutput{}
- req.Data = output
- return
- }
- // Lists the things associated with the specified principal.
- func (c *IoT) ListPrincipalThings(input *ListPrincipalThingsInput) (*ListPrincipalThingsOutput, error) {
- req, out := c.ListPrincipalThingsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListThingPrincipals = "ListThingPrincipals"
- // ListThingPrincipalsRequest generates a "aws/request.Request" representing the
- // client's request for the ListThingPrincipals operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListThingPrincipals method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListThingPrincipalsOutput{}
- req.Data = output
- return
- }
- // Lists the principals associated with the specified thing.
- func (c *IoT) ListThingPrincipals(input *ListThingPrincipalsInput) (*ListThingPrincipalsOutput, error) {
- req, out := c.ListThingPrincipalsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListThingTypes = "ListThingTypes"
- // ListThingTypesRequest generates a "aws/request.Request" representing the
- // client's request for the ListThingTypes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListThingTypes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListThingTypesOutput{}
- req.Data = output
- return
- }
- // Lists the existing thing types.
- func (c *IoT) ListThingTypes(input *ListThingTypesInput) (*ListThingTypesOutput, error) {
- req, out := c.ListThingTypesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListThings = "ListThings"
- // ListThingsRequest generates a "aws/request.Request" representing the
- // client's request for the ListThings operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListThings method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListThingsOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) ListThings(input *ListThingsInput) (*ListThingsOutput, error) {
- req, out := c.ListThingsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTopicRules = "ListTopicRules"
- // ListTopicRulesRequest generates a "aws/request.Request" representing the
- // client's request for the ListTopicRules operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTopicRules method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTopicRulesOutput{}
- req.Data = output
- return
- }
- // Lists the rules for the specific topic.
- func (c *IoT) ListTopicRules(input *ListTopicRulesInput) (*ListTopicRulesOutput, error) {
- req, out := c.ListTopicRulesRequest(input)
- err := req.Send()
- return out, err
- }
- const opRegisterCACertificate = "RegisterCACertificate"
- // RegisterCACertificateRequest generates a "aws/request.Request" representing the
- // client's request for the RegisterCACertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RegisterCACertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &RegisterCACertificateOutput{}
- req.Data = output
- return
- }
- // 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 and public key. 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.
- func (c *IoT) RegisterCACertificate(input *RegisterCACertificateInput) (*RegisterCACertificateOutput, error) {
- req, out := c.RegisterCACertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opRegisterCertificate = "RegisterCertificate"
- // RegisterCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the RegisterCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RegisterCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &RegisterCertificateOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) RegisterCertificate(input *RegisterCertificateInput) (*RegisterCertificateOutput, error) {
- req, out := c.RegisterCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opRejectCertificateTransfer = "RejectCertificateTransfer"
- // RejectCertificateTransferRequest generates a "aws/request.Request" representing the
- // client's request for the RejectCertificateTransfer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RejectCertificateTransfer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &RejectCertificateTransferOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) RejectCertificateTransfer(input *RejectCertificateTransferInput) (*RejectCertificateTransferOutput, error) {
- req, out := c.RejectCertificateTransferRequest(input)
- err := req.Send()
- return out, err
- }
- const opReplaceTopicRule = "ReplaceTopicRule"
- // ReplaceTopicRuleRequest generates a "aws/request.Request" representing the
- // client's request for the ReplaceTopicRule operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ReplaceTopicRule method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &ReplaceTopicRuleOutput{}
- req.Data = output
- return
- }
- // Replaces the specified 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.
- func (c *IoT) ReplaceTopicRule(input *ReplaceTopicRuleInput) (*ReplaceTopicRuleOutput, error) {
- req, out := c.ReplaceTopicRuleRequest(input)
- err := req.Send()
- return out, err
- }
- const opSetDefaultPolicyVersion = "SetDefaultPolicyVersion"
- // SetDefaultPolicyVersionRequest generates a "aws/request.Request" representing the
- // client's request for the SetDefaultPolicyVersion operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the SetDefaultPolicyVersion method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &SetDefaultPolicyVersionOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) {
- req, out := c.SetDefaultPolicyVersionRequest(input)
- err := req.Send()
- return out, err
- }
- const opSetLoggingOptions = "SetLoggingOptions"
- // SetLoggingOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the SetLoggingOptions operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the SetLoggingOptions method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &SetLoggingOptionsOutput{}
- req.Data = output
- return
- }
- // Sets the logging options.
- func (c *IoT) SetLoggingOptions(input *SetLoggingOptionsInput) (*SetLoggingOptionsOutput, error) {
- req, out := c.SetLoggingOptionsRequest(input)
- err := req.Send()
- return out, err
- }
- const opTransferCertificate = "TransferCertificate"
- // TransferCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the TransferCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the TransferCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &TransferCertificateOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) TransferCertificate(input *TransferCertificateInput) (*TransferCertificateOutput, error) {
- req, out := c.TransferCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateCACertificate = "UpdateCACertificate"
- // UpdateCACertificateRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateCACertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateCACertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &UpdateCACertificateOutput{}
- req.Data = output
- return
- }
- // Updates a registered CA certificate.
- func (c *IoT) UpdateCACertificate(input *UpdateCACertificateInput) (*UpdateCACertificateOutput, error) {
- req, out := c.UpdateCACertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateCertificate = "UpdateCertificate"
- // UpdateCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &UpdateCertificateOutput{}
- req.Data = output
- return
- }
- // 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.
- func (c *IoT) UpdateCertificate(input *UpdateCertificateInput) (*UpdateCertificateOutput, error) {
- req, out := c.UpdateCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateThing = "UpdateThing"
- // UpdateThingRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateThing operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateThing method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateThingOutput{}
- req.Data = output
- return
- }
- // Updates the data for a thing.
- func (c *IoT) UpdateThing(input *UpdateThingInput) (*UpdateThingOutput, error) {
- req, out := c.UpdateThingRequest(input)
- err := req.Send()
- return out, err
- }
- // The input for the AcceptCertificateTransfer operation.
- type AcceptCertificateTransferInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate.
- 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
- }
- 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 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"`
- // 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"`
- // Publish to an Amazon SNS topic.
- Sns *SnsAction `locationName:"sns" type:"structure"`
- // Publish to an Amazon SQS queue.
- Sqs *SqsAction `locationName:"sqs" 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.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.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.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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The input for the AttachPrincipalPolicy operation.
- type AttachPrincipalPolicyInput struct {
- _ struct{} `type:"structure"`
- // The policy name.
- 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 *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
- }
- 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()
- }
- // The input for the AttachThingPrincipal operation.
- type AttachThingPrincipalInput struct {
- _ struct{} `type:"structure"`
- // The principal, such as a certificate or other credential.
- Principal *string `location:"header" locationName:"x-amzn-principal" type:"string" required:"true"`
- // The name of the thing.
- 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
- }
- // 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()
- }
- // 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" timestampFormat:"unix"`
- // 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()
- }
- // 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" timestampFormat:"unix"`
- // The owner of the CA certificate.
- OwnedBy *string `locationName:"ownedBy" type:"string"`
- // The status of a CA certificate.
- Status *string `locationName:"status" type:"string" enum:"CACertificateStatus"`
- }
- // 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()
- }
- // The input for the CancelCertificateTransfer operation.
- type CancelCertificateTransferInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate.
- 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
- }
- 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()
- }
- // 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.
- CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
- // The date and time the certificate was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
- // 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()
- }
- // 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" timestampFormat:"unix"`
- // The date and time the certificate was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
- // The ID of the AWS account that owns the certificate.
- OwnedBy *string `locationName:"ownedBy" type:"string"`
- // The ID of the AWS account of the previous owner of the certificate.
- PreviousOwnedBy *string `locationName:"previousOwnedBy" type:"string"`
- // The status of the certificate.
- Status *string `locationName:"status" type:"string" enum:"CertificateStatus"`
- // The transfer data.
- TransferData *TransferData `locationName:"transferData" 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()
- }
- // Describes an action that updates a CloudWatch alarm.
- type CloudwatchAlarmAction struct {
- _ struct{} `type:"structure"`
- // The CloudWatch alarm name.
- AlarmName *string `locationName:"alarmName" type:"string" required:"true"`
- // The IAM role that allows access to the CloudWatch alarm.
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The reason for the alarm change.
- StateReason *string `locationName:"stateReason" type:"string" required:"true"`
- // The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
- 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
- }
- // Describes an action that captures a CloudWatch metric.
- type CloudwatchMetricAction struct {
- _ struct{} `type:"structure"`
- // The CloudWatch metric name.
- MetricName *string `locationName:"metricName" type:"string" required:"true"`
- // The CloudWatch metric namespace name.
- 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 *string `locationName:"metricUnit" type:"string" required:"true"`
- // The CloudWatch metric value.
- MetricValue *string `locationName:"metricValue" type:"string" required:"true"`
- // The IAM role that allows access to the CloudWatch metric.
- 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
- }
- // The input for the CreateCertificateFromCsr operation.
- type CreateCertificateFromCsrInput struct {
- _ struct{} `type:"structure"`
- // The certificate signing request (CSR).
- 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
- }
- // 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()
- }
- // 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()
- }
- // 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()
- }
- // 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 *string `locationName:"policyDocument" type:"string" required:"true"`
- // The policy name.
- 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
- }
- // 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()
- }
- // 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 whitespaces
- PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"`
- // The policy name.
- 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
- }
- // 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()
- }
- // 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 thing to create.
- 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.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
- }
- // 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 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()
- }
- // The input for the CreateThingType operation.
- type CreateThingTypeInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing type.
- 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
- }
- // 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 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()
- }
- // The input for the CreateTopicRule operation.
- type CreateTopicRuleInput struct {
- _ struct{} `type:"structure" payload:"TopicRulePayload"`
- // The name of the rule.
- RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
- // The rule payload.
- 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
- }
- 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()
- }
- // Input for the DeleteCACertificate operation.
- type DeleteCACertificateInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate to delete.
- 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
- }
- // 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.
- CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"`
- }
- // 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
- }
- 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()
- }
- // The input for the DeletePolicy operation.
- type DeletePolicyInput struct {
- _ struct{} `type:"structure"`
- // The name of the policy to delete.
- 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
- }
- 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 *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // The policy version ID.
- 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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- 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()
- }
- // 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 *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
- }
- // 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 *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
- }
- // 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 *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
- }
- 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()
- }
- // The input for the DeprecateThingType operation.
- type DeprecateThingTypeInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing type to deprecate.
- 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
- }
- // 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()
- }
- // The input for the DescribeCACertificate operation.
- type DescribeCACertificateInput struct {
- _ struct{} `type:"structure"`
- // The CA certificate identifier.
- 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
- }
- // The output from the DescribeCACertificate operation.
- type DescribeCACertificateOutput struct {
- _ struct{} `type:"structure"`
- // The CA certificate description.
- CertificateDescription *CACertificateDescription `locationName:"certificateDescription" 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()
- }
- // The input for the DescribeCertificate operation.
- type DescribeCertificateInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate.
- 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
- }
- // 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()
- }
- // The input for the DescribeEndpoint operation.
- type DescribeEndpointInput struct {
- _ struct{} `type:"structure"`
- }
- // 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()
- }
- // 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()
- }
- // The input for the DescribeThing operation.
- type DescribeThingInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing.
- 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
- }
- // The output from the DescribeThing operation.
- type DescribeThingOutput struct {
- _ struct{} `type:"structure"`
- // The thing attributes.
- Attributes map[string]*string `locationName:"attributes" type:"map"`
- // The default client ID.
- DefaultClientId *string `locationName:"defaultClientId" 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()
- }
- // The input for the DescribeThingType operation.
- type DescribeThingTypeInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing type.
- 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
- }
- // The output for the DescribeThingType operation.
- type DescribeThingTypeOutput struct {
- _ struct{} `type:"structure"`
- // 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.
- 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()
- }
- // The input for the DetachPrincipalPolicy operation.
- type DetachPrincipalPolicyInput struct {
- _ struct{} `type:"structure"`
- // The name of the policy to detach.
- 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 *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
- }
- 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()
- }
- // 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 *string `location:"header" locationName:"x-amzn-principal" type:"string" required:"true"`
- // The name of the thing.
- 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
- }
- // 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 *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
- }
- 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 *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 *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 *string `locationName:"roleArn" type:"string" required:"true"`
- // The name of the DynamoDB table.
- 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
- }
- // 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 *string `locationName:"endpoint" type:"string" required:"true"`
- // The unique identifier for the document you are storing.
- Id *string `locationName:"id" type:"string" required:"true"`
- // The Elasticsearch index where you want to store your data.
- Index *string `locationName:"index" type:"string" required:"true"`
- // The IAM role ARN that has access to Elasticsearch.
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The type of document you are storing.
- 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
- }
- // The input for the EnableTopicRuleRequest operation.
- type EnableTopicRuleInput struct {
- _ struct{} `type:"structure"`
- // The name of the topic rule to enable.
- 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
- }
- 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()
- }
- // Describes an action that writes data to an Amazon Kinesis Firehose stream.
- type FirehoseAction struct {
- _ struct{} `type:"structure"`
- // The delivery stream name.
- DeliveryStreamName *string `locationName:"deliveryStreamName" type:"string" required:"true"`
- // The IAM role that grants access to the Amazon Kinesis Firehost stream.
- 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
- }
- // 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()
- }
- // The input for the GetPolicy operation.
- type GetPolicyInput struct {
- _ struct{} `type:"structure"`
- // The name of the policy.
- 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
- }
- // The output from the GetPolicy operation.
- type GetPolicyOutput struct {
- _ struct{} `type:"structure"`
- // The default policy version ID.
- DefaultVersionId *string `locationName:"defaultVersionId" type:"string"`
- // 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()
- }
- // The input for the GetPolicyVersion operation.
- type GetPolicyVersionInput struct {
- _ struct{} `type:"structure"`
- // The name of the policy.
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // The policy version ID.
- 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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The output from the GetPolicyVersion operation.
- type GetPolicyVersionOutput 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 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()
- }
- // 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()
- }
- // The input for the GetTopicRule operation.
- type GetTopicRuleInput struct {
- _ struct{} `type:"structure"`
- // The name of the rule.
- 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
- }
- // 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()
- }
- // Describes a key pair.
- type KeyPair struct {
- _ struct{} `type:"structure"`
- // The private key.
- PrivateKey *string `min:"1" type:"string"`
- // 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()
- }
- // 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 *string `locationName:"roleArn" type:"string" required:"true"`
- // The name of the Amazon Kinesis stream.
- 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
- }
- // Describes an action to invoke a Lambda function.
- type LambdaAction struct {
- _ struct{} `type:"structure"`
- // The ARN of the Lambda function.
- 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
- }
- // 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
- }
- // 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()
- }
- // 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 *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
- }
- // 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()
- }
- // 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
- }
- // 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()
- }
- // 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
- }
- // 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 transfered 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()
- }
- // 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
- }
- // 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()
- }
- // 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 *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
- }
- // 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()
- }
- // The input for the ListPolicyVersions operation.
- type ListPolicyVersionsInput struct {
- _ struct{} `type:"structure"`
- // The policy name.
- 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
- }
- // 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()
- }
- // 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 *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
- }
- // 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()
- }
- // 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 for the next set of results, or null if there are no additional
- // results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The principal.
- 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
- }
- // The output from the ListPrincipalThings operation.
- type ListPrincipalThingsOutput 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 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()
- }
- // The input for the ListThingPrincipal operation.
- type ListThingPrincipalsInput struct {
- _ struct{} `type:"structure"`
- // The name of the thing.
- 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
- }
- // 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()
- }
- // 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 for the next set of results, or null if there are no additional
- // 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
- }
- // 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()
- }
- // 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 for the next set of results, or null if there are no additional
- // 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
- }
- // The output from the ListThings operation.
- type ListThingsOutput 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 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()
- }
- // 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
- }
- // 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()
- }
- // Describes the logging options payload.
- type LoggingOptionsPayload 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" 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
- }
- // A certificate that has been transfered 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" timestampFormat:"unix"`
- // The date the transfer was initiated.
- TransferDate *time.Time `locationName:"transferDate" type:"timestamp" timestampFormat:"unix"`
- // The transfer message.
- TransferMessage *string `locationName:"transferMessage" type:"string"`
- // The AWS account to which the transfer was made.
- TransferredTo *string `locationName:"transferredTo" 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()
- }
- // 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()
- }
- // 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" timestampFormat:"unix"`
- // 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()
- }
- // 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 *string `locationName:"caCertificate" min:"1" type:"string" required:"true"`
- // 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 *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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // 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()
- }
- // 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 *string `locationName:"certificatePem" min:"1" type:"string" required:"true"`
- // A boolean value that specifies if the CA certificate is set to active.
- SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"`
- }
- // 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
- }
- // 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()
- }
- // The input for the RejectCertificateTransfer operation.
- type RejectCertificateTransferInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate.
- 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
- }
- 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()
- }
- // The input for the ReplaceTopicRule operation.
- type ReplaceTopicRuleInput struct {
- _ struct{} `type:"structure" payload:"TopicRulePayload"`
- // The name of the rule.
- RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
- // The rule payload.
- 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
- }
- 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 *string `locationName:"roleArn" type:"string" required:"true"`
- // The name of the MQTT topic.
- 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
- }
- // Describes an action to write data to an Amazon S3 bucket.
- type S3Action struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 bucket.
- BucketName *string `locationName:"bucketName" type:"string" required:"true"`
- // The object key.
- Key *string `locationName:"key" type:"string" required:"true"`
- // The ARN of the IAM role that grants access.
- 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
- }
- // The input for the SetDefaultPolicyVersion operation.
- type SetDefaultPolicyVersionInput struct {
- _ struct{} `type:"structure"`
- // The policy name.
- PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"`
- // The policy version ID.
- 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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- 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 *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
- }
- 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()
- }
- // Describes an action to publish to an Amazon SNS topic.
- type SnsAction struct {
- _ struct{} `type:"structure"`
- // The message format of the message to publish. Optional. 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 refer to their official documentation.
- MessageFormat *string `locationName:"messageFormat" type:"string" enum:"MessageFormat"`
- // The ARN of the IAM role that grants access.
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The ARN of the SNS topic.
- 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
- }
- // 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 *string `locationName:"queueUrl" type:"string" required:"true"`
- // The ARN of the IAM role that grants access.
- 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
- }
- // 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 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()
- }
- // The definition of the thing type, including thing type name and description.
- type ThingTypeDefinition struct {
- _ struct{} `type:"structure"`
- // 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.
- 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()
- }
- // 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" timestampFormat:"unix"`
- // 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" timestampFormat:"unix"`
- }
- // 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()
- }
- // 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()
- }
- // 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" timestampFormat:"unix"`
- // The description of the rule.
- Description *string `locationName:"description" 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 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()
- }
- // Describes a rule.
- type TopicRuleListItem struct {
- _ struct{} `type:"structure"`
- // The date and time the rule was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
- // 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()
- }
- // Describes a rule.
- type TopicRulePayload struct {
- _ struct{} `type:"structure"`
- // The actions associated with the rule.
- 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"`
- // 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 *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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The input for the TransferCertificate operation.
- type TransferCertificateInput struct {
- _ struct{} `type:"structure"`
- // The ID of the certificate.
- CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"`
- // The AWS account.
- TargetAwsAccount *string `location:"querystring" locationName:"targetAwsAccount" 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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // 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()
- }
- // 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" timestampFormat:"unix"`
- // The date the transfer was rejected.
- RejectDate *time.Time `locationName:"rejectDate" type:"timestamp" timestampFormat:"unix"`
- // 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" timestampFormat:"unix"`
- // 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()
- }
- // The input to the UpdateCACertificate operation.
- type UpdateCACertificateInput struct {
- _ struct{} `type:"structure"`
- // The CA certificate identifier.
- 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"`
- }
- // 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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- 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.
- 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 *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
- }
- 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()
- }
- // 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 assocation is removed.
- RemoveThingType *bool `locationName:"removeThingType" type:"boolean"`
- // The name of the thing to update.
- 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
- }
- // 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()
- }
- const (
- // @enum AutoRegistrationStatus
- AutoRegistrationStatusEnable = "ENABLE"
- // @enum AutoRegistrationStatus
- AutoRegistrationStatusDisable = "DISABLE"
- )
- const (
- // @enum CACertificateStatus
- CACertificateStatusActive = "ACTIVE"
- // @enum CACertificateStatus
- CACertificateStatusInactive = "INACTIVE"
- )
- const (
- // @enum CertificateStatus
- CertificateStatusActive = "ACTIVE"
- // @enum CertificateStatus
- CertificateStatusInactive = "INACTIVE"
- // @enum CertificateStatus
- CertificateStatusRevoked = "REVOKED"
- // @enum CertificateStatus
- CertificateStatusPendingTransfer = "PENDING_TRANSFER"
- // @enum CertificateStatus
- CertificateStatusRegisterInactive = "REGISTER_INACTIVE"
- // @enum CertificateStatus
- CertificateStatusPendingActivation = "PENDING_ACTIVATION"
- )
- const (
- // @enum DynamoKeyType
- DynamoKeyTypeString = "STRING"
- // @enum DynamoKeyType
- DynamoKeyTypeNumber = "NUMBER"
- )
- const (
- // @enum LogLevel
- LogLevelDebug = "DEBUG"
- // @enum LogLevel
- LogLevelInfo = "INFO"
- // @enum LogLevel
- LogLevelError = "ERROR"
- // @enum LogLevel
- LogLevelWarn = "WARN"
- // @enum LogLevel
- LogLevelDisabled = "DISABLED"
- )
- const (
- // @enum MessageFormat
- MessageFormatRaw = "RAW"
- // @enum MessageFormat
- MessageFormatJson = "JSON"
- )
|