| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package cognitoidentityprovider provides a client for Amazon Cognito Identity Provider.
- package cognitoidentityprovider
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/credentials"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
- )
- const opAddCustomAttributes = "AddCustomAttributes"
- // AddCustomAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the AddCustomAttributes 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 AddCustomAttributes 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 AddCustomAttributesRequest method.
- // req, resp := client.AddCustomAttributesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AddCustomAttributesRequest(input *AddCustomAttributesInput) (req *request.Request, output *AddCustomAttributesOutput) {
- op := &request.Operation{
- Name: opAddCustomAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddCustomAttributesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddCustomAttributesOutput{}
- req.Data = output
- return
- }
- // Adds additional user attributes to the user pool schema.
- func (c *CognitoIdentityProvider) AddCustomAttributes(input *AddCustomAttributesInput) (*AddCustomAttributesOutput, error) {
- req, out := c.AddCustomAttributesRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminConfirmSignUp = "AdminConfirmSignUp"
- // AdminConfirmSignUpRequest generates a "aws/request.Request" representing the
- // client's request for the AdminConfirmSignUp 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 AdminConfirmSignUp 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 AdminConfirmSignUpRequest method.
- // req, resp := client.AdminConfirmSignUpRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminConfirmSignUpRequest(input *AdminConfirmSignUpInput) (req *request.Request, output *AdminConfirmSignUpOutput) {
- op := &request.Operation{
- Name: opAdminConfirmSignUp,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminConfirmSignUpInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminConfirmSignUpOutput{}
- req.Data = output
- return
- }
- // Confirms user registration as an admin without using a confirmation code.
- // Works on any user.
- func (c *CognitoIdentityProvider) AdminConfirmSignUp(input *AdminConfirmSignUpInput) (*AdminConfirmSignUpOutput, error) {
- req, out := c.AdminConfirmSignUpRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminDeleteUser = "AdminDeleteUser"
- // AdminDeleteUserRequest generates a "aws/request.Request" representing the
- // client's request for the AdminDeleteUser 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 AdminDeleteUser 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 AdminDeleteUserRequest method.
- // req, resp := client.AdminDeleteUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminDeleteUserRequest(input *AdminDeleteUserInput) (req *request.Request, output *AdminDeleteUserOutput) {
- op := &request.Operation{
- Name: opAdminDeleteUser,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminDeleteUserInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &AdminDeleteUserOutput{}
- req.Data = output
- return
- }
- // Deletes a user as an administrator. Works on any user.
- func (c *CognitoIdentityProvider) AdminDeleteUser(input *AdminDeleteUserInput) (*AdminDeleteUserOutput, error) {
- req, out := c.AdminDeleteUserRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminDeleteUserAttributes = "AdminDeleteUserAttributes"
- // AdminDeleteUserAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the AdminDeleteUserAttributes 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 AdminDeleteUserAttributes 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 AdminDeleteUserAttributesRequest method.
- // req, resp := client.AdminDeleteUserAttributesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminDeleteUserAttributesRequest(input *AdminDeleteUserAttributesInput) (req *request.Request, output *AdminDeleteUserAttributesOutput) {
- op := &request.Operation{
- Name: opAdminDeleteUserAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminDeleteUserAttributesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminDeleteUserAttributesOutput{}
- req.Data = output
- return
- }
- // Deletes the user attributes in a user pool as an administrator. Works on
- // any user.
- func (c *CognitoIdentityProvider) AdminDeleteUserAttributes(input *AdminDeleteUserAttributesInput) (*AdminDeleteUserAttributesOutput, error) {
- req, out := c.AdminDeleteUserAttributesRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminDisableUser = "AdminDisableUser"
- // AdminDisableUserRequest generates a "aws/request.Request" representing the
- // client's request for the AdminDisableUser 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 AdminDisableUser 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 AdminDisableUserRequest method.
- // req, resp := client.AdminDisableUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminDisableUserRequest(input *AdminDisableUserInput) (req *request.Request, output *AdminDisableUserOutput) {
- op := &request.Operation{
- Name: opAdminDisableUser,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminDisableUserInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminDisableUserOutput{}
- req.Data = output
- return
- }
- // Disables the specified user as an administrator. Works on any user.
- func (c *CognitoIdentityProvider) AdminDisableUser(input *AdminDisableUserInput) (*AdminDisableUserOutput, error) {
- req, out := c.AdminDisableUserRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminEnableUser = "AdminEnableUser"
- // AdminEnableUserRequest generates a "aws/request.Request" representing the
- // client's request for the AdminEnableUser 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 AdminEnableUser 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 AdminEnableUserRequest method.
- // req, resp := client.AdminEnableUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminEnableUserRequest(input *AdminEnableUserInput) (req *request.Request, output *AdminEnableUserOutput) {
- op := &request.Operation{
- Name: opAdminEnableUser,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminEnableUserInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminEnableUserOutput{}
- req.Data = output
- return
- }
- // Enables the specified user as an administrator. Works on any user.
- func (c *CognitoIdentityProvider) AdminEnableUser(input *AdminEnableUserInput) (*AdminEnableUserOutput, error) {
- req, out := c.AdminEnableUserRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminForgetDevice = "AdminForgetDevice"
- // AdminForgetDeviceRequest generates a "aws/request.Request" representing the
- // client's request for the AdminForgetDevice 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 AdminForgetDevice 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 AdminForgetDeviceRequest method.
- // req, resp := client.AdminForgetDeviceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminForgetDeviceRequest(input *AdminForgetDeviceInput) (req *request.Request, output *AdminForgetDeviceOutput) {
- op := &request.Operation{
- Name: opAdminForgetDevice,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminForgetDeviceInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &AdminForgetDeviceOutput{}
- req.Data = output
- return
- }
- // Forgets the device, as an administrator.
- func (c *CognitoIdentityProvider) AdminForgetDevice(input *AdminForgetDeviceInput) (*AdminForgetDeviceOutput, error) {
- req, out := c.AdminForgetDeviceRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminGetDevice = "AdminGetDevice"
- // AdminGetDeviceRequest generates a "aws/request.Request" representing the
- // client's request for the AdminGetDevice 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 AdminGetDevice 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 AdminGetDeviceRequest method.
- // req, resp := client.AdminGetDeviceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminGetDeviceRequest(input *AdminGetDeviceInput) (req *request.Request, output *AdminGetDeviceOutput) {
- op := &request.Operation{
- Name: opAdminGetDevice,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminGetDeviceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminGetDeviceOutput{}
- req.Data = output
- return
- }
- // Gets the device, as an administrator.
- func (c *CognitoIdentityProvider) AdminGetDevice(input *AdminGetDeviceInput) (*AdminGetDeviceOutput, error) {
- req, out := c.AdminGetDeviceRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminGetUser = "AdminGetUser"
- // AdminGetUserRequest generates a "aws/request.Request" representing the
- // client's request for the AdminGetUser 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 AdminGetUser 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 AdminGetUserRequest method.
- // req, resp := client.AdminGetUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminGetUserRequest(input *AdminGetUserInput) (req *request.Request, output *AdminGetUserOutput) {
- op := &request.Operation{
- Name: opAdminGetUser,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminGetUserInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminGetUserOutput{}
- req.Data = output
- return
- }
- // Gets the specified user by user name in a user pool as an administrator.
- // Works on any user.
- func (c *CognitoIdentityProvider) AdminGetUser(input *AdminGetUserInput) (*AdminGetUserOutput, error) {
- req, out := c.AdminGetUserRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminInitiateAuth = "AdminInitiateAuth"
- // AdminInitiateAuthRequest generates a "aws/request.Request" representing the
- // client's request for the AdminInitiateAuth 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 AdminInitiateAuth 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 AdminInitiateAuthRequest method.
- // req, resp := client.AdminInitiateAuthRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminInitiateAuthRequest(input *AdminInitiateAuthInput) (req *request.Request, output *AdminInitiateAuthOutput) {
- op := &request.Operation{
- Name: opAdminInitiateAuth,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminInitiateAuthInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminInitiateAuthOutput{}
- req.Data = output
- return
- }
- // Initiates the authentication flow, as an administrator.
- func (c *CognitoIdentityProvider) AdminInitiateAuth(input *AdminInitiateAuthInput) (*AdminInitiateAuthOutput, error) {
- req, out := c.AdminInitiateAuthRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminListDevices = "AdminListDevices"
- // AdminListDevicesRequest generates a "aws/request.Request" representing the
- // client's request for the AdminListDevices 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 AdminListDevices 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 AdminListDevicesRequest method.
- // req, resp := client.AdminListDevicesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminListDevicesRequest(input *AdminListDevicesInput) (req *request.Request, output *AdminListDevicesOutput) {
- op := &request.Operation{
- Name: opAdminListDevices,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminListDevicesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminListDevicesOutput{}
- req.Data = output
- return
- }
- // Lists devices, as an administrator.
- func (c *CognitoIdentityProvider) AdminListDevices(input *AdminListDevicesInput) (*AdminListDevicesOutput, error) {
- req, out := c.AdminListDevicesRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminResetUserPassword = "AdminResetUserPassword"
- // AdminResetUserPasswordRequest generates a "aws/request.Request" representing the
- // client's request for the AdminResetUserPassword 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 AdminResetUserPassword 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 AdminResetUserPasswordRequest method.
- // req, resp := client.AdminResetUserPasswordRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminResetUserPasswordRequest(input *AdminResetUserPasswordInput) (req *request.Request, output *AdminResetUserPasswordOutput) {
- op := &request.Operation{
- Name: opAdminResetUserPassword,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminResetUserPasswordInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminResetUserPasswordOutput{}
- req.Data = output
- return
- }
- // Resets the specified user's password in a user pool as an administrator.
- // Works on any user.
- func (c *CognitoIdentityProvider) AdminResetUserPassword(input *AdminResetUserPasswordInput) (*AdminResetUserPasswordOutput, error) {
- req, out := c.AdminResetUserPasswordRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminRespondToAuthChallenge = "AdminRespondToAuthChallenge"
- // AdminRespondToAuthChallengeRequest generates a "aws/request.Request" representing the
- // client's request for the AdminRespondToAuthChallenge 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 AdminRespondToAuthChallenge 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 AdminRespondToAuthChallengeRequest method.
- // req, resp := client.AdminRespondToAuthChallengeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeRequest(input *AdminRespondToAuthChallengeInput) (req *request.Request, output *AdminRespondToAuthChallengeOutput) {
- op := &request.Operation{
- Name: opAdminRespondToAuthChallenge,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminRespondToAuthChallengeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminRespondToAuthChallengeOutput{}
- req.Data = output
- return
- }
- // Responds to an authentication challenge, as an administrator.
- func (c *CognitoIdentityProvider) AdminRespondToAuthChallenge(input *AdminRespondToAuthChallengeInput) (*AdminRespondToAuthChallengeOutput, error) {
- req, out := c.AdminRespondToAuthChallengeRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminSetUserSettings = "AdminSetUserSettings"
- // AdminSetUserSettingsRequest generates a "aws/request.Request" representing the
- // client's request for the AdminSetUserSettings 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 AdminSetUserSettings 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 AdminSetUserSettingsRequest method.
- // req, resp := client.AdminSetUserSettingsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminSetUserSettingsRequest(input *AdminSetUserSettingsInput) (req *request.Request, output *AdminSetUserSettingsOutput) {
- op := &request.Operation{
- Name: opAdminSetUserSettings,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminSetUserSettingsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminSetUserSettingsOutput{}
- req.Data = output
- return
- }
- // Sets all the user settings for a specified user name. Works on any user.
- func (c *CognitoIdentityProvider) AdminSetUserSettings(input *AdminSetUserSettingsInput) (*AdminSetUserSettingsOutput, error) {
- req, out := c.AdminSetUserSettingsRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminUpdateDeviceStatus = "AdminUpdateDeviceStatus"
- // AdminUpdateDeviceStatusRequest generates a "aws/request.Request" representing the
- // client's request for the AdminUpdateDeviceStatus 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 AdminUpdateDeviceStatus 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 AdminUpdateDeviceStatusRequest method.
- // req, resp := client.AdminUpdateDeviceStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminUpdateDeviceStatusRequest(input *AdminUpdateDeviceStatusInput) (req *request.Request, output *AdminUpdateDeviceStatusOutput) {
- op := &request.Operation{
- Name: opAdminUpdateDeviceStatus,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminUpdateDeviceStatusInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminUpdateDeviceStatusOutput{}
- req.Data = output
- return
- }
- // Updates the device status as an administrator.
- func (c *CognitoIdentityProvider) AdminUpdateDeviceStatus(input *AdminUpdateDeviceStatusInput) (*AdminUpdateDeviceStatusOutput, error) {
- req, out := c.AdminUpdateDeviceStatusRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminUpdateUserAttributes = "AdminUpdateUserAttributes"
- // AdminUpdateUserAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the AdminUpdateUserAttributes 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 AdminUpdateUserAttributes 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 AdminUpdateUserAttributesRequest method.
- // req, resp := client.AdminUpdateUserAttributesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminUpdateUserAttributesRequest(input *AdminUpdateUserAttributesInput) (req *request.Request, output *AdminUpdateUserAttributesOutput) {
- op := &request.Operation{
- Name: opAdminUpdateUserAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminUpdateUserAttributesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminUpdateUserAttributesOutput{}
- req.Data = output
- return
- }
- // Updates the specified user's attributes, including developer attributes,
- // as an administrator. Works on any user.
- func (c *CognitoIdentityProvider) AdminUpdateUserAttributes(input *AdminUpdateUserAttributesInput) (*AdminUpdateUserAttributesOutput, error) {
- req, out := c.AdminUpdateUserAttributesRequest(input)
- err := req.Send()
- return out, err
- }
- const opAdminUserGlobalSignOut = "AdminUserGlobalSignOut"
- // AdminUserGlobalSignOutRequest generates a "aws/request.Request" representing the
- // client's request for the AdminUserGlobalSignOut 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 AdminUserGlobalSignOut 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 AdminUserGlobalSignOutRequest method.
- // req, resp := client.AdminUserGlobalSignOutRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) AdminUserGlobalSignOutRequest(input *AdminUserGlobalSignOutInput) (req *request.Request, output *AdminUserGlobalSignOutOutput) {
- op := &request.Operation{
- Name: opAdminUserGlobalSignOut,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AdminUserGlobalSignOutInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AdminUserGlobalSignOutOutput{}
- req.Data = output
- return
- }
- // Signs out users from all devices, as an administrator.
- func (c *CognitoIdentityProvider) AdminUserGlobalSignOut(input *AdminUserGlobalSignOutInput) (*AdminUserGlobalSignOutOutput, error) {
- req, out := c.AdminUserGlobalSignOutRequest(input)
- err := req.Send()
- return out, err
- }
- const opChangePassword = "ChangePassword"
- // ChangePasswordRequest generates a "aws/request.Request" representing the
- // client's request for the ChangePassword 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 ChangePassword 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 ChangePasswordRequest method.
- // req, resp := client.ChangePasswordRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Request, output *ChangePasswordOutput) {
- op := &request.Operation{
- Name: opChangePassword,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ChangePasswordInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &ChangePasswordOutput{}
- req.Data = output
- return
- }
- // Changes the password for a specified user in a user pool.
- func (c *CognitoIdentityProvider) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) {
- req, out := c.ChangePasswordRequest(input)
- err := req.Send()
- return out, err
- }
- const opConfirmDevice = "ConfirmDevice"
- // ConfirmDeviceRequest generates a "aws/request.Request" representing the
- // client's request for the ConfirmDevice 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 ConfirmDevice 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 ConfirmDeviceRequest method.
- // req, resp := client.ConfirmDeviceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ConfirmDeviceRequest(input *ConfirmDeviceInput) (req *request.Request, output *ConfirmDeviceOutput) {
- op := &request.Operation{
- Name: opConfirmDevice,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ConfirmDeviceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ConfirmDeviceOutput{}
- req.Data = output
- return
- }
- // Confirms tracking of the device. This API call is the call that beings device
- // tracking.
- func (c *CognitoIdentityProvider) ConfirmDevice(input *ConfirmDeviceInput) (*ConfirmDeviceOutput, error) {
- req, out := c.ConfirmDeviceRequest(input)
- err := req.Send()
- return out, err
- }
- const opConfirmForgotPassword = "ConfirmForgotPassword"
- // ConfirmForgotPasswordRequest generates a "aws/request.Request" representing the
- // client's request for the ConfirmForgotPassword 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 ConfirmForgotPassword 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 ConfirmForgotPasswordRequest method.
- // req, resp := client.ConfirmForgotPasswordRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ConfirmForgotPasswordRequest(input *ConfirmForgotPasswordInput) (req *request.Request, output *ConfirmForgotPasswordOutput) {
- op := &request.Operation{
- Name: opConfirmForgotPassword,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ConfirmForgotPasswordInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &ConfirmForgotPasswordOutput{}
- req.Data = output
- return
- }
- // Allows a user to enter a code provided when they reset their password to
- // update their password.
- func (c *CognitoIdentityProvider) ConfirmForgotPassword(input *ConfirmForgotPasswordInput) (*ConfirmForgotPasswordOutput, error) {
- req, out := c.ConfirmForgotPasswordRequest(input)
- err := req.Send()
- return out, err
- }
- const opConfirmSignUp = "ConfirmSignUp"
- // ConfirmSignUpRequest generates a "aws/request.Request" representing the
- // client's request for the ConfirmSignUp 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 ConfirmSignUp 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 ConfirmSignUpRequest method.
- // req, resp := client.ConfirmSignUpRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ConfirmSignUpRequest(input *ConfirmSignUpInput) (req *request.Request, output *ConfirmSignUpOutput) {
- op := &request.Operation{
- Name: opConfirmSignUp,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ConfirmSignUpInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &ConfirmSignUpOutput{}
- req.Data = output
- return
- }
- // Confirms registration of a user and handles the existing alias from a previous
- // user.
- func (c *CognitoIdentityProvider) ConfirmSignUp(input *ConfirmSignUpInput) (*ConfirmSignUpOutput, error) {
- req, out := c.ConfirmSignUpRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateUserPool = "CreateUserPool"
- // CreateUserPoolRequest generates a "aws/request.Request" representing the
- // client's request for the CreateUserPool 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 CreateUserPool 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 CreateUserPoolRequest method.
- // req, resp := client.CreateUserPoolRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) CreateUserPoolRequest(input *CreateUserPoolInput) (req *request.Request, output *CreateUserPoolOutput) {
- op := &request.Operation{
- Name: opCreateUserPool,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateUserPoolInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateUserPoolOutput{}
- req.Data = output
- return
- }
- // Creates a new Amazon Cognito user pool and sets the password policy for the
- // pool.
- func (c *CognitoIdentityProvider) CreateUserPool(input *CreateUserPoolInput) (*CreateUserPoolOutput, error) {
- req, out := c.CreateUserPoolRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateUserPoolClient = "CreateUserPoolClient"
- // CreateUserPoolClientRequest generates a "aws/request.Request" representing the
- // client's request for the CreateUserPoolClient 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 CreateUserPoolClient 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 CreateUserPoolClientRequest method.
- // req, resp := client.CreateUserPoolClientRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) CreateUserPoolClientRequest(input *CreateUserPoolClientInput) (req *request.Request, output *CreateUserPoolClientOutput) {
- op := &request.Operation{
- Name: opCreateUserPoolClient,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateUserPoolClientInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateUserPoolClientOutput{}
- req.Data = output
- return
- }
- // Creates the user pool client.
- func (c *CognitoIdentityProvider) CreateUserPoolClient(input *CreateUserPoolClientInput) (*CreateUserPoolClientOutput, error) {
- req, out := c.CreateUserPoolClientRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteUser = "DeleteUser"
- // DeleteUserRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteUser 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 DeleteUser 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 DeleteUserRequest method.
- // req, resp := client.DeleteUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) {
- op := &request.Operation{
- Name: opDeleteUser,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteUserInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &DeleteUserOutput{}
- req.Data = output
- return
- }
- // Allows a user to delete one's self.
- func (c *CognitoIdentityProvider) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) {
- req, out := c.DeleteUserRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteUserAttributes = "DeleteUserAttributes"
- // DeleteUserAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteUserAttributes 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 DeleteUserAttributes 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 DeleteUserAttributesRequest method.
- // req, resp := client.DeleteUserAttributesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) DeleteUserAttributesRequest(input *DeleteUserAttributesInput) (req *request.Request, output *DeleteUserAttributesOutput) {
- op := &request.Operation{
- Name: opDeleteUserAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteUserAttributesInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &DeleteUserAttributesOutput{}
- req.Data = output
- return
- }
- // Deletes the attributes for a user.
- func (c *CognitoIdentityProvider) DeleteUserAttributes(input *DeleteUserAttributesInput) (*DeleteUserAttributesOutput, error) {
- req, out := c.DeleteUserAttributesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteUserPool = "DeleteUserPool"
- // DeleteUserPoolRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteUserPool 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 DeleteUserPool 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 DeleteUserPoolRequest method.
- // req, resp := client.DeleteUserPoolRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) DeleteUserPoolRequest(input *DeleteUserPoolInput) (req *request.Request, output *DeleteUserPoolOutput) {
- op := &request.Operation{
- Name: opDeleteUserPool,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteUserPoolInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteUserPoolOutput{}
- req.Data = output
- return
- }
- // Deletes the specified Amazon Cognito user pool.
- func (c *CognitoIdentityProvider) DeleteUserPool(input *DeleteUserPoolInput) (*DeleteUserPoolOutput, error) {
- req, out := c.DeleteUserPoolRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteUserPoolClient = "DeleteUserPoolClient"
- // DeleteUserPoolClientRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteUserPoolClient 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 DeleteUserPoolClient 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 DeleteUserPoolClientRequest method.
- // req, resp := client.DeleteUserPoolClientRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) DeleteUserPoolClientRequest(input *DeleteUserPoolClientInput) (req *request.Request, output *DeleteUserPoolClientOutput) {
- op := &request.Operation{
- Name: opDeleteUserPoolClient,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteUserPoolClientInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteUserPoolClientOutput{}
- req.Data = output
- return
- }
- // Allows the developer to delete the user pool client.
- func (c *CognitoIdentityProvider) DeleteUserPoolClient(input *DeleteUserPoolClientInput) (*DeleteUserPoolClientOutput, error) {
- req, out := c.DeleteUserPoolClientRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeUserPool = "DescribeUserPool"
- // DescribeUserPoolRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeUserPool 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 DescribeUserPool 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 DescribeUserPoolRequest method.
- // req, resp := client.DescribeUserPoolRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) DescribeUserPoolRequest(input *DescribeUserPoolInput) (req *request.Request, output *DescribeUserPoolOutput) {
- op := &request.Operation{
- Name: opDescribeUserPool,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeUserPoolInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeUserPoolOutput{}
- req.Data = output
- return
- }
- // Returns the configuration information and metadata of the specified user
- // pool.
- func (c *CognitoIdentityProvider) DescribeUserPool(input *DescribeUserPoolInput) (*DescribeUserPoolOutput, error) {
- req, out := c.DescribeUserPoolRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeUserPoolClient = "DescribeUserPoolClient"
- // DescribeUserPoolClientRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeUserPoolClient 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 DescribeUserPoolClient 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 DescribeUserPoolClientRequest method.
- // req, resp := client.DescribeUserPoolClientRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) DescribeUserPoolClientRequest(input *DescribeUserPoolClientInput) (req *request.Request, output *DescribeUserPoolClientOutput) {
- op := &request.Operation{
- Name: opDescribeUserPoolClient,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeUserPoolClientInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeUserPoolClientOutput{}
- req.Data = output
- return
- }
- // Client method for returning the configuration information and metadata of
- // the specified user pool client.
- func (c *CognitoIdentityProvider) DescribeUserPoolClient(input *DescribeUserPoolClientInput) (*DescribeUserPoolClientOutput, error) {
- req, out := c.DescribeUserPoolClientRequest(input)
- err := req.Send()
- return out, err
- }
- const opForgetDevice = "ForgetDevice"
- // ForgetDeviceRequest generates a "aws/request.Request" representing the
- // client's request for the ForgetDevice 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 ForgetDevice 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 ForgetDeviceRequest method.
- // req, resp := client.ForgetDeviceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ForgetDeviceRequest(input *ForgetDeviceInput) (req *request.Request, output *ForgetDeviceOutput) {
- op := &request.Operation{
- Name: opForgetDevice,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ForgetDeviceInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &ForgetDeviceOutput{}
- req.Data = output
- return
- }
- // Forgets the specified device.
- func (c *CognitoIdentityProvider) ForgetDevice(input *ForgetDeviceInput) (*ForgetDeviceOutput, error) {
- req, out := c.ForgetDeviceRequest(input)
- err := req.Send()
- return out, err
- }
- const opForgotPassword = "ForgotPassword"
- // ForgotPasswordRequest generates a "aws/request.Request" representing the
- // client's request for the ForgotPassword 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 ForgotPassword 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 ForgotPasswordRequest method.
- // req, resp := client.ForgotPasswordRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ForgotPasswordRequest(input *ForgotPasswordInput) (req *request.Request, output *ForgotPasswordOutput) {
- op := &request.Operation{
- Name: opForgotPassword,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ForgotPasswordInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &ForgotPasswordOutput{}
- req.Data = output
- return
- }
- // Retrieves the password for the specified client ID or username.
- func (c *CognitoIdentityProvider) ForgotPassword(input *ForgotPasswordInput) (*ForgotPasswordOutput, error) {
- req, out := c.ForgotPasswordRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetDevice = "GetDevice"
- // GetDeviceRequest generates a "aws/request.Request" representing the
- // client's request for the GetDevice 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 GetDevice 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 GetDeviceRequest method.
- // req, resp := client.GetDeviceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) GetDeviceRequest(input *GetDeviceInput) (req *request.Request, output *GetDeviceOutput) {
- op := &request.Operation{
- Name: opGetDevice,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetDeviceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetDeviceOutput{}
- req.Data = output
- return
- }
- // Gets the device.
- func (c *CognitoIdentityProvider) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) {
- req, out := c.GetDeviceRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetUser = "GetUser"
- // GetUserRequest generates a "aws/request.Request" representing the
- // client's request for the GetUser 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 GetUser 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 GetUserRequest method.
- // req, resp := client.GetUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) GetUserRequest(input *GetUserInput) (req *request.Request, output *GetUserOutput) {
- op := &request.Operation{
- Name: opGetUser,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetUserInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &GetUserOutput{}
- req.Data = output
- return
- }
- // Gets the user attributes and metadata for a user.
- func (c *CognitoIdentityProvider) GetUser(input *GetUserInput) (*GetUserOutput, error) {
- req, out := c.GetUserRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetUserAttributeVerificationCode = "GetUserAttributeVerificationCode"
- // GetUserAttributeVerificationCodeRequest generates a "aws/request.Request" representing the
- // client's request for the GetUserAttributeVerificationCode 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 GetUserAttributeVerificationCode 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 GetUserAttributeVerificationCodeRequest method.
- // req, resp := client.GetUserAttributeVerificationCodeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) GetUserAttributeVerificationCodeRequest(input *GetUserAttributeVerificationCodeInput) (req *request.Request, output *GetUserAttributeVerificationCodeOutput) {
- op := &request.Operation{
- Name: opGetUserAttributeVerificationCode,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetUserAttributeVerificationCodeInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &GetUserAttributeVerificationCodeOutput{}
- req.Data = output
- return
- }
- // Gets the user attribute verification code for the specified attribute name.
- func (c *CognitoIdentityProvider) GetUserAttributeVerificationCode(input *GetUserAttributeVerificationCodeInput) (*GetUserAttributeVerificationCodeOutput, error) {
- req, out := c.GetUserAttributeVerificationCodeRequest(input)
- err := req.Send()
- return out, err
- }
- const opGlobalSignOut = "GlobalSignOut"
- // GlobalSignOutRequest generates a "aws/request.Request" representing the
- // client's request for the GlobalSignOut 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 GlobalSignOut 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 GlobalSignOutRequest method.
- // req, resp := client.GlobalSignOutRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) GlobalSignOutRequest(input *GlobalSignOutInput) (req *request.Request, output *GlobalSignOutOutput) {
- op := &request.Operation{
- Name: opGlobalSignOut,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GlobalSignOutInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GlobalSignOutOutput{}
- req.Data = output
- return
- }
- // Signs out users from all devices.
- func (c *CognitoIdentityProvider) GlobalSignOut(input *GlobalSignOutInput) (*GlobalSignOutOutput, error) {
- req, out := c.GlobalSignOutRequest(input)
- err := req.Send()
- return out, err
- }
- const opInitiateAuth = "InitiateAuth"
- // InitiateAuthRequest generates a "aws/request.Request" representing the
- // client's request for the InitiateAuth 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 InitiateAuth 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 InitiateAuthRequest method.
- // req, resp := client.InitiateAuthRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) InitiateAuthRequest(input *InitiateAuthInput) (req *request.Request, output *InitiateAuthOutput) {
- op := &request.Operation{
- Name: opInitiateAuth,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &InitiateAuthInput{}
- }
- req = c.newRequest(op, input, output)
- output = &InitiateAuthOutput{}
- req.Data = output
- return
- }
- // Initiates the authentication flow.
- func (c *CognitoIdentityProvider) InitiateAuth(input *InitiateAuthInput) (*InitiateAuthOutput, error) {
- req, out := c.InitiateAuthRequest(input)
- err := req.Send()
- return out, err
- }
- const opListDevices = "ListDevices"
- // ListDevicesRequest generates a "aws/request.Request" representing the
- // client's request for the ListDevices 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 ListDevices 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 ListDevicesRequest method.
- // req, resp := client.ListDevicesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput) {
- op := &request.Operation{
- Name: opListDevices,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListDevicesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListDevicesOutput{}
- req.Data = output
- return
- }
- // Lists the devices.
- func (c *CognitoIdentityProvider) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) {
- req, out := c.ListDevicesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListUserPoolClients = "ListUserPoolClients"
- // ListUserPoolClientsRequest generates a "aws/request.Request" representing the
- // client's request for the ListUserPoolClients 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 ListUserPoolClients 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 ListUserPoolClientsRequest method.
- // req, resp := client.ListUserPoolClientsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ListUserPoolClientsRequest(input *ListUserPoolClientsInput) (req *request.Request, output *ListUserPoolClientsOutput) {
- op := &request.Operation{
- Name: opListUserPoolClients,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListUserPoolClientsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListUserPoolClientsOutput{}
- req.Data = output
- return
- }
- // Lists the clients that have been created for the specified user pool.
- func (c *CognitoIdentityProvider) ListUserPoolClients(input *ListUserPoolClientsInput) (*ListUserPoolClientsOutput, error) {
- req, out := c.ListUserPoolClientsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListUserPools = "ListUserPools"
- // ListUserPoolsRequest generates a "aws/request.Request" representing the
- // client's request for the ListUserPools 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 ListUserPools 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 ListUserPoolsRequest method.
- // req, resp := client.ListUserPoolsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ListUserPoolsRequest(input *ListUserPoolsInput) (req *request.Request, output *ListUserPoolsOutput) {
- op := &request.Operation{
- Name: opListUserPools,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListUserPoolsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListUserPoolsOutput{}
- req.Data = output
- return
- }
- // Lists the user pools associated with an AWS account.
- func (c *CognitoIdentityProvider) ListUserPools(input *ListUserPoolsInput) (*ListUserPoolsOutput, error) {
- req, out := c.ListUserPoolsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListUsers = "ListUsers"
- // ListUsersRequest generates a "aws/request.Request" representing the
- // client's request for the ListUsers 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 ListUsers 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 ListUsersRequest method.
- // req, resp := client.ListUsersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) {
- op := &request.Operation{
- Name: opListUsers,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListUsersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListUsersOutput{}
- req.Data = output
- return
- }
- // Lists the users in the Amazon Cognito user pool.
- func (c *CognitoIdentityProvider) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) {
- req, out := c.ListUsersRequest(input)
- err := req.Send()
- return out, err
- }
- const opResendConfirmationCode = "ResendConfirmationCode"
- // ResendConfirmationCodeRequest generates a "aws/request.Request" representing the
- // client's request for the ResendConfirmationCode 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 ResendConfirmationCode 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 ResendConfirmationCodeRequest method.
- // req, resp := client.ResendConfirmationCodeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) ResendConfirmationCodeRequest(input *ResendConfirmationCodeInput) (req *request.Request, output *ResendConfirmationCodeOutput) {
- op := &request.Operation{
- Name: opResendConfirmationCode,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ResendConfirmationCodeInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &ResendConfirmationCodeOutput{}
- req.Data = output
- return
- }
- // Resends the confirmation (for confirmation of registration) to a specific
- // user in the user pool.
- func (c *CognitoIdentityProvider) ResendConfirmationCode(input *ResendConfirmationCodeInput) (*ResendConfirmationCodeOutput, error) {
- req, out := c.ResendConfirmationCodeRequest(input)
- err := req.Send()
- return out, err
- }
- const opRespondToAuthChallenge = "RespondToAuthChallenge"
- // RespondToAuthChallengeRequest generates a "aws/request.Request" representing the
- // client's request for the RespondToAuthChallenge 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 RespondToAuthChallenge 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 RespondToAuthChallengeRequest method.
- // req, resp := client.RespondToAuthChallengeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) RespondToAuthChallengeRequest(input *RespondToAuthChallengeInput) (req *request.Request, output *RespondToAuthChallengeOutput) {
- op := &request.Operation{
- Name: opRespondToAuthChallenge,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RespondToAuthChallengeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RespondToAuthChallengeOutput{}
- req.Data = output
- return
- }
- // Responds to the authentication challenge.
- func (c *CognitoIdentityProvider) RespondToAuthChallenge(input *RespondToAuthChallengeInput) (*RespondToAuthChallengeOutput, error) {
- req, out := c.RespondToAuthChallengeRequest(input)
- err := req.Send()
- return out, err
- }
- const opSetUserSettings = "SetUserSettings"
- // SetUserSettingsRequest generates a "aws/request.Request" representing the
- // client's request for the SetUserSettings 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 SetUserSettings 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 SetUserSettingsRequest method.
- // req, resp := client.SetUserSettingsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) SetUserSettingsRequest(input *SetUserSettingsInput) (req *request.Request, output *SetUserSettingsOutput) {
- op := &request.Operation{
- Name: opSetUserSettings,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetUserSettingsInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &SetUserSettingsOutput{}
- req.Data = output
- return
- }
- // Sets the user settings like multi-factor authentication (MFA). If MFA is
- // to be removed for a particular attribute pass the attribute with code delivery
- // as null. If null list is passed, all MFA options are removed.
- func (c *CognitoIdentityProvider) SetUserSettings(input *SetUserSettingsInput) (*SetUserSettingsOutput, error) {
- req, out := c.SetUserSettingsRequest(input)
- err := req.Send()
- return out, err
- }
- const opSignUp = "SignUp"
- // SignUpRequest generates a "aws/request.Request" representing the
- // client's request for the SignUp 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 SignUp 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 SignUpRequest method.
- // req, resp := client.SignUpRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *request.Request, output *SignUpOutput) {
- op := &request.Operation{
- Name: opSignUp,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SignUpInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &SignUpOutput{}
- req.Data = output
- return
- }
- // Registers the user in the specified user pool and creates a user name, password,
- // and user attributes.
- func (c *CognitoIdentityProvider) SignUp(input *SignUpInput) (*SignUpOutput, error) {
- req, out := c.SignUpRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateDeviceStatus = "UpdateDeviceStatus"
- // UpdateDeviceStatusRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDeviceStatus 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 UpdateDeviceStatus 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 UpdateDeviceStatusRequest method.
- // req, resp := client.UpdateDeviceStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) UpdateDeviceStatusRequest(input *UpdateDeviceStatusInput) (req *request.Request, output *UpdateDeviceStatusOutput) {
- op := &request.Operation{
- Name: opUpdateDeviceStatus,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateDeviceStatusInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateDeviceStatusOutput{}
- req.Data = output
- return
- }
- // Updates the device status.
- func (c *CognitoIdentityProvider) UpdateDeviceStatus(input *UpdateDeviceStatusInput) (*UpdateDeviceStatusOutput, error) {
- req, out := c.UpdateDeviceStatusRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateUserAttributes = "UpdateUserAttributes"
- // UpdateUserAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateUserAttributes 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 UpdateUserAttributes 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 UpdateUserAttributesRequest method.
- // req, resp := client.UpdateUserAttributesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserAttributesInput) (req *request.Request, output *UpdateUserAttributesOutput) {
- op := &request.Operation{
- Name: opUpdateUserAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateUserAttributesInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &UpdateUserAttributesOutput{}
- req.Data = output
- return
- }
- // Allows a user to update a specific attribute (one at a time).
- func (c *CognitoIdentityProvider) UpdateUserAttributes(input *UpdateUserAttributesInput) (*UpdateUserAttributesOutput, error) {
- req, out := c.UpdateUserAttributesRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateUserPool = "UpdateUserPool"
- // UpdateUserPoolRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateUserPool 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 UpdateUserPool 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 UpdateUserPoolRequest method.
- // req, resp := client.UpdateUserPoolRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInput) (req *request.Request, output *UpdateUserPoolOutput) {
- op := &request.Operation{
- Name: opUpdateUserPool,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateUserPoolInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateUserPoolOutput{}
- req.Data = output
- return
- }
- // Updates the specified user pool with the specified attributes.
- func (c *CognitoIdentityProvider) UpdateUserPool(input *UpdateUserPoolInput) (*UpdateUserPoolOutput, error) {
- req, out := c.UpdateUserPoolRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateUserPoolClient = "UpdateUserPoolClient"
- // UpdateUserPoolClientRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateUserPoolClient 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 UpdateUserPoolClient 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 UpdateUserPoolClientRequest method.
- // req, resp := client.UpdateUserPoolClientRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) UpdateUserPoolClientRequest(input *UpdateUserPoolClientInput) (req *request.Request, output *UpdateUserPoolClientOutput) {
- op := &request.Operation{
- Name: opUpdateUserPoolClient,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateUserPoolClientInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateUserPoolClientOutput{}
- req.Data = output
- return
- }
- // Allows the developer to update the specified user pool client and password
- // policy.
- func (c *CognitoIdentityProvider) UpdateUserPoolClient(input *UpdateUserPoolClientInput) (*UpdateUserPoolClientOutput, error) {
- req, out := c.UpdateUserPoolClientRequest(input)
- err := req.Send()
- return out, err
- }
- const opVerifyUserAttribute = "VerifyUserAttribute"
- // VerifyUserAttributeRequest generates a "aws/request.Request" representing the
- // client's request for the VerifyUserAttribute 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 VerifyUserAttribute 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 VerifyUserAttributeRequest method.
- // req, resp := client.VerifyUserAttributeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAttributeInput) (req *request.Request, output *VerifyUserAttributeOutput) {
- op := &request.Operation{
- Name: opVerifyUserAttribute,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &VerifyUserAttributeInput{}
- }
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- output = &VerifyUserAttributeOutput{}
- req.Data = output
- return
- }
- // Verifies the specified user attributes in the user pool.
- func (c *CognitoIdentityProvider) VerifyUserAttribute(input *VerifyUserAttributeInput) (*VerifyUserAttributeOutput, error) {
- req, out := c.VerifyUserAttributeRequest(input)
- err := req.Send()
- return out, err
- }
- // Represents the request to add custom attributes.
- type AddCustomAttributesInput struct {
- _ struct{} `type:"structure"`
- // An array of custom attributes, such as Mutable and Name.
- CustomAttributes []*SchemaAttributeType `min:"1" type:"list" required:"true"`
- // The user pool ID for the user pool where you want to add custom attributes.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AddCustomAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddCustomAttributesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddCustomAttributesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddCustomAttributesInput"}
- if s.CustomAttributes == nil {
- invalidParams.Add(request.NewErrParamRequired("CustomAttributes"))
- }
- if s.CustomAttributes != nil && len(s.CustomAttributes) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CustomAttributes", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.CustomAttributes != nil {
- for i, v := range s.CustomAttributes {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomAttributes", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server for the request to add custom attributes.
- type AddCustomAttributesOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AddCustomAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddCustomAttributesOutput) GoString() string {
- return s.String()
- }
- // Represents the request to confirm user registration.
- type AdminConfirmSignUpInput struct {
- _ struct{} `type:"structure"`
- // The user pool ID for which you want to confirm user registration.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name for which you want to confirm user registration.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminConfirmSignUpInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminConfirmSignUpInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminConfirmSignUpInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminConfirmSignUpInput"}
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server for the request to confirm registration.
- type AdminConfirmSignUpOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminConfirmSignUpOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminConfirmSignUpOutput) GoString() string {
- return s.String()
- }
- // Represents the request to delete user attributes as an administrator.
- type AdminDeleteUserAttributesInput struct {
- _ struct{} `type:"structure"`
- // An array of strings representing the user attribute names you wish to delete.
- UserAttributeNames []*string `type:"list" required:"true"`
- // The user pool ID for the user pool where you want to delete user attributes.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name of the user from which you would like to delete attributes.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminDeleteUserAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminDeleteUserAttributesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminDeleteUserAttributesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminDeleteUserAttributesInput"}
- if s.UserAttributeNames == nil {
- invalidParams.Add(request.NewErrParamRequired("UserAttributeNames"))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response received from the server for a request to delete
- // user attributes.
- type AdminDeleteUserAttributesOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminDeleteUserAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminDeleteUserAttributesOutput) GoString() string {
- return s.String()
- }
- // Represents the request to delete a user as an administrator.
- type AdminDeleteUserInput struct {
- _ struct{} `type:"structure"`
- // The user pool ID for the user pool where you want to delete the user.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name of the user you wish to delete.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminDeleteUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminDeleteUserInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminDeleteUserInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminDeleteUserInput"}
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type AdminDeleteUserOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminDeleteUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminDeleteUserOutput) GoString() string {
- return s.String()
- }
- // Represents the request to disable any user as an administrator.
- type AdminDisableUserInput struct {
- _ struct{} `type:"structure"`
- // The user pool ID for the user pool where you want to disable the user.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name of the user you wish to disable.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminDisableUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminDisableUserInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminDisableUserInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminDisableUserInput"}
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response received from the server to disable the user as an
- // administrator.
- type AdminDisableUserOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminDisableUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminDisableUserOutput) GoString() string {
- return s.String()
- }
- // Represents the request that enables the user as an administrator.
- type AdminEnableUserInput struct {
- _ struct{} `type:"structure"`
- // The user pool ID for the user pool where you want to enable the user.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name of the user you wish to ebable.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminEnableUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminEnableUserInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminEnableUserInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminEnableUserInput"}
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server for the request to enable a user
- // as an administrator.
- type AdminEnableUserOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminEnableUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminEnableUserOutput) GoString() string {
- return s.String()
- }
- // Sends the forgot device request, as an administrator.
- type AdminForgetDeviceInput struct {
- _ struct{} `type:"structure"`
- // The device key.
- DeviceKey *string `min:"1" type:"string" required:"true"`
- // The user pool ID.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminForgetDeviceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminForgetDeviceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminForgetDeviceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminForgetDeviceInput"}
- if s.DeviceKey == nil {
- invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
- }
- if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type AdminForgetDeviceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminForgetDeviceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminForgetDeviceOutput) GoString() string {
- return s.String()
- }
- // Represents the request to get the device, as an administrator.
- type AdminGetDeviceInput struct {
- _ struct{} `type:"structure"`
- // The device key.
- DeviceKey *string `min:"1" type:"string" required:"true"`
- // The user pool ID.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminGetDeviceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminGetDeviceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminGetDeviceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminGetDeviceInput"}
- if s.DeviceKey == nil {
- invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
- }
- if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Gets the device response, as an administrator.
- type AdminGetDeviceOutput struct {
- _ struct{} `type:"structure"`
- // The device.
- Device *DeviceType `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s AdminGetDeviceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminGetDeviceOutput) GoString() string {
- return s.String()
- }
- // Represents the request to get the specified user as an administrator.
- type AdminGetUserInput struct {
- _ struct{} `type:"structure"`
- // The user pool ID for the user pool where you want to get information about
- // the user.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name of the user you wish to retrieve.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminGetUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminGetUserInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminGetUserInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminGetUserInput"}
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server from the request to get the specified
- // user as an administrator.
- type AdminGetUserOutput struct {
- _ struct{} `type:"structure"`
- // Indicates that the status is enabled.
- Enabled *bool `type:"boolean"`
- // Specifies the options for MFA (e.g., email or phone number).
- MFAOptions []*MFAOptionType `type:"list"`
- // An array of name-value pairs representing user attributes.
- UserAttributes []*AttributeType `type:"list"`
- // The date the user was created.
- UserCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The date the user was last modified.
- UserLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The user status. Can be one of the following:
- //
- // UNCONFIRMED - User has been created but not confirmed. CONFIRMED - User
- // has been confirmed. ARCHIVED - User is no longer active. COMPROMISED - User
- // is disabled due to a potential security threat. UNKNOWN - User status is
- // not known.
- UserStatus *string `type:"string" enum:"UserStatusType"`
- // The user name of the user about whom you are receiving information.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminGetUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminGetUserOutput) GoString() string {
- return s.String()
- }
- // Initiates the authorization request, as an administrator.
- type AdminInitiateAuthInput struct {
- _ struct{} `type:"structure"`
- // The authentication flow.
- AuthFlow *string `type:"string" required:"true" enum:"AuthFlowType"`
- // The authentication parameters.
- AuthParameters map[string]*string `type:"map"`
- // The client app ID.
- ClientId *string `min:"1" type:"string" required:"true"`
- // The client app metadata.
- ClientMetadata map[string]*string `type:"map"`
- // The ID of the Amazon Cognito user pool.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminInitiateAuthInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminInitiateAuthInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminInitiateAuthInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminInitiateAuthInput"}
- if s.AuthFlow == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthFlow"))
- }
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Initiates the authentication response, as an administrator.
- type AdminInitiateAuthOutput struct {
- _ struct{} `type:"structure"`
- // The result type of the authentication result.
- AuthenticationResult *AuthenticationResultType `type:"structure"`
- // The name of the challenge.
- ChallengeName *string `type:"string" enum:"ChallengeNameType"`
- // The challenge parameters.
- ChallengeParameters map[string]*string `type:"map"`
- // The session.
- Session *string `min:"20" type:"string"`
- }
- // String returns the string representation
- func (s AdminInitiateAuthOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminInitiateAuthOutput) GoString() string {
- return s.String()
- }
- // Represents the request to list devices, as an administrator.
- type AdminListDevicesInput struct {
- _ struct{} `type:"structure"`
- // The limit of the devices request.
- Limit *int64 `type:"integer"`
- // The pagination token.
- PaginationToken *string `min:"1" type:"string"`
- // The user pool ID.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminListDevicesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminListDevicesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminListDevicesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminListDevicesInput"}
- if s.PaginationToken != nil && len(*s.PaginationToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Lists the device's response, as an administrator.
- type AdminListDevicesOutput struct {
- _ struct{} `type:"structure"`
- // The devices in the list of devices response.
- Devices []*DeviceType `type:"list"`
- // The pagination token.
- PaginationToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s AdminListDevicesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminListDevicesOutput) GoString() string {
- return s.String()
- }
- // Represents the request to reset a user's password as an administrator.
- type AdminResetUserPasswordInput struct {
- _ struct{} `type:"structure"`
- // The user pool ID for the user pool where you want to reset the user's password.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name of the user whose password you wish to reset.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminResetUserPasswordInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminResetUserPasswordInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminResetUserPasswordInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminResetUserPasswordInput"}
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server to reset a user password as an administrator.
- type AdminResetUserPasswordOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminResetUserPasswordOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminResetUserPasswordOutput) GoString() string {
- return s.String()
- }
- // The request to respond to the authentication challenge, as an administrator.
- type AdminRespondToAuthChallengeInput struct {
- _ struct{} `type:"structure"`
- // The name of the challenge.
- ChallengeName *string `type:"string" required:"true" enum:"ChallengeNameType"`
- // The challenge response.
- ChallengeResponses map[string]*string `type:"map"`
- // The client ID.
- ClientId *string `min:"1" type:"string" required:"true"`
- // The session.
- Session *string `min:"20" type:"string"`
- // The ID of the Amazon Cognito user pool.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminRespondToAuthChallengeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminRespondToAuthChallengeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminRespondToAuthChallengeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminRespondToAuthChallengeInput"}
- if s.ChallengeName == nil {
- invalidParams.Add(request.NewErrParamRequired("ChallengeName"))
- }
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.Session != nil && len(*s.Session) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("Session", 20))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Responds to the authentication challenge, as an administrator.
- type AdminRespondToAuthChallengeOutput struct {
- _ struct{} `type:"structure"`
- // The result type of the authentication result.
- AuthenticationResult *AuthenticationResultType `type:"structure"`
- // The name of the challenge.
- ChallengeName *string `type:"string" enum:"ChallengeNameType"`
- // The challenge parameters.
- ChallengeParameters map[string]*string `type:"map"`
- // The session.
- Session *string `min:"20" type:"string"`
- }
- // String returns the string representation
- func (s AdminRespondToAuthChallengeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminRespondToAuthChallengeOutput) GoString() string {
- return s.String()
- }
- // Represents the request to set user settings as an administrator.
- type AdminSetUserSettingsInput struct {
- _ struct{} `type:"structure"`
- // Specifies the options for MFA (e.g., email or phone number).
- MFAOptions []*MFAOptionType `type:"list" required:"true"`
- // The user pool ID for the user pool where you want to set the user's settings,
- // such as MFA options.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name of the user for whom you wish to set user settings.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminSetUserSettingsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminSetUserSettingsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminSetUserSettingsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminSetUserSettingsInput"}
- if s.MFAOptions == nil {
- invalidParams.Add(request.NewErrParamRequired("MFAOptions"))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if s.MFAOptions != nil {
- for i, v := range s.MFAOptions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MFAOptions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server to set user settings as an administrator.
- type AdminSetUserSettingsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminSetUserSettingsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminSetUserSettingsOutput) GoString() string {
- return s.String()
- }
- // The request to update the device status, as an administrator.
- type AdminUpdateDeviceStatusInput struct {
- _ struct{} `type:"structure"`
- // The device key.
- DeviceKey *string `min:"1" type:"string" required:"true"`
- // The status indicating whether a device has been remembered or not.
- DeviceRememberedStatus *string `type:"string" enum:"DeviceRememberedStatusType"`
- // The user pool ID>
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminUpdateDeviceStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminUpdateDeviceStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminUpdateDeviceStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminUpdateDeviceStatusInput"}
- if s.DeviceKey == nil {
- invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
- }
- if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The status response from the request to update the device, as an administrator.
- type AdminUpdateDeviceStatusOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminUpdateDeviceStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminUpdateDeviceStatusOutput) GoString() string {
- return s.String()
- }
- // Represents the request to update the user's attributes as an administrator.
- type AdminUpdateUserAttributesInput struct {
- _ struct{} `type:"structure"`
- // An array of name-value pairs representing user attributes.
- UserAttributes []*AttributeType `type:"list" required:"true"`
- // The user pool ID for the user pool where you want to update user attributes.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name of the user for whom you want to update user attributes.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminUpdateUserAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminUpdateUserAttributesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminUpdateUserAttributesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminUpdateUserAttributesInput"}
- if s.UserAttributes == nil {
- invalidParams.Add(request.NewErrParamRequired("UserAttributes"))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if s.UserAttributes != nil {
- for i, v := range s.UserAttributes {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server for the request to update user attributes
- // as an administrator.
- type AdminUpdateUserAttributesOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminUpdateUserAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminUpdateUserAttributesOutput) GoString() string {
- return s.String()
- }
- // The request to sign out of all devices, as an administrator.
- type AdminUserGlobalSignOutInput struct {
- _ struct{} `type:"structure"`
- // The user pool ID.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The user name.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AdminUserGlobalSignOutInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminUserGlobalSignOutInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AdminUserGlobalSignOutInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AdminUserGlobalSignOutInput"}
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The global signot response, as an administrator.
- type AdminUserGlobalSignOutOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AdminUserGlobalSignOutOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdminUserGlobalSignOutOutput) GoString() string {
- return s.String()
- }
- // Specifies whether the attribute is standard or custom.
- type AttributeType struct {
- _ struct{} `type:"structure"`
- // The name of the attribute.
- Name *string `min:"1" type:"string" required:"true"`
- // The value of the attribute.
- Value *string `type:"string"`
- }
- // String returns the string representation
- func (s AttributeType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttributeType) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AttributeType) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AttributeType"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result type of the authentication result.
- type AuthenticationResultType struct {
- _ struct{} `type:"structure"`
- // The access token of the authentication result.
- AccessToken *string `type:"string"`
- // The expiration period of the authentication result.
- ExpiresIn *int64 `type:"integer"`
- // The ID token of the authentication result.
- IdToken *string `type:"string"`
- // The new device metadata from an authentication result.
- NewDeviceMetadata *NewDeviceMetadataType `type:"structure"`
- // The refresh token of the authentication result.
- RefreshToken *string `type:"string"`
- // The token type of the authentication result.
- TokenType *string `type:"string"`
- }
- // String returns the string representation
- func (s AuthenticationResultType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthenticationResultType) GoString() string {
- return s.String()
- }
- // Represents the request to change a user password.
- type ChangePasswordInput struct {
- _ struct{} `type:"structure"`
- // The access token in the change password request.
- AccessToken *string `type:"string"`
- // The old password in the change password request.
- PreviousPassword *string `min:"6" type:"string" required:"true"`
- // The new password in the change password request.
- ProposedPassword *string `min:"6" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ChangePasswordInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChangePasswordInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ChangePasswordInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ChangePasswordInput"}
- if s.PreviousPassword == nil {
- invalidParams.Add(request.NewErrParamRequired("PreviousPassword"))
- }
- if s.PreviousPassword != nil && len(*s.PreviousPassword) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("PreviousPassword", 6))
- }
- if s.ProposedPassword == nil {
- invalidParams.Add(request.NewErrParamRequired("ProposedPassword"))
- }
- if s.ProposedPassword != nil && len(*s.ProposedPassword) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("ProposedPassword", 6))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The response from the server to the change password request.
- type ChangePasswordOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ChangePasswordOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChangePasswordOutput) GoString() string {
- return s.String()
- }
- // The type of code delivery details being returned from the server.
- type CodeDeliveryDetailsType struct {
- _ struct{} `type:"structure"`
- // The name of the attribute in the code delivery details type.
- AttributeName *string `min:"1" type:"string"`
- // The delivery medium (email message or phone number).
- DeliveryMedium *string `type:"string" enum:"DeliveryMediumType"`
- // The destination for the code delivery details.
- Destination *string `type:"string"`
- }
- // String returns the string representation
- func (s CodeDeliveryDetailsType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CodeDeliveryDetailsType) GoString() string {
- return s.String()
- }
- // Confirms the device request.
- type ConfirmDeviceInput struct {
- _ struct{} `type:"structure"`
- // The access token.
- AccessToken *string `type:"string" required:"true"`
- // The device key.
- DeviceKey *string `min:"1" type:"string" required:"true"`
- // The device name.
- DeviceName *string `min:"1" type:"string"`
- // The configuration of the device secret verifier.
- DeviceSecretVerifierConfig *DeviceSecretVerifierConfigType `type:"structure"`
- }
- // String returns the string representation
- func (s ConfirmDeviceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConfirmDeviceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ConfirmDeviceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ConfirmDeviceInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if s.DeviceKey == nil {
- invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
- }
- if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
- }
- if s.DeviceName != nil && len(*s.DeviceName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Confirms the device response.
- type ConfirmDeviceOutput struct {
- _ struct{} `type:"structure"`
- // Indicates whether the user confirmation is necessary to confirm the device
- // response.
- UserConfirmationNecessary *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s ConfirmDeviceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConfirmDeviceOutput) GoString() string {
- return s.String()
- }
- // The request representing the confirmation for a password reset.
- type ConfirmForgotPasswordInput struct {
- _ struct{} `type:"structure"`
- // The ID of the client associated with the user pool.
- ClientId *string `min:"1" type:"string" required:"true"`
- // The confirmation code sent by a user's request to retrieve a forgotten password.
- ConfirmationCode *string `min:"1" type:"string" required:"true"`
- // The password sent by sent by a user's request to retrieve a forgotten password.
- Password *string `min:"6" type:"string" required:"true"`
- // A keyed-hash message authentication code (HMAC) calculated using the secret
- // key of a user pool client and username plus the client ID in the message.
- SecretHash *string `min:"1" type:"string"`
- // The user name of the user for whom you want to enter a code to retrieve a
- // forgotten password.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ConfirmForgotPasswordInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConfirmForgotPasswordInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ConfirmForgotPasswordInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ConfirmForgotPasswordInput"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.ConfirmationCode == nil {
- invalidParams.Add(request.NewErrParamRequired("ConfirmationCode"))
- }
- if s.ConfirmationCode != nil && len(*s.ConfirmationCode) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ConfirmationCode", 1))
- }
- if s.Password == nil {
- invalidParams.Add(request.NewErrParamRequired("Password"))
- }
- if s.Password != nil && len(*s.Password) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("Password", 6))
- }
- if s.SecretHash != nil && len(*s.SecretHash) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The response from the server that results from a user's request to retrieve
- // a forgotten password.
- type ConfirmForgotPasswordOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ConfirmForgotPasswordOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConfirmForgotPasswordOutput) GoString() string {
- return s.String()
- }
- // Represents the request to confirm registration of a user.
- type ConfirmSignUpInput struct {
- _ struct{} `type:"structure"`
- // The ID of the client associated with the user pool.
- ClientId *string `min:"1" type:"string" required:"true"`
- // The confirmation code sent by a user's request to confirm registration.
- ConfirmationCode *string `min:"1" type:"string" required:"true"`
- // Boolean to be specified to force user confirmation irrespective of existing
- // alias. By default set to False. If this parameter is set to True and the
- // phone number/email used for sign up confirmation already exists as an alias
- // with a different user, the API call will migrate the alias from the previous
- // user to the newly created user being confirmed. If set to False, the API
- // will throw an AliasExistsException error.
- ForceAliasCreation *bool `type:"boolean"`
- // A keyed-hash message authentication code (HMAC) calculated using the secret
- // key of a user pool client and username plus the client ID in the message.
- SecretHash *string `min:"1" type:"string"`
- // The user name of the user whose registration you wish to confirm.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ConfirmSignUpInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConfirmSignUpInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ConfirmSignUpInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ConfirmSignUpInput"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.ConfirmationCode == nil {
- invalidParams.Add(request.NewErrParamRequired("ConfirmationCode"))
- }
- if s.ConfirmationCode != nil && len(*s.ConfirmationCode) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ConfirmationCode", 1))
- }
- if s.SecretHash != nil && len(*s.SecretHash) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server for the registration confirmation.
- type ConfirmSignUpOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ConfirmSignUpOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConfirmSignUpOutput) GoString() string {
- return s.String()
- }
- // Represents the request to create a user pool client.
- type CreateUserPoolClientInput struct {
- _ struct{} `type:"structure"`
- // The client name for the user pool client you would like to create.
- ClientName *string `min:"1" type:"string" required:"true"`
- // The explicit authentication flows.
- ExplicitAuthFlows []*string `type:"list"`
- // Boolean to specify whether you want to generate a secret for the user pool
- // client being created.
- GenerateSecret *bool `type:"boolean"`
- // The read attributes.
- ReadAttributes []*string `type:"list"`
- // Refreshes the token validity.
- RefreshTokenValidity *int64 `type:"integer"`
- // The user pool ID for the user pool where you want to create a user pool client.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The write attributes.
- WriteAttributes []*string `type:"list"`
- }
- // String returns the string representation
- func (s CreateUserPoolClientInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateUserPoolClientInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateUserPoolClientInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolClientInput"}
- if s.ClientName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientName"))
- }
- if s.ClientName != nil && len(*s.ClientName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientName", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server to create a user pool client.
- type CreateUserPoolClientOutput struct {
- _ struct{} `type:"structure"`
- // The user pool client that was just created.
- UserPoolClient *UserPoolClientType `type:"structure"`
- }
- // String returns the string representation
- func (s CreateUserPoolClientOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateUserPoolClientOutput) GoString() string {
- return s.String()
- }
- // Represents the request to create a user pool.
- type CreateUserPoolInput struct {
- _ struct{} `type:"structure"`
- // Attributes supported as an alias for this user pool. Possible values: phone_number,
- // email, or preferred_username.
- AliasAttributes []*string `type:"list"`
- // The attributes to be auto-verified. Possible values: email, phone_number.
- AutoVerifiedAttributes []*string `type:"list"`
- // The device configuration.
- DeviceConfiguration *DeviceConfigurationType `type:"structure"`
- // The email configuration.
- EmailConfiguration *EmailConfigurationType `type:"structure"`
- // A string representing the email verification message.
- EmailVerificationMessage *string `min:"6" type:"string"`
- // A string representing the email verification subject.
- EmailVerificationSubject *string `min:"1" type:"string"`
- // The Lambda trigger configuration information for the new user pool.
- LambdaConfig *LambdaConfigType `type:"structure"`
- // Specifies MFA configuration details.
- MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"`
- // The policies associated with the new user pool.
- Policies *UserPoolPolicyType `type:"structure"`
- // A string used to name the user pool.
- PoolName *string `min:"1" type:"string" required:"true"`
- // A string representing the SMS authentication message.
- SmsAuthenticationMessage *string `min:"6" type:"string"`
- // The SMS configuration.
- SmsConfiguration *SmsConfigurationType `type:"structure"`
- // A string representing the SMS verification message.
- SmsVerificationMessage *string `min:"6" type:"string"`
- }
- // String returns the string representation
- func (s CreateUserPoolInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateUserPoolInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateUserPoolInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolInput"}
- if s.EmailVerificationMessage != nil && len(*s.EmailVerificationMessage) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("EmailVerificationMessage", 6))
- }
- if s.EmailVerificationSubject != nil && len(*s.EmailVerificationSubject) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("EmailVerificationSubject", 1))
- }
- if s.PoolName == nil {
- invalidParams.Add(request.NewErrParamRequired("PoolName"))
- }
- if s.PoolName != nil && len(*s.PoolName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PoolName", 1))
- }
- if s.SmsAuthenticationMessage != nil && len(*s.SmsAuthenticationMessage) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("SmsAuthenticationMessage", 6))
- }
- if s.SmsVerificationMessage != nil && len(*s.SmsVerificationMessage) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("SmsVerificationMessage", 6))
- }
- if s.EmailConfiguration != nil {
- if err := s.EmailConfiguration.Validate(); err != nil {
- invalidParams.AddNested("EmailConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if s.LambdaConfig != nil {
- if err := s.LambdaConfig.Validate(); err != nil {
- invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.Policies != nil {
- if err := s.Policies.Validate(); err != nil {
- invalidParams.AddNested("Policies", err.(request.ErrInvalidParams))
- }
- }
- if s.SmsConfiguration != nil {
- if err := s.SmsConfiguration.Validate(); err != nil {
- invalidParams.AddNested("SmsConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server for the request to create a user
- // pool.
- type CreateUserPoolOutput struct {
- _ struct{} `type:"structure"`
- // A container for the user pool details.
- UserPool *UserPoolType `type:"structure"`
- }
- // String returns the string representation
- func (s CreateUserPoolOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateUserPoolOutput) GoString() string {
- return s.String()
- }
- // Represents the request to delete user attributes.
- type DeleteUserAttributesInput struct {
- _ struct{} `type:"structure"`
- // The access token used in the request to delete user attributes.
- AccessToken *string `type:"string"`
- // An array of strings representing the user attribute names you wish to delete.
- UserAttributeNames []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DeleteUserAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUserAttributesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteUserAttributesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteUserAttributesInput"}
- if s.UserAttributeNames == nil {
- invalidParams.Add(request.NewErrParamRequired("UserAttributeNames"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server to delete user attributes.
- type DeleteUserAttributesOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteUserAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUserAttributesOutput) GoString() string {
- return s.String()
- }
- // Represents the request to delete a user.
- type DeleteUserInput struct {
- _ struct{} `type:"structure"`
- // The access token from a request to delete a user.
- AccessToken *string `type:"string"`
- }
- // String returns the string representation
- func (s DeleteUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUserInput) GoString() string {
- return s.String()
- }
- type DeleteUserOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUserOutput) GoString() string {
- return s.String()
- }
- // Represents the request to delete a user pool client.
- type DeleteUserPoolClientInput struct {
- _ struct{} `type:"structure"`
- // The ID of the client associated with the user pool.
- ClientId *string `min:"1" type:"string" required:"true"`
- // The user pool ID for the user pool where you want to delete the client.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteUserPoolClientInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUserPoolClientInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteUserPoolClientInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolClientInput"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteUserPoolClientOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteUserPoolClientOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUserPoolClientOutput) GoString() string {
- return s.String()
- }
- // Represents the request to delete a user pool.
- type DeleteUserPoolInput struct {
- _ struct{} `type:"structure"`
- // The user pool ID for the user pool you want to delete.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteUserPoolInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUserPoolInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteUserPoolInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolInput"}
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteUserPoolOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteUserPoolOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUserPoolOutput) GoString() string {
- return s.String()
- }
- // Represents the request to describe a user pool client.
- type DescribeUserPoolClientInput struct {
- _ struct{} `type:"structure"`
- // The ID of the client associated with the user pool.
- ClientId *string `min:"1" type:"string" required:"true"`
- // The user pool ID for the user pool you want to describe.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeUserPoolClientInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeUserPoolClientInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeUserPoolClientInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolClientInput"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server from a request to describe the user
- // pool client.
- type DescribeUserPoolClientOutput struct {
- _ struct{} `type:"structure"`
- // The user pool client from a server response to describe the user pool client.
- UserPoolClient *UserPoolClientType `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeUserPoolClientOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeUserPoolClientOutput) GoString() string {
- return s.String()
- }
- // Represents the request to describe the user pool.
- type DescribeUserPoolInput struct {
- _ struct{} `type:"structure"`
- // The user pool ID for the user pool you want to describe.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeUserPoolInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeUserPoolInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeUserPoolInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolInput"}
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response to describe the user pool.
- type DescribeUserPoolOutput struct {
- _ struct{} `type:"structure"`
- // The container of metadata returned by the server to describe the pool.
- UserPool *UserPoolType `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeUserPoolOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeUserPoolOutput) GoString() string {
- return s.String()
- }
- // The type of configuration for the user pool's device tracking.
- type DeviceConfigurationType struct {
- _ struct{} `type:"structure"`
- // Indicates whether a challenge is required on a new device. Only applicable
- // to a new device.
- ChallengeRequiredOnNewDevice *bool `type:"boolean"`
- // If true, a device is only remembered on user prompt.
- DeviceOnlyRememberedOnUserPrompt *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s DeviceConfigurationType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeviceConfigurationType) GoString() string {
- return s.String()
- }
- // The device verifier against which it will be authenticated.
- type DeviceSecretVerifierConfigType struct {
- _ struct{} `type:"structure"`
- // The password verifier.
- PasswordVerifier *string `type:"string"`
- // The salt.
- Salt *string `type:"string"`
- }
- // String returns the string representation
- func (s DeviceSecretVerifierConfigType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeviceSecretVerifierConfigType) GoString() string {
- return s.String()
- }
- // The device type.
- type DeviceType struct {
- _ struct{} `type:"structure"`
- // The device attributes.
- DeviceAttributes []*AttributeType `type:"list"`
- // The creation date of the device.
- DeviceCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The device key.
- DeviceKey *string `min:"1" type:"string"`
- // The date in which the device was last authenticated.
- DeviceLastAuthenticatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The last modified date of the device.
- DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- }
- // String returns the string representation
- func (s DeviceType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeviceType) GoString() string {
- return s.String()
- }
- // The email configuration type.
- type EmailConfigurationType struct {
- _ struct{} `type:"structure"`
- // The REPLY-TO email address.
- ReplyToEmailAddress *string `type:"string"`
- // The Amazon Resource Name (ARN) of the email source.
- SourceArn *string `min:"20" type:"string"`
- }
- // String returns the string representation
- func (s EmailConfigurationType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EmailConfigurationType) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EmailConfigurationType) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EmailConfigurationType"}
- if s.SourceArn != nil && len(*s.SourceArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("SourceArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the request to forget the device.
- type ForgetDeviceInput struct {
- _ struct{} `type:"structure"`
- // The access token for the forgotten device request.
- AccessToken *string `type:"string"`
- // The device key.
- DeviceKey *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ForgetDeviceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ForgetDeviceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ForgetDeviceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ForgetDeviceInput"}
- if s.DeviceKey == nil {
- invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
- }
- if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ForgetDeviceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ForgetDeviceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ForgetDeviceOutput) GoString() string {
- return s.String()
- }
- // Represents the request to reset a user's password.
- type ForgotPasswordInput struct {
- _ struct{} `type:"structure"`
- // The ID of the client associated with the user pool.
- ClientId *string `min:"1" type:"string" required:"true"`
- // A keyed-hash message authentication code (HMAC) calculated using the secret
- // key of a user pool client and username plus the client ID in the message.
- SecretHash *string `min:"1" type:"string"`
- // The user name of the user for whom you want to enter a code to retrieve a
- // forgotten password.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ForgotPasswordInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ForgotPasswordInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ForgotPasswordInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ForgotPasswordInput"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.SecretHash != nil && len(*s.SecretHash) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Respresents the response from the server regarding the request to reset a
- // password.
- type ForgotPasswordOutput struct {
- _ struct{} `type:"structure"`
- // The type of code delivery details being returned from the server.
- CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"`
- }
- // String returns the string representation
- func (s ForgotPasswordOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ForgotPasswordOutput) GoString() string {
- return s.String()
- }
- // Represents the request to get the device.
- type GetDeviceInput struct {
- _ struct{} `type:"structure"`
- // The access token.
- AccessToken *string `type:"string"`
- // The device key.
- DeviceKey *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDeviceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeviceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDeviceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDeviceInput"}
- if s.DeviceKey == nil {
- invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
- }
- if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Gets the device response.
- type GetDeviceOutput struct {
- _ struct{} `type:"structure"`
- // The device.
- Device *DeviceType `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetDeviceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeviceOutput) GoString() string {
- return s.String()
- }
- // Represents the request to get user attribute verification.
- type GetUserAttributeVerificationCodeInput struct {
- _ struct{} `type:"structure"`
- // The access token returned by the server response to get the user attribute
- // verification code.
- AccessToken *string `type:"string"`
- // The attribute name returned by the server response to get the user attribute
- // verification code.
- AttributeName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetUserAttributeVerificationCodeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUserAttributeVerificationCodeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetUserAttributeVerificationCodeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetUserAttributeVerificationCodeInput"}
- if s.AttributeName == nil {
- invalidParams.Add(request.NewErrParamRequired("AttributeName"))
- }
- if s.AttributeName != nil && len(*s.AttributeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The verification code response returned by the server response to get the
- // user attribute verification code.
- type GetUserAttributeVerificationCodeOutput struct {
- _ struct{} `type:"structure"`
- // The code delivery details returned by the server response to get the user
- // attribute verification code.
- CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"`
- }
- // String returns the string representation
- func (s GetUserAttributeVerificationCodeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUserAttributeVerificationCodeOutput) GoString() string {
- return s.String()
- }
- // Represents the request to get information about the user.
- type GetUserInput struct {
- _ struct{} `type:"structure"`
- // The access token returned by the server response to get information about
- // the user.
- AccessToken *string `type:"string"`
- }
- // String returns the string representation
- func (s GetUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUserInput) GoString() string {
- return s.String()
- }
- // Represents the response from the server from the request to get information
- // about the user.
- type GetUserOutput struct {
- _ struct{} `type:"structure"`
- // Specifies the options for MFA (e.g., email or phone number).
- MFAOptions []*MFAOptionType `type:"list"`
- // An array of name-value pairs representing user attributes.
- UserAttributes []*AttributeType `type:"list" required:"true"`
- // The user name of the user you wish to retrieve from the get user request.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUserOutput) GoString() string {
- return s.String()
- }
- // Represents the request to sign out all devices.
- type GlobalSignOutInput struct {
- _ struct{} `type:"structure"`
- // The access token.
- AccessToken *string `type:"string"`
- }
- // String returns the string representation
- func (s GlobalSignOutInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GlobalSignOutInput) GoString() string {
- return s.String()
- }
- // The response to the request to sign out all devices.
- type GlobalSignOutOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s GlobalSignOutOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GlobalSignOutOutput) GoString() string {
- return s.String()
- }
- // Initiates the authentication request.
- type InitiateAuthInput struct {
- _ struct{} `type:"structure"`
- // The authentication flow.
- AuthFlow *string `type:"string" required:"true" enum:"AuthFlowType"`
- // The authentication parameters.
- AuthParameters map[string]*string `type:"map"`
- // The client ID.
- ClientId *string `min:"1" type:"string" required:"true"`
- // The client app's metadata.
- ClientMetadata map[string]*string `type:"map"`
- }
- // String returns the string representation
- func (s InitiateAuthInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InitiateAuthInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InitiateAuthInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InitiateAuthInput"}
- if s.AuthFlow == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthFlow"))
- }
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Initiates the authentication response.
- type InitiateAuthOutput struct {
- _ struct{} `type:"structure"`
- // The result type of the authentication result.
- AuthenticationResult *AuthenticationResultType `type:"structure"`
- // The name of the challenge.
- ChallengeName *string `type:"string" enum:"ChallengeNameType"`
- // The challenge parameters.
- ChallengeParameters map[string]*string `type:"map"`
- // The session.
- Session *string `min:"20" type:"string"`
- }
- // String returns the string representation
- func (s InitiateAuthOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InitiateAuthOutput) GoString() string {
- return s.String()
- }
- // Specifies the type of configuration for AWS Lambda triggers.
- type LambdaConfigType struct {
- _ struct{} `type:"structure"`
- // Creates an authentication challenge.
- CreateAuthChallenge *string `min:"20" type:"string"`
- // A custom Message AWS Lambda trigger.
- CustomMessage *string `min:"20" type:"string"`
- // Defines the authentication challenge.
- DefineAuthChallenge *string `min:"20" type:"string"`
- // A post-authentication AWS Lambda trigger.
- PostAuthentication *string `min:"20" type:"string"`
- // A post-confirmation AWS Lambda trigger.
- PostConfirmation *string `min:"20" type:"string"`
- // A pre-authentication AWS Lambda trigger.
- PreAuthentication *string `min:"20" type:"string"`
- // A pre-registration AWS Lambda trigger.
- PreSignUp *string `min:"20" type:"string"`
- // Verifies the authentication challenge response.
- VerifyAuthChallengeResponse *string `min:"20" type:"string"`
- }
- // String returns the string representation
- func (s LambdaConfigType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LambdaConfigType) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LambdaConfigType) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LambdaConfigType"}
- if s.CreateAuthChallenge != nil && len(*s.CreateAuthChallenge) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("CreateAuthChallenge", 20))
- }
- if s.CustomMessage != nil && len(*s.CustomMessage) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("CustomMessage", 20))
- }
- if s.DefineAuthChallenge != nil && len(*s.DefineAuthChallenge) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("DefineAuthChallenge", 20))
- }
- if s.PostAuthentication != nil && len(*s.PostAuthentication) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("PostAuthentication", 20))
- }
- if s.PostConfirmation != nil && len(*s.PostConfirmation) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("PostConfirmation", 20))
- }
- if s.PreAuthentication != nil && len(*s.PreAuthentication) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("PreAuthentication", 20))
- }
- if s.PreSignUp != nil && len(*s.PreSignUp) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("PreSignUp", 20))
- }
- if s.VerifyAuthChallengeResponse != nil && len(*s.VerifyAuthChallengeResponse) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("VerifyAuthChallengeResponse", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the request to list the devices.
- type ListDevicesInput struct {
- _ struct{} `type:"structure"`
- // The access tokens for the request to list devices.
- AccessToken *string `type:"string" required:"true"`
- // The limit of the device request.
- Limit *int64 `type:"integer"`
- // The pagination token for the list request.
- PaginationToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListDevicesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDevicesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListDevicesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListDevicesInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if s.PaginationToken != nil && len(*s.PaginationToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response to list devices.
- type ListDevicesOutput struct {
- _ struct{} `type:"structure"`
- // The devices returned in the list devices response.
- Devices []*DeviceType `type:"list"`
- // The pagination token for the list device response.
- PaginationToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListDevicesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDevicesOutput) GoString() string {
- return s.String()
- }
- // Represents the request to list the user pool clients.
- type ListUserPoolClientsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results you want the request to return when listing
- // the user pool clients.
- MaxResults *int64 `min:"1" type:"integer"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `min:"1" type:"string"`
- // The user pool ID for the user pool where you want to list user pool clients.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListUserPoolClientsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListUserPoolClientsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListUserPoolClientsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListUserPoolClientsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server that lists user pool clients.
- type ListUserPoolClientsOutput struct {
- _ struct{} `type:"structure"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `min:"1" type:"string"`
- // The user pool clients in the response that lists user pool clients.
- UserPoolClients []*UserPoolClientDescription `type:"list"`
- }
- // String returns the string representation
- func (s ListUserPoolClientsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListUserPoolClientsOutput) GoString() string {
- return s.String()
- }
- // Represents the request to list user pools.
- type ListUserPoolsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results you want the request to return when listing
- // the user pools.
- MaxResults *int64 `min:"1" type:"integer" required:"true"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListUserPoolsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListUserPoolsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListUserPoolsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListUserPoolsInput"}
- if s.MaxResults == nil {
- invalidParams.Add(request.NewErrParamRequired("MaxResults"))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response to list user pools.
- type ListUserPoolsOutput struct {
- _ struct{} `type:"structure"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `min:"1" type:"string"`
- // The user pools from the response to list users.
- UserPools []*UserPoolDescriptionType `type:"list"`
- }
- // String returns the string representation
- func (s ListUserPoolsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListUserPoolsOutput) GoString() string {
- return s.String()
- }
- // Represents the request to list users.
- type ListUsersInput struct {
- _ struct{} `type:"structure"`
- // The attributes to get from the request to list users.
- AttributesToGet []*string `type:"list"`
- // The filter for the list users request.
- Filter *string `type:"string"`
- // The limit of the request to list users.
- Limit *int64 `type:"integer"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- PaginationToken *string `min:"1" type:"string"`
- // The user pool ID for which you want to list users.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListUsersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListUsersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListUsersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"}
- if s.PaginationToken != nil && len(*s.PaginationToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The response from the request to list users.
- type ListUsersOutput struct {
- _ struct{} `type:"structure"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- PaginationToken *string `min:"1" type:"string"`
- // The users returned in the request to list users.
- Users []*UserType `type:"list"`
- }
- // String returns the string representation
- func (s ListUsersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListUsersOutput) GoString() string {
- return s.String()
- }
- // Specifies the different settings for multi-factor authentication (MFA).
- type MFAOptionType struct {
- _ struct{} `type:"structure"`
- // The attribute name of the MFA option type.
- AttributeName *string `min:"1" type:"string"`
- // The delivery medium (email message or SMS message) to send the MFA code.
- DeliveryMedium *string `type:"string" enum:"DeliveryMediumType"`
- }
- // String returns the string representation
- func (s MFAOptionType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MFAOptionType) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *MFAOptionType) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "MFAOptionType"}
- if s.AttributeName != nil && len(*s.AttributeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The new device metadata type.
- type NewDeviceMetadataType struct {
- _ struct{} `type:"structure"`
- // The device group key.
- DeviceGroupKey *string `type:"string"`
- // The device key.
- DeviceKey *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s NewDeviceMetadataType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s NewDeviceMetadataType) GoString() string {
- return s.String()
- }
- // The minimum and maximum value of an attribute that is of the number data
- // type.
- type NumberAttributeConstraintsType struct {
- _ struct{} `type:"structure"`
- // The maximum value of an attribute that is of the number data type.
- MaxValue *string `type:"string"`
- // The minimum value of an attribute that is of the number data type.
- MinValue *string `type:"string"`
- }
- // String returns the string representation
- func (s NumberAttributeConstraintsType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s NumberAttributeConstraintsType) GoString() string {
- return s.String()
- }
- // The password policy type.
- type PasswordPolicyType struct {
- _ struct{} `type:"structure"`
- // The minimum length of the password policy that you have set. Cannot be less
- // than 6.
- MinimumLength *int64 `min:"6" type:"integer"`
- // In the password policy that you have set, refers to whether you have required
- // users to use at least one lowercase letter in their password.
- RequireLowercase *bool `type:"boolean"`
- // In the password policy that you have set, refers to whether you have required
- // users to use at least one number in their password.
- RequireNumbers *bool `type:"boolean"`
- // In the password policy that you have set, refers to whether you have required
- // users to use at least one symbol in their password.
- RequireSymbols *bool `type:"boolean"`
- // In the password policy that you have set, refers to whether you have required
- // users to use at least one uppercase letter in their password.
- RequireUppercase *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s PasswordPolicyType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PasswordPolicyType) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PasswordPolicyType) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PasswordPolicyType"}
- if s.MinimumLength != nil && *s.MinimumLength < 6 {
- invalidParams.Add(request.NewErrParamMinValue("MinimumLength", 6))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the request to resend the confirmation code.
- type ResendConfirmationCodeInput struct {
- _ struct{} `type:"structure"`
- // The ID of the client associated with the user pool.
- ClientId *string `min:"1" type:"string" required:"true"`
- // A keyed-hash message authentication code (HMAC) calculated using the secret
- // key of a user pool client and username plus the client ID in the message.
- SecretHash *string `min:"1" type:"string"`
- // The user name of the user to whom you wish to resend a confirmation code.
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ResendConfirmationCodeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResendConfirmationCodeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ResendConfirmationCodeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ResendConfirmationCodeInput"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.SecretHash != nil && len(*s.SecretHash) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The response from the server when the Amazon Cognito service makes the request
- // to resend a confirmation code.
- type ResendConfirmationCodeOutput struct {
- _ struct{} `type:"structure"`
- // The type of code delivery details being returned from the server.
- CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"`
- }
- // String returns the string representation
- func (s ResendConfirmationCodeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResendConfirmationCodeOutput) GoString() string {
- return s.String()
- }
- // The request to respond to an authentication challenge.
- type RespondToAuthChallengeInput struct {
- _ struct{} `type:"structure"`
- // The name of the challenge.
- ChallengeName *string `type:"string" required:"true" enum:"ChallengeNameType"`
- // The responses to the authentication challenge.
- ChallengeResponses map[string]*string `type:"map"`
- // The client ID.
- ClientId *string `min:"1" type:"string" required:"true"`
- // The session.
- Session *string `min:"20" type:"string"`
- }
- // String returns the string representation
- func (s RespondToAuthChallengeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RespondToAuthChallengeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RespondToAuthChallengeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RespondToAuthChallengeInput"}
- if s.ChallengeName == nil {
- invalidParams.Add(request.NewErrParamRequired("ChallengeName"))
- }
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.Session != nil && len(*s.Session) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("Session", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The response to respond to the authentication challenge.
- type RespondToAuthChallengeOutput struct {
- _ struct{} `type:"structure"`
- // The result type of the authentication result.
- AuthenticationResult *AuthenticationResultType `type:"structure"`
- // The challenge name.
- ChallengeName *string `type:"string" enum:"ChallengeNameType"`
- // The challenge parameters.
- ChallengeParameters map[string]*string `type:"map"`
- // The session.
- Session *string `min:"20" type:"string"`
- }
- // String returns the string representation
- func (s RespondToAuthChallengeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RespondToAuthChallengeOutput) GoString() string {
- return s.String()
- }
- // Contains information about the schema attribute.
- type SchemaAttributeType struct {
- _ struct{} `type:"structure"`
- // The attribute data type.
- AttributeDataType *string `type:"string" enum:"AttributeDataType"`
- // Specifies whether the attribute type is developer only.
- DeveloperOnlyAttribute *bool `type:"boolean"`
- // Specifies whether the attribute can be changed once it has been created.
- Mutable *bool `type:"boolean"`
- // A schema attribute of the name type.
- Name *string `min:"1" type:"string"`
- // Specifies the constraints for an attribute of the number type.
- NumberAttributeConstraints *NumberAttributeConstraintsType `type:"structure"`
- // Specifies whether a user pool attribute is required. If the attribute is
- // required and the user does not provide a value, registration or sign-in will
- // fail.
- Required *bool `type:"boolean"`
- // Specifies the constraints for an attribute of the string type.
- StringAttributeConstraints *StringAttributeConstraintsType `type:"structure"`
- }
- // String returns the string representation
- func (s SchemaAttributeType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SchemaAttributeType) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SchemaAttributeType) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SchemaAttributeType"}
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the request to set user settings.
- type SetUserSettingsInput struct {
- _ struct{} `type:"structure"`
- // The access token for the set user settings request.
- AccessToken *string `type:"string" required:"true"`
- // Specifies the options for MFA (e.g., email or phone number).
- MFAOptions []*MFAOptionType `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s SetUserSettingsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetUserSettingsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetUserSettingsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetUserSettingsInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if s.MFAOptions == nil {
- invalidParams.Add(request.NewErrParamRequired("MFAOptions"))
- }
- if s.MFAOptions != nil {
- for i, v := range s.MFAOptions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MFAOptions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The response from the server for a set user settings request.
- type SetUserSettingsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SetUserSettingsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetUserSettingsOutput) GoString() string {
- return s.String()
- }
- // Represents the request to register a user.
- type SignUpInput struct {
- _ struct{} `type:"structure"`
- // The ID of the client associated with the user pool.
- ClientId *string `min:"1" type:"string" required:"true"`
- // The password of the user you wish to register.
- Password *string `min:"6" type:"string" required:"true"`
- // A keyed-hash message authentication code (HMAC) calculated using the secret
- // key of a user pool client and username plus the client ID in the message.
- SecretHash *string `min:"1" type:"string"`
- // An array of name-value pairs representing user attributes.
- UserAttributes []*AttributeType `type:"list"`
- // The user name of the user you wish to register.
- Username *string `min:"1" type:"string" required:"true"`
- // The validation data in the request to register a user.
- ValidationData []*AttributeType `type:"list"`
- }
- // String returns the string representation
- func (s SignUpInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SignUpInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SignUpInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SignUpInput"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.Password == nil {
- invalidParams.Add(request.NewErrParamRequired("Password"))
- }
- if s.Password != nil && len(*s.Password) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("Password", 6))
- }
- if s.SecretHash != nil && len(*s.SecretHash) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if s.UserAttributes != nil {
- for i, v := range s.UserAttributes {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.ValidationData != nil {
- for i, v := range s.ValidationData {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationData", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The response from the server for a registration request.
- type SignUpOutput struct {
- _ struct{} `type:"structure"`
- // The type of code delivery details being returned from the server.
- CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"`
- // A response from the server indicating that a user registration has been confirmed.
- UserConfirmed *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s SignUpOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SignUpOutput) GoString() string {
- return s.String()
- }
- // The SMS configuratoin type.
- type SmsConfigurationType struct {
- _ struct{} `type:"structure"`
- // The external ID.
- ExternalId *string `type:"string"`
- // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
- // (SNS) caller.
- SnsCallerArn *string `min:"20" type:"string"`
- }
- // String returns the string representation
- func (s SmsConfigurationType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SmsConfigurationType) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SmsConfigurationType) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SmsConfigurationType"}
- if s.SnsCallerArn != nil && len(*s.SnsCallerArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("SnsCallerArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The type of constraints associated with an attribute of the string type.
- type StringAttributeConstraintsType struct {
- _ struct{} `type:"structure"`
- // The maximum length of an attribute value of the string type.
- MaxLength *string `type:"string"`
- // The minimum length of an attribute value of the string type.
- MinLength *string `type:"string"`
- }
- // String returns the string representation
- func (s StringAttributeConstraintsType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StringAttributeConstraintsType) GoString() string {
- return s.String()
- }
- // Represents the request to update the device status.
- type UpdateDeviceStatusInput struct {
- _ struct{} `type:"structure"`
- // The access token.
- AccessToken *string `type:"string" required:"true"`
- // The device key.
- DeviceKey *string `min:"1" type:"string" required:"true"`
- // The status of whether a device is remembered.
- DeviceRememberedStatus *string `type:"string" enum:"DeviceRememberedStatusType"`
- }
- // String returns the string representation
- func (s UpdateDeviceStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDeviceStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDeviceStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDeviceStatusInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if s.DeviceKey == nil {
- invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
- }
- if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The response to the request to update the device status.
- type UpdateDeviceStatusOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateDeviceStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDeviceStatusOutput) GoString() string {
- return s.String()
- }
- // Represents the request to update user attributes.
- type UpdateUserAttributesInput struct {
- _ struct{} `type:"structure"`
- // The access token for the request to update user attributes.
- AccessToken *string `type:"string"`
- // An array of name-value pairs representing user attributes.
- UserAttributes []*AttributeType `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s UpdateUserAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateUserAttributesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateUserAttributesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateUserAttributesInput"}
- if s.UserAttributes == nil {
- invalidParams.Add(request.NewErrParamRequired("UserAttributes"))
- }
- if s.UserAttributes != nil {
- for i, v := range s.UserAttributes {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server for the request to update user attributes.
- type UpdateUserAttributesOutput struct {
- _ struct{} `type:"structure"`
- // The code delivery details list from the server for the request to update
- // user attributes.
- CodeDeliveryDetailsList []*CodeDeliveryDetailsType `type:"list"`
- }
- // String returns the string representation
- func (s UpdateUserAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateUserAttributesOutput) GoString() string {
- return s.String()
- }
- // Represents the request to update the user pool client.
- type UpdateUserPoolClientInput struct {
- _ struct{} `type:"structure"`
- // The ID of the client associated with the user pool.
- ClientId *string `min:"1" type:"string" required:"true"`
- // The client name from the update user pool client request.
- ClientName *string `min:"1" type:"string"`
- // Explicit authentication flows.
- ExplicitAuthFlows []*string `type:"list"`
- // The read-only attributes of the user pool.
- ReadAttributes []*string `type:"list"`
- // The validity of the refresh token.
- RefreshTokenValidity *int64 `type:"integer"`
- // The user pool ID for the user pool where you want to update the user pool
- // client.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- // The writeable attributes of the user pool.
- WriteAttributes []*string `type:"list"`
- }
- // String returns the string representation
- func (s UpdateUserPoolClientInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateUserPoolClientInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateUserPoolClientInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateUserPoolClientInput"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.ClientName != nil && len(*s.ClientName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientName", 1))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server to the request to update the user
- // pool client.
- type UpdateUserPoolClientOutput struct {
- _ struct{} `type:"structure"`
- // The user pool client value from the response from the server when an update
- // user pool client request is made.
- UserPoolClient *UserPoolClientType `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateUserPoolClientOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateUserPoolClientOutput) GoString() string {
- return s.String()
- }
- // Represents the request to update the user pool.
- type UpdateUserPoolInput struct {
- _ struct{} `type:"structure"`
- // The attributes that are automatically verified when the Amazon Cognito service
- // makes a request to update user pools.
- AutoVerifiedAttributes []*string `type:"list"`
- // Device configuration.
- DeviceConfiguration *DeviceConfigurationType `type:"structure"`
- // Email configuration.
- EmailConfiguration *EmailConfigurationType `type:"structure"`
- // The contents of the email verification message.
- EmailVerificationMessage *string `min:"6" type:"string"`
- // The subject of the email verfication message
- EmailVerificationSubject *string `min:"1" type:"string"`
- // The AWS Lambda configuration information from the request to update the user
- // pool.
- LambdaConfig *LambdaConfigType `type:"structure"`
- // Can be one of the following values:
- //
- // OFF - MFA tokens are not required and cannot be specified during user registration.
- // ON - MFA tokens are required for all user registrations. You can only specify
- // required when you are initially creating a user pool. OPTIONAL - Users have
- // the option when registering to create an MFA token.
- MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"`
- // A container with the policies you wish to update in a user pool.
- Policies *UserPoolPolicyType `type:"structure"`
- // The contents of the SMS authentication message.
- SmsAuthenticationMessage *string `min:"6" type:"string"`
- // SMS configuration.
- SmsConfiguration *SmsConfigurationType `type:"structure"`
- // A container with information about the SMS verification message.
- SmsVerificationMessage *string `min:"6" type:"string"`
- // The user pool ID for the user pool you want to update.
- UserPoolId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateUserPoolInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateUserPoolInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateUserPoolInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateUserPoolInput"}
- if s.EmailVerificationMessage != nil && len(*s.EmailVerificationMessage) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("EmailVerificationMessage", 6))
- }
- if s.EmailVerificationSubject != nil && len(*s.EmailVerificationSubject) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("EmailVerificationSubject", 1))
- }
- if s.SmsAuthenticationMessage != nil && len(*s.SmsAuthenticationMessage) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("SmsAuthenticationMessage", 6))
- }
- if s.SmsVerificationMessage != nil && len(*s.SmsVerificationMessage) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("SmsVerificationMessage", 6))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
- }
- if s.EmailConfiguration != nil {
- if err := s.EmailConfiguration.Validate(); err != nil {
- invalidParams.AddNested("EmailConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if s.LambdaConfig != nil {
- if err := s.LambdaConfig.Validate(); err != nil {
- invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.Policies != nil {
- if err := s.Policies.Validate(); err != nil {
- invalidParams.AddNested("Policies", err.(request.ErrInvalidParams))
- }
- }
- if s.SmsConfiguration != nil {
- if err := s.SmsConfiguration.Validate(); err != nil {
- invalidParams.AddNested("SmsConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response from the server when you make a request to update
- // the user pool.
- type UpdateUserPoolOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateUserPoolOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateUserPoolOutput) GoString() string {
- return s.String()
- }
- // The description of the user poool client.
- type UserPoolClientDescription struct {
- _ struct{} `type:"structure"`
- // The ID of the client associated with the user pool.
- ClientId *string `min:"1" type:"string"`
- // The client name from the user pool client description.
- ClientName *string `min:"1" type:"string"`
- // The user pool ID for the user pool where you want to describe the user pool
- // client.
- UserPoolId *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s UserPoolClientDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserPoolClientDescription) GoString() string {
- return s.String()
- }
- // A user pool of the client type.
- type UserPoolClientType struct {
- _ struct{} `type:"structure"`
- // The ID of the client associated with the user pool.
- ClientId *string `min:"1" type:"string"`
- // The client name from the user pool request of the client type.
- ClientName *string `min:"1" type:"string"`
- // The client secret from the user pool request of the client type.
- ClientSecret *string `min:"1" type:"string"`
- // The creation date from the user pool request of the client type.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The explicit authentication flows.
- ExplicitAuthFlows []*string `type:"list"`
- // The last modified date from the user pool request of the client type.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The Read-only attributes.
- ReadAttributes []*string `type:"list"`
- // The validity of the refresh token.
- RefreshTokenValidity *int64 `type:"integer"`
- // The user pool ID for the user pool client.
- UserPoolId *string `min:"1" type:"string"`
- // The writeable attributes.
- WriteAttributes []*string `type:"list"`
- }
- // String returns the string representation
- func (s UserPoolClientType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserPoolClientType) GoString() string {
- return s.String()
- }
- // A user pool description.
- type UserPoolDescriptionType struct {
- _ struct{} `type:"structure"`
- // The creation date in a user pool description.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The ID in a user pool description.
- Id *string `min:"1" type:"string"`
- // The AWS Lambda configuration information in a user pool description.
- LambdaConfig *LambdaConfigType `type:"structure"`
- // The last modified date in a user pool description.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The name in a user pool description.
- Name *string `min:"1" type:"string"`
- // The user pool status in a user pool description.
- Status *string `type:"string" enum:"StatusType"`
- }
- // String returns the string representation
- func (s UserPoolDescriptionType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserPoolDescriptionType) GoString() string {
- return s.String()
- }
- // The type of policy in a user pool.
- type UserPoolPolicyType struct {
- _ struct{} `type:"structure"`
- // A container with information about the user pool password policy.
- PasswordPolicy *PasswordPolicyType `type:"structure"`
- }
- // String returns the string representation
- func (s UserPoolPolicyType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserPoolPolicyType) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UserPoolPolicyType) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UserPoolPolicyType"}
- if s.PasswordPolicy != nil {
- if err := s.PasswordPolicy.Validate(); err != nil {
- invalidParams.AddNested("PasswordPolicy", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A container with information about the user pool type.
- type UserPoolType struct {
- _ struct{} `type:"structure"`
- // Specifies the attributes that are aliased in a user pool.
- AliasAttributes []*string `type:"list"`
- // Specifies the attributes that are auto-verified in a user pool.
- AutoVerifiedAttributes []*string `type:"list"`
- // The creation date of a user pool.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The device configuration.
- DeviceConfiguration *DeviceConfigurationType `type:"structure"`
- // The email configuration.
- EmailConfiguration *EmailConfigurationType `type:"structure"`
- // The reason why the email configuration cannot send the messages to your users.
- EmailConfigurationFailure *string `type:"string"`
- // The contents of the email verification message.
- EmailVerificationMessage *string `min:"6" type:"string"`
- // The subject of the email verification message.
- EmailVerificationSubject *string `min:"1" type:"string"`
- // A number estimating the size of the user pool.
- EstimatedNumberOfUsers *int64 `type:"integer"`
- // The ID of the user pool.
- Id *string `min:"1" type:"string"`
- // A container describing the AWS Lambda triggers associated with a user pool.
- LambdaConfig *LambdaConfigType `type:"structure"`
- // The last modified date of a user pool.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // Can be one of the following values:
- //
- // OFF - MFA tokens are not required and cannot be specified during user registration.
- // ON - MFA tokens are required for all user registrations. You can only specify
- // required when you are initially creating a user pool. OPTIONAL - Users have
- // the option when registering to create an MFA token.
- MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"`
- // The name of the user pool.
- Name *string `min:"1" type:"string"`
- // A container describing the policies associated with a user pool.
- Policies *UserPoolPolicyType `type:"structure"`
- // A container with the schema attributes of a user pool.
- SchemaAttributes []*SchemaAttributeType `min:"1" type:"list"`
- // The contents of the SMS authentication message.
- SmsAuthenticationMessage *string `min:"6" type:"string"`
- // The SMS configuration.
- SmsConfiguration *SmsConfigurationType `type:"structure"`
- // The reason why the SMS configuration cannot send the message(s) to your users.
- SmsConfigurationFailure *string `type:"string"`
- // The contents of the SMS verification message.
- SmsVerificationMessage *string `min:"6" type:"string"`
- // The status of a user pool.
- Status *string `type:"string" enum:"StatusType"`
- }
- // String returns the string representation
- func (s UserPoolType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserPoolType) GoString() string {
- return s.String()
- }
- // The user type.
- type UserType struct {
- _ struct{} `type:"structure"`
- // A container with information about the user type attributes.
- Attributes []*AttributeType `type:"list"`
- // Specifies whether the user is enabled.
- Enabled *bool `type:"boolean"`
- // The creation date of the user.
- UserCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The last modified date of the user.
- UserLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The user status. Can be one of the following:
- //
- // UNCONFIRMED - User has been created but not confirmed. CONFIRMED - User
- // has been confirmed. ARCHIVED - User is no longer active. COMPROMISED - User
- // is disabled due to a potential security threat. UNKNOWN - User status is
- // not known.
- UserStatus *string `type:"string" enum:"UserStatusType"`
- // The user name of the user you wish to describe.
- Username *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s UserType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserType) GoString() string {
- return s.String()
- }
- // Represents the request to verify user attributes.
- type VerifyUserAttributeInput struct {
- _ struct{} `type:"structure"`
- // Represents the access token of the request to verify user attributes.
- AccessToken *string `type:"string"`
- // The attribute name in the request to verify user attributes.
- AttributeName *string `min:"1" type:"string" required:"true"`
- // The verification code in the request to verify user attributes.
- Code *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s VerifyUserAttributeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VerifyUserAttributeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *VerifyUserAttributeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "VerifyUserAttributeInput"}
- if s.AttributeName == nil {
- invalidParams.Add(request.NewErrParamRequired("AttributeName"))
- }
- if s.AttributeName != nil && len(*s.AttributeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1))
- }
- if s.Code == nil {
- invalidParams.Add(request.NewErrParamRequired("Code"))
- }
- if s.Code != nil && len(*s.Code) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Code", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A container representing the response from the server from the request to
- // verify user attributes.
- type VerifyUserAttributeOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s VerifyUserAttributeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VerifyUserAttributeOutput) GoString() string {
- return s.String()
- }
- const (
- // @enum AliasAttributeType
- AliasAttributeTypePhoneNumber = "phone_number"
- // @enum AliasAttributeType
- AliasAttributeTypeEmail = "email"
- // @enum AliasAttributeType
- AliasAttributeTypePreferredUsername = "preferred_username"
- )
- const (
- // @enum AttributeDataType
- AttributeDataTypeString = "String"
- // @enum AttributeDataType
- AttributeDataTypeNumber = "Number"
- // @enum AttributeDataType
- AttributeDataTypeDateTime = "DateTime"
- // @enum AttributeDataType
- AttributeDataTypeBoolean = "Boolean"
- )
- const (
- // @enum AuthFlowType
- AuthFlowTypeUserSrpAuth = "USER_SRP_AUTH"
- // @enum AuthFlowType
- AuthFlowTypeRefreshTokenAuth = "REFRESH_TOKEN_AUTH"
- // @enum AuthFlowType
- AuthFlowTypeCustomAuth = "CUSTOM_AUTH"
- // @enum AuthFlowType
- AuthFlowTypeAdminNoSrpAuth = "ADMIN_NO_SRP_AUTH"
- )
- const (
- // @enum ChallengeNameType
- ChallengeNameTypeSmsMfa = "SMS_MFA"
- // @enum ChallengeNameType
- ChallengeNameTypePasswordVerifier = "PASSWORD_VERIFIER"
- // @enum ChallengeNameType
- ChallengeNameTypeCustomChallenge = "CUSTOM_CHALLENGE"
- // @enum ChallengeNameType
- ChallengeNameTypeDeviceSrpAuth = "DEVICE_SRP_AUTH"
- // @enum ChallengeNameType
- ChallengeNameTypeDevicePasswordVerifier = "DEVICE_PASSWORD_VERIFIER"
- // @enum ChallengeNameType
- ChallengeNameTypeAdminNoSrpAuth = "ADMIN_NO_SRP_AUTH"
- )
- const (
- // @enum DeliveryMediumType
- DeliveryMediumTypeSms = "SMS"
- // @enum DeliveryMediumType
- DeliveryMediumTypeEmail = "EMAIL"
- )
- const (
- // @enum DeviceRememberedStatusType
- DeviceRememberedStatusTypeRemembered = "remembered"
- // @enum DeviceRememberedStatusType
- DeviceRememberedStatusTypeNotRemembered = "not_remembered"
- )
- const (
- // @enum ExplicitAuthFlowsType
- ExplicitAuthFlowsTypeAdminNoSrpAuth = "ADMIN_NO_SRP_AUTH"
- )
- const (
- // @enum StatusType
- StatusTypeEnabled = "Enabled"
- // @enum StatusType
- StatusTypeDisabled = "Disabled"
- )
- const (
- // @enum UserPoolMfaType
- UserPoolMfaTypeOff = "OFF"
- // @enum UserPoolMfaType
- UserPoolMfaTypeOn = "ON"
- // @enum UserPoolMfaType
- UserPoolMfaTypeOptional = "OPTIONAL"
- )
- const (
- // @enum UserStatusType
- UserStatusTypeUnconfirmed = "UNCONFIRMED"
- // @enum UserStatusType
- UserStatusTypeConfirmed = "CONFIRMED"
- // @enum UserStatusType
- UserStatusTypeArchived = "ARCHIVED"
- // @enum UserStatusType
- UserStatusTypeCompromised = "COMPROMISED"
- // @enum UserStatusType
- UserStatusTypeUnknown = "UNKNOWN"
- // @enum UserStatusType
- UserStatusTypeResetRequired = "RESET_REQUIRED"
- )
- const (
- // @enum VerifiedAttributeType
- VerifiedAttributeTypePhoneNumber = "phone_number"
- // @enum VerifiedAttributeType
- VerifiedAttributeTypeEmail = "email"
- )
|