api.go 205 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package cognitoidentityprovider provides a client for Amazon Cognito Identity Provider.
  3. package cognitoidentityprovider
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/credentials"
  9. "github.com/aws/aws-sdk-go/aws/request"
  10. "github.com/aws/aws-sdk-go/private/protocol"
  11. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  12. )
  13. const opAddCustomAttributes = "AddCustomAttributes"
  14. // AddCustomAttributesRequest generates a "aws/request.Request" representing the
  15. // client's request for the AddCustomAttributes operation. The "output" return
  16. // value can be used to capture response data after the request's "Send" method
  17. // is called.
  18. //
  19. // Creating a request object using this method should be used when you want to inject
  20. // custom logic into the request's lifecycle using a custom handler, or if you want to
  21. // access properties on the request object before or after sending the request. If
  22. // you just want the service response, call the AddCustomAttributes method directly
  23. // instead.
  24. //
  25. // Note: You must call the "Send" method on the returned request object in order
  26. // to execute the request.
  27. //
  28. // // Example sending a request using the AddCustomAttributesRequest method.
  29. // req, resp := client.AddCustomAttributesRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. func (c *CognitoIdentityProvider) AddCustomAttributesRequest(input *AddCustomAttributesInput) (req *request.Request, output *AddCustomAttributesOutput) {
  37. op := &request.Operation{
  38. Name: opAddCustomAttributes,
  39. HTTPMethod: "POST",
  40. HTTPPath: "/",
  41. }
  42. if input == nil {
  43. input = &AddCustomAttributesInput{}
  44. }
  45. req = c.newRequest(op, input, output)
  46. output = &AddCustomAttributesOutput{}
  47. req.Data = output
  48. return
  49. }
  50. // Adds additional user attributes to the user pool schema.
  51. func (c *CognitoIdentityProvider) AddCustomAttributes(input *AddCustomAttributesInput) (*AddCustomAttributesOutput, error) {
  52. req, out := c.AddCustomAttributesRequest(input)
  53. err := req.Send()
  54. return out, err
  55. }
  56. const opAdminConfirmSignUp = "AdminConfirmSignUp"
  57. // AdminConfirmSignUpRequest generates a "aws/request.Request" representing the
  58. // client's request for the AdminConfirmSignUp operation. The "output" return
  59. // value can be used to capture response data after the request's "Send" method
  60. // is called.
  61. //
  62. // Creating a request object using this method should be used when you want to inject
  63. // custom logic into the request's lifecycle using a custom handler, or if you want to
  64. // access properties on the request object before or after sending the request. If
  65. // you just want the service response, call the AdminConfirmSignUp method directly
  66. // instead.
  67. //
  68. // Note: You must call the "Send" method on the returned request object in order
  69. // to execute the request.
  70. //
  71. // // Example sending a request using the AdminConfirmSignUpRequest method.
  72. // req, resp := client.AdminConfirmSignUpRequest(params)
  73. //
  74. // err := req.Send()
  75. // if err == nil { // resp is now filled
  76. // fmt.Println(resp)
  77. // }
  78. //
  79. func (c *CognitoIdentityProvider) AdminConfirmSignUpRequest(input *AdminConfirmSignUpInput) (req *request.Request, output *AdminConfirmSignUpOutput) {
  80. op := &request.Operation{
  81. Name: opAdminConfirmSignUp,
  82. HTTPMethod: "POST",
  83. HTTPPath: "/",
  84. }
  85. if input == nil {
  86. input = &AdminConfirmSignUpInput{}
  87. }
  88. req = c.newRequest(op, input, output)
  89. output = &AdminConfirmSignUpOutput{}
  90. req.Data = output
  91. return
  92. }
  93. // Confirms user registration as an admin without using a confirmation code.
  94. // Works on any user.
  95. func (c *CognitoIdentityProvider) AdminConfirmSignUp(input *AdminConfirmSignUpInput) (*AdminConfirmSignUpOutput, error) {
  96. req, out := c.AdminConfirmSignUpRequest(input)
  97. err := req.Send()
  98. return out, err
  99. }
  100. const opAdminDeleteUser = "AdminDeleteUser"
  101. // AdminDeleteUserRequest generates a "aws/request.Request" representing the
  102. // client's request for the AdminDeleteUser operation. The "output" return
  103. // value can be used to capture response data after the request's "Send" method
  104. // is called.
  105. //
  106. // Creating a request object using this method should be used when you want to inject
  107. // custom logic into the request's lifecycle using a custom handler, or if you want to
  108. // access properties on the request object before or after sending the request. If
  109. // you just want the service response, call the AdminDeleteUser method directly
  110. // instead.
  111. //
  112. // Note: You must call the "Send" method on the returned request object in order
  113. // to execute the request.
  114. //
  115. // // Example sending a request using the AdminDeleteUserRequest method.
  116. // req, resp := client.AdminDeleteUserRequest(params)
  117. //
  118. // err := req.Send()
  119. // if err == nil { // resp is now filled
  120. // fmt.Println(resp)
  121. // }
  122. //
  123. func (c *CognitoIdentityProvider) AdminDeleteUserRequest(input *AdminDeleteUserInput) (req *request.Request, output *AdminDeleteUserOutput) {
  124. op := &request.Operation{
  125. Name: opAdminDeleteUser,
  126. HTTPMethod: "POST",
  127. HTTPPath: "/",
  128. }
  129. if input == nil {
  130. input = &AdminDeleteUserInput{}
  131. }
  132. req = c.newRequest(op, input, output)
  133. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  134. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  135. output = &AdminDeleteUserOutput{}
  136. req.Data = output
  137. return
  138. }
  139. // Deletes a user as an administrator. Works on any user.
  140. func (c *CognitoIdentityProvider) AdminDeleteUser(input *AdminDeleteUserInput) (*AdminDeleteUserOutput, error) {
  141. req, out := c.AdminDeleteUserRequest(input)
  142. err := req.Send()
  143. return out, err
  144. }
  145. const opAdminDeleteUserAttributes = "AdminDeleteUserAttributes"
  146. // AdminDeleteUserAttributesRequest generates a "aws/request.Request" representing the
  147. // client's request for the AdminDeleteUserAttributes operation. The "output" return
  148. // value can be used to capture response data after the request's "Send" method
  149. // is called.
  150. //
  151. // Creating a request object using this method should be used when you want to inject
  152. // custom logic into the request's lifecycle using a custom handler, or if you want to
  153. // access properties on the request object before or after sending the request. If
  154. // you just want the service response, call the AdminDeleteUserAttributes method directly
  155. // instead.
  156. //
  157. // Note: You must call the "Send" method on the returned request object in order
  158. // to execute the request.
  159. //
  160. // // Example sending a request using the AdminDeleteUserAttributesRequest method.
  161. // req, resp := client.AdminDeleteUserAttributesRequest(params)
  162. //
  163. // err := req.Send()
  164. // if err == nil { // resp is now filled
  165. // fmt.Println(resp)
  166. // }
  167. //
  168. func (c *CognitoIdentityProvider) AdminDeleteUserAttributesRequest(input *AdminDeleteUserAttributesInput) (req *request.Request, output *AdminDeleteUserAttributesOutput) {
  169. op := &request.Operation{
  170. Name: opAdminDeleteUserAttributes,
  171. HTTPMethod: "POST",
  172. HTTPPath: "/",
  173. }
  174. if input == nil {
  175. input = &AdminDeleteUserAttributesInput{}
  176. }
  177. req = c.newRequest(op, input, output)
  178. output = &AdminDeleteUserAttributesOutput{}
  179. req.Data = output
  180. return
  181. }
  182. // Deletes the user attributes in a user pool as an administrator. Works on
  183. // any user.
  184. func (c *CognitoIdentityProvider) AdminDeleteUserAttributes(input *AdminDeleteUserAttributesInput) (*AdminDeleteUserAttributesOutput, error) {
  185. req, out := c.AdminDeleteUserAttributesRequest(input)
  186. err := req.Send()
  187. return out, err
  188. }
  189. const opAdminDisableUser = "AdminDisableUser"
  190. // AdminDisableUserRequest generates a "aws/request.Request" representing the
  191. // client's request for the AdminDisableUser operation. The "output" return
  192. // value can be used to capture response data after the request's "Send" method
  193. // is called.
  194. //
  195. // Creating a request object using this method should be used when you want to inject
  196. // custom logic into the request's lifecycle using a custom handler, or if you want to
  197. // access properties on the request object before or after sending the request. If
  198. // you just want the service response, call the AdminDisableUser method directly
  199. // instead.
  200. //
  201. // Note: You must call the "Send" method on the returned request object in order
  202. // to execute the request.
  203. //
  204. // // Example sending a request using the AdminDisableUserRequest method.
  205. // req, resp := client.AdminDisableUserRequest(params)
  206. //
  207. // err := req.Send()
  208. // if err == nil { // resp is now filled
  209. // fmt.Println(resp)
  210. // }
  211. //
  212. func (c *CognitoIdentityProvider) AdminDisableUserRequest(input *AdminDisableUserInput) (req *request.Request, output *AdminDisableUserOutput) {
  213. op := &request.Operation{
  214. Name: opAdminDisableUser,
  215. HTTPMethod: "POST",
  216. HTTPPath: "/",
  217. }
  218. if input == nil {
  219. input = &AdminDisableUserInput{}
  220. }
  221. req = c.newRequest(op, input, output)
  222. output = &AdminDisableUserOutput{}
  223. req.Data = output
  224. return
  225. }
  226. // Disables the specified user as an administrator. Works on any user.
  227. func (c *CognitoIdentityProvider) AdminDisableUser(input *AdminDisableUserInput) (*AdminDisableUserOutput, error) {
  228. req, out := c.AdminDisableUserRequest(input)
  229. err := req.Send()
  230. return out, err
  231. }
  232. const opAdminEnableUser = "AdminEnableUser"
  233. // AdminEnableUserRequest generates a "aws/request.Request" representing the
  234. // client's request for the AdminEnableUser operation. The "output" return
  235. // value can be used to capture response data after the request's "Send" method
  236. // is called.
  237. //
  238. // Creating a request object using this method should be used when you want to inject
  239. // custom logic into the request's lifecycle using a custom handler, or if you want to
  240. // access properties on the request object before or after sending the request. If
  241. // you just want the service response, call the AdminEnableUser method directly
  242. // instead.
  243. //
  244. // Note: You must call the "Send" method on the returned request object in order
  245. // to execute the request.
  246. //
  247. // // Example sending a request using the AdminEnableUserRequest method.
  248. // req, resp := client.AdminEnableUserRequest(params)
  249. //
  250. // err := req.Send()
  251. // if err == nil { // resp is now filled
  252. // fmt.Println(resp)
  253. // }
  254. //
  255. func (c *CognitoIdentityProvider) AdminEnableUserRequest(input *AdminEnableUserInput) (req *request.Request, output *AdminEnableUserOutput) {
  256. op := &request.Operation{
  257. Name: opAdminEnableUser,
  258. HTTPMethod: "POST",
  259. HTTPPath: "/",
  260. }
  261. if input == nil {
  262. input = &AdminEnableUserInput{}
  263. }
  264. req = c.newRequest(op, input, output)
  265. output = &AdminEnableUserOutput{}
  266. req.Data = output
  267. return
  268. }
  269. // Enables the specified user as an administrator. Works on any user.
  270. func (c *CognitoIdentityProvider) AdminEnableUser(input *AdminEnableUserInput) (*AdminEnableUserOutput, error) {
  271. req, out := c.AdminEnableUserRequest(input)
  272. err := req.Send()
  273. return out, err
  274. }
  275. const opAdminForgetDevice = "AdminForgetDevice"
  276. // AdminForgetDeviceRequest generates a "aws/request.Request" representing the
  277. // client's request for the AdminForgetDevice operation. The "output" return
  278. // value can be used to capture response data after the request's "Send" method
  279. // is called.
  280. //
  281. // Creating a request object using this method should be used when you want to inject
  282. // custom logic into the request's lifecycle using a custom handler, or if you want to
  283. // access properties on the request object before or after sending the request. If
  284. // you just want the service response, call the AdminForgetDevice method directly
  285. // instead.
  286. //
  287. // Note: You must call the "Send" method on the returned request object in order
  288. // to execute the request.
  289. //
  290. // // Example sending a request using the AdminForgetDeviceRequest method.
  291. // req, resp := client.AdminForgetDeviceRequest(params)
  292. //
  293. // err := req.Send()
  294. // if err == nil { // resp is now filled
  295. // fmt.Println(resp)
  296. // }
  297. //
  298. func (c *CognitoIdentityProvider) AdminForgetDeviceRequest(input *AdminForgetDeviceInput) (req *request.Request, output *AdminForgetDeviceOutput) {
  299. op := &request.Operation{
  300. Name: opAdminForgetDevice,
  301. HTTPMethod: "POST",
  302. HTTPPath: "/",
  303. }
  304. if input == nil {
  305. input = &AdminForgetDeviceInput{}
  306. }
  307. req = c.newRequest(op, input, output)
  308. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  309. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  310. output = &AdminForgetDeviceOutput{}
  311. req.Data = output
  312. return
  313. }
  314. // Forgets the device, as an administrator.
  315. func (c *CognitoIdentityProvider) AdminForgetDevice(input *AdminForgetDeviceInput) (*AdminForgetDeviceOutput, error) {
  316. req, out := c.AdminForgetDeviceRequest(input)
  317. err := req.Send()
  318. return out, err
  319. }
  320. const opAdminGetDevice = "AdminGetDevice"
  321. // AdminGetDeviceRequest generates a "aws/request.Request" representing the
  322. // client's request for the AdminGetDevice operation. The "output" return
  323. // value can be used to capture response data after the request's "Send" method
  324. // is called.
  325. //
  326. // Creating a request object using this method should be used when you want to inject
  327. // custom logic into the request's lifecycle using a custom handler, or if you want to
  328. // access properties on the request object before or after sending the request. If
  329. // you just want the service response, call the AdminGetDevice method directly
  330. // instead.
  331. //
  332. // Note: You must call the "Send" method on the returned request object in order
  333. // to execute the request.
  334. //
  335. // // Example sending a request using the AdminGetDeviceRequest method.
  336. // req, resp := client.AdminGetDeviceRequest(params)
  337. //
  338. // err := req.Send()
  339. // if err == nil { // resp is now filled
  340. // fmt.Println(resp)
  341. // }
  342. //
  343. func (c *CognitoIdentityProvider) AdminGetDeviceRequest(input *AdminGetDeviceInput) (req *request.Request, output *AdminGetDeviceOutput) {
  344. op := &request.Operation{
  345. Name: opAdminGetDevice,
  346. HTTPMethod: "POST",
  347. HTTPPath: "/",
  348. }
  349. if input == nil {
  350. input = &AdminGetDeviceInput{}
  351. }
  352. req = c.newRequest(op, input, output)
  353. output = &AdminGetDeviceOutput{}
  354. req.Data = output
  355. return
  356. }
  357. // Gets the device, as an administrator.
  358. func (c *CognitoIdentityProvider) AdminGetDevice(input *AdminGetDeviceInput) (*AdminGetDeviceOutput, error) {
  359. req, out := c.AdminGetDeviceRequest(input)
  360. err := req.Send()
  361. return out, err
  362. }
  363. const opAdminGetUser = "AdminGetUser"
  364. // AdminGetUserRequest generates a "aws/request.Request" representing the
  365. // client's request for the AdminGetUser operation. The "output" return
  366. // value can be used to capture response data after the request's "Send" method
  367. // is called.
  368. //
  369. // Creating a request object using this method should be used when you want to inject
  370. // custom logic into the request's lifecycle using a custom handler, or if you want to
  371. // access properties on the request object before or after sending the request. If
  372. // you just want the service response, call the AdminGetUser method directly
  373. // instead.
  374. //
  375. // Note: You must call the "Send" method on the returned request object in order
  376. // to execute the request.
  377. //
  378. // // Example sending a request using the AdminGetUserRequest method.
  379. // req, resp := client.AdminGetUserRequest(params)
  380. //
  381. // err := req.Send()
  382. // if err == nil { // resp is now filled
  383. // fmt.Println(resp)
  384. // }
  385. //
  386. func (c *CognitoIdentityProvider) AdminGetUserRequest(input *AdminGetUserInput) (req *request.Request, output *AdminGetUserOutput) {
  387. op := &request.Operation{
  388. Name: opAdminGetUser,
  389. HTTPMethod: "POST",
  390. HTTPPath: "/",
  391. }
  392. if input == nil {
  393. input = &AdminGetUserInput{}
  394. }
  395. req = c.newRequest(op, input, output)
  396. output = &AdminGetUserOutput{}
  397. req.Data = output
  398. return
  399. }
  400. // Gets the specified user by user name in a user pool as an administrator.
  401. // Works on any user.
  402. func (c *CognitoIdentityProvider) AdminGetUser(input *AdminGetUserInput) (*AdminGetUserOutput, error) {
  403. req, out := c.AdminGetUserRequest(input)
  404. err := req.Send()
  405. return out, err
  406. }
  407. const opAdminInitiateAuth = "AdminInitiateAuth"
  408. // AdminInitiateAuthRequest generates a "aws/request.Request" representing the
  409. // client's request for the AdminInitiateAuth operation. The "output" return
  410. // value can be used to capture response data after the request's "Send" method
  411. // is called.
  412. //
  413. // Creating a request object using this method should be used when you want to inject
  414. // custom logic into the request's lifecycle using a custom handler, or if you want to
  415. // access properties on the request object before or after sending the request. If
  416. // you just want the service response, call the AdminInitiateAuth method directly
  417. // instead.
  418. //
  419. // Note: You must call the "Send" method on the returned request object in order
  420. // to execute the request.
  421. //
  422. // // Example sending a request using the AdminInitiateAuthRequest method.
  423. // req, resp := client.AdminInitiateAuthRequest(params)
  424. //
  425. // err := req.Send()
  426. // if err == nil { // resp is now filled
  427. // fmt.Println(resp)
  428. // }
  429. //
  430. func (c *CognitoIdentityProvider) AdminInitiateAuthRequest(input *AdminInitiateAuthInput) (req *request.Request, output *AdminInitiateAuthOutput) {
  431. op := &request.Operation{
  432. Name: opAdminInitiateAuth,
  433. HTTPMethod: "POST",
  434. HTTPPath: "/",
  435. }
  436. if input == nil {
  437. input = &AdminInitiateAuthInput{}
  438. }
  439. req = c.newRequest(op, input, output)
  440. output = &AdminInitiateAuthOutput{}
  441. req.Data = output
  442. return
  443. }
  444. // Initiates the authentication flow, as an administrator.
  445. func (c *CognitoIdentityProvider) AdminInitiateAuth(input *AdminInitiateAuthInput) (*AdminInitiateAuthOutput, error) {
  446. req, out := c.AdminInitiateAuthRequest(input)
  447. err := req.Send()
  448. return out, err
  449. }
  450. const opAdminListDevices = "AdminListDevices"
  451. // AdminListDevicesRequest generates a "aws/request.Request" representing the
  452. // client's request for the AdminListDevices operation. The "output" return
  453. // value can be used to capture response data after the request's "Send" method
  454. // is called.
  455. //
  456. // Creating a request object using this method should be used when you want to inject
  457. // custom logic into the request's lifecycle using a custom handler, or if you want to
  458. // access properties on the request object before or after sending the request. If
  459. // you just want the service response, call the AdminListDevices method directly
  460. // instead.
  461. //
  462. // Note: You must call the "Send" method on the returned request object in order
  463. // to execute the request.
  464. //
  465. // // Example sending a request using the AdminListDevicesRequest method.
  466. // req, resp := client.AdminListDevicesRequest(params)
  467. //
  468. // err := req.Send()
  469. // if err == nil { // resp is now filled
  470. // fmt.Println(resp)
  471. // }
  472. //
  473. func (c *CognitoIdentityProvider) AdminListDevicesRequest(input *AdminListDevicesInput) (req *request.Request, output *AdminListDevicesOutput) {
  474. op := &request.Operation{
  475. Name: opAdminListDevices,
  476. HTTPMethod: "POST",
  477. HTTPPath: "/",
  478. }
  479. if input == nil {
  480. input = &AdminListDevicesInput{}
  481. }
  482. req = c.newRequest(op, input, output)
  483. output = &AdminListDevicesOutput{}
  484. req.Data = output
  485. return
  486. }
  487. // Lists devices, as an administrator.
  488. func (c *CognitoIdentityProvider) AdminListDevices(input *AdminListDevicesInput) (*AdminListDevicesOutput, error) {
  489. req, out := c.AdminListDevicesRequest(input)
  490. err := req.Send()
  491. return out, err
  492. }
  493. const opAdminResetUserPassword = "AdminResetUserPassword"
  494. // AdminResetUserPasswordRequest generates a "aws/request.Request" representing the
  495. // client's request for the AdminResetUserPassword operation. The "output" return
  496. // value can be used to capture response data after the request's "Send" method
  497. // is called.
  498. //
  499. // Creating a request object using this method should be used when you want to inject
  500. // custom logic into the request's lifecycle using a custom handler, or if you want to
  501. // access properties on the request object before or after sending the request. If
  502. // you just want the service response, call the AdminResetUserPassword method directly
  503. // instead.
  504. //
  505. // Note: You must call the "Send" method on the returned request object in order
  506. // to execute the request.
  507. //
  508. // // Example sending a request using the AdminResetUserPasswordRequest method.
  509. // req, resp := client.AdminResetUserPasswordRequest(params)
  510. //
  511. // err := req.Send()
  512. // if err == nil { // resp is now filled
  513. // fmt.Println(resp)
  514. // }
  515. //
  516. func (c *CognitoIdentityProvider) AdminResetUserPasswordRequest(input *AdminResetUserPasswordInput) (req *request.Request, output *AdminResetUserPasswordOutput) {
  517. op := &request.Operation{
  518. Name: opAdminResetUserPassword,
  519. HTTPMethod: "POST",
  520. HTTPPath: "/",
  521. }
  522. if input == nil {
  523. input = &AdminResetUserPasswordInput{}
  524. }
  525. req = c.newRequest(op, input, output)
  526. output = &AdminResetUserPasswordOutput{}
  527. req.Data = output
  528. return
  529. }
  530. // Resets the specified user's password in a user pool as an administrator.
  531. // Works on any user.
  532. func (c *CognitoIdentityProvider) AdminResetUserPassword(input *AdminResetUserPasswordInput) (*AdminResetUserPasswordOutput, error) {
  533. req, out := c.AdminResetUserPasswordRequest(input)
  534. err := req.Send()
  535. return out, err
  536. }
  537. const opAdminRespondToAuthChallenge = "AdminRespondToAuthChallenge"
  538. // AdminRespondToAuthChallengeRequest generates a "aws/request.Request" representing the
  539. // client's request for the AdminRespondToAuthChallenge operation. The "output" return
  540. // value can be used to capture response data after the request's "Send" method
  541. // is called.
  542. //
  543. // Creating a request object using this method should be used when you want to inject
  544. // custom logic into the request's lifecycle using a custom handler, or if you want to
  545. // access properties on the request object before or after sending the request. If
  546. // you just want the service response, call the AdminRespondToAuthChallenge method directly
  547. // instead.
  548. //
  549. // Note: You must call the "Send" method on the returned request object in order
  550. // to execute the request.
  551. //
  552. // // Example sending a request using the AdminRespondToAuthChallengeRequest method.
  553. // req, resp := client.AdminRespondToAuthChallengeRequest(params)
  554. //
  555. // err := req.Send()
  556. // if err == nil { // resp is now filled
  557. // fmt.Println(resp)
  558. // }
  559. //
  560. func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeRequest(input *AdminRespondToAuthChallengeInput) (req *request.Request, output *AdminRespondToAuthChallengeOutput) {
  561. op := &request.Operation{
  562. Name: opAdminRespondToAuthChallenge,
  563. HTTPMethod: "POST",
  564. HTTPPath: "/",
  565. }
  566. if input == nil {
  567. input = &AdminRespondToAuthChallengeInput{}
  568. }
  569. req = c.newRequest(op, input, output)
  570. output = &AdminRespondToAuthChallengeOutput{}
  571. req.Data = output
  572. return
  573. }
  574. // Responds to an authentication challenge, as an administrator.
  575. func (c *CognitoIdentityProvider) AdminRespondToAuthChallenge(input *AdminRespondToAuthChallengeInput) (*AdminRespondToAuthChallengeOutput, error) {
  576. req, out := c.AdminRespondToAuthChallengeRequest(input)
  577. err := req.Send()
  578. return out, err
  579. }
  580. const opAdminSetUserSettings = "AdminSetUserSettings"
  581. // AdminSetUserSettingsRequest generates a "aws/request.Request" representing the
  582. // client's request for the AdminSetUserSettings operation. The "output" return
  583. // value can be used to capture response data after the request's "Send" method
  584. // is called.
  585. //
  586. // Creating a request object using this method should be used when you want to inject
  587. // custom logic into the request's lifecycle using a custom handler, or if you want to
  588. // access properties on the request object before or after sending the request. If
  589. // you just want the service response, call the AdminSetUserSettings method directly
  590. // instead.
  591. //
  592. // Note: You must call the "Send" method on the returned request object in order
  593. // to execute the request.
  594. //
  595. // // Example sending a request using the AdminSetUserSettingsRequest method.
  596. // req, resp := client.AdminSetUserSettingsRequest(params)
  597. //
  598. // err := req.Send()
  599. // if err == nil { // resp is now filled
  600. // fmt.Println(resp)
  601. // }
  602. //
  603. func (c *CognitoIdentityProvider) AdminSetUserSettingsRequest(input *AdminSetUserSettingsInput) (req *request.Request, output *AdminSetUserSettingsOutput) {
  604. op := &request.Operation{
  605. Name: opAdminSetUserSettings,
  606. HTTPMethod: "POST",
  607. HTTPPath: "/",
  608. }
  609. if input == nil {
  610. input = &AdminSetUserSettingsInput{}
  611. }
  612. req = c.newRequest(op, input, output)
  613. output = &AdminSetUserSettingsOutput{}
  614. req.Data = output
  615. return
  616. }
  617. // Sets all the user settings for a specified user name. Works on any user.
  618. func (c *CognitoIdentityProvider) AdminSetUserSettings(input *AdminSetUserSettingsInput) (*AdminSetUserSettingsOutput, error) {
  619. req, out := c.AdminSetUserSettingsRequest(input)
  620. err := req.Send()
  621. return out, err
  622. }
  623. const opAdminUpdateDeviceStatus = "AdminUpdateDeviceStatus"
  624. // AdminUpdateDeviceStatusRequest generates a "aws/request.Request" representing the
  625. // client's request for the AdminUpdateDeviceStatus operation. The "output" return
  626. // value can be used to capture response data after the request's "Send" method
  627. // is called.
  628. //
  629. // Creating a request object using this method should be used when you want to inject
  630. // custom logic into the request's lifecycle using a custom handler, or if you want to
  631. // access properties on the request object before or after sending the request. If
  632. // you just want the service response, call the AdminUpdateDeviceStatus method directly
  633. // instead.
  634. //
  635. // Note: You must call the "Send" method on the returned request object in order
  636. // to execute the request.
  637. //
  638. // // Example sending a request using the AdminUpdateDeviceStatusRequest method.
  639. // req, resp := client.AdminUpdateDeviceStatusRequest(params)
  640. //
  641. // err := req.Send()
  642. // if err == nil { // resp is now filled
  643. // fmt.Println(resp)
  644. // }
  645. //
  646. func (c *CognitoIdentityProvider) AdminUpdateDeviceStatusRequest(input *AdminUpdateDeviceStatusInput) (req *request.Request, output *AdminUpdateDeviceStatusOutput) {
  647. op := &request.Operation{
  648. Name: opAdminUpdateDeviceStatus,
  649. HTTPMethod: "POST",
  650. HTTPPath: "/",
  651. }
  652. if input == nil {
  653. input = &AdminUpdateDeviceStatusInput{}
  654. }
  655. req = c.newRequest(op, input, output)
  656. output = &AdminUpdateDeviceStatusOutput{}
  657. req.Data = output
  658. return
  659. }
  660. // Updates the device status as an administrator.
  661. func (c *CognitoIdentityProvider) AdminUpdateDeviceStatus(input *AdminUpdateDeviceStatusInput) (*AdminUpdateDeviceStatusOutput, error) {
  662. req, out := c.AdminUpdateDeviceStatusRequest(input)
  663. err := req.Send()
  664. return out, err
  665. }
  666. const opAdminUpdateUserAttributes = "AdminUpdateUserAttributes"
  667. // AdminUpdateUserAttributesRequest generates a "aws/request.Request" representing the
  668. // client's request for the AdminUpdateUserAttributes operation. The "output" return
  669. // value can be used to capture response data after the request's "Send" method
  670. // is called.
  671. //
  672. // Creating a request object using this method should be used when you want to inject
  673. // custom logic into the request's lifecycle using a custom handler, or if you want to
  674. // access properties on the request object before or after sending the request. If
  675. // you just want the service response, call the AdminUpdateUserAttributes method directly
  676. // instead.
  677. //
  678. // Note: You must call the "Send" method on the returned request object in order
  679. // to execute the request.
  680. //
  681. // // Example sending a request using the AdminUpdateUserAttributesRequest method.
  682. // req, resp := client.AdminUpdateUserAttributesRequest(params)
  683. //
  684. // err := req.Send()
  685. // if err == nil { // resp is now filled
  686. // fmt.Println(resp)
  687. // }
  688. //
  689. func (c *CognitoIdentityProvider) AdminUpdateUserAttributesRequest(input *AdminUpdateUserAttributesInput) (req *request.Request, output *AdminUpdateUserAttributesOutput) {
  690. op := &request.Operation{
  691. Name: opAdminUpdateUserAttributes,
  692. HTTPMethod: "POST",
  693. HTTPPath: "/",
  694. }
  695. if input == nil {
  696. input = &AdminUpdateUserAttributesInput{}
  697. }
  698. req = c.newRequest(op, input, output)
  699. output = &AdminUpdateUserAttributesOutput{}
  700. req.Data = output
  701. return
  702. }
  703. // Updates the specified user's attributes, including developer attributes,
  704. // as an administrator. Works on any user.
  705. func (c *CognitoIdentityProvider) AdminUpdateUserAttributes(input *AdminUpdateUserAttributesInput) (*AdminUpdateUserAttributesOutput, error) {
  706. req, out := c.AdminUpdateUserAttributesRequest(input)
  707. err := req.Send()
  708. return out, err
  709. }
  710. const opAdminUserGlobalSignOut = "AdminUserGlobalSignOut"
  711. // AdminUserGlobalSignOutRequest generates a "aws/request.Request" representing the
  712. // client's request for the AdminUserGlobalSignOut operation. The "output" return
  713. // value can be used to capture response data after the request's "Send" method
  714. // is called.
  715. //
  716. // Creating a request object using this method should be used when you want to inject
  717. // custom logic into the request's lifecycle using a custom handler, or if you want to
  718. // access properties on the request object before or after sending the request. If
  719. // you just want the service response, call the AdminUserGlobalSignOut method directly
  720. // instead.
  721. //
  722. // Note: You must call the "Send" method on the returned request object in order
  723. // to execute the request.
  724. //
  725. // // Example sending a request using the AdminUserGlobalSignOutRequest method.
  726. // req, resp := client.AdminUserGlobalSignOutRequest(params)
  727. //
  728. // err := req.Send()
  729. // if err == nil { // resp is now filled
  730. // fmt.Println(resp)
  731. // }
  732. //
  733. func (c *CognitoIdentityProvider) AdminUserGlobalSignOutRequest(input *AdminUserGlobalSignOutInput) (req *request.Request, output *AdminUserGlobalSignOutOutput) {
  734. op := &request.Operation{
  735. Name: opAdminUserGlobalSignOut,
  736. HTTPMethod: "POST",
  737. HTTPPath: "/",
  738. }
  739. if input == nil {
  740. input = &AdminUserGlobalSignOutInput{}
  741. }
  742. req = c.newRequest(op, input, output)
  743. output = &AdminUserGlobalSignOutOutput{}
  744. req.Data = output
  745. return
  746. }
  747. // Signs out users from all devices, as an administrator.
  748. func (c *CognitoIdentityProvider) AdminUserGlobalSignOut(input *AdminUserGlobalSignOutInput) (*AdminUserGlobalSignOutOutput, error) {
  749. req, out := c.AdminUserGlobalSignOutRequest(input)
  750. err := req.Send()
  751. return out, err
  752. }
  753. const opChangePassword = "ChangePassword"
  754. // ChangePasswordRequest generates a "aws/request.Request" representing the
  755. // client's request for the ChangePassword operation. The "output" return
  756. // value can be used to capture response data after the request's "Send" method
  757. // is called.
  758. //
  759. // Creating a request object using this method should be used when you want to inject
  760. // custom logic into the request's lifecycle using a custom handler, or if you want to
  761. // access properties on the request object before or after sending the request. If
  762. // you just want the service response, call the ChangePassword method directly
  763. // instead.
  764. //
  765. // Note: You must call the "Send" method on the returned request object in order
  766. // to execute the request.
  767. //
  768. // // Example sending a request using the ChangePasswordRequest method.
  769. // req, resp := client.ChangePasswordRequest(params)
  770. //
  771. // err := req.Send()
  772. // if err == nil { // resp is now filled
  773. // fmt.Println(resp)
  774. // }
  775. //
  776. func (c *CognitoIdentityProvider) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Request, output *ChangePasswordOutput) {
  777. op := &request.Operation{
  778. Name: opChangePassword,
  779. HTTPMethod: "POST",
  780. HTTPPath: "/",
  781. }
  782. if input == nil {
  783. input = &ChangePasswordInput{}
  784. }
  785. req = c.newRequest(op, input, output)
  786. req.Config.Credentials = credentials.AnonymousCredentials
  787. output = &ChangePasswordOutput{}
  788. req.Data = output
  789. return
  790. }
  791. // Changes the password for a specified user in a user pool.
  792. func (c *CognitoIdentityProvider) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) {
  793. req, out := c.ChangePasswordRequest(input)
  794. err := req.Send()
  795. return out, err
  796. }
  797. const opConfirmDevice = "ConfirmDevice"
  798. // ConfirmDeviceRequest generates a "aws/request.Request" representing the
  799. // client's request for the ConfirmDevice operation. The "output" return
  800. // value can be used to capture response data after the request's "Send" method
  801. // is called.
  802. //
  803. // Creating a request object using this method should be used when you want to inject
  804. // custom logic into the request's lifecycle using a custom handler, or if you want to
  805. // access properties on the request object before or after sending the request. If
  806. // you just want the service response, call the ConfirmDevice method directly
  807. // instead.
  808. //
  809. // Note: You must call the "Send" method on the returned request object in order
  810. // to execute the request.
  811. //
  812. // // Example sending a request using the ConfirmDeviceRequest method.
  813. // req, resp := client.ConfirmDeviceRequest(params)
  814. //
  815. // err := req.Send()
  816. // if err == nil { // resp is now filled
  817. // fmt.Println(resp)
  818. // }
  819. //
  820. func (c *CognitoIdentityProvider) ConfirmDeviceRequest(input *ConfirmDeviceInput) (req *request.Request, output *ConfirmDeviceOutput) {
  821. op := &request.Operation{
  822. Name: opConfirmDevice,
  823. HTTPMethod: "POST",
  824. HTTPPath: "/",
  825. }
  826. if input == nil {
  827. input = &ConfirmDeviceInput{}
  828. }
  829. req = c.newRequest(op, input, output)
  830. output = &ConfirmDeviceOutput{}
  831. req.Data = output
  832. return
  833. }
  834. // Confirms tracking of the device. This API call is the call that beings device
  835. // tracking.
  836. func (c *CognitoIdentityProvider) ConfirmDevice(input *ConfirmDeviceInput) (*ConfirmDeviceOutput, error) {
  837. req, out := c.ConfirmDeviceRequest(input)
  838. err := req.Send()
  839. return out, err
  840. }
  841. const opConfirmForgotPassword = "ConfirmForgotPassword"
  842. // ConfirmForgotPasswordRequest generates a "aws/request.Request" representing the
  843. // client's request for the ConfirmForgotPassword operation. The "output" return
  844. // value can be used to capture response data after the request's "Send" method
  845. // is called.
  846. //
  847. // Creating a request object using this method should be used when you want to inject
  848. // custom logic into the request's lifecycle using a custom handler, or if you want to
  849. // access properties on the request object before or after sending the request. If
  850. // you just want the service response, call the ConfirmForgotPassword method directly
  851. // instead.
  852. //
  853. // Note: You must call the "Send" method on the returned request object in order
  854. // to execute the request.
  855. //
  856. // // Example sending a request using the ConfirmForgotPasswordRequest method.
  857. // req, resp := client.ConfirmForgotPasswordRequest(params)
  858. //
  859. // err := req.Send()
  860. // if err == nil { // resp is now filled
  861. // fmt.Println(resp)
  862. // }
  863. //
  864. func (c *CognitoIdentityProvider) ConfirmForgotPasswordRequest(input *ConfirmForgotPasswordInput) (req *request.Request, output *ConfirmForgotPasswordOutput) {
  865. op := &request.Operation{
  866. Name: opConfirmForgotPassword,
  867. HTTPMethod: "POST",
  868. HTTPPath: "/",
  869. }
  870. if input == nil {
  871. input = &ConfirmForgotPasswordInput{}
  872. }
  873. req = c.newRequest(op, input, output)
  874. req.Config.Credentials = credentials.AnonymousCredentials
  875. output = &ConfirmForgotPasswordOutput{}
  876. req.Data = output
  877. return
  878. }
  879. // Allows a user to enter a code provided when they reset their password to
  880. // update their password.
  881. func (c *CognitoIdentityProvider) ConfirmForgotPassword(input *ConfirmForgotPasswordInput) (*ConfirmForgotPasswordOutput, error) {
  882. req, out := c.ConfirmForgotPasswordRequest(input)
  883. err := req.Send()
  884. return out, err
  885. }
  886. const opConfirmSignUp = "ConfirmSignUp"
  887. // ConfirmSignUpRequest generates a "aws/request.Request" representing the
  888. // client's request for the ConfirmSignUp operation. The "output" return
  889. // value can be used to capture response data after the request's "Send" method
  890. // is called.
  891. //
  892. // Creating a request object using this method should be used when you want to inject
  893. // custom logic into the request's lifecycle using a custom handler, or if you want to
  894. // access properties on the request object before or after sending the request. If
  895. // you just want the service response, call the ConfirmSignUp method directly
  896. // instead.
  897. //
  898. // Note: You must call the "Send" method on the returned request object in order
  899. // to execute the request.
  900. //
  901. // // Example sending a request using the ConfirmSignUpRequest method.
  902. // req, resp := client.ConfirmSignUpRequest(params)
  903. //
  904. // err := req.Send()
  905. // if err == nil { // resp is now filled
  906. // fmt.Println(resp)
  907. // }
  908. //
  909. func (c *CognitoIdentityProvider) ConfirmSignUpRequest(input *ConfirmSignUpInput) (req *request.Request, output *ConfirmSignUpOutput) {
  910. op := &request.Operation{
  911. Name: opConfirmSignUp,
  912. HTTPMethod: "POST",
  913. HTTPPath: "/",
  914. }
  915. if input == nil {
  916. input = &ConfirmSignUpInput{}
  917. }
  918. req = c.newRequest(op, input, output)
  919. req.Config.Credentials = credentials.AnonymousCredentials
  920. output = &ConfirmSignUpOutput{}
  921. req.Data = output
  922. return
  923. }
  924. // Confirms registration of a user and handles the existing alias from a previous
  925. // user.
  926. func (c *CognitoIdentityProvider) ConfirmSignUp(input *ConfirmSignUpInput) (*ConfirmSignUpOutput, error) {
  927. req, out := c.ConfirmSignUpRequest(input)
  928. err := req.Send()
  929. return out, err
  930. }
  931. const opCreateUserPool = "CreateUserPool"
  932. // CreateUserPoolRequest generates a "aws/request.Request" representing the
  933. // client's request for the CreateUserPool operation. The "output" return
  934. // value can be used to capture response data after the request's "Send" method
  935. // is called.
  936. //
  937. // Creating a request object using this method should be used when you want to inject
  938. // custom logic into the request's lifecycle using a custom handler, or if you want to
  939. // access properties on the request object before or after sending the request. If
  940. // you just want the service response, call the CreateUserPool method directly
  941. // instead.
  942. //
  943. // Note: You must call the "Send" method on the returned request object in order
  944. // to execute the request.
  945. //
  946. // // Example sending a request using the CreateUserPoolRequest method.
  947. // req, resp := client.CreateUserPoolRequest(params)
  948. //
  949. // err := req.Send()
  950. // if err == nil { // resp is now filled
  951. // fmt.Println(resp)
  952. // }
  953. //
  954. func (c *CognitoIdentityProvider) CreateUserPoolRequest(input *CreateUserPoolInput) (req *request.Request, output *CreateUserPoolOutput) {
  955. op := &request.Operation{
  956. Name: opCreateUserPool,
  957. HTTPMethod: "POST",
  958. HTTPPath: "/",
  959. }
  960. if input == nil {
  961. input = &CreateUserPoolInput{}
  962. }
  963. req = c.newRequest(op, input, output)
  964. output = &CreateUserPoolOutput{}
  965. req.Data = output
  966. return
  967. }
  968. // Creates a new Amazon Cognito user pool and sets the password policy for the
  969. // pool.
  970. func (c *CognitoIdentityProvider) CreateUserPool(input *CreateUserPoolInput) (*CreateUserPoolOutput, error) {
  971. req, out := c.CreateUserPoolRequest(input)
  972. err := req.Send()
  973. return out, err
  974. }
  975. const opCreateUserPoolClient = "CreateUserPoolClient"
  976. // CreateUserPoolClientRequest generates a "aws/request.Request" representing the
  977. // client's request for the CreateUserPoolClient operation. The "output" return
  978. // value can be used to capture response data after the request's "Send" method
  979. // is called.
  980. //
  981. // Creating a request object using this method should be used when you want to inject
  982. // custom logic into the request's lifecycle using a custom handler, or if you want to
  983. // access properties on the request object before or after sending the request. If
  984. // you just want the service response, call the CreateUserPoolClient method directly
  985. // instead.
  986. //
  987. // Note: You must call the "Send" method on the returned request object in order
  988. // to execute the request.
  989. //
  990. // // Example sending a request using the CreateUserPoolClientRequest method.
  991. // req, resp := client.CreateUserPoolClientRequest(params)
  992. //
  993. // err := req.Send()
  994. // if err == nil { // resp is now filled
  995. // fmt.Println(resp)
  996. // }
  997. //
  998. func (c *CognitoIdentityProvider) CreateUserPoolClientRequest(input *CreateUserPoolClientInput) (req *request.Request, output *CreateUserPoolClientOutput) {
  999. op := &request.Operation{
  1000. Name: opCreateUserPoolClient,
  1001. HTTPMethod: "POST",
  1002. HTTPPath: "/",
  1003. }
  1004. if input == nil {
  1005. input = &CreateUserPoolClientInput{}
  1006. }
  1007. req = c.newRequest(op, input, output)
  1008. output = &CreateUserPoolClientOutput{}
  1009. req.Data = output
  1010. return
  1011. }
  1012. // Creates the user pool client.
  1013. func (c *CognitoIdentityProvider) CreateUserPoolClient(input *CreateUserPoolClientInput) (*CreateUserPoolClientOutput, error) {
  1014. req, out := c.CreateUserPoolClientRequest(input)
  1015. err := req.Send()
  1016. return out, err
  1017. }
  1018. const opDeleteUser = "DeleteUser"
  1019. // DeleteUserRequest generates a "aws/request.Request" representing the
  1020. // client's request for the DeleteUser operation. The "output" return
  1021. // value can be used to capture response data after the request's "Send" method
  1022. // is called.
  1023. //
  1024. // Creating a request object using this method should be used when you want to inject
  1025. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1026. // access properties on the request object before or after sending the request. If
  1027. // you just want the service response, call the DeleteUser method directly
  1028. // instead.
  1029. //
  1030. // Note: You must call the "Send" method on the returned request object in order
  1031. // to execute the request.
  1032. //
  1033. // // Example sending a request using the DeleteUserRequest method.
  1034. // req, resp := client.DeleteUserRequest(params)
  1035. //
  1036. // err := req.Send()
  1037. // if err == nil { // resp is now filled
  1038. // fmt.Println(resp)
  1039. // }
  1040. //
  1041. func (c *CognitoIdentityProvider) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) {
  1042. op := &request.Operation{
  1043. Name: opDeleteUser,
  1044. HTTPMethod: "POST",
  1045. HTTPPath: "/",
  1046. }
  1047. if input == nil {
  1048. input = &DeleteUserInput{}
  1049. }
  1050. req = c.newRequest(op, input, output)
  1051. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1052. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1053. req.Config.Credentials = credentials.AnonymousCredentials
  1054. output = &DeleteUserOutput{}
  1055. req.Data = output
  1056. return
  1057. }
  1058. // Allows a user to delete one's self.
  1059. func (c *CognitoIdentityProvider) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) {
  1060. req, out := c.DeleteUserRequest(input)
  1061. err := req.Send()
  1062. return out, err
  1063. }
  1064. const opDeleteUserAttributes = "DeleteUserAttributes"
  1065. // DeleteUserAttributesRequest generates a "aws/request.Request" representing the
  1066. // client's request for the DeleteUserAttributes operation. The "output" return
  1067. // value can be used to capture response data after the request's "Send" method
  1068. // is called.
  1069. //
  1070. // Creating a request object using this method should be used when you want to inject
  1071. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1072. // access properties on the request object before or after sending the request. If
  1073. // you just want the service response, call the DeleteUserAttributes method directly
  1074. // instead.
  1075. //
  1076. // Note: You must call the "Send" method on the returned request object in order
  1077. // to execute the request.
  1078. //
  1079. // // Example sending a request using the DeleteUserAttributesRequest method.
  1080. // req, resp := client.DeleteUserAttributesRequest(params)
  1081. //
  1082. // err := req.Send()
  1083. // if err == nil { // resp is now filled
  1084. // fmt.Println(resp)
  1085. // }
  1086. //
  1087. func (c *CognitoIdentityProvider) DeleteUserAttributesRequest(input *DeleteUserAttributesInput) (req *request.Request, output *DeleteUserAttributesOutput) {
  1088. op := &request.Operation{
  1089. Name: opDeleteUserAttributes,
  1090. HTTPMethod: "POST",
  1091. HTTPPath: "/",
  1092. }
  1093. if input == nil {
  1094. input = &DeleteUserAttributesInput{}
  1095. }
  1096. req = c.newRequest(op, input, output)
  1097. req.Config.Credentials = credentials.AnonymousCredentials
  1098. output = &DeleteUserAttributesOutput{}
  1099. req.Data = output
  1100. return
  1101. }
  1102. // Deletes the attributes for a user.
  1103. func (c *CognitoIdentityProvider) DeleteUserAttributes(input *DeleteUserAttributesInput) (*DeleteUserAttributesOutput, error) {
  1104. req, out := c.DeleteUserAttributesRequest(input)
  1105. err := req.Send()
  1106. return out, err
  1107. }
  1108. const opDeleteUserPool = "DeleteUserPool"
  1109. // DeleteUserPoolRequest generates a "aws/request.Request" representing the
  1110. // client's request for the DeleteUserPool operation. The "output" return
  1111. // value can be used to capture response data after the request's "Send" method
  1112. // is called.
  1113. //
  1114. // Creating a request object using this method should be used when you want to inject
  1115. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1116. // access properties on the request object before or after sending the request. If
  1117. // you just want the service response, call the DeleteUserPool method directly
  1118. // instead.
  1119. //
  1120. // Note: You must call the "Send" method on the returned request object in order
  1121. // to execute the request.
  1122. //
  1123. // // Example sending a request using the DeleteUserPoolRequest method.
  1124. // req, resp := client.DeleteUserPoolRequest(params)
  1125. //
  1126. // err := req.Send()
  1127. // if err == nil { // resp is now filled
  1128. // fmt.Println(resp)
  1129. // }
  1130. //
  1131. func (c *CognitoIdentityProvider) DeleteUserPoolRequest(input *DeleteUserPoolInput) (req *request.Request, output *DeleteUserPoolOutput) {
  1132. op := &request.Operation{
  1133. Name: opDeleteUserPool,
  1134. HTTPMethod: "POST",
  1135. HTTPPath: "/",
  1136. }
  1137. if input == nil {
  1138. input = &DeleteUserPoolInput{}
  1139. }
  1140. req = c.newRequest(op, input, output)
  1141. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1142. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1143. output = &DeleteUserPoolOutput{}
  1144. req.Data = output
  1145. return
  1146. }
  1147. // Deletes the specified Amazon Cognito user pool.
  1148. func (c *CognitoIdentityProvider) DeleteUserPool(input *DeleteUserPoolInput) (*DeleteUserPoolOutput, error) {
  1149. req, out := c.DeleteUserPoolRequest(input)
  1150. err := req.Send()
  1151. return out, err
  1152. }
  1153. const opDeleteUserPoolClient = "DeleteUserPoolClient"
  1154. // DeleteUserPoolClientRequest generates a "aws/request.Request" representing the
  1155. // client's request for the DeleteUserPoolClient operation. The "output" return
  1156. // value can be used to capture response data after the request's "Send" method
  1157. // is called.
  1158. //
  1159. // Creating a request object using this method should be used when you want to inject
  1160. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1161. // access properties on the request object before or after sending the request. If
  1162. // you just want the service response, call the DeleteUserPoolClient method directly
  1163. // instead.
  1164. //
  1165. // Note: You must call the "Send" method on the returned request object in order
  1166. // to execute the request.
  1167. //
  1168. // // Example sending a request using the DeleteUserPoolClientRequest method.
  1169. // req, resp := client.DeleteUserPoolClientRequest(params)
  1170. //
  1171. // err := req.Send()
  1172. // if err == nil { // resp is now filled
  1173. // fmt.Println(resp)
  1174. // }
  1175. //
  1176. func (c *CognitoIdentityProvider) DeleteUserPoolClientRequest(input *DeleteUserPoolClientInput) (req *request.Request, output *DeleteUserPoolClientOutput) {
  1177. op := &request.Operation{
  1178. Name: opDeleteUserPoolClient,
  1179. HTTPMethod: "POST",
  1180. HTTPPath: "/",
  1181. }
  1182. if input == nil {
  1183. input = &DeleteUserPoolClientInput{}
  1184. }
  1185. req = c.newRequest(op, input, output)
  1186. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1187. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1188. output = &DeleteUserPoolClientOutput{}
  1189. req.Data = output
  1190. return
  1191. }
  1192. // Allows the developer to delete the user pool client.
  1193. func (c *CognitoIdentityProvider) DeleteUserPoolClient(input *DeleteUserPoolClientInput) (*DeleteUserPoolClientOutput, error) {
  1194. req, out := c.DeleteUserPoolClientRequest(input)
  1195. err := req.Send()
  1196. return out, err
  1197. }
  1198. const opDescribeUserPool = "DescribeUserPool"
  1199. // DescribeUserPoolRequest generates a "aws/request.Request" representing the
  1200. // client's request for the DescribeUserPool operation. The "output" return
  1201. // value can be used to capture response data after the request's "Send" method
  1202. // is called.
  1203. //
  1204. // Creating a request object using this method should be used when you want to inject
  1205. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1206. // access properties on the request object before or after sending the request. If
  1207. // you just want the service response, call the DescribeUserPool method directly
  1208. // instead.
  1209. //
  1210. // Note: You must call the "Send" method on the returned request object in order
  1211. // to execute the request.
  1212. //
  1213. // // Example sending a request using the DescribeUserPoolRequest method.
  1214. // req, resp := client.DescribeUserPoolRequest(params)
  1215. //
  1216. // err := req.Send()
  1217. // if err == nil { // resp is now filled
  1218. // fmt.Println(resp)
  1219. // }
  1220. //
  1221. func (c *CognitoIdentityProvider) DescribeUserPoolRequest(input *DescribeUserPoolInput) (req *request.Request, output *DescribeUserPoolOutput) {
  1222. op := &request.Operation{
  1223. Name: opDescribeUserPool,
  1224. HTTPMethod: "POST",
  1225. HTTPPath: "/",
  1226. }
  1227. if input == nil {
  1228. input = &DescribeUserPoolInput{}
  1229. }
  1230. req = c.newRequest(op, input, output)
  1231. output = &DescribeUserPoolOutput{}
  1232. req.Data = output
  1233. return
  1234. }
  1235. // Returns the configuration information and metadata of the specified user
  1236. // pool.
  1237. func (c *CognitoIdentityProvider) DescribeUserPool(input *DescribeUserPoolInput) (*DescribeUserPoolOutput, error) {
  1238. req, out := c.DescribeUserPoolRequest(input)
  1239. err := req.Send()
  1240. return out, err
  1241. }
  1242. const opDescribeUserPoolClient = "DescribeUserPoolClient"
  1243. // DescribeUserPoolClientRequest generates a "aws/request.Request" representing the
  1244. // client's request for the DescribeUserPoolClient operation. The "output" return
  1245. // value can be used to capture response data after the request's "Send" method
  1246. // is called.
  1247. //
  1248. // Creating a request object using this method should be used when you want to inject
  1249. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1250. // access properties on the request object before or after sending the request. If
  1251. // you just want the service response, call the DescribeUserPoolClient method directly
  1252. // instead.
  1253. //
  1254. // Note: You must call the "Send" method on the returned request object in order
  1255. // to execute the request.
  1256. //
  1257. // // Example sending a request using the DescribeUserPoolClientRequest method.
  1258. // req, resp := client.DescribeUserPoolClientRequest(params)
  1259. //
  1260. // err := req.Send()
  1261. // if err == nil { // resp is now filled
  1262. // fmt.Println(resp)
  1263. // }
  1264. //
  1265. func (c *CognitoIdentityProvider) DescribeUserPoolClientRequest(input *DescribeUserPoolClientInput) (req *request.Request, output *DescribeUserPoolClientOutput) {
  1266. op := &request.Operation{
  1267. Name: opDescribeUserPoolClient,
  1268. HTTPMethod: "POST",
  1269. HTTPPath: "/",
  1270. }
  1271. if input == nil {
  1272. input = &DescribeUserPoolClientInput{}
  1273. }
  1274. req = c.newRequest(op, input, output)
  1275. output = &DescribeUserPoolClientOutput{}
  1276. req.Data = output
  1277. return
  1278. }
  1279. // Client method for returning the configuration information and metadata of
  1280. // the specified user pool client.
  1281. func (c *CognitoIdentityProvider) DescribeUserPoolClient(input *DescribeUserPoolClientInput) (*DescribeUserPoolClientOutput, error) {
  1282. req, out := c.DescribeUserPoolClientRequest(input)
  1283. err := req.Send()
  1284. return out, err
  1285. }
  1286. const opForgetDevice = "ForgetDevice"
  1287. // ForgetDeviceRequest generates a "aws/request.Request" representing the
  1288. // client's request for the ForgetDevice operation. The "output" return
  1289. // value can be used to capture response data after the request's "Send" method
  1290. // is called.
  1291. //
  1292. // Creating a request object using this method should be used when you want to inject
  1293. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1294. // access properties on the request object before or after sending the request. If
  1295. // you just want the service response, call the ForgetDevice method directly
  1296. // instead.
  1297. //
  1298. // Note: You must call the "Send" method on the returned request object in order
  1299. // to execute the request.
  1300. //
  1301. // // Example sending a request using the ForgetDeviceRequest method.
  1302. // req, resp := client.ForgetDeviceRequest(params)
  1303. //
  1304. // err := req.Send()
  1305. // if err == nil { // resp is now filled
  1306. // fmt.Println(resp)
  1307. // }
  1308. //
  1309. func (c *CognitoIdentityProvider) ForgetDeviceRequest(input *ForgetDeviceInput) (req *request.Request, output *ForgetDeviceOutput) {
  1310. op := &request.Operation{
  1311. Name: opForgetDevice,
  1312. HTTPMethod: "POST",
  1313. HTTPPath: "/",
  1314. }
  1315. if input == nil {
  1316. input = &ForgetDeviceInput{}
  1317. }
  1318. req = c.newRequest(op, input, output)
  1319. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1320. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1321. output = &ForgetDeviceOutput{}
  1322. req.Data = output
  1323. return
  1324. }
  1325. // Forgets the specified device.
  1326. func (c *CognitoIdentityProvider) ForgetDevice(input *ForgetDeviceInput) (*ForgetDeviceOutput, error) {
  1327. req, out := c.ForgetDeviceRequest(input)
  1328. err := req.Send()
  1329. return out, err
  1330. }
  1331. const opForgotPassword = "ForgotPassword"
  1332. // ForgotPasswordRequest generates a "aws/request.Request" representing the
  1333. // client's request for the ForgotPassword operation. The "output" return
  1334. // value can be used to capture response data after the request's "Send" method
  1335. // is called.
  1336. //
  1337. // Creating a request object using this method should be used when you want to inject
  1338. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1339. // access properties on the request object before or after sending the request. If
  1340. // you just want the service response, call the ForgotPassword method directly
  1341. // instead.
  1342. //
  1343. // Note: You must call the "Send" method on the returned request object in order
  1344. // to execute the request.
  1345. //
  1346. // // Example sending a request using the ForgotPasswordRequest method.
  1347. // req, resp := client.ForgotPasswordRequest(params)
  1348. //
  1349. // err := req.Send()
  1350. // if err == nil { // resp is now filled
  1351. // fmt.Println(resp)
  1352. // }
  1353. //
  1354. func (c *CognitoIdentityProvider) ForgotPasswordRequest(input *ForgotPasswordInput) (req *request.Request, output *ForgotPasswordOutput) {
  1355. op := &request.Operation{
  1356. Name: opForgotPassword,
  1357. HTTPMethod: "POST",
  1358. HTTPPath: "/",
  1359. }
  1360. if input == nil {
  1361. input = &ForgotPasswordInput{}
  1362. }
  1363. req = c.newRequest(op, input, output)
  1364. req.Config.Credentials = credentials.AnonymousCredentials
  1365. output = &ForgotPasswordOutput{}
  1366. req.Data = output
  1367. return
  1368. }
  1369. // Retrieves the password for the specified client ID or username.
  1370. func (c *CognitoIdentityProvider) ForgotPassword(input *ForgotPasswordInput) (*ForgotPasswordOutput, error) {
  1371. req, out := c.ForgotPasswordRequest(input)
  1372. err := req.Send()
  1373. return out, err
  1374. }
  1375. const opGetDevice = "GetDevice"
  1376. // GetDeviceRequest generates a "aws/request.Request" representing the
  1377. // client's request for the GetDevice operation. The "output" return
  1378. // value can be used to capture response data after the request's "Send" method
  1379. // is called.
  1380. //
  1381. // Creating a request object using this method should be used when you want to inject
  1382. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1383. // access properties on the request object before or after sending the request. If
  1384. // you just want the service response, call the GetDevice method directly
  1385. // instead.
  1386. //
  1387. // Note: You must call the "Send" method on the returned request object in order
  1388. // to execute the request.
  1389. //
  1390. // // Example sending a request using the GetDeviceRequest method.
  1391. // req, resp := client.GetDeviceRequest(params)
  1392. //
  1393. // err := req.Send()
  1394. // if err == nil { // resp is now filled
  1395. // fmt.Println(resp)
  1396. // }
  1397. //
  1398. func (c *CognitoIdentityProvider) GetDeviceRequest(input *GetDeviceInput) (req *request.Request, output *GetDeviceOutput) {
  1399. op := &request.Operation{
  1400. Name: opGetDevice,
  1401. HTTPMethod: "POST",
  1402. HTTPPath: "/",
  1403. }
  1404. if input == nil {
  1405. input = &GetDeviceInput{}
  1406. }
  1407. req = c.newRequest(op, input, output)
  1408. output = &GetDeviceOutput{}
  1409. req.Data = output
  1410. return
  1411. }
  1412. // Gets the device.
  1413. func (c *CognitoIdentityProvider) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) {
  1414. req, out := c.GetDeviceRequest(input)
  1415. err := req.Send()
  1416. return out, err
  1417. }
  1418. const opGetUser = "GetUser"
  1419. // GetUserRequest generates a "aws/request.Request" representing the
  1420. // client's request for the GetUser operation. The "output" return
  1421. // value can be used to capture response data after the request's "Send" method
  1422. // is called.
  1423. //
  1424. // Creating a request object using this method should be used when you want to inject
  1425. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1426. // access properties on the request object before or after sending the request. If
  1427. // you just want the service response, call the GetUser method directly
  1428. // instead.
  1429. //
  1430. // Note: You must call the "Send" method on the returned request object in order
  1431. // to execute the request.
  1432. //
  1433. // // Example sending a request using the GetUserRequest method.
  1434. // req, resp := client.GetUserRequest(params)
  1435. //
  1436. // err := req.Send()
  1437. // if err == nil { // resp is now filled
  1438. // fmt.Println(resp)
  1439. // }
  1440. //
  1441. func (c *CognitoIdentityProvider) GetUserRequest(input *GetUserInput) (req *request.Request, output *GetUserOutput) {
  1442. op := &request.Operation{
  1443. Name: opGetUser,
  1444. HTTPMethod: "POST",
  1445. HTTPPath: "/",
  1446. }
  1447. if input == nil {
  1448. input = &GetUserInput{}
  1449. }
  1450. req = c.newRequest(op, input, output)
  1451. req.Config.Credentials = credentials.AnonymousCredentials
  1452. output = &GetUserOutput{}
  1453. req.Data = output
  1454. return
  1455. }
  1456. // Gets the user attributes and metadata for a user.
  1457. func (c *CognitoIdentityProvider) GetUser(input *GetUserInput) (*GetUserOutput, error) {
  1458. req, out := c.GetUserRequest(input)
  1459. err := req.Send()
  1460. return out, err
  1461. }
  1462. const opGetUserAttributeVerificationCode = "GetUserAttributeVerificationCode"
  1463. // GetUserAttributeVerificationCodeRequest generates a "aws/request.Request" representing the
  1464. // client's request for the GetUserAttributeVerificationCode operation. The "output" return
  1465. // value can be used to capture response data after the request's "Send" method
  1466. // is called.
  1467. //
  1468. // Creating a request object using this method should be used when you want to inject
  1469. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1470. // access properties on the request object before or after sending the request. If
  1471. // you just want the service response, call the GetUserAttributeVerificationCode method directly
  1472. // instead.
  1473. //
  1474. // Note: You must call the "Send" method on the returned request object in order
  1475. // to execute the request.
  1476. //
  1477. // // Example sending a request using the GetUserAttributeVerificationCodeRequest method.
  1478. // req, resp := client.GetUserAttributeVerificationCodeRequest(params)
  1479. //
  1480. // err := req.Send()
  1481. // if err == nil { // resp is now filled
  1482. // fmt.Println(resp)
  1483. // }
  1484. //
  1485. func (c *CognitoIdentityProvider) GetUserAttributeVerificationCodeRequest(input *GetUserAttributeVerificationCodeInput) (req *request.Request, output *GetUserAttributeVerificationCodeOutput) {
  1486. op := &request.Operation{
  1487. Name: opGetUserAttributeVerificationCode,
  1488. HTTPMethod: "POST",
  1489. HTTPPath: "/",
  1490. }
  1491. if input == nil {
  1492. input = &GetUserAttributeVerificationCodeInput{}
  1493. }
  1494. req = c.newRequest(op, input, output)
  1495. req.Config.Credentials = credentials.AnonymousCredentials
  1496. output = &GetUserAttributeVerificationCodeOutput{}
  1497. req.Data = output
  1498. return
  1499. }
  1500. // Gets the user attribute verification code for the specified attribute name.
  1501. func (c *CognitoIdentityProvider) GetUserAttributeVerificationCode(input *GetUserAttributeVerificationCodeInput) (*GetUserAttributeVerificationCodeOutput, error) {
  1502. req, out := c.GetUserAttributeVerificationCodeRequest(input)
  1503. err := req.Send()
  1504. return out, err
  1505. }
  1506. const opGlobalSignOut = "GlobalSignOut"
  1507. // GlobalSignOutRequest generates a "aws/request.Request" representing the
  1508. // client's request for the GlobalSignOut operation. The "output" return
  1509. // value can be used to capture response data after the request's "Send" method
  1510. // is called.
  1511. //
  1512. // Creating a request object using this method should be used when you want to inject
  1513. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1514. // access properties on the request object before or after sending the request. If
  1515. // you just want the service response, call the GlobalSignOut method directly
  1516. // instead.
  1517. //
  1518. // Note: You must call the "Send" method on the returned request object in order
  1519. // to execute the request.
  1520. //
  1521. // // Example sending a request using the GlobalSignOutRequest method.
  1522. // req, resp := client.GlobalSignOutRequest(params)
  1523. //
  1524. // err := req.Send()
  1525. // if err == nil { // resp is now filled
  1526. // fmt.Println(resp)
  1527. // }
  1528. //
  1529. func (c *CognitoIdentityProvider) GlobalSignOutRequest(input *GlobalSignOutInput) (req *request.Request, output *GlobalSignOutOutput) {
  1530. op := &request.Operation{
  1531. Name: opGlobalSignOut,
  1532. HTTPMethod: "POST",
  1533. HTTPPath: "/",
  1534. }
  1535. if input == nil {
  1536. input = &GlobalSignOutInput{}
  1537. }
  1538. req = c.newRequest(op, input, output)
  1539. output = &GlobalSignOutOutput{}
  1540. req.Data = output
  1541. return
  1542. }
  1543. // Signs out users from all devices.
  1544. func (c *CognitoIdentityProvider) GlobalSignOut(input *GlobalSignOutInput) (*GlobalSignOutOutput, error) {
  1545. req, out := c.GlobalSignOutRequest(input)
  1546. err := req.Send()
  1547. return out, err
  1548. }
  1549. const opInitiateAuth = "InitiateAuth"
  1550. // InitiateAuthRequest generates a "aws/request.Request" representing the
  1551. // client's request for the InitiateAuth operation. The "output" return
  1552. // value can be used to capture response data after the request's "Send" method
  1553. // is called.
  1554. //
  1555. // Creating a request object using this method should be used when you want to inject
  1556. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1557. // access properties on the request object before or after sending the request. If
  1558. // you just want the service response, call the InitiateAuth method directly
  1559. // instead.
  1560. //
  1561. // Note: You must call the "Send" method on the returned request object in order
  1562. // to execute the request.
  1563. //
  1564. // // Example sending a request using the InitiateAuthRequest method.
  1565. // req, resp := client.InitiateAuthRequest(params)
  1566. //
  1567. // err := req.Send()
  1568. // if err == nil { // resp is now filled
  1569. // fmt.Println(resp)
  1570. // }
  1571. //
  1572. func (c *CognitoIdentityProvider) InitiateAuthRequest(input *InitiateAuthInput) (req *request.Request, output *InitiateAuthOutput) {
  1573. op := &request.Operation{
  1574. Name: opInitiateAuth,
  1575. HTTPMethod: "POST",
  1576. HTTPPath: "/",
  1577. }
  1578. if input == nil {
  1579. input = &InitiateAuthInput{}
  1580. }
  1581. req = c.newRequest(op, input, output)
  1582. output = &InitiateAuthOutput{}
  1583. req.Data = output
  1584. return
  1585. }
  1586. // Initiates the authentication flow.
  1587. func (c *CognitoIdentityProvider) InitiateAuth(input *InitiateAuthInput) (*InitiateAuthOutput, error) {
  1588. req, out := c.InitiateAuthRequest(input)
  1589. err := req.Send()
  1590. return out, err
  1591. }
  1592. const opListDevices = "ListDevices"
  1593. // ListDevicesRequest generates a "aws/request.Request" representing the
  1594. // client's request for the ListDevices operation. The "output" return
  1595. // value can be used to capture response data after the request's "Send" method
  1596. // is called.
  1597. //
  1598. // Creating a request object using this method should be used when you want to inject
  1599. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1600. // access properties on the request object before or after sending the request. If
  1601. // you just want the service response, call the ListDevices method directly
  1602. // instead.
  1603. //
  1604. // Note: You must call the "Send" method on the returned request object in order
  1605. // to execute the request.
  1606. //
  1607. // // Example sending a request using the ListDevicesRequest method.
  1608. // req, resp := client.ListDevicesRequest(params)
  1609. //
  1610. // err := req.Send()
  1611. // if err == nil { // resp is now filled
  1612. // fmt.Println(resp)
  1613. // }
  1614. //
  1615. func (c *CognitoIdentityProvider) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput) {
  1616. op := &request.Operation{
  1617. Name: opListDevices,
  1618. HTTPMethod: "POST",
  1619. HTTPPath: "/",
  1620. }
  1621. if input == nil {
  1622. input = &ListDevicesInput{}
  1623. }
  1624. req = c.newRequest(op, input, output)
  1625. output = &ListDevicesOutput{}
  1626. req.Data = output
  1627. return
  1628. }
  1629. // Lists the devices.
  1630. func (c *CognitoIdentityProvider) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) {
  1631. req, out := c.ListDevicesRequest(input)
  1632. err := req.Send()
  1633. return out, err
  1634. }
  1635. const opListUserPoolClients = "ListUserPoolClients"
  1636. // ListUserPoolClientsRequest generates a "aws/request.Request" representing the
  1637. // client's request for the ListUserPoolClients operation. The "output" return
  1638. // value can be used to capture response data after the request's "Send" method
  1639. // is called.
  1640. //
  1641. // Creating a request object using this method should be used when you want to inject
  1642. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1643. // access properties on the request object before or after sending the request. If
  1644. // you just want the service response, call the ListUserPoolClients method directly
  1645. // instead.
  1646. //
  1647. // Note: You must call the "Send" method on the returned request object in order
  1648. // to execute the request.
  1649. //
  1650. // // Example sending a request using the ListUserPoolClientsRequest method.
  1651. // req, resp := client.ListUserPoolClientsRequest(params)
  1652. //
  1653. // err := req.Send()
  1654. // if err == nil { // resp is now filled
  1655. // fmt.Println(resp)
  1656. // }
  1657. //
  1658. func (c *CognitoIdentityProvider) ListUserPoolClientsRequest(input *ListUserPoolClientsInput) (req *request.Request, output *ListUserPoolClientsOutput) {
  1659. op := &request.Operation{
  1660. Name: opListUserPoolClients,
  1661. HTTPMethod: "POST",
  1662. HTTPPath: "/",
  1663. }
  1664. if input == nil {
  1665. input = &ListUserPoolClientsInput{}
  1666. }
  1667. req = c.newRequest(op, input, output)
  1668. output = &ListUserPoolClientsOutput{}
  1669. req.Data = output
  1670. return
  1671. }
  1672. // Lists the clients that have been created for the specified user pool.
  1673. func (c *CognitoIdentityProvider) ListUserPoolClients(input *ListUserPoolClientsInput) (*ListUserPoolClientsOutput, error) {
  1674. req, out := c.ListUserPoolClientsRequest(input)
  1675. err := req.Send()
  1676. return out, err
  1677. }
  1678. const opListUserPools = "ListUserPools"
  1679. // ListUserPoolsRequest generates a "aws/request.Request" representing the
  1680. // client's request for the ListUserPools operation. The "output" return
  1681. // value can be used to capture response data after the request's "Send" method
  1682. // is called.
  1683. //
  1684. // Creating a request object using this method should be used when you want to inject
  1685. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1686. // access properties on the request object before or after sending the request. If
  1687. // you just want the service response, call the ListUserPools method directly
  1688. // instead.
  1689. //
  1690. // Note: You must call the "Send" method on the returned request object in order
  1691. // to execute the request.
  1692. //
  1693. // // Example sending a request using the ListUserPoolsRequest method.
  1694. // req, resp := client.ListUserPoolsRequest(params)
  1695. //
  1696. // err := req.Send()
  1697. // if err == nil { // resp is now filled
  1698. // fmt.Println(resp)
  1699. // }
  1700. //
  1701. func (c *CognitoIdentityProvider) ListUserPoolsRequest(input *ListUserPoolsInput) (req *request.Request, output *ListUserPoolsOutput) {
  1702. op := &request.Operation{
  1703. Name: opListUserPools,
  1704. HTTPMethod: "POST",
  1705. HTTPPath: "/",
  1706. }
  1707. if input == nil {
  1708. input = &ListUserPoolsInput{}
  1709. }
  1710. req = c.newRequest(op, input, output)
  1711. output = &ListUserPoolsOutput{}
  1712. req.Data = output
  1713. return
  1714. }
  1715. // Lists the user pools associated with an AWS account.
  1716. func (c *CognitoIdentityProvider) ListUserPools(input *ListUserPoolsInput) (*ListUserPoolsOutput, error) {
  1717. req, out := c.ListUserPoolsRequest(input)
  1718. err := req.Send()
  1719. return out, err
  1720. }
  1721. const opListUsers = "ListUsers"
  1722. // ListUsersRequest generates a "aws/request.Request" representing the
  1723. // client's request for the ListUsers operation. The "output" return
  1724. // value can be used to capture response data after the request's "Send" method
  1725. // is called.
  1726. //
  1727. // Creating a request object using this method should be used when you want to inject
  1728. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1729. // access properties on the request object before or after sending the request. If
  1730. // you just want the service response, call the ListUsers method directly
  1731. // instead.
  1732. //
  1733. // Note: You must call the "Send" method on the returned request object in order
  1734. // to execute the request.
  1735. //
  1736. // // Example sending a request using the ListUsersRequest method.
  1737. // req, resp := client.ListUsersRequest(params)
  1738. //
  1739. // err := req.Send()
  1740. // if err == nil { // resp is now filled
  1741. // fmt.Println(resp)
  1742. // }
  1743. //
  1744. func (c *CognitoIdentityProvider) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) {
  1745. op := &request.Operation{
  1746. Name: opListUsers,
  1747. HTTPMethod: "POST",
  1748. HTTPPath: "/",
  1749. }
  1750. if input == nil {
  1751. input = &ListUsersInput{}
  1752. }
  1753. req = c.newRequest(op, input, output)
  1754. output = &ListUsersOutput{}
  1755. req.Data = output
  1756. return
  1757. }
  1758. // Lists the users in the Amazon Cognito user pool.
  1759. func (c *CognitoIdentityProvider) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) {
  1760. req, out := c.ListUsersRequest(input)
  1761. err := req.Send()
  1762. return out, err
  1763. }
  1764. const opResendConfirmationCode = "ResendConfirmationCode"
  1765. // ResendConfirmationCodeRequest generates a "aws/request.Request" representing the
  1766. // client's request for the ResendConfirmationCode operation. The "output" return
  1767. // value can be used to capture response data after the request's "Send" method
  1768. // is called.
  1769. //
  1770. // Creating a request object using this method should be used when you want to inject
  1771. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1772. // access properties on the request object before or after sending the request. If
  1773. // you just want the service response, call the ResendConfirmationCode method directly
  1774. // instead.
  1775. //
  1776. // Note: You must call the "Send" method on the returned request object in order
  1777. // to execute the request.
  1778. //
  1779. // // Example sending a request using the ResendConfirmationCodeRequest method.
  1780. // req, resp := client.ResendConfirmationCodeRequest(params)
  1781. //
  1782. // err := req.Send()
  1783. // if err == nil { // resp is now filled
  1784. // fmt.Println(resp)
  1785. // }
  1786. //
  1787. func (c *CognitoIdentityProvider) ResendConfirmationCodeRequest(input *ResendConfirmationCodeInput) (req *request.Request, output *ResendConfirmationCodeOutput) {
  1788. op := &request.Operation{
  1789. Name: opResendConfirmationCode,
  1790. HTTPMethod: "POST",
  1791. HTTPPath: "/",
  1792. }
  1793. if input == nil {
  1794. input = &ResendConfirmationCodeInput{}
  1795. }
  1796. req = c.newRequest(op, input, output)
  1797. req.Config.Credentials = credentials.AnonymousCredentials
  1798. output = &ResendConfirmationCodeOutput{}
  1799. req.Data = output
  1800. return
  1801. }
  1802. // Resends the confirmation (for confirmation of registration) to a specific
  1803. // user in the user pool.
  1804. func (c *CognitoIdentityProvider) ResendConfirmationCode(input *ResendConfirmationCodeInput) (*ResendConfirmationCodeOutput, error) {
  1805. req, out := c.ResendConfirmationCodeRequest(input)
  1806. err := req.Send()
  1807. return out, err
  1808. }
  1809. const opRespondToAuthChallenge = "RespondToAuthChallenge"
  1810. // RespondToAuthChallengeRequest generates a "aws/request.Request" representing the
  1811. // client's request for the RespondToAuthChallenge operation. The "output" return
  1812. // value can be used to capture response data after the request's "Send" method
  1813. // is called.
  1814. //
  1815. // Creating a request object using this method should be used when you want to inject
  1816. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1817. // access properties on the request object before or after sending the request. If
  1818. // you just want the service response, call the RespondToAuthChallenge method directly
  1819. // instead.
  1820. //
  1821. // Note: You must call the "Send" method on the returned request object in order
  1822. // to execute the request.
  1823. //
  1824. // // Example sending a request using the RespondToAuthChallengeRequest method.
  1825. // req, resp := client.RespondToAuthChallengeRequest(params)
  1826. //
  1827. // err := req.Send()
  1828. // if err == nil { // resp is now filled
  1829. // fmt.Println(resp)
  1830. // }
  1831. //
  1832. func (c *CognitoIdentityProvider) RespondToAuthChallengeRequest(input *RespondToAuthChallengeInput) (req *request.Request, output *RespondToAuthChallengeOutput) {
  1833. op := &request.Operation{
  1834. Name: opRespondToAuthChallenge,
  1835. HTTPMethod: "POST",
  1836. HTTPPath: "/",
  1837. }
  1838. if input == nil {
  1839. input = &RespondToAuthChallengeInput{}
  1840. }
  1841. req = c.newRequest(op, input, output)
  1842. output = &RespondToAuthChallengeOutput{}
  1843. req.Data = output
  1844. return
  1845. }
  1846. // Responds to the authentication challenge.
  1847. func (c *CognitoIdentityProvider) RespondToAuthChallenge(input *RespondToAuthChallengeInput) (*RespondToAuthChallengeOutput, error) {
  1848. req, out := c.RespondToAuthChallengeRequest(input)
  1849. err := req.Send()
  1850. return out, err
  1851. }
  1852. const opSetUserSettings = "SetUserSettings"
  1853. // SetUserSettingsRequest generates a "aws/request.Request" representing the
  1854. // client's request for the SetUserSettings operation. The "output" return
  1855. // value can be used to capture response data after the request's "Send" method
  1856. // is called.
  1857. //
  1858. // Creating a request object using this method should be used when you want to inject
  1859. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1860. // access properties on the request object before or after sending the request. If
  1861. // you just want the service response, call the SetUserSettings method directly
  1862. // instead.
  1863. //
  1864. // Note: You must call the "Send" method on the returned request object in order
  1865. // to execute the request.
  1866. //
  1867. // // Example sending a request using the SetUserSettingsRequest method.
  1868. // req, resp := client.SetUserSettingsRequest(params)
  1869. //
  1870. // err := req.Send()
  1871. // if err == nil { // resp is now filled
  1872. // fmt.Println(resp)
  1873. // }
  1874. //
  1875. func (c *CognitoIdentityProvider) SetUserSettingsRequest(input *SetUserSettingsInput) (req *request.Request, output *SetUserSettingsOutput) {
  1876. op := &request.Operation{
  1877. Name: opSetUserSettings,
  1878. HTTPMethod: "POST",
  1879. HTTPPath: "/",
  1880. }
  1881. if input == nil {
  1882. input = &SetUserSettingsInput{}
  1883. }
  1884. req = c.newRequest(op, input, output)
  1885. req.Config.Credentials = credentials.AnonymousCredentials
  1886. output = &SetUserSettingsOutput{}
  1887. req.Data = output
  1888. return
  1889. }
  1890. // Sets the user settings like multi-factor authentication (MFA). If MFA is
  1891. // to be removed for a particular attribute pass the attribute with code delivery
  1892. // as null. If null list is passed, all MFA options are removed.
  1893. func (c *CognitoIdentityProvider) SetUserSettings(input *SetUserSettingsInput) (*SetUserSettingsOutput, error) {
  1894. req, out := c.SetUserSettingsRequest(input)
  1895. err := req.Send()
  1896. return out, err
  1897. }
  1898. const opSignUp = "SignUp"
  1899. // SignUpRequest generates a "aws/request.Request" representing the
  1900. // client's request for the SignUp operation. The "output" return
  1901. // value can be used to capture response data after the request's "Send" method
  1902. // is called.
  1903. //
  1904. // Creating a request object using this method should be used when you want to inject
  1905. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1906. // access properties on the request object before or after sending the request. If
  1907. // you just want the service response, call the SignUp method directly
  1908. // instead.
  1909. //
  1910. // Note: You must call the "Send" method on the returned request object in order
  1911. // to execute the request.
  1912. //
  1913. // // Example sending a request using the SignUpRequest method.
  1914. // req, resp := client.SignUpRequest(params)
  1915. //
  1916. // err := req.Send()
  1917. // if err == nil { // resp is now filled
  1918. // fmt.Println(resp)
  1919. // }
  1920. //
  1921. func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *request.Request, output *SignUpOutput) {
  1922. op := &request.Operation{
  1923. Name: opSignUp,
  1924. HTTPMethod: "POST",
  1925. HTTPPath: "/",
  1926. }
  1927. if input == nil {
  1928. input = &SignUpInput{}
  1929. }
  1930. req = c.newRequest(op, input, output)
  1931. req.Config.Credentials = credentials.AnonymousCredentials
  1932. output = &SignUpOutput{}
  1933. req.Data = output
  1934. return
  1935. }
  1936. // Registers the user in the specified user pool and creates a user name, password,
  1937. // and user attributes.
  1938. func (c *CognitoIdentityProvider) SignUp(input *SignUpInput) (*SignUpOutput, error) {
  1939. req, out := c.SignUpRequest(input)
  1940. err := req.Send()
  1941. return out, err
  1942. }
  1943. const opUpdateDeviceStatus = "UpdateDeviceStatus"
  1944. // UpdateDeviceStatusRequest generates a "aws/request.Request" representing the
  1945. // client's request for the UpdateDeviceStatus operation. The "output" return
  1946. // value can be used to capture response data after the request's "Send" method
  1947. // is called.
  1948. //
  1949. // Creating a request object using this method should be used when you want to inject
  1950. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1951. // access properties on the request object before or after sending the request. If
  1952. // you just want the service response, call the UpdateDeviceStatus method directly
  1953. // instead.
  1954. //
  1955. // Note: You must call the "Send" method on the returned request object in order
  1956. // to execute the request.
  1957. //
  1958. // // Example sending a request using the UpdateDeviceStatusRequest method.
  1959. // req, resp := client.UpdateDeviceStatusRequest(params)
  1960. //
  1961. // err := req.Send()
  1962. // if err == nil { // resp is now filled
  1963. // fmt.Println(resp)
  1964. // }
  1965. //
  1966. func (c *CognitoIdentityProvider) UpdateDeviceStatusRequest(input *UpdateDeviceStatusInput) (req *request.Request, output *UpdateDeviceStatusOutput) {
  1967. op := &request.Operation{
  1968. Name: opUpdateDeviceStatus,
  1969. HTTPMethod: "POST",
  1970. HTTPPath: "/",
  1971. }
  1972. if input == nil {
  1973. input = &UpdateDeviceStatusInput{}
  1974. }
  1975. req = c.newRequest(op, input, output)
  1976. output = &UpdateDeviceStatusOutput{}
  1977. req.Data = output
  1978. return
  1979. }
  1980. // Updates the device status.
  1981. func (c *CognitoIdentityProvider) UpdateDeviceStatus(input *UpdateDeviceStatusInput) (*UpdateDeviceStatusOutput, error) {
  1982. req, out := c.UpdateDeviceStatusRequest(input)
  1983. err := req.Send()
  1984. return out, err
  1985. }
  1986. const opUpdateUserAttributes = "UpdateUserAttributes"
  1987. // UpdateUserAttributesRequest generates a "aws/request.Request" representing the
  1988. // client's request for the UpdateUserAttributes operation. The "output" return
  1989. // value can be used to capture response data after the request's "Send" method
  1990. // is called.
  1991. //
  1992. // Creating a request object using this method should be used when you want to inject
  1993. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1994. // access properties on the request object before or after sending the request. If
  1995. // you just want the service response, call the UpdateUserAttributes method directly
  1996. // instead.
  1997. //
  1998. // Note: You must call the "Send" method on the returned request object in order
  1999. // to execute the request.
  2000. //
  2001. // // Example sending a request using the UpdateUserAttributesRequest method.
  2002. // req, resp := client.UpdateUserAttributesRequest(params)
  2003. //
  2004. // err := req.Send()
  2005. // if err == nil { // resp is now filled
  2006. // fmt.Println(resp)
  2007. // }
  2008. //
  2009. func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserAttributesInput) (req *request.Request, output *UpdateUserAttributesOutput) {
  2010. op := &request.Operation{
  2011. Name: opUpdateUserAttributes,
  2012. HTTPMethod: "POST",
  2013. HTTPPath: "/",
  2014. }
  2015. if input == nil {
  2016. input = &UpdateUserAttributesInput{}
  2017. }
  2018. req = c.newRequest(op, input, output)
  2019. req.Config.Credentials = credentials.AnonymousCredentials
  2020. output = &UpdateUserAttributesOutput{}
  2021. req.Data = output
  2022. return
  2023. }
  2024. // Allows a user to update a specific attribute (one at a time).
  2025. func (c *CognitoIdentityProvider) UpdateUserAttributes(input *UpdateUserAttributesInput) (*UpdateUserAttributesOutput, error) {
  2026. req, out := c.UpdateUserAttributesRequest(input)
  2027. err := req.Send()
  2028. return out, err
  2029. }
  2030. const opUpdateUserPool = "UpdateUserPool"
  2031. // UpdateUserPoolRequest generates a "aws/request.Request" representing the
  2032. // client's request for the UpdateUserPool operation. The "output" return
  2033. // value can be used to capture response data after the request's "Send" method
  2034. // is called.
  2035. //
  2036. // Creating a request object using this method should be used when you want to inject
  2037. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2038. // access properties on the request object before or after sending the request. If
  2039. // you just want the service response, call the UpdateUserPool method directly
  2040. // instead.
  2041. //
  2042. // Note: You must call the "Send" method on the returned request object in order
  2043. // to execute the request.
  2044. //
  2045. // // Example sending a request using the UpdateUserPoolRequest method.
  2046. // req, resp := client.UpdateUserPoolRequest(params)
  2047. //
  2048. // err := req.Send()
  2049. // if err == nil { // resp is now filled
  2050. // fmt.Println(resp)
  2051. // }
  2052. //
  2053. func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInput) (req *request.Request, output *UpdateUserPoolOutput) {
  2054. op := &request.Operation{
  2055. Name: opUpdateUserPool,
  2056. HTTPMethod: "POST",
  2057. HTTPPath: "/",
  2058. }
  2059. if input == nil {
  2060. input = &UpdateUserPoolInput{}
  2061. }
  2062. req = c.newRequest(op, input, output)
  2063. output = &UpdateUserPoolOutput{}
  2064. req.Data = output
  2065. return
  2066. }
  2067. // Updates the specified user pool with the specified attributes.
  2068. func (c *CognitoIdentityProvider) UpdateUserPool(input *UpdateUserPoolInput) (*UpdateUserPoolOutput, error) {
  2069. req, out := c.UpdateUserPoolRequest(input)
  2070. err := req.Send()
  2071. return out, err
  2072. }
  2073. const opUpdateUserPoolClient = "UpdateUserPoolClient"
  2074. // UpdateUserPoolClientRequest generates a "aws/request.Request" representing the
  2075. // client's request for the UpdateUserPoolClient operation. The "output" return
  2076. // value can be used to capture response data after the request's "Send" method
  2077. // is called.
  2078. //
  2079. // Creating a request object using this method should be used when you want to inject
  2080. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2081. // access properties on the request object before or after sending the request. If
  2082. // you just want the service response, call the UpdateUserPoolClient method directly
  2083. // instead.
  2084. //
  2085. // Note: You must call the "Send" method on the returned request object in order
  2086. // to execute the request.
  2087. //
  2088. // // Example sending a request using the UpdateUserPoolClientRequest method.
  2089. // req, resp := client.UpdateUserPoolClientRequest(params)
  2090. //
  2091. // err := req.Send()
  2092. // if err == nil { // resp is now filled
  2093. // fmt.Println(resp)
  2094. // }
  2095. //
  2096. func (c *CognitoIdentityProvider) UpdateUserPoolClientRequest(input *UpdateUserPoolClientInput) (req *request.Request, output *UpdateUserPoolClientOutput) {
  2097. op := &request.Operation{
  2098. Name: opUpdateUserPoolClient,
  2099. HTTPMethod: "POST",
  2100. HTTPPath: "/",
  2101. }
  2102. if input == nil {
  2103. input = &UpdateUserPoolClientInput{}
  2104. }
  2105. req = c.newRequest(op, input, output)
  2106. output = &UpdateUserPoolClientOutput{}
  2107. req.Data = output
  2108. return
  2109. }
  2110. // Allows the developer to update the specified user pool client and password
  2111. // policy.
  2112. func (c *CognitoIdentityProvider) UpdateUserPoolClient(input *UpdateUserPoolClientInput) (*UpdateUserPoolClientOutput, error) {
  2113. req, out := c.UpdateUserPoolClientRequest(input)
  2114. err := req.Send()
  2115. return out, err
  2116. }
  2117. const opVerifyUserAttribute = "VerifyUserAttribute"
  2118. // VerifyUserAttributeRequest generates a "aws/request.Request" representing the
  2119. // client's request for the VerifyUserAttribute operation. The "output" return
  2120. // value can be used to capture response data after the request's "Send" method
  2121. // is called.
  2122. //
  2123. // Creating a request object using this method should be used when you want to inject
  2124. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2125. // access properties on the request object before or after sending the request. If
  2126. // you just want the service response, call the VerifyUserAttribute method directly
  2127. // instead.
  2128. //
  2129. // Note: You must call the "Send" method on the returned request object in order
  2130. // to execute the request.
  2131. //
  2132. // // Example sending a request using the VerifyUserAttributeRequest method.
  2133. // req, resp := client.VerifyUserAttributeRequest(params)
  2134. //
  2135. // err := req.Send()
  2136. // if err == nil { // resp is now filled
  2137. // fmt.Println(resp)
  2138. // }
  2139. //
  2140. func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAttributeInput) (req *request.Request, output *VerifyUserAttributeOutput) {
  2141. op := &request.Operation{
  2142. Name: opVerifyUserAttribute,
  2143. HTTPMethod: "POST",
  2144. HTTPPath: "/",
  2145. }
  2146. if input == nil {
  2147. input = &VerifyUserAttributeInput{}
  2148. }
  2149. req = c.newRequest(op, input, output)
  2150. req.Config.Credentials = credentials.AnonymousCredentials
  2151. output = &VerifyUserAttributeOutput{}
  2152. req.Data = output
  2153. return
  2154. }
  2155. // Verifies the specified user attributes in the user pool.
  2156. func (c *CognitoIdentityProvider) VerifyUserAttribute(input *VerifyUserAttributeInput) (*VerifyUserAttributeOutput, error) {
  2157. req, out := c.VerifyUserAttributeRequest(input)
  2158. err := req.Send()
  2159. return out, err
  2160. }
  2161. // Represents the request to add custom attributes.
  2162. type AddCustomAttributesInput struct {
  2163. _ struct{} `type:"structure"`
  2164. // An array of custom attributes, such as Mutable and Name.
  2165. CustomAttributes []*SchemaAttributeType `min:"1" type:"list" required:"true"`
  2166. // The user pool ID for the user pool where you want to add custom attributes.
  2167. UserPoolId *string `min:"1" type:"string" required:"true"`
  2168. }
  2169. // String returns the string representation
  2170. func (s AddCustomAttributesInput) String() string {
  2171. return awsutil.Prettify(s)
  2172. }
  2173. // GoString returns the string representation
  2174. func (s AddCustomAttributesInput) GoString() string {
  2175. return s.String()
  2176. }
  2177. // Validate inspects the fields of the type to determine if they are valid.
  2178. func (s *AddCustomAttributesInput) Validate() error {
  2179. invalidParams := request.ErrInvalidParams{Context: "AddCustomAttributesInput"}
  2180. if s.CustomAttributes == nil {
  2181. invalidParams.Add(request.NewErrParamRequired("CustomAttributes"))
  2182. }
  2183. if s.CustomAttributes != nil && len(s.CustomAttributes) < 1 {
  2184. invalidParams.Add(request.NewErrParamMinLen("CustomAttributes", 1))
  2185. }
  2186. if s.UserPoolId == nil {
  2187. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2188. }
  2189. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2190. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2191. }
  2192. if s.CustomAttributes != nil {
  2193. for i, v := range s.CustomAttributes {
  2194. if v == nil {
  2195. continue
  2196. }
  2197. if err := v.Validate(); err != nil {
  2198. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomAttributes", i), err.(request.ErrInvalidParams))
  2199. }
  2200. }
  2201. }
  2202. if invalidParams.Len() > 0 {
  2203. return invalidParams
  2204. }
  2205. return nil
  2206. }
  2207. // Represents the response from the server for the request to add custom attributes.
  2208. type AddCustomAttributesOutput struct {
  2209. _ struct{} `type:"structure"`
  2210. }
  2211. // String returns the string representation
  2212. func (s AddCustomAttributesOutput) String() string {
  2213. return awsutil.Prettify(s)
  2214. }
  2215. // GoString returns the string representation
  2216. func (s AddCustomAttributesOutput) GoString() string {
  2217. return s.String()
  2218. }
  2219. // Represents the request to confirm user registration.
  2220. type AdminConfirmSignUpInput struct {
  2221. _ struct{} `type:"structure"`
  2222. // The user pool ID for which you want to confirm user registration.
  2223. UserPoolId *string `min:"1" type:"string" required:"true"`
  2224. // The user name for which you want to confirm user registration.
  2225. Username *string `min:"1" type:"string" required:"true"`
  2226. }
  2227. // String returns the string representation
  2228. func (s AdminConfirmSignUpInput) String() string {
  2229. return awsutil.Prettify(s)
  2230. }
  2231. // GoString returns the string representation
  2232. func (s AdminConfirmSignUpInput) GoString() string {
  2233. return s.String()
  2234. }
  2235. // Validate inspects the fields of the type to determine if they are valid.
  2236. func (s *AdminConfirmSignUpInput) Validate() error {
  2237. invalidParams := request.ErrInvalidParams{Context: "AdminConfirmSignUpInput"}
  2238. if s.UserPoolId == nil {
  2239. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2240. }
  2241. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2242. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2243. }
  2244. if s.Username == nil {
  2245. invalidParams.Add(request.NewErrParamRequired("Username"))
  2246. }
  2247. if s.Username != nil && len(*s.Username) < 1 {
  2248. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2249. }
  2250. if invalidParams.Len() > 0 {
  2251. return invalidParams
  2252. }
  2253. return nil
  2254. }
  2255. // Represents the response from the server for the request to confirm registration.
  2256. type AdminConfirmSignUpOutput struct {
  2257. _ struct{} `type:"structure"`
  2258. }
  2259. // String returns the string representation
  2260. func (s AdminConfirmSignUpOutput) String() string {
  2261. return awsutil.Prettify(s)
  2262. }
  2263. // GoString returns the string representation
  2264. func (s AdminConfirmSignUpOutput) GoString() string {
  2265. return s.String()
  2266. }
  2267. // Represents the request to delete user attributes as an administrator.
  2268. type AdminDeleteUserAttributesInput struct {
  2269. _ struct{} `type:"structure"`
  2270. // An array of strings representing the user attribute names you wish to delete.
  2271. UserAttributeNames []*string `type:"list" required:"true"`
  2272. // The user pool ID for the user pool where you want to delete user attributes.
  2273. UserPoolId *string `min:"1" type:"string" required:"true"`
  2274. // The user name of the user from which you would like to delete attributes.
  2275. Username *string `min:"1" type:"string" required:"true"`
  2276. }
  2277. // String returns the string representation
  2278. func (s AdminDeleteUserAttributesInput) String() string {
  2279. return awsutil.Prettify(s)
  2280. }
  2281. // GoString returns the string representation
  2282. func (s AdminDeleteUserAttributesInput) GoString() string {
  2283. return s.String()
  2284. }
  2285. // Validate inspects the fields of the type to determine if they are valid.
  2286. func (s *AdminDeleteUserAttributesInput) Validate() error {
  2287. invalidParams := request.ErrInvalidParams{Context: "AdminDeleteUserAttributesInput"}
  2288. if s.UserAttributeNames == nil {
  2289. invalidParams.Add(request.NewErrParamRequired("UserAttributeNames"))
  2290. }
  2291. if s.UserPoolId == nil {
  2292. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2293. }
  2294. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2295. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2296. }
  2297. if s.Username == nil {
  2298. invalidParams.Add(request.NewErrParamRequired("Username"))
  2299. }
  2300. if s.Username != nil && len(*s.Username) < 1 {
  2301. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2302. }
  2303. if invalidParams.Len() > 0 {
  2304. return invalidParams
  2305. }
  2306. return nil
  2307. }
  2308. // Represents the response received from the server for a request to delete
  2309. // user attributes.
  2310. type AdminDeleteUserAttributesOutput struct {
  2311. _ struct{} `type:"structure"`
  2312. }
  2313. // String returns the string representation
  2314. func (s AdminDeleteUserAttributesOutput) String() string {
  2315. return awsutil.Prettify(s)
  2316. }
  2317. // GoString returns the string representation
  2318. func (s AdminDeleteUserAttributesOutput) GoString() string {
  2319. return s.String()
  2320. }
  2321. // Represents the request to delete a user as an administrator.
  2322. type AdminDeleteUserInput struct {
  2323. _ struct{} `type:"structure"`
  2324. // The user pool ID for the user pool where you want to delete the user.
  2325. UserPoolId *string `min:"1" type:"string" required:"true"`
  2326. // The user name of the user you wish to delete.
  2327. Username *string `min:"1" type:"string" required:"true"`
  2328. }
  2329. // String returns the string representation
  2330. func (s AdminDeleteUserInput) String() string {
  2331. return awsutil.Prettify(s)
  2332. }
  2333. // GoString returns the string representation
  2334. func (s AdminDeleteUserInput) GoString() string {
  2335. return s.String()
  2336. }
  2337. // Validate inspects the fields of the type to determine if they are valid.
  2338. func (s *AdminDeleteUserInput) Validate() error {
  2339. invalidParams := request.ErrInvalidParams{Context: "AdminDeleteUserInput"}
  2340. if s.UserPoolId == nil {
  2341. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2342. }
  2343. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2344. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2345. }
  2346. if s.Username == nil {
  2347. invalidParams.Add(request.NewErrParamRequired("Username"))
  2348. }
  2349. if s.Username != nil && len(*s.Username) < 1 {
  2350. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2351. }
  2352. if invalidParams.Len() > 0 {
  2353. return invalidParams
  2354. }
  2355. return nil
  2356. }
  2357. type AdminDeleteUserOutput struct {
  2358. _ struct{} `type:"structure"`
  2359. }
  2360. // String returns the string representation
  2361. func (s AdminDeleteUserOutput) String() string {
  2362. return awsutil.Prettify(s)
  2363. }
  2364. // GoString returns the string representation
  2365. func (s AdminDeleteUserOutput) GoString() string {
  2366. return s.String()
  2367. }
  2368. // Represents the request to disable any user as an administrator.
  2369. type AdminDisableUserInput struct {
  2370. _ struct{} `type:"structure"`
  2371. // The user pool ID for the user pool where you want to disable the user.
  2372. UserPoolId *string `min:"1" type:"string" required:"true"`
  2373. // The user name of the user you wish to disable.
  2374. Username *string `min:"1" type:"string" required:"true"`
  2375. }
  2376. // String returns the string representation
  2377. func (s AdminDisableUserInput) String() string {
  2378. return awsutil.Prettify(s)
  2379. }
  2380. // GoString returns the string representation
  2381. func (s AdminDisableUserInput) GoString() string {
  2382. return s.String()
  2383. }
  2384. // Validate inspects the fields of the type to determine if they are valid.
  2385. func (s *AdminDisableUserInput) Validate() error {
  2386. invalidParams := request.ErrInvalidParams{Context: "AdminDisableUserInput"}
  2387. if s.UserPoolId == nil {
  2388. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2389. }
  2390. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2391. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2392. }
  2393. if s.Username == nil {
  2394. invalidParams.Add(request.NewErrParamRequired("Username"))
  2395. }
  2396. if s.Username != nil && len(*s.Username) < 1 {
  2397. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2398. }
  2399. if invalidParams.Len() > 0 {
  2400. return invalidParams
  2401. }
  2402. return nil
  2403. }
  2404. // Represents the response received from the server to disable the user as an
  2405. // administrator.
  2406. type AdminDisableUserOutput struct {
  2407. _ struct{} `type:"structure"`
  2408. }
  2409. // String returns the string representation
  2410. func (s AdminDisableUserOutput) String() string {
  2411. return awsutil.Prettify(s)
  2412. }
  2413. // GoString returns the string representation
  2414. func (s AdminDisableUserOutput) GoString() string {
  2415. return s.String()
  2416. }
  2417. // Represents the request that enables the user as an administrator.
  2418. type AdminEnableUserInput struct {
  2419. _ struct{} `type:"structure"`
  2420. // The user pool ID for the user pool where you want to enable the user.
  2421. UserPoolId *string `min:"1" type:"string" required:"true"`
  2422. // The user name of the user you wish to ebable.
  2423. Username *string `min:"1" type:"string" required:"true"`
  2424. }
  2425. // String returns the string representation
  2426. func (s AdminEnableUserInput) String() string {
  2427. return awsutil.Prettify(s)
  2428. }
  2429. // GoString returns the string representation
  2430. func (s AdminEnableUserInput) GoString() string {
  2431. return s.String()
  2432. }
  2433. // Validate inspects the fields of the type to determine if they are valid.
  2434. func (s *AdminEnableUserInput) Validate() error {
  2435. invalidParams := request.ErrInvalidParams{Context: "AdminEnableUserInput"}
  2436. if s.UserPoolId == nil {
  2437. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2438. }
  2439. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2440. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2441. }
  2442. if s.Username == nil {
  2443. invalidParams.Add(request.NewErrParamRequired("Username"))
  2444. }
  2445. if s.Username != nil && len(*s.Username) < 1 {
  2446. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2447. }
  2448. if invalidParams.Len() > 0 {
  2449. return invalidParams
  2450. }
  2451. return nil
  2452. }
  2453. // Represents the response from the server for the request to enable a user
  2454. // as an administrator.
  2455. type AdminEnableUserOutput struct {
  2456. _ struct{} `type:"structure"`
  2457. }
  2458. // String returns the string representation
  2459. func (s AdminEnableUserOutput) String() string {
  2460. return awsutil.Prettify(s)
  2461. }
  2462. // GoString returns the string representation
  2463. func (s AdminEnableUserOutput) GoString() string {
  2464. return s.String()
  2465. }
  2466. // Sends the forgot device request, as an administrator.
  2467. type AdminForgetDeviceInput struct {
  2468. _ struct{} `type:"structure"`
  2469. // The device key.
  2470. DeviceKey *string `min:"1" type:"string" required:"true"`
  2471. // The user pool ID.
  2472. UserPoolId *string `min:"1" type:"string" required:"true"`
  2473. // The user name.
  2474. Username *string `min:"1" type:"string" required:"true"`
  2475. }
  2476. // String returns the string representation
  2477. func (s AdminForgetDeviceInput) String() string {
  2478. return awsutil.Prettify(s)
  2479. }
  2480. // GoString returns the string representation
  2481. func (s AdminForgetDeviceInput) GoString() string {
  2482. return s.String()
  2483. }
  2484. // Validate inspects the fields of the type to determine if they are valid.
  2485. func (s *AdminForgetDeviceInput) Validate() error {
  2486. invalidParams := request.ErrInvalidParams{Context: "AdminForgetDeviceInput"}
  2487. if s.DeviceKey == nil {
  2488. invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
  2489. }
  2490. if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
  2491. invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
  2492. }
  2493. if s.UserPoolId == nil {
  2494. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2495. }
  2496. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2497. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2498. }
  2499. if s.Username == nil {
  2500. invalidParams.Add(request.NewErrParamRequired("Username"))
  2501. }
  2502. if s.Username != nil && len(*s.Username) < 1 {
  2503. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2504. }
  2505. if invalidParams.Len() > 0 {
  2506. return invalidParams
  2507. }
  2508. return nil
  2509. }
  2510. type AdminForgetDeviceOutput struct {
  2511. _ struct{} `type:"structure"`
  2512. }
  2513. // String returns the string representation
  2514. func (s AdminForgetDeviceOutput) String() string {
  2515. return awsutil.Prettify(s)
  2516. }
  2517. // GoString returns the string representation
  2518. func (s AdminForgetDeviceOutput) GoString() string {
  2519. return s.String()
  2520. }
  2521. // Represents the request to get the device, as an administrator.
  2522. type AdminGetDeviceInput struct {
  2523. _ struct{} `type:"structure"`
  2524. // The device key.
  2525. DeviceKey *string `min:"1" type:"string" required:"true"`
  2526. // The user pool ID.
  2527. UserPoolId *string `min:"1" type:"string" required:"true"`
  2528. // The user name.
  2529. Username *string `min:"1" type:"string" required:"true"`
  2530. }
  2531. // String returns the string representation
  2532. func (s AdminGetDeviceInput) String() string {
  2533. return awsutil.Prettify(s)
  2534. }
  2535. // GoString returns the string representation
  2536. func (s AdminGetDeviceInput) GoString() string {
  2537. return s.String()
  2538. }
  2539. // Validate inspects the fields of the type to determine if they are valid.
  2540. func (s *AdminGetDeviceInput) Validate() error {
  2541. invalidParams := request.ErrInvalidParams{Context: "AdminGetDeviceInput"}
  2542. if s.DeviceKey == nil {
  2543. invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
  2544. }
  2545. if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
  2546. invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
  2547. }
  2548. if s.UserPoolId == nil {
  2549. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2550. }
  2551. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2552. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2553. }
  2554. if s.Username == nil {
  2555. invalidParams.Add(request.NewErrParamRequired("Username"))
  2556. }
  2557. if s.Username != nil && len(*s.Username) < 1 {
  2558. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2559. }
  2560. if invalidParams.Len() > 0 {
  2561. return invalidParams
  2562. }
  2563. return nil
  2564. }
  2565. // Gets the device response, as an administrator.
  2566. type AdminGetDeviceOutput struct {
  2567. _ struct{} `type:"structure"`
  2568. // The device.
  2569. Device *DeviceType `type:"structure" required:"true"`
  2570. }
  2571. // String returns the string representation
  2572. func (s AdminGetDeviceOutput) String() string {
  2573. return awsutil.Prettify(s)
  2574. }
  2575. // GoString returns the string representation
  2576. func (s AdminGetDeviceOutput) GoString() string {
  2577. return s.String()
  2578. }
  2579. // Represents the request to get the specified user as an administrator.
  2580. type AdminGetUserInput struct {
  2581. _ struct{} `type:"structure"`
  2582. // The user pool ID for the user pool where you want to get information about
  2583. // the user.
  2584. UserPoolId *string `min:"1" type:"string" required:"true"`
  2585. // The user name of the user you wish to retrieve.
  2586. Username *string `min:"1" type:"string" required:"true"`
  2587. }
  2588. // String returns the string representation
  2589. func (s AdminGetUserInput) String() string {
  2590. return awsutil.Prettify(s)
  2591. }
  2592. // GoString returns the string representation
  2593. func (s AdminGetUserInput) GoString() string {
  2594. return s.String()
  2595. }
  2596. // Validate inspects the fields of the type to determine if they are valid.
  2597. func (s *AdminGetUserInput) Validate() error {
  2598. invalidParams := request.ErrInvalidParams{Context: "AdminGetUserInput"}
  2599. if s.UserPoolId == nil {
  2600. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2601. }
  2602. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2603. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2604. }
  2605. if s.Username == nil {
  2606. invalidParams.Add(request.NewErrParamRequired("Username"))
  2607. }
  2608. if s.Username != nil && len(*s.Username) < 1 {
  2609. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2610. }
  2611. if invalidParams.Len() > 0 {
  2612. return invalidParams
  2613. }
  2614. return nil
  2615. }
  2616. // Represents the response from the server from the request to get the specified
  2617. // user as an administrator.
  2618. type AdminGetUserOutput struct {
  2619. _ struct{} `type:"structure"`
  2620. // Indicates that the status is enabled.
  2621. Enabled *bool `type:"boolean"`
  2622. // Specifies the options for MFA (e.g., email or phone number).
  2623. MFAOptions []*MFAOptionType `type:"list"`
  2624. // An array of name-value pairs representing user attributes.
  2625. UserAttributes []*AttributeType `type:"list"`
  2626. // The date the user was created.
  2627. UserCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  2628. // The date the user was last modified.
  2629. UserLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  2630. // The user status. Can be one of the following:
  2631. //
  2632. // UNCONFIRMED - User has been created but not confirmed. CONFIRMED - User
  2633. // has been confirmed. ARCHIVED - User is no longer active. COMPROMISED - User
  2634. // is disabled due to a potential security threat. UNKNOWN - User status is
  2635. // not known.
  2636. UserStatus *string `type:"string" enum:"UserStatusType"`
  2637. // The user name of the user about whom you are receiving information.
  2638. Username *string `min:"1" type:"string" required:"true"`
  2639. }
  2640. // String returns the string representation
  2641. func (s AdminGetUserOutput) String() string {
  2642. return awsutil.Prettify(s)
  2643. }
  2644. // GoString returns the string representation
  2645. func (s AdminGetUserOutput) GoString() string {
  2646. return s.String()
  2647. }
  2648. // Initiates the authorization request, as an administrator.
  2649. type AdminInitiateAuthInput struct {
  2650. _ struct{} `type:"structure"`
  2651. // The authentication flow.
  2652. AuthFlow *string `type:"string" required:"true" enum:"AuthFlowType"`
  2653. // The authentication parameters.
  2654. AuthParameters map[string]*string `type:"map"`
  2655. // The client app ID.
  2656. ClientId *string `min:"1" type:"string" required:"true"`
  2657. // The client app metadata.
  2658. ClientMetadata map[string]*string `type:"map"`
  2659. // The ID of the Amazon Cognito user pool.
  2660. UserPoolId *string `min:"1" type:"string" required:"true"`
  2661. }
  2662. // String returns the string representation
  2663. func (s AdminInitiateAuthInput) String() string {
  2664. return awsutil.Prettify(s)
  2665. }
  2666. // GoString returns the string representation
  2667. func (s AdminInitiateAuthInput) GoString() string {
  2668. return s.String()
  2669. }
  2670. // Validate inspects the fields of the type to determine if they are valid.
  2671. func (s *AdminInitiateAuthInput) Validate() error {
  2672. invalidParams := request.ErrInvalidParams{Context: "AdminInitiateAuthInput"}
  2673. if s.AuthFlow == nil {
  2674. invalidParams.Add(request.NewErrParamRequired("AuthFlow"))
  2675. }
  2676. if s.ClientId == nil {
  2677. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  2678. }
  2679. if s.ClientId != nil && len(*s.ClientId) < 1 {
  2680. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  2681. }
  2682. if s.UserPoolId == nil {
  2683. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2684. }
  2685. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2686. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2687. }
  2688. if invalidParams.Len() > 0 {
  2689. return invalidParams
  2690. }
  2691. return nil
  2692. }
  2693. // Initiates the authentication response, as an administrator.
  2694. type AdminInitiateAuthOutput struct {
  2695. _ struct{} `type:"structure"`
  2696. // The result type of the authentication result.
  2697. AuthenticationResult *AuthenticationResultType `type:"structure"`
  2698. // The name of the challenge.
  2699. ChallengeName *string `type:"string" enum:"ChallengeNameType"`
  2700. // The challenge parameters.
  2701. ChallengeParameters map[string]*string `type:"map"`
  2702. // The session.
  2703. Session *string `min:"20" type:"string"`
  2704. }
  2705. // String returns the string representation
  2706. func (s AdminInitiateAuthOutput) String() string {
  2707. return awsutil.Prettify(s)
  2708. }
  2709. // GoString returns the string representation
  2710. func (s AdminInitiateAuthOutput) GoString() string {
  2711. return s.String()
  2712. }
  2713. // Represents the request to list devices, as an administrator.
  2714. type AdminListDevicesInput struct {
  2715. _ struct{} `type:"structure"`
  2716. // The limit of the devices request.
  2717. Limit *int64 `type:"integer"`
  2718. // The pagination token.
  2719. PaginationToken *string `min:"1" type:"string"`
  2720. // The user pool ID.
  2721. UserPoolId *string `min:"1" type:"string" required:"true"`
  2722. // The user name.
  2723. Username *string `min:"1" type:"string" required:"true"`
  2724. }
  2725. // String returns the string representation
  2726. func (s AdminListDevicesInput) String() string {
  2727. return awsutil.Prettify(s)
  2728. }
  2729. // GoString returns the string representation
  2730. func (s AdminListDevicesInput) GoString() string {
  2731. return s.String()
  2732. }
  2733. // Validate inspects the fields of the type to determine if they are valid.
  2734. func (s *AdminListDevicesInput) Validate() error {
  2735. invalidParams := request.ErrInvalidParams{Context: "AdminListDevicesInput"}
  2736. if s.PaginationToken != nil && len(*s.PaginationToken) < 1 {
  2737. invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1))
  2738. }
  2739. if s.UserPoolId == nil {
  2740. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2741. }
  2742. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2743. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2744. }
  2745. if s.Username == nil {
  2746. invalidParams.Add(request.NewErrParamRequired("Username"))
  2747. }
  2748. if s.Username != nil && len(*s.Username) < 1 {
  2749. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2750. }
  2751. if invalidParams.Len() > 0 {
  2752. return invalidParams
  2753. }
  2754. return nil
  2755. }
  2756. // Lists the device's response, as an administrator.
  2757. type AdminListDevicesOutput struct {
  2758. _ struct{} `type:"structure"`
  2759. // The devices in the list of devices response.
  2760. Devices []*DeviceType `type:"list"`
  2761. // The pagination token.
  2762. PaginationToken *string `min:"1" type:"string"`
  2763. }
  2764. // String returns the string representation
  2765. func (s AdminListDevicesOutput) String() string {
  2766. return awsutil.Prettify(s)
  2767. }
  2768. // GoString returns the string representation
  2769. func (s AdminListDevicesOutput) GoString() string {
  2770. return s.String()
  2771. }
  2772. // Represents the request to reset a user's password as an administrator.
  2773. type AdminResetUserPasswordInput struct {
  2774. _ struct{} `type:"structure"`
  2775. // The user pool ID for the user pool where you want to reset the user's password.
  2776. UserPoolId *string `min:"1" type:"string" required:"true"`
  2777. // The user name of the user whose password you wish to reset.
  2778. Username *string `min:"1" type:"string" required:"true"`
  2779. }
  2780. // String returns the string representation
  2781. func (s AdminResetUserPasswordInput) String() string {
  2782. return awsutil.Prettify(s)
  2783. }
  2784. // GoString returns the string representation
  2785. func (s AdminResetUserPasswordInput) GoString() string {
  2786. return s.String()
  2787. }
  2788. // Validate inspects the fields of the type to determine if they are valid.
  2789. func (s *AdminResetUserPasswordInput) Validate() error {
  2790. invalidParams := request.ErrInvalidParams{Context: "AdminResetUserPasswordInput"}
  2791. if s.UserPoolId == nil {
  2792. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2793. }
  2794. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2795. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2796. }
  2797. if s.Username == nil {
  2798. invalidParams.Add(request.NewErrParamRequired("Username"))
  2799. }
  2800. if s.Username != nil && len(*s.Username) < 1 {
  2801. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2802. }
  2803. if invalidParams.Len() > 0 {
  2804. return invalidParams
  2805. }
  2806. return nil
  2807. }
  2808. // Represents the response from the server to reset a user password as an administrator.
  2809. type AdminResetUserPasswordOutput struct {
  2810. _ struct{} `type:"structure"`
  2811. }
  2812. // String returns the string representation
  2813. func (s AdminResetUserPasswordOutput) String() string {
  2814. return awsutil.Prettify(s)
  2815. }
  2816. // GoString returns the string representation
  2817. func (s AdminResetUserPasswordOutput) GoString() string {
  2818. return s.String()
  2819. }
  2820. // The request to respond to the authentication challenge, as an administrator.
  2821. type AdminRespondToAuthChallengeInput struct {
  2822. _ struct{} `type:"structure"`
  2823. // The name of the challenge.
  2824. ChallengeName *string `type:"string" required:"true" enum:"ChallengeNameType"`
  2825. // The challenge response.
  2826. ChallengeResponses map[string]*string `type:"map"`
  2827. // The client ID.
  2828. ClientId *string `min:"1" type:"string" required:"true"`
  2829. // The session.
  2830. Session *string `min:"20" type:"string"`
  2831. // The ID of the Amazon Cognito user pool.
  2832. UserPoolId *string `min:"1" type:"string" required:"true"`
  2833. }
  2834. // String returns the string representation
  2835. func (s AdminRespondToAuthChallengeInput) String() string {
  2836. return awsutil.Prettify(s)
  2837. }
  2838. // GoString returns the string representation
  2839. func (s AdminRespondToAuthChallengeInput) GoString() string {
  2840. return s.String()
  2841. }
  2842. // Validate inspects the fields of the type to determine if they are valid.
  2843. func (s *AdminRespondToAuthChallengeInput) Validate() error {
  2844. invalidParams := request.ErrInvalidParams{Context: "AdminRespondToAuthChallengeInput"}
  2845. if s.ChallengeName == nil {
  2846. invalidParams.Add(request.NewErrParamRequired("ChallengeName"))
  2847. }
  2848. if s.ClientId == nil {
  2849. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  2850. }
  2851. if s.ClientId != nil && len(*s.ClientId) < 1 {
  2852. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  2853. }
  2854. if s.Session != nil && len(*s.Session) < 20 {
  2855. invalidParams.Add(request.NewErrParamMinLen("Session", 20))
  2856. }
  2857. if s.UserPoolId == nil {
  2858. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2859. }
  2860. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2861. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2862. }
  2863. if invalidParams.Len() > 0 {
  2864. return invalidParams
  2865. }
  2866. return nil
  2867. }
  2868. // Responds to the authentication challenge, as an administrator.
  2869. type AdminRespondToAuthChallengeOutput struct {
  2870. _ struct{} `type:"structure"`
  2871. // The result type of the authentication result.
  2872. AuthenticationResult *AuthenticationResultType `type:"structure"`
  2873. // The name of the challenge.
  2874. ChallengeName *string `type:"string" enum:"ChallengeNameType"`
  2875. // The challenge parameters.
  2876. ChallengeParameters map[string]*string `type:"map"`
  2877. // The session.
  2878. Session *string `min:"20" type:"string"`
  2879. }
  2880. // String returns the string representation
  2881. func (s AdminRespondToAuthChallengeOutput) String() string {
  2882. return awsutil.Prettify(s)
  2883. }
  2884. // GoString returns the string representation
  2885. func (s AdminRespondToAuthChallengeOutput) GoString() string {
  2886. return s.String()
  2887. }
  2888. // Represents the request to set user settings as an administrator.
  2889. type AdminSetUserSettingsInput struct {
  2890. _ struct{} `type:"structure"`
  2891. // Specifies the options for MFA (e.g., email or phone number).
  2892. MFAOptions []*MFAOptionType `type:"list" required:"true"`
  2893. // The user pool ID for the user pool where you want to set the user's settings,
  2894. // such as MFA options.
  2895. UserPoolId *string `min:"1" type:"string" required:"true"`
  2896. // The user name of the user for whom you wish to set user settings.
  2897. Username *string `min:"1" type:"string" required:"true"`
  2898. }
  2899. // String returns the string representation
  2900. func (s AdminSetUserSettingsInput) String() string {
  2901. return awsutil.Prettify(s)
  2902. }
  2903. // GoString returns the string representation
  2904. func (s AdminSetUserSettingsInput) GoString() string {
  2905. return s.String()
  2906. }
  2907. // Validate inspects the fields of the type to determine if they are valid.
  2908. func (s *AdminSetUserSettingsInput) Validate() error {
  2909. invalidParams := request.ErrInvalidParams{Context: "AdminSetUserSettingsInput"}
  2910. if s.MFAOptions == nil {
  2911. invalidParams.Add(request.NewErrParamRequired("MFAOptions"))
  2912. }
  2913. if s.UserPoolId == nil {
  2914. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2915. }
  2916. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2917. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2918. }
  2919. if s.Username == nil {
  2920. invalidParams.Add(request.NewErrParamRequired("Username"))
  2921. }
  2922. if s.Username != nil && len(*s.Username) < 1 {
  2923. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2924. }
  2925. if s.MFAOptions != nil {
  2926. for i, v := range s.MFAOptions {
  2927. if v == nil {
  2928. continue
  2929. }
  2930. if err := v.Validate(); err != nil {
  2931. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MFAOptions", i), err.(request.ErrInvalidParams))
  2932. }
  2933. }
  2934. }
  2935. if invalidParams.Len() > 0 {
  2936. return invalidParams
  2937. }
  2938. return nil
  2939. }
  2940. // Represents the response from the server to set user settings as an administrator.
  2941. type AdminSetUserSettingsOutput struct {
  2942. _ struct{} `type:"structure"`
  2943. }
  2944. // String returns the string representation
  2945. func (s AdminSetUserSettingsOutput) String() string {
  2946. return awsutil.Prettify(s)
  2947. }
  2948. // GoString returns the string representation
  2949. func (s AdminSetUserSettingsOutput) GoString() string {
  2950. return s.String()
  2951. }
  2952. // The request to update the device status, as an administrator.
  2953. type AdminUpdateDeviceStatusInput struct {
  2954. _ struct{} `type:"structure"`
  2955. // The device key.
  2956. DeviceKey *string `min:"1" type:"string" required:"true"`
  2957. // The status indicating whether a device has been remembered or not.
  2958. DeviceRememberedStatus *string `type:"string" enum:"DeviceRememberedStatusType"`
  2959. // The user pool ID>
  2960. UserPoolId *string `min:"1" type:"string" required:"true"`
  2961. // The user name.
  2962. Username *string `min:"1" type:"string" required:"true"`
  2963. }
  2964. // String returns the string representation
  2965. func (s AdminUpdateDeviceStatusInput) String() string {
  2966. return awsutil.Prettify(s)
  2967. }
  2968. // GoString returns the string representation
  2969. func (s AdminUpdateDeviceStatusInput) GoString() string {
  2970. return s.String()
  2971. }
  2972. // Validate inspects the fields of the type to determine if they are valid.
  2973. func (s *AdminUpdateDeviceStatusInput) Validate() error {
  2974. invalidParams := request.ErrInvalidParams{Context: "AdminUpdateDeviceStatusInput"}
  2975. if s.DeviceKey == nil {
  2976. invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
  2977. }
  2978. if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
  2979. invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
  2980. }
  2981. if s.UserPoolId == nil {
  2982. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  2983. }
  2984. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  2985. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  2986. }
  2987. if s.Username == nil {
  2988. invalidParams.Add(request.NewErrParamRequired("Username"))
  2989. }
  2990. if s.Username != nil && len(*s.Username) < 1 {
  2991. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  2992. }
  2993. if invalidParams.Len() > 0 {
  2994. return invalidParams
  2995. }
  2996. return nil
  2997. }
  2998. // The status response from the request to update the device, as an administrator.
  2999. type AdminUpdateDeviceStatusOutput struct {
  3000. _ struct{} `type:"structure"`
  3001. }
  3002. // String returns the string representation
  3003. func (s AdminUpdateDeviceStatusOutput) String() string {
  3004. return awsutil.Prettify(s)
  3005. }
  3006. // GoString returns the string representation
  3007. func (s AdminUpdateDeviceStatusOutput) GoString() string {
  3008. return s.String()
  3009. }
  3010. // Represents the request to update the user's attributes as an administrator.
  3011. type AdminUpdateUserAttributesInput struct {
  3012. _ struct{} `type:"structure"`
  3013. // An array of name-value pairs representing user attributes.
  3014. UserAttributes []*AttributeType `type:"list" required:"true"`
  3015. // The user pool ID for the user pool where you want to update user attributes.
  3016. UserPoolId *string `min:"1" type:"string" required:"true"`
  3017. // The user name of the user for whom you want to update user attributes.
  3018. Username *string `min:"1" type:"string" required:"true"`
  3019. }
  3020. // String returns the string representation
  3021. func (s AdminUpdateUserAttributesInput) String() string {
  3022. return awsutil.Prettify(s)
  3023. }
  3024. // GoString returns the string representation
  3025. func (s AdminUpdateUserAttributesInput) GoString() string {
  3026. return s.String()
  3027. }
  3028. // Validate inspects the fields of the type to determine if they are valid.
  3029. func (s *AdminUpdateUserAttributesInput) Validate() error {
  3030. invalidParams := request.ErrInvalidParams{Context: "AdminUpdateUserAttributesInput"}
  3031. if s.UserAttributes == nil {
  3032. invalidParams.Add(request.NewErrParamRequired("UserAttributes"))
  3033. }
  3034. if s.UserPoolId == nil {
  3035. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  3036. }
  3037. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  3038. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  3039. }
  3040. if s.Username == nil {
  3041. invalidParams.Add(request.NewErrParamRequired("Username"))
  3042. }
  3043. if s.Username != nil && len(*s.Username) < 1 {
  3044. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  3045. }
  3046. if s.UserAttributes != nil {
  3047. for i, v := range s.UserAttributes {
  3048. if v == nil {
  3049. continue
  3050. }
  3051. if err := v.Validate(); err != nil {
  3052. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams))
  3053. }
  3054. }
  3055. }
  3056. if invalidParams.Len() > 0 {
  3057. return invalidParams
  3058. }
  3059. return nil
  3060. }
  3061. // Represents the response from the server for the request to update user attributes
  3062. // as an administrator.
  3063. type AdminUpdateUserAttributesOutput struct {
  3064. _ struct{} `type:"structure"`
  3065. }
  3066. // String returns the string representation
  3067. func (s AdminUpdateUserAttributesOutput) String() string {
  3068. return awsutil.Prettify(s)
  3069. }
  3070. // GoString returns the string representation
  3071. func (s AdminUpdateUserAttributesOutput) GoString() string {
  3072. return s.String()
  3073. }
  3074. // The request to sign out of all devices, as an administrator.
  3075. type AdminUserGlobalSignOutInput struct {
  3076. _ struct{} `type:"structure"`
  3077. // The user pool ID.
  3078. UserPoolId *string `min:"1" type:"string" required:"true"`
  3079. // The user name.
  3080. Username *string `min:"1" type:"string" required:"true"`
  3081. }
  3082. // String returns the string representation
  3083. func (s AdminUserGlobalSignOutInput) String() string {
  3084. return awsutil.Prettify(s)
  3085. }
  3086. // GoString returns the string representation
  3087. func (s AdminUserGlobalSignOutInput) GoString() string {
  3088. return s.String()
  3089. }
  3090. // Validate inspects the fields of the type to determine if they are valid.
  3091. func (s *AdminUserGlobalSignOutInput) Validate() error {
  3092. invalidParams := request.ErrInvalidParams{Context: "AdminUserGlobalSignOutInput"}
  3093. if s.UserPoolId == nil {
  3094. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  3095. }
  3096. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  3097. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  3098. }
  3099. if s.Username == nil {
  3100. invalidParams.Add(request.NewErrParamRequired("Username"))
  3101. }
  3102. if s.Username != nil && len(*s.Username) < 1 {
  3103. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  3104. }
  3105. if invalidParams.Len() > 0 {
  3106. return invalidParams
  3107. }
  3108. return nil
  3109. }
  3110. // The global signot response, as an administrator.
  3111. type AdminUserGlobalSignOutOutput struct {
  3112. _ struct{} `type:"structure"`
  3113. }
  3114. // String returns the string representation
  3115. func (s AdminUserGlobalSignOutOutput) String() string {
  3116. return awsutil.Prettify(s)
  3117. }
  3118. // GoString returns the string representation
  3119. func (s AdminUserGlobalSignOutOutput) GoString() string {
  3120. return s.String()
  3121. }
  3122. // Specifies whether the attribute is standard or custom.
  3123. type AttributeType struct {
  3124. _ struct{} `type:"structure"`
  3125. // The name of the attribute.
  3126. Name *string `min:"1" type:"string" required:"true"`
  3127. // The value of the attribute.
  3128. Value *string `type:"string"`
  3129. }
  3130. // String returns the string representation
  3131. func (s AttributeType) String() string {
  3132. return awsutil.Prettify(s)
  3133. }
  3134. // GoString returns the string representation
  3135. func (s AttributeType) GoString() string {
  3136. return s.String()
  3137. }
  3138. // Validate inspects the fields of the type to determine if they are valid.
  3139. func (s *AttributeType) Validate() error {
  3140. invalidParams := request.ErrInvalidParams{Context: "AttributeType"}
  3141. if s.Name == nil {
  3142. invalidParams.Add(request.NewErrParamRequired("Name"))
  3143. }
  3144. if s.Name != nil && len(*s.Name) < 1 {
  3145. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3146. }
  3147. if invalidParams.Len() > 0 {
  3148. return invalidParams
  3149. }
  3150. return nil
  3151. }
  3152. // The result type of the authentication result.
  3153. type AuthenticationResultType struct {
  3154. _ struct{} `type:"structure"`
  3155. // The access token of the authentication result.
  3156. AccessToken *string `type:"string"`
  3157. // The expiration period of the authentication result.
  3158. ExpiresIn *int64 `type:"integer"`
  3159. // The ID token of the authentication result.
  3160. IdToken *string `type:"string"`
  3161. // The new device metadata from an authentication result.
  3162. NewDeviceMetadata *NewDeviceMetadataType `type:"structure"`
  3163. // The refresh token of the authentication result.
  3164. RefreshToken *string `type:"string"`
  3165. // The token type of the authentication result.
  3166. TokenType *string `type:"string"`
  3167. }
  3168. // String returns the string representation
  3169. func (s AuthenticationResultType) String() string {
  3170. return awsutil.Prettify(s)
  3171. }
  3172. // GoString returns the string representation
  3173. func (s AuthenticationResultType) GoString() string {
  3174. return s.String()
  3175. }
  3176. // Represents the request to change a user password.
  3177. type ChangePasswordInput struct {
  3178. _ struct{} `type:"structure"`
  3179. // The access token in the change password request.
  3180. AccessToken *string `type:"string"`
  3181. // The old password in the change password request.
  3182. PreviousPassword *string `min:"6" type:"string" required:"true"`
  3183. // The new password in the change password request.
  3184. ProposedPassword *string `min:"6" type:"string" required:"true"`
  3185. }
  3186. // String returns the string representation
  3187. func (s ChangePasswordInput) String() string {
  3188. return awsutil.Prettify(s)
  3189. }
  3190. // GoString returns the string representation
  3191. func (s ChangePasswordInput) GoString() string {
  3192. return s.String()
  3193. }
  3194. // Validate inspects the fields of the type to determine if they are valid.
  3195. func (s *ChangePasswordInput) Validate() error {
  3196. invalidParams := request.ErrInvalidParams{Context: "ChangePasswordInput"}
  3197. if s.PreviousPassword == nil {
  3198. invalidParams.Add(request.NewErrParamRequired("PreviousPassword"))
  3199. }
  3200. if s.PreviousPassword != nil && len(*s.PreviousPassword) < 6 {
  3201. invalidParams.Add(request.NewErrParamMinLen("PreviousPassword", 6))
  3202. }
  3203. if s.ProposedPassword == nil {
  3204. invalidParams.Add(request.NewErrParamRequired("ProposedPassword"))
  3205. }
  3206. if s.ProposedPassword != nil && len(*s.ProposedPassword) < 6 {
  3207. invalidParams.Add(request.NewErrParamMinLen("ProposedPassword", 6))
  3208. }
  3209. if invalidParams.Len() > 0 {
  3210. return invalidParams
  3211. }
  3212. return nil
  3213. }
  3214. // The response from the server to the change password request.
  3215. type ChangePasswordOutput struct {
  3216. _ struct{} `type:"structure"`
  3217. }
  3218. // String returns the string representation
  3219. func (s ChangePasswordOutput) String() string {
  3220. return awsutil.Prettify(s)
  3221. }
  3222. // GoString returns the string representation
  3223. func (s ChangePasswordOutput) GoString() string {
  3224. return s.String()
  3225. }
  3226. // The type of code delivery details being returned from the server.
  3227. type CodeDeliveryDetailsType struct {
  3228. _ struct{} `type:"structure"`
  3229. // The name of the attribute in the code delivery details type.
  3230. AttributeName *string `min:"1" type:"string"`
  3231. // The delivery medium (email message or phone number).
  3232. DeliveryMedium *string `type:"string" enum:"DeliveryMediumType"`
  3233. // The destination for the code delivery details.
  3234. Destination *string `type:"string"`
  3235. }
  3236. // String returns the string representation
  3237. func (s CodeDeliveryDetailsType) String() string {
  3238. return awsutil.Prettify(s)
  3239. }
  3240. // GoString returns the string representation
  3241. func (s CodeDeliveryDetailsType) GoString() string {
  3242. return s.String()
  3243. }
  3244. // Confirms the device request.
  3245. type ConfirmDeviceInput struct {
  3246. _ struct{} `type:"structure"`
  3247. // The access token.
  3248. AccessToken *string `type:"string" required:"true"`
  3249. // The device key.
  3250. DeviceKey *string `min:"1" type:"string" required:"true"`
  3251. // The device name.
  3252. DeviceName *string `min:"1" type:"string"`
  3253. // The configuration of the device secret verifier.
  3254. DeviceSecretVerifierConfig *DeviceSecretVerifierConfigType `type:"structure"`
  3255. }
  3256. // String returns the string representation
  3257. func (s ConfirmDeviceInput) String() string {
  3258. return awsutil.Prettify(s)
  3259. }
  3260. // GoString returns the string representation
  3261. func (s ConfirmDeviceInput) GoString() string {
  3262. return s.String()
  3263. }
  3264. // Validate inspects the fields of the type to determine if they are valid.
  3265. func (s *ConfirmDeviceInput) Validate() error {
  3266. invalidParams := request.ErrInvalidParams{Context: "ConfirmDeviceInput"}
  3267. if s.AccessToken == nil {
  3268. invalidParams.Add(request.NewErrParamRequired("AccessToken"))
  3269. }
  3270. if s.DeviceKey == nil {
  3271. invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
  3272. }
  3273. if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
  3274. invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
  3275. }
  3276. if s.DeviceName != nil && len(*s.DeviceName) < 1 {
  3277. invalidParams.Add(request.NewErrParamMinLen("DeviceName", 1))
  3278. }
  3279. if invalidParams.Len() > 0 {
  3280. return invalidParams
  3281. }
  3282. return nil
  3283. }
  3284. // Confirms the device response.
  3285. type ConfirmDeviceOutput struct {
  3286. _ struct{} `type:"structure"`
  3287. // Indicates whether the user confirmation is necessary to confirm the device
  3288. // response.
  3289. UserConfirmationNecessary *bool `type:"boolean"`
  3290. }
  3291. // String returns the string representation
  3292. func (s ConfirmDeviceOutput) String() string {
  3293. return awsutil.Prettify(s)
  3294. }
  3295. // GoString returns the string representation
  3296. func (s ConfirmDeviceOutput) GoString() string {
  3297. return s.String()
  3298. }
  3299. // The request representing the confirmation for a password reset.
  3300. type ConfirmForgotPasswordInput struct {
  3301. _ struct{} `type:"structure"`
  3302. // The ID of the client associated with the user pool.
  3303. ClientId *string `min:"1" type:"string" required:"true"`
  3304. // The confirmation code sent by a user's request to retrieve a forgotten password.
  3305. ConfirmationCode *string `min:"1" type:"string" required:"true"`
  3306. // The password sent by sent by a user's request to retrieve a forgotten password.
  3307. Password *string `min:"6" type:"string" required:"true"`
  3308. // A keyed-hash message authentication code (HMAC) calculated using the secret
  3309. // key of a user pool client and username plus the client ID in the message.
  3310. SecretHash *string `min:"1" type:"string"`
  3311. // The user name of the user for whom you want to enter a code to retrieve a
  3312. // forgotten password.
  3313. Username *string `min:"1" type:"string" required:"true"`
  3314. }
  3315. // String returns the string representation
  3316. func (s ConfirmForgotPasswordInput) String() string {
  3317. return awsutil.Prettify(s)
  3318. }
  3319. // GoString returns the string representation
  3320. func (s ConfirmForgotPasswordInput) GoString() string {
  3321. return s.String()
  3322. }
  3323. // Validate inspects the fields of the type to determine if they are valid.
  3324. func (s *ConfirmForgotPasswordInput) Validate() error {
  3325. invalidParams := request.ErrInvalidParams{Context: "ConfirmForgotPasswordInput"}
  3326. if s.ClientId == nil {
  3327. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  3328. }
  3329. if s.ClientId != nil && len(*s.ClientId) < 1 {
  3330. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  3331. }
  3332. if s.ConfirmationCode == nil {
  3333. invalidParams.Add(request.NewErrParamRequired("ConfirmationCode"))
  3334. }
  3335. if s.ConfirmationCode != nil && len(*s.ConfirmationCode) < 1 {
  3336. invalidParams.Add(request.NewErrParamMinLen("ConfirmationCode", 1))
  3337. }
  3338. if s.Password == nil {
  3339. invalidParams.Add(request.NewErrParamRequired("Password"))
  3340. }
  3341. if s.Password != nil && len(*s.Password) < 6 {
  3342. invalidParams.Add(request.NewErrParamMinLen("Password", 6))
  3343. }
  3344. if s.SecretHash != nil && len(*s.SecretHash) < 1 {
  3345. invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1))
  3346. }
  3347. if s.Username == nil {
  3348. invalidParams.Add(request.NewErrParamRequired("Username"))
  3349. }
  3350. if s.Username != nil && len(*s.Username) < 1 {
  3351. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  3352. }
  3353. if invalidParams.Len() > 0 {
  3354. return invalidParams
  3355. }
  3356. return nil
  3357. }
  3358. // The response from the server that results from a user's request to retrieve
  3359. // a forgotten password.
  3360. type ConfirmForgotPasswordOutput struct {
  3361. _ struct{} `type:"structure"`
  3362. }
  3363. // String returns the string representation
  3364. func (s ConfirmForgotPasswordOutput) String() string {
  3365. return awsutil.Prettify(s)
  3366. }
  3367. // GoString returns the string representation
  3368. func (s ConfirmForgotPasswordOutput) GoString() string {
  3369. return s.String()
  3370. }
  3371. // Represents the request to confirm registration of a user.
  3372. type ConfirmSignUpInput struct {
  3373. _ struct{} `type:"structure"`
  3374. // The ID of the client associated with the user pool.
  3375. ClientId *string `min:"1" type:"string" required:"true"`
  3376. // The confirmation code sent by a user's request to confirm registration.
  3377. ConfirmationCode *string `min:"1" type:"string" required:"true"`
  3378. // Boolean to be specified to force user confirmation irrespective of existing
  3379. // alias. By default set to False. If this parameter is set to True and the
  3380. // phone number/email used for sign up confirmation already exists as an alias
  3381. // with a different user, the API call will migrate the alias from the previous
  3382. // user to the newly created user being confirmed. If set to False, the API
  3383. // will throw an AliasExistsException error.
  3384. ForceAliasCreation *bool `type:"boolean"`
  3385. // A keyed-hash message authentication code (HMAC) calculated using the secret
  3386. // key of a user pool client and username plus the client ID in the message.
  3387. SecretHash *string `min:"1" type:"string"`
  3388. // The user name of the user whose registration you wish to confirm.
  3389. Username *string `min:"1" type:"string" required:"true"`
  3390. }
  3391. // String returns the string representation
  3392. func (s ConfirmSignUpInput) String() string {
  3393. return awsutil.Prettify(s)
  3394. }
  3395. // GoString returns the string representation
  3396. func (s ConfirmSignUpInput) GoString() string {
  3397. return s.String()
  3398. }
  3399. // Validate inspects the fields of the type to determine if they are valid.
  3400. func (s *ConfirmSignUpInput) Validate() error {
  3401. invalidParams := request.ErrInvalidParams{Context: "ConfirmSignUpInput"}
  3402. if s.ClientId == nil {
  3403. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  3404. }
  3405. if s.ClientId != nil && len(*s.ClientId) < 1 {
  3406. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  3407. }
  3408. if s.ConfirmationCode == nil {
  3409. invalidParams.Add(request.NewErrParamRequired("ConfirmationCode"))
  3410. }
  3411. if s.ConfirmationCode != nil && len(*s.ConfirmationCode) < 1 {
  3412. invalidParams.Add(request.NewErrParamMinLen("ConfirmationCode", 1))
  3413. }
  3414. if s.SecretHash != nil && len(*s.SecretHash) < 1 {
  3415. invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1))
  3416. }
  3417. if s.Username == nil {
  3418. invalidParams.Add(request.NewErrParamRequired("Username"))
  3419. }
  3420. if s.Username != nil && len(*s.Username) < 1 {
  3421. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  3422. }
  3423. if invalidParams.Len() > 0 {
  3424. return invalidParams
  3425. }
  3426. return nil
  3427. }
  3428. // Represents the response from the server for the registration confirmation.
  3429. type ConfirmSignUpOutput struct {
  3430. _ struct{} `type:"structure"`
  3431. }
  3432. // String returns the string representation
  3433. func (s ConfirmSignUpOutput) String() string {
  3434. return awsutil.Prettify(s)
  3435. }
  3436. // GoString returns the string representation
  3437. func (s ConfirmSignUpOutput) GoString() string {
  3438. return s.String()
  3439. }
  3440. // Represents the request to create a user pool client.
  3441. type CreateUserPoolClientInput struct {
  3442. _ struct{} `type:"structure"`
  3443. // The client name for the user pool client you would like to create.
  3444. ClientName *string `min:"1" type:"string" required:"true"`
  3445. // The explicit authentication flows.
  3446. ExplicitAuthFlows []*string `type:"list"`
  3447. // Boolean to specify whether you want to generate a secret for the user pool
  3448. // client being created.
  3449. GenerateSecret *bool `type:"boolean"`
  3450. // The read attributes.
  3451. ReadAttributes []*string `type:"list"`
  3452. // Refreshes the token validity.
  3453. RefreshTokenValidity *int64 `type:"integer"`
  3454. // The user pool ID for the user pool where you want to create a user pool client.
  3455. UserPoolId *string `min:"1" type:"string" required:"true"`
  3456. // The write attributes.
  3457. WriteAttributes []*string `type:"list"`
  3458. }
  3459. // String returns the string representation
  3460. func (s CreateUserPoolClientInput) String() string {
  3461. return awsutil.Prettify(s)
  3462. }
  3463. // GoString returns the string representation
  3464. func (s CreateUserPoolClientInput) GoString() string {
  3465. return s.String()
  3466. }
  3467. // Validate inspects the fields of the type to determine if they are valid.
  3468. func (s *CreateUserPoolClientInput) Validate() error {
  3469. invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolClientInput"}
  3470. if s.ClientName == nil {
  3471. invalidParams.Add(request.NewErrParamRequired("ClientName"))
  3472. }
  3473. if s.ClientName != nil && len(*s.ClientName) < 1 {
  3474. invalidParams.Add(request.NewErrParamMinLen("ClientName", 1))
  3475. }
  3476. if s.UserPoolId == nil {
  3477. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  3478. }
  3479. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  3480. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  3481. }
  3482. if invalidParams.Len() > 0 {
  3483. return invalidParams
  3484. }
  3485. return nil
  3486. }
  3487. // Represents the response from the server to create a user pool client.
  3488. type CreateUserPoolClientOutput struct {
  3489. _ struct{} `type:"structure"`
  3490. // The user pool client that was just created.
  3491. UserPoolClient *UserPoolClientType `type:"structure"`
  3492. }
  3493. // String returns the string representation
  3494. func (s CreateUserPoolClientOutput) String() string {
  3495. return awsutil.Prettify(s)
  3496. }
  3497. // GoString returns the string representation
  3498. func (s CreateUserPoolClientOutput) GoString() string {
  3499. return s.String()
  3500. }
  3501. // Represents the request to create a user pool.
  3502. type CreateUserPoolInput struct {
  3503. _ struct{} `type:"structure"`
  3504. // Attributes supported as an alias for this user pool. Possible values: phone_number,
  3505. // email, or preferred_username.
  3506. AliasAttributes []*string `type:"list"`
  3507. // The attributes to be auto-verified. Possible values: email, phone_number.
  3508. AutoVerifiedAttributes []*string `type:"list"`
  3509. // The device configuration.
  3510. DeviceConfiguration *DeviceConfigurationType `type:"structure"`
  3511. // The email configuration.
  3512. EmailConfiguration *EmailConfigurationType `type:"structure"`
  3513. // A string representing the email verification message.
  3514. EmailVerificationMessage *string `min:"6" type:"string"`
  3515. // A string representing the email verification subject.
  3516. EmailVerificationSubject *string `min:"1" type:"string"`
  3517. // The Lambda trigger configuration information for the new user pool.
  3518. LambdaConfig *LambdaConfigType `type:"structure"`
  3519. // Specifies MFA configuration details.
  3520. MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"`
  3521. // The policies associated with the new user pool.
  3522. Policies *UserPoolPolicyType `type:"structure"`
  3523. // A string used to name the user pool.
  3524. PoolName *string `min:"1" type:"string" required:"true"`
  3525. // A string representing the SMS authentication message.
  3526. SmsAuthenticationMessage *string `min:"6" type:"string"`
  3527. // The SMS configuration.
  3528. SmsConfiguration *SmsConfigurationType `type:"structure"`
  3529. // A string representing the SMS verification message.
  3530. SmsVerificationMessage *string `min:"6" type:"string"`
  3531. }
  3532. // String returns the string representation
  3533. func (s CreateUserPoolInput) String() string {
  3534. return awsutil.Prettify(s)
  3535. }
  3536. // GoString returns the string representation
  3537. func (s CreateUserPoolInput) GoString() string {
  3538. return s.String()
  3539. }
  3540. // Validate inspects the fields of the type to determine if they are valid.
  3541. func (s *CreateUserPoolInput) Validate() error {
  3542. invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolInput"}
  3543. if s.EmailVerificationMessage != nil && len(*s.EmailVerificationMessage) < 6 {
  3544. invalidParams.Add(request.NewErrParamMinLen("EmailVerificationMessage", 6))
  3545. }
  3546. if s.EmailVerificationSubject != nil && len(*s.EmailVerificationSubject) < 1 {
  3547. invalidParams.Add(request.NewErrParamMinLen("EmailVerificationSubject", 1))
  3548. }
  3549. if s.PoolName == nil {
  3550. invalidParams.Add(request.NewErrParamRequired("PoolName"))
  3551. }
  3552. if s.PoolName != nil && len(*s.PoolName) < 1 {
  3553. invalidParams.Add(request.NewErrParamMinLen("PoolName", 1))
  3554. }
  3555. if s.SmsAuthenticationMessage != nil && len(*s.SmsAuthenticationMessage) < 6 {
  3556. invalidParams.Add(request.NewErrParamMinLen("SmsAuthenticationMessage", 6))
  3557. }
  3558. if s.SmsVerificationMessage != nil && len(*s.SmsVerificationMessage) < 6 {
  3559. invalidParams.Add(request.NewErrParamMinLen("SmsVerificationMessage", 6))
  3560. }
  3561. if s.EmailConfiguration != nil {
  3562. if err := s.EmailConfiguration.Validate(); err != nil {
  3563. invalidParams.AddNested("EmailConfiguration", err.(request.ErrInvalidParams))
  3564. }
  3565. }
  3566. if s.LambdaConfig != nil {
  3567. if err := s.LambdaConfig.Validate(); err != nil {
  3568. invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams))
  3569. }
  3570. }
  3571. if s.Policies != nil {
  3572. if err := s.Policies.Validate(); err != nil {
  3573. invalidParams.AddNested("Policies", err.(request.ErrInvalidParams))
  3574. }
  3575. }
  3576. if s.SmsConfiguration != nil {
  3577. if err := s.SmsConfiguration.Validate(); err != nil {
  3578. invalidParams.AddNested("SmsConfiguration", err.(request.ErrInvalidParams))
  3579. }
  3580. }
  3581. if invalidParams.Len() > 0 {
  3582. return invalidParams
  3583. }
  3584. return nil
  3585. }
  3586. // Represents the response from the server for the request to create a user
  3587. // pool.
  3588. type CreateUserPoolOutput struct {
  3589. _ struct{} `type:"structure"`
  3590. // A container for the user pool details.
  3591. UserPool *UserPoolType `type:"structure"`
  3592. }
  3593. // String returns the string representation
  3594. func (s CreateUserPoolOutput) String() string {
  3595. return awsutil.Prettify(s)
  3596. }
  3597. // GoString returns the string representation
  3598. func (s CreateUserPoolOutput) GoString() string {
  3599. return s.String()
  3600. }
  3601. // Represents the request to delete user attributes.
  3602. type DeleteUserAttributesInput struct {
  3603. _ struct{} `type:"structure"`
  3604. // The access token used in the request to delete user attributes.
  3605. AccessToken *string `type:"string"`
  3606. // An array of strings representing the user attribute names you wish to delete.
  3607. UserAttributeNames []*string `type:"list" required:"true"`
  3608. }
  3609. // String returns the string representation
  3610. func (s DeleteUserAttributesInput) String() string {
  3611. return awsutil.Prettify(s)
  3612. }
  3613. // GoString returns the string representation
  3614. func (s DeleteUserAttributesInput) GoString() string {
  3615. return s.String()
  3616. }
  3617. // Validate inspects the fields of the type to determine if they are valid.
  3618. func (s *DeleteUserAttributesInput) Validate() error {
  3619. invalidParams := request.ErrInvalidParams{Context: "DeleteUserAttributesInput"}
  3620. if s.UserAttributeNames == nil {
  3621. invalidParams.Add(request.NewErrParamRequired("UserAttributeNames"))
  3622. }
  3623. if invalidParams.Len() > 0 {
  3624. return invalidParams
  3625. }
  3626. return nil
  3627. }
  3628. // Represents the response from the server to delete user attributes.
  3629. type DeleteUserAttributesOutput struct {
  3630. _ struct{} `type:"structure"`
  3631. }
  3632. // String returns the string representation
  3633. func (s DeleteUserAttributesOutput) String() string {
  3634. return awsutil.Prettify(s)
  3635. }
  3636. // GoString returns the string representation
  3637. func (s DeleteUserAttributesOutput) GoString() string {
  3638. return s.String()
  3639. }
  3640. // Represents the request to delete a user.
  3641. type DeleteUserInput struct {
  3642. _ struct{} `type:"structure"`
  3643. // The access token from a request to delete a user.
  3644. AccessToken *string `type:"string"`
  3645. }
  3646. // String returns the string representation
  3647. func (s DeleteUserInput) String() string {
  3648. return awsutil.Prettify(s)
  3649. }
  3650. // GoString returns the string representation
  3651. func (s DeleteUserInput) GoString() string {
  3652. return s.String()
  3653. }
  3654. type DeleteUserOutput struct {
  3655. _ struct{} `type:"structure"`
  3656. }
  3657. // String returns the string representation
  3658. func (s DeleteUserOutput) String() string {
  3659. return awsutil.Prettify(s)
  3660. }
  3661. // GoString returns the string representation
  3662. func (s DeleteUserOutput) GoString() string {
  3663. return s.String()
  3664. }
  3665. // Represents the request to delete a user pool client.
  3666. type DeleteUserPoolClientInput struct {
  3667. _ struct{} `type:"structure"`
  3668. // The ID of the client associated with the user pool.
  3669. ClientId *string `min:"1" type:"string" required:"true"`
  3670. // The user pool ID for the user pool where you want to delete the client.
  3671. UserPoolId *string `min:"1" type:"string" required:"true"`
  3672. }
  3673. // String returns the string representation
  3674. func (s DeleteUserPoolClientInput) String() string {
  3675. return awsutil.Prettify(s)
  3676. }
  3677. // GoString returns the string representation
  3678. func (s DeleteUserPoolClientInput) GoString() string {
  3679. return s.String()
  3680. }
  3681. // Validate inspects the fields of the type to determine if they are valid.
  3682. func (s *DeleteUserPoolClientInput) Validate() error {
  3683. invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolClientInput"}
  3684. if s.ClientId == nil {
  3685. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  3686. }
  3687. if s.ClientId != nil && len(*s.ClientId) < 1 {
  3688. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  3689. }
  3690. if s.UserPoolId == nil {
  3691. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  3692. }
  3693. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  3694. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  3695. }
  3696. if invalidParams.Len() > 0 {
  3697. return invalidParams
  3698. }
  3699. return nil
  3700. }
  3701. type DeleteUserPoolClientOutput struct {
  3702. _ struct{} `type:"structure"`
  3703. }
  3704. // String returns the string representation
  3705. func (s DeleteUserPoolClientOutput) String() string {
  3706. return awsutil.Prettify(s)
  3707. }
  3708. // GoString returns the string representation
  3709. func (s DeleteUserPoolClientOutput) GoString() string {
  3710. return s.String()
  3711. }
  3712. // Represents the request to delete a user pool.
  3713. type DeleteUserPoolInput struct {
  3714. _ struct{} `type:"structure"`
  3715. // The user pool ID for the user pool you want to delete.
  3716. UserPoolId *string `min:"1" type:"string" required:"true"`
  3717. }
  3718. // String returns the string representation
  3719. func (s DeleteUserPoolInput) String() string {
  3720. return awsutil.Prettify(s)
  3721. }
  3722. // GoString returns the string representation
  3723. func (s DeleteUserPoolInput) GoString() string {
  3724. return s.String()
  3725. }
  3726. // Validate inspects the fields of the type to determine if they are valid.
  3727. func (s *DeleteUserPoolInput) Validate() error {
  3728. invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolInput"}
  3729. if s.UserPoolId == nil {
  3730. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  3731. }
  3732. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  3733. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  3734. }
  3735. if invalidParams.Len() > 0 {
  3736. return invalidParams
  3737. }
  3738. return nil
  3739. }
  3740. type DeleteUserPoolOutput struct {
  3741. _ struct{} `type:"structure"`
  3742. }
  3743. // String returns the string representation
  3744. func (s DeleteUserPoolOutput) String() string {
  3745. return awsutil.Prettify(s)
  3746. }
  3747. // GoString returns the string representation
  3748. func (s DeleteUserPoolOutput) GoString() string {
  3749. return s.String()
  3750. }
  3751. // Represents the request to describe a user pool client.
  3752. type DescribeUserPoolClientInput struct {
  3753. _ struct{} `type:"structure"`
  3754. // The ID of the client associated with the user pool.
  3755. ClientId *string `min:"1" type:"string" required:"true"`
  3756. // The user pool ID for the user pool you want to describe.
  3757. UserPoolId *string `min:"1" type:"string" required:"true"`
  3758. }
  3759. // String returns the string representation
  3760. func (s DescribeUserPoolClientInput) String() string {
  3761. return awsutil.Prettify(s)
  3762. }
  3763. // GoString returns the string representation
  3764. func (s DescribeUserPoolClientInput) GoString() string {
  3765. return s.String()
  3766. }
  3767. // Validate inspects the fields of the type to determine if they are valid.
  3768. func (s *DescribeUserPoolClientInput) Validate() error {
  3769. invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolClientInput"}
  3770. if s.ClientId == nil {
  3771. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  3772. }
  3773. if s.ClientId != nil && len(*s.ClientId) < 1 {
  3774. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  3775. }
  3776. if s.UserPoolId == nil {
  3777. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  3778. }
  3779. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  3780. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  3781. }
  3782. if invalidParams.Len() > 0 {
  3783. return invalidParams
  3784. }
  3785. return nil
  3786. }
  3787. // Represents the response from the server from a request to describe the user
  3788. // pool client.
  3789. type DescribeUserPoolClientOutput struct {
  3790. _ struct{} `type:"structure"`
  3791. // The user pool client from a server response to describe the user pool client.
  3792. UserPoolClient *UserPoolClientType `type:"structure"`
  3793. }
  3794. // String returns the string representation
  3795. func (s DescribeUserPoolClientOutput) String() string {
  3796. return awsutil.Prettify(s)
  3797. }
  3798. // GoString returns the string representation
  3799. func (s DescribeUserPoolClientOutput) GoString() string {
  3800. return s.String()
  3801. }
  3802. // Represents the request to describe the user pool.
  3803. type DescribeUserPoolInput struct {
  3804. _ struct{} `type:"structure"`
  3805. // The user pool ID for the user pool you want to describe.
  3806. UserPoolId *string `min:"1" type:"string" required:"true"`
  3807. }
  3808. // String returns the string representation
  3809. func (s DescribeUserPoolInput) String() string {
  3810. return awsutil.Prettify(s)
  3811. }
  3812. // GoString returns the string representation
  3813. func (s DescribeUserPoolInput) GoString() string {
  3814. return s.String()
  3815. }
  3816. // Validate inspects the fields of the type to determine if they are valid.
  3817. func (s *DescribeUserPoolInput) Validate() error {
  3818. invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolInput"}
  3819. if s.UserPoolId == nil {
  3820. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  3821. }
  3822. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  3823. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  3824. }
  3825. if invalidParams.Len() > 0 {
  3826. return invalidParams
  3827. }
  3828. return nil
  3829. }
  3830. // Represents the response to describe the user pool.
  3831. type DescribeUserPoolOutput struct {
  3832. _ struct{} `type:"structure"`
  3833. // The container of metadata returned by the server to describe the pool.
  3834. UserPool *UserPoolType `type:"structure"`
  3835. }
  3836. // String returns the string representation
  3837. func (s DescribeUserPoolOutput) String() string {
  3838. return awsutil.Prettify(s)
  3839. }
  3840. // GoString returns the string representation
  3841. func (s DescribeUserPoolOutput) GoString() string {
  3842. return s.String()
  3843. }
  3844. // The type of configuration for the user pool's device tracking.
  3845. type DeviceConfigurationType struct {
  3846. _ struct{} `type:"structure"`
  3847. // Indicates whether a challenge is required on a new device. Only applicable
  3848. // to a new device.
  3849. ChallengeRequiredOnNewDevice *bool `type:"boolean"`
  3850. // If true, a device is only remembered on user prompt.
  3851. DeviceOnlyRememberedOnUserPrompt *bool `type:"boolean"`
  3852. }
  3853. // String returns the string representation
  3854. func (s DeviceConfigurationType) String() string {
  3855. return awsutil.Prettify(s)
  3856. }
  3857. // GoString returns the string representation
  3858. func (s DeviceConfigurationType) GoString() string {
  3859. return s.String()
  3860. }
  3861. // The device verifier against which it will be authenticated.
  3862. type DeviceSecretVerifierConfigType struct {
  3863. _ struct{} `type:"structure"`
  3864. // The password verifier.
  3865. PasswordVerifier *string `type:"string"`
  3866. // The salt.
  3867. Salt *string `type:"string"`
  3868. }
  3869. // String returns the string representation
  3870. func (s DeviceSecretVerifierConfigType) String() string {
  3871. return awsutil.Prettify(s)
  3872. }
  3873. // GoString returns the string representation
  3874. func (s DeviceSecretVerifierConfigType) GoString() string {
  3875. return s.String()
  3876. }
  3877. // The device type.
  3878. type DeviceType struct {
  3879. _ struct{} `type:"structure"`
  3880. // The device attributes.
  3881. DeviceAttributes []*AttributeType `type:"list"`
  3882. // The creation date of the device.
  3883. DeviceCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  3884. // The device key.
  3885. DeviceKey *string `min:"1" type:"string"`
  3886. // The date in which the device was last authenticated.
  3887. DeviceLastAuthenticatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  3888. // The last modified date of the device.
  3889. DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  3890. }
  3891. // String returns the string representation
  3892. func (s DeviceType) String() string {
  3893. return awsutil.Prettify(s)
  3894. }
  3895. // GoString returns the string representation
  3896. func (s DeviceType) GoString() string {
  3897. return s.String()
  3898. }
  3899. // The email configuration type.
  3900. type EmailConfigurationType struct {
  3901. _ struct{} `type:"structure"`
  3902. // The REPLY-TO email address.
  3903. ReplyToEmailAddress *string `type:"string"`
  3904. // The Amazon Resource Name (ARN) of the email source.
  3905. SourceArn *string `min:"20" type:"string"`
  3906. }
  3907. // String returns the string representation
  3908. func (s EmailConfigurationType) String() string {
  3909. return awsutil.Prettify(s)
  3910. }
  3911. // GoString returns the string representation
  3912. func (s EmailConfigurationType) GoString() string {
  3913. return s.String()
  3914. }
  3915. // Validate inspects the fields of the type to determine if they are valid.
  3916. func (s *EmailConfigurationType) Validate() error {
  3917. invalidParams := request.ErrInvalidParams{Context: "EmailConfigurationType"}
  3918. if s.SourceArn != nil && len(*s.SourceArn) < 20 {
  3919. invalidParams.Add(request.NewErrParamMinLen("SourceArn", 20))
  3920. }
  3921. if invalidParams.Len() > 0 {
  3922. return invalidParams
  3923. }
  3924. return nil
  3925. }
  3926. // Represents the request to forget the device.
  3927. type ForgetDeviceInput struct {
  3928. _ struct{} `type:"structure"`
  3929. // The access token for the forgotten device request.
  3930. AccessToken *string `type:"string"`
  3931. // The device key.
  3932. DeviceKey *string `min:"1" type:"string" required:"true"`
  3933. }
  3934. // String returns the string representation
  3935. func (s ForgetDeviceInput) String() string {
  3936. return awsutil.Prettify(s)
  3937. }
  3938. // GoString returns the string representation
  3939. func (s ForgetDeviceInput) GoString() string {
  3940. return s.String()
  3941. }
  3942. // Validate inspects the fields of the type to determine if they are valid.
  3943. func (s *ForgetDeviceInput) Validate() error {
  3944. invalidParams := request.ErrInvalidParams{Context: "ForgetDeviceInput"}
  3945. if s.DeviceKey == nil {
  3946. invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
  3947. }
  3948. if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
  3949. invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
  3950. }
  3951. if invalidParams.Len() > 0 {
  3952. return invalidParams
  3953. }
  3954. return nil
  3955. }
  3956. type ForgetDeviceOutput struct {
  3957. _ struct{} `type:"structure"`
  3958. }
  3959. // String returns the string representation
  3960. func (s ForgetDeviceOutput) String() string {
  3961. return awsutil.Prettify(s)
  3962. }
  3963. // GoString returns the string representation
  3964. func (s ForgetDeviceOutput) GoString() string {
  3965. return s.String()
  3966. }
  3967. // Represents the request to reset a user's password.
  3968. type ForgotPasswordInput struct {
  3969. _ struct{} `type:"structure"`
  3970. // The ID of the client associated with the user pool.
  3971. ClientId *string `min:"1" type:"string" required:"true"`
  3972. // A keyed-hash message authentication code (HMAC) calculated using the secret
  3973. // key of a user pool client and username plus the client ID in the message.
  3974. SecretHash *string `min:"1" type:"string"`
  3975. // The user name of the user for whom you want to enter a code to retrieve a
  3976. // forgotten password.
  3977. Username *string `min:"1" type:"string" required:"true"`
  3978. }
  3979. // String returns the string representation
  3980. func (s ForgotPasswordInput) String() string {
  3981. return awsutil.Prettify(s)
  3982. }
  3983. // GoString returns the string representation
  3984. func (s ForgotPasswordInput) GoString() string {
  3985. return s.String()
  3986. }
  3987. // Validate inspects the fields of the type to determine if they are valid.
  3988. func (s *ForgotPasswordInput) Validate() error {
  3989. invalidParams := request.ErrInvalidParams{Context: "ForgotPasswordInput"}
  3990. if s.ClientId == nil {
  3991. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  3992. }
  3993. if s.ClientId != nil && len(*s.ClientId) < 1 {
  3994. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  3995. }
  3996. if s.SecretHash != nil && len(*s.SecretHash) < 1 {
  3997. invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1))
  3998. }
  3999. if s.Username == nil {
  4000. invalidParams.Add(request.NewErrParamRequired("Username"))
  4001. }
  4002. if s.Username != nil && len(*s.Username) < 1 {
  4003. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  4004. }
  4005. if invalidParams.Len() > 0 {
  4006. return invalidParams
  4007. }
  4008. return nil
  4009. }
  4010. // Respresents the response from the server regarding the request to reset a
  4011. // password.
  4012. type ForgotPasswordOutput struct {
  4013. _ struct{} `type:"structure"`
  4014. // The type of code delivery details being returned from the server.
  4015. CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"`
  4016. }
  4017. // String returns the string representation
  4018. func (s ForgotPasswordOutput) String() string {
  4019. return awsutil.Prettify(s)
  4020. }
  4021. // GoString returns the string representation
  4022. func (s ForgotPasswordOutput) GoString() string {
  4023. return s.String()
  4024. }
  4025. // Represents the request to get the device.
  4026. type GetDeviceInput struct {
  4027. _ struct{} `type:"structure"`
  4028. // The access token.
  4029. AccessToken *string `type:"string"`
  4030. // The device key.
  4031. DeviceKey *string `min:"1" type:"string" required:"true"`
  4032. }
  4033. // String returns the string representation
  4034. func (s GetDeviceInput) String() string {
  4035. return awsutil.Prettify(s)
  4036. }
  4037. // GoString returns the string representation
  4038. func (s GetDeviceInput) GoString() string {
  4039. return s.String()
  4040. }
  4041. // Validate inspects the fields of the type to determine if they are valid.
  4042. func (s *GetDeviceInput) Validate() error {
  4043. invalidParams := request.ErrInvalidParams{Context: "GetDeviceInput"}
  4044. if s.DeviceKey == nil {
  4045. invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
  4046. }
  4047. if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
  4048. invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
  4049. }
  4050. if invalidParams.Len() > 0 {
  4051. return invalidParams
  4052. }
  4053. return nil
  4054. }
  4055. // Gets the device response.
  4056. type GetDeviceOutput struct {
  4057. _ struct{} `type:"structure"`
  4058. // The device.
  4059. Device *DeviceType `type:"structure" required:"true"`
  4060. }
  4061. // String returns the string representation
  4062. func (s GetDeviceOutput) String() string {
  4063. return awsutil.Prettify(s)
  4064. }
  4065. // GoString returns the string representation
  4066. func (s GetDeviceOutput) GoString() string {
  4067. return s.String()
  4068. }
  4069. // Represents the request to get user attribute verification.
  4070. type GetUserAttributeVerificationCodeInput struct {
  4071. _ struct{} `type:"structure"`
  4072. // The access token returned by the server response to get the user attribute
  4073. // verification code.
  4074. AccessToken *string `type:"string"`
  4075. // The attribute name returned by the server response to get the user attribute
  4076. // verification code.
  4077. AttributeName *string `min:"1" type:"string" required:"true"`
  4078. }
  4079. // String returns the string representation
  4080. func (s GetUserAttributeVerificationCodeInput) String() string {
  4081. return awsutil.Prettify(s)
  4082. }
  4083. // GoString returns the string representation
  4084. func (s GetUserAttributeVerificationCodeInput) GoString() string {
  4085. return s.String()
  4086. }
  4087. // Validate inspects the fields of the type to determine if they are valid.
  4088. func (s *GetUserAttributeVerificationCodeInput) Validate() error {
  4089. invalidParams := request.ErrInvalidParams{Context: "GetUserAttributeVerificationCodeInput"}
  4090. if s.AttributeName == nil {
  4091. invalidParams.Add(request.NewErrParamRequired("AttributeName"))
  4092. }
  4093. if s.AttributeName != nil && len(*s.AttributeName) < 1 {
  4094. invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1))
  4095. }
  4096. if invalidParams.Len() > 0 {
  4097. return invalidParams
  4098. }
  4099. return nil
  4100. }
  4101. // The verification code response returned by the server response to get the
  4102. // user attribute verification code.
  4103. type GetUserAttributeVerificationCodeOutput struct {
  4104. _ struct{} `type:"structure"`
  4105. // The code delivery details returned by the server response to get the user
  4106. // attribute verification code.
  4107. CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"`
  4108. }
  4109. // String returns the string representation
  4110. func (s GetUserAttributeVerificationCodeOutput) String() string {
  4111. return awsutil.Prettify(s)
  4112. }
  4113. // GoString returns the string representation
  4114. func (s GetUserAttributeVerificationCodeOutput) GoString() string {
  4115. return s.String()
  4116. }
  4117. // Represents the request to get information about the user.
  4118. type GetUserInput struct {
  4119. _ struct{} `type:"structure"`
  4120. // The access token returned by the server response to get information about
  4121. // the user.
  4122. AccessToken *string `type:"string"`
  4123. }
  4124. // String returns the string representation
  4125. func (s GetUserInput) String() string {
  4126. return awsutil.Prettify(s)
  4127. }
  4128. // GoString returns the string representation
  4129. func (s GetUserInput) GoString() string {
  4130. return s.String()
  4131. }
  4132. // Represents the response from the server from the request to get information
  4133. // about the user.
  4134. type GetUserOutput struct {
  4135. _ struct{} `type:"structure"`
  4136. // Specifies the options for MFA (e.g., email or phone number).
  4137. MFAOptions []*MFAOptionType `type:"list"`
  4138. // An array of name-value pairs representing user attributes.
  4139. UserAttributes []*AttributeType `type:"list" required:"true"`
  4140. // The user name of the user you wish to retrieve from the get user request.
  4141. Username *string `min:"1" type:"string" required:"true"`
  4142. }
  4143. // String returns the string representation
  4144. func (s GetUserOutput) String() string {
  4145. return awsutil.Prettify(s)
  4146. }
  4147. // GoString returns the string representation
  4148. func (s GetUserOutput) GoString() string {
  4149. return s.String()
  4150. }
  4151. // Represents the request to sign out all devices.
  4152. type GlobalSignOutInput struct {
  4153. _ struct{} `type:"structure"`
  4154. // The access token.
  4155. AccessToken *string `type:"string"`
  4156. }
  4157. // String returns the string representation
  4158. func (s GlobalSignOutInput) String() string {
  4159. return awsutil.Prettify(s)
  4160. }
  4161. // GoString returns the string representation
  4162. func (s GlobalSignOutInput) GoString() string {
  4163. return s.String()
  4164. }
  4165. // The response to the request to sign out all devices.
  4166. type GlobalSignOutOutput struct {
  4167. _ struct{} `type:"structure"`
  4168. }
  4169. // String returns the string representation
  4170. func (s GlobalSignOutOutput) String() string {
  4171. return awsutil.Prettify(s)
  4172. }
  4173. // GoString returns the string representation
  4174. func (s GlobalSignOutOutput) GoString() string {
  4175. return s.String()
  4176. }
  4177. // Initiates the authentication request.
  4178. type InitiateAuthInput struct {
  4179. _ struct{} `type:"structure"`
  4180. // The authentication flow.
  4181. AuthFlow *string `type:"string" required:"true" enum:"AuthFlowType"`
  4182. // The authentication parameters.
  4183. AuthParameters map[string]*string `type:"map"`
  4184. // The client ID.
  4185. ClientId *string `min:"1" type:"string" required:"true"`
  4186. // The client app's metadata.
  4187. ClientMetadata map[string]*string `type:"map"`
  4188. }
  4189. // String returns the string representation
  4190. func (s InitiateAuthInput) String() string {
  4191. return awsutil.Prettify(s)
  4192. }
  4193. // GoString returns the string representation
  4194. func (s InitiateAuthInput) GoString() string {
  4195. return s.String()
  4196. }
  4197. // Validate inspects the fields of the type to determine if they are valid.
  4198. func (s *InitiateAuthInput) Validate() error {
  4199. invalidParams := request.ErrInvalidParams{Context: "InitiateAuthInput"}
  4200. if s.AuthFlow == nil {
  4201. invalidParams.Add(request.NewErrParamRequired("AuthFlow"))
  4202. }
  4203. if s.ClientId == nil {
  4204. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  4205. }
  4206. if s.ClientId != nil && len(*s.ClientId) < 1 {
  4207. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  4208. }
  4209. if invalidParams.Len() > 0 {
  4210. return invalidParams
  4211. }
  4212. return nil
  4213. }
  4214. // Initiates the authentication response.
  4215. type InitiateAuthOutput struct {
  4216. _ struct{} `type:"structure"`
  4217. // The result type of the authentication result.
  4218. AuthenticationResult *AuthenticationResultType `type:"structure"`
  4219. // The name of the challenge.
  4220. ChallengeName *string `type:"string" enum:"ChallengeNameType"`
  4221. // The challenge parameters.
  4222. ChallengeParameters map[string]*string `type:"map"`
  4223. // The session.
  4224. Session *string `min:"20" type:"string"`
  4225. }
  4226. // String returns the string representation
  4227. func (s InitiateAuthOutput) String() string {
  4228. return awsutil.Prettify(s)
  4229. }
  4230. // GoString returns the string representation
  4231. func (s InitiateAuthOutput) GoString() string {
  4232. return s.String()
  4233. }
  4234. // Specifies the type of configuration for AWS Lambda triggers.
  4235. type LambdaConfigType struct {
  4236. _ struct{} `type:"structure"`
  4237. // Creates an authentication challenge.
  4238. CreateAuthChallenge *string `min:"20" type:"string"`
  4239. // A custom Message AWS Lambda trigger.
  4240. CustomMessage *string `min:"20" type:"string"`
  4241. // Defines the authentication challenge.
  4242. DefineAuthChallenge *string `min:"20" type:"string"`
  4243. // A post-authentication AWS Lambda trigger.
  4244. PostAuthentication *string `min:"20" type:"string"`
  4245. // A post-confirmation AWS Lambda trigger.
  4246. PostConfirmation *string `min:"20" type:"string"`
  4247. // A pre-authentication AWS Lambda trigger.
  4248. PreAuthentication *string `min:"20" type:"string"`
  4249. // A pre-registration AWS Lambda trigger.
  4250. PreSignUp *string `min:"20" type:"string"`
  4251. // Verifies the authentication challenge response.
  4252. VerifyAuthChallengeResponse *string `min:"20" type:"string"`
  4253. }
  4254. // String returns the string representation
  4255. func (s LambdaConfigType) String() string {
  4256. return awsutil.Prettify(s)
  4257. }
  4258. // GoString returns the string representation
  4259. func (s LambdaConfigType) GoString() string {
  4260. return s.String()
  4261. }
  4262. // Validate inspects the fields of the type to determine if they are valid.
  4263. func (s *LambdaConfigType) Validate() error {
  4264. invalidParams := request.ErrInvalidParams{Context: "LambdaConfigType"}
  4265. if s.CreateAuthChallenge != nil && len(*s.CreateAuthChallenge) < 20 {
  4266. invalidParams.Add(request.NewErrParamMinLen("CreateAuthChallenge", 20))
  4267. }
  4268. if s.CustomMessage != nil && len(*s.CustomMessage) < 20 {
  4269. invalidParams.Add(request.NewErrParamMinLen("CustomMessage", 20))
  4270. }
  4271. if s.DefineAuthChallenge != nil && len(*s.DefineAuthChallenge) < 20 {
  4272. invalidParams.Add(request.NewErrParamMinLen("DefineAuthChallenge", 20))
  4273. }
  4274. if s.PostAuthentication != nil && len(*s.PostAuthentication) < 20 {
  4275. invalidParams.Add(request.NewErrParamMinLen("PostAuthentication", 20))
  4276. }
  4277. if s.PostConfirmation != nil && len(*s.PostConfirmation) < 20 {
  4278. invalidParams.Add(request.NewErrParamMinLen("PostConfirmation", 20))
  4279. }
  4280. if s.PreAuthentication != nil && len(*s.PreAuthentication) < 20 {
  4281. invalidParams.Add(request.NewErrParamMinLen("PreAuthentication", 20))
  4282. }
  4283. if s.PreSignUp != nil && len(*s.PreSignUp) < 20 {
  4284. invalidParams.Add(request.NewErrParamMinLen("PreSignUp", 20))
  4285. }
  4286. if s.VerifyAuthChallengeResponse != nil && len(*s.VerifyAuthChallengeResponse) < 20 {
  4287. invalidParams.Add(request.NewErrParamMinLen("VerifyAuthChallengeResponse", 20))
  4288. }
  4289. if invalidParams.Len() > 0 {
  4290. return invalidParams
  4291. }
  4292. return nil
  4293. }
  4294. // Represents the request to list the devices.
  4295. type ListDevicesInput struct {
  4296. _ struct{} `type:"structure"`
  4297. // The access tokens for the request to list devices.
  4298. AccessToken *string `type:"string" required:"true"`
  4299. // The limit of the device request.
  4300. Limit *int64 `type:"integer"`
  4301. // The pagination token for the list request.
  4302. PaginationToken *string `min:"1" type:"string"`
  4303. }
  4304. // String returns the string representation
  4305. func (s ListDevicesInput) String() string {
  4306. return awsutil.Prettify(s)
  4307. }
  4308. // GoString returns the string representation
  4309. func (s ListDevicesInput) GoString() string {
  4310. return s.String()
  4311. }
  4312. // Validate inspects the fields of the type to determine if they are valid.
  4313. func (s *ListDevicesInput) Validate() error {
  4314. invalidParams := request.ErrInvalidParams{Context: "ListDevicesInput"}
  4315. if s.AccessToken == nil {
  4316. invalidParams.Add(request.NewErrParamRequired("AccessToken"))
  4317. }
  4318. if s.PaginationToken != nil && len(*s.PaginationToken) < 1 {
  4319. invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1))
  4320. }
  4321. if invalidParams.Len() > 0 {
  4322. return invalidParams
  4323. }
  4324. return nil
  4325. }
  4326. // Represents the response to list devices.
  4327. type ListDevicesOutput struct {
  4328. _ struct{} `type:"structure"`
  4329. // The devices returned in the list devices response.
  4330. Devices []*DeviceType `type:"list"`
  4331. // The pagination token for the list device response.
  4332. PaginationToken *string `min:"1" type:"string"`
  4333. }
  4334. // String returns the string representation
  4335. func (s ListDevicesOutput) String() string {
  4336. return awsutil.Prettify(s)
  4337. }
  4338. // GoString returns the string representation
  4339. func (s ListDevicesOutput) GoString() string {
  4340. return s.String()
  4341. }
  4342. // Represents the request to list the user pool clients.
  4343. type ListUserPoolClientsInput struct {
  4344. _ struct{} `type:"structure"`
  4345. // The maximum number of results you want the request to return when listing
  4346. // the user pool clients.
  4347. MaxResults *int64 `min:"1" type:"integer"`
  4348. // An identifier that was returned from the previous call to this operation,
  4349. // which can be used to return the next set of items in the list.
  4350. NextToken *string `min:"1" type:"string"`
  4351. // The user pool ID for the user pool where you want to list user pool clients.
  4352. UserPoolId *string `min:"1" type:"string" required:"true"`
  4353. }
  4354. // String returns the string representation
  4355. func (s ListUserPoolClientsInput) String() string {
  4356. return awsutil.Prettify(s)
  4357. }
  4358. // GoString returns the string representation
  4359. func (s ListUserPoolClientsInput) GoString() string {
  4360. return s.String()
  4361. }
  4362. // Validate inspects the fields of the type to determine if they are valid.
  4363. func (s *ListUserPoolClientsInput) Validate() error {
  4364. invalidParams := request.ErrInvalidParams{Context: "ListUserPoolClientsInput"}
  4365. if s.MaxResults != nil && *s.MaxResults < 1 {
  4366. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  4367. }
  4368. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4369. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4370. }
  4371. if s.UserPoolId == nil {
  4372. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  4373. }
  4374. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  4375. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  4376. }
  4377. if invalidParams.Len() > 0 {
  4378. return invalidParams
  4379. }
  4380. return nil
  4381. }
  4382. // Represents the response from the server that lists user pool clients.
  4383. type ListUserPoolClientsOutput struct {
  4384. _ struct{} `type:"structure"`
  4385. // An identifier that was returned from the previous call to this operation,
  4386. // which can be used to return the next set of items in the list.
  4387. NextToken *string `min:"1" type:"string"`
  4388. // The user pool clients in the response that lists user pool clients.
  4389. UserPoolClients []*UserPoolClientDescription `type:"list"`
  4390. }
  4391. // String returns the string representation
  4392. func (s ListUserPoolClientsOutput) String() string {
  4393. return awsutil.Prettify(s)
  4394. }
  4395. // GoString returns the string representation
  4396. func (s ListUserPoolClientsOutput) GoString() string {
  4397. return s.String()
  4398. }
  4399. // Represents the request to list user pools.
  4400. type ListUserPoolsInput struct {
  4401. _ struct{} `type:"structure"`
  4402. // The maximum number of results you want the request to return when listing
  4403. // the user pools.
  4404. MaxResults *int64 `min:"1" type:"integer" required:"true"`
  4405. // An identifier that was returned from the previous call to this operation,
  4406. // which can be used to return the next set of items in the list.
  4407. NextToken *string `min:"1" type:"string"`
  4408. }
  4409. // String returns the string representation
  4410. func (s ListUserPoolsInput) String() string {
  4411. return awsutil.Prettify(s)
  4412. }
  4413. // GoString returns the string representation
  4414. func (s ListUserPoolsInput) GoString() string {
  4415. return s.String()
  4416. }
  4417. // Validate inspects the fields of the type to determine if they are valid.
  4418. func (s *ListUserPoolsInput) Validate() error {
  4419. invalidParams := request.ErrInvalidParams{Context: "ListUserPoolsInput"}
  4420. if s.MaxResults == nil {
  4421. invalidParams.Add(request.NewErrParamRequired("MaxResults"))
  4422. }
  4423. if s.MaxResults != nil && *s.MaxResults < 1 {
  4424. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  4425. }
  4426. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4427. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4428. }
  4429. if invalidParams.Len() > 0 {
  4430. return invalidParams
  4431. }
  4432. return nil
  4433. }
  4434. // Represents the response to list user pools.
  4435. type ListUserPoolsOutput struct {
  4436. _ struct{} `type:"structure"`
  4437. // An identifier that was returned from the previous call to this operation,
  4438. // which can be used to return the next set of items in the list.
  4439. NextToken *string `min:"1" type:"string"`
  4440. // The user pools from the response to list users.
  4441. UserPools []*UserPoolDescriptionType `type:"list"`
  4442. }
  4443. // String returns the string representation
  4444. func (s ListUserPoolsOutput) String() string {
  4445. return awsutil.Prettify(s)
  4446. }
  4447. // GoString returns the string representation
  4448. func (s ListUserPoolsOutput) GoString() string {
  4449. return s.String()
  4450. }
  4451. // Represents the request to list users.
  4452. type ListUsersInput struct {
  4453. _ struct{} `type:"structure"`
  4454. // The attributes to get from the request to list users.
  4455. AttributesToGet []*string `type:"list"`
  4456. // The filter for the list users request.
  4457. Filter *string `type:"string"`
  4458. // The limit of the request to list users.
  4459. Limit *int64 `type:"integer"`
  4460. // An identifier that was returned from the previous call to this operation,
  4461. // which can be used to return the next set of items in the list.
  4462. PaginationToken *string `min:"1" type:"string"`
  4463. // The user pool ID for which you want to list users.
  4464. UserPoolId *string `min:"1" type:"string" required:"true"`
  4465. }
  4466. // String returns the string representation
  4467. func (s ListUsersInput) String() string {
  4468. return awsutil.Prettify(s)
  4469. }
  4470. // GoString returns the string representation
  4471. func (s ListUsersInput) GoString() string {
  4472. return s.String()
  4473. }
  4474. // Validate inspects the fields of the type to determine if they are valid.
  4475. func (s *ListUsersInput) Validate() error {
  4476. invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"}
  4477. if s.PaginationToken != nil && len(*s.PaginationToken) < 1 {
  4478. invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1))
  4479. }
  4480. if s.UserPoolId == nil {
  4481. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  4482. }
  4483. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  4484. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  4485. }
  4486. if invalidParams.Len() > 0 {
  4487. return invalidParams
  4488. }
  4489. return nil
  4490. }
  4491. // The response from the request to list users.
  4492. type ListUsersOutput struct {
  4493. _ struct{} `type:"structure"`
  4494. // An identifier that was returned from the previous call to this operation,
  4495. // which can be used to return the next set of items in the list.
  4496. PaginationToken *string `min:"1" type:"string"`
  4497. // The users returned in the request to list users.
  4498. Users []*UserType `type:"list"`
  4499. }
  4500. // String returns the string representation
  4501. func (s ListUsersOutput) String() string {
  4502. return awsutil.Prettify(s)
  4503. }
  4504. // GoString returns the string representation
  4505. func (s ListUsersOutput) GoString() string {
  4506. return s.String()
  4507. }
  4508. // Specifies the different settings for multi-factor authentication (MFA).
  4509. type MFAOptionType struct {
  4510. _ struct{} `type:"structure"`
  4511. // The attribute name of the MFA option type.
  4512. AttributeName *string `min:"1" type:"string"`
  4513. // The delivery medium (email message or SMS message) to send the MFA code.
  4514. DeliveryMedium *string `type:"string" enum:"DeliveryMediumType"`
  4515. }
  4516. // String returns the string representation
  4517. func (s MFAOptionType) String() string {
  4518. return awsutil.Prettify(s)
  4519. }
  4520. // GoString returns the string representation
  4521. func (s MFAOptionType) GoString() string {
  4522. return s.String()
  4523. }
  4524. // Validate inspects the fields of the type to determine if they are valid.
  4525. func (s *MFAOptionType) Validate() error {
  4526. invalidParams := request.ErrInvalidParams{Context: "MFAOptionType"}
  4527. if s.AttributeName != nil && len(*s.AttributeName) < 1 {
  4528. invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1))
  4529. }
  4530. if invalidParams.Len() > 0 {
  4531. return invalidParams
  4532. }
  4533. return nil
  4534. }
  4535. // The new device metadata type.
  4536. type NewDeviceMetadataType struct {
  4537. _ struct{} `type:"structure"`
  4538. // The device group key.
  4539. DeviceGroupKey *string `type:"string"`
  4540. // The device key.
  4541. DeviceKey *string `min:"1" type:"string"`
  4542. }
  4543. // String returns the string representation
  4544. func (s NewDeviceMetadataType) String() string {
  4545. return awsutil.Prettify(s)
  4546. }
  4547. // GoString returns the string representation
  4548. func (s NewDeviceMetadataType) GoString() string {
  4549. return s.String()
  4550. }
  4551. // The minimum and maximum value of an attribute that is of the number data
  4552. // type.
  4553. type NumberAttributeConstraintsType struct {
  4554. _ struct{} `type:"structure"`
  4555. // The maximum value of an attribute that is of the number data type.
  4556. MaxValue *string `type:"string"`
  4557. // The minimum value of an attribute that is of the number data type.
  4558. MinValue *string `type:"string"`
  4559. }
  4560. // String returns the string representation
  4561. func (s NumberAttributeConstraintsType) String() string {
  4562. return awsutil.Prettify(s)
  4563. }
  4564. // GoString returns the string representation
  4565. func (s NumberAttributeConstraintsType) GoString() string {
  4566. return s.String()
  4567. }
  4568. // The password policy type.
  4569. type PasswordPolicyType struct {
  4570. _ struct{} `type:"structure"`
  4571. // The minimum length of the password policy that you have set. Cannot be less
  4572. // than 6.
  4573. MinimumLength *int64 `min:"6" type:"integer"`
  4574. // In the password policy that you have set, refers to whether you have required
  4575. // users to use at least one lowercase letter in their password.
  4576. RequireLowercase *bool `type:"boolean"`
  4577. // In the password policy that you have set, refers to whether you have required
  4578. // users to use at least one number in their password.
  4579. RequireNumbers *bool `type:"boolean"`
  4580. // In the password policy that you have set, refers to whether you have required
  4581. // users to use at least one symbol in their password.
  4582. RequireSymbols *bool `type:"boolean"`
  4583. // In the password policy that you have set, refers to whether you have required
  4584. // users to use at least one uppercase letter in their password.
  4585. RequireUppercase *bool `type:"boolean"`
  4586. }
  4587. // String returns the string representation
  4588. func (s PasswordPolicyType) String() string {
  4589. return awsutil.Prettify(s)
  4590. }
  4591. // GoString returns the string representation
  4592. func (s PasswordPolicyType) GoString() string {
  4593. return s.String()
  4594. }
  4595. // Validate inspects the fields of the type to determine if they are valid.
  4596. func (s *PasswordPolicyType) Validate() error {
  4597. invalidParams := request.ErrInvalidParams{Context: "PasswordPolicyType"}
  4598. if s.MinimumLength != nil && *s.MinimumLength < 6 {
  4599. invalidParams.Add(request.NewErrParamMinValue("MinimumLength", 6))
  4600. }
  4601. if invalidParams.Len() > 0 {
  4602. return invalidParams
  4603. }
  4604. return nil
  4605. }
  4606. // Represents the request to resend the confirmation code.
  4607. type ResendConfirmationCodeInput struct {
  4608. _ struct{} `type:"structure"`
  4609. // The ID of the client associated with the user pool.
  4610. ClientId *string `min:"1" type:"string" required:"true"`
  4611. // A keyed-hash message authentication code (HMAC) calculated using the secret
  4612. // key of a user pool client and username plus the client ID in the message.
  4613. SecretHash *string `min:"1" type:"string"`
  4614. // The user name of the user to whom you wish to resend a confirmation code.
  4615. Username *string `min:"1" type:"string" required:"true"`
  4616. }
  4617. // String returns the string representation
  4618. func (s ResendConfirmationCodeInput) String() string {
  4619. return awsutil.Prettify(s)
  4620. }
  4621. // GoString returns the string representation
  4622. func (s ResendConfirmationCodeInput) GoString() string {
  4623. return s.String()
  4624. }
  4625. // Validate inspects the fields of the type to determine if they are valid.
  4626. func (s *ResendConfirmationCodeInput) Validate() error {
  4627. invalidParams := request.ErrInvalidParams{Context: "ResendConfirmationCodeInput"}
  4628. if s.ClientId == nil {
  4629. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  4630. }
  4631. if s.ClientId != nil && len(*s.ClientId) < 1 {
  4632. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  4633. }
  4634. if s.SecretHash != nil && len(*s.SecretHash) < 1 {
  4635. invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1))
  4636. }
  4637. if s.Username == nil {
  4638. invalidParams.Add(request.NewErrParamRequired("Username"))
  4639. }
  4640. if s.Username != nil && len(*s.Username) < 1 {
  4641. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  4642. }
  4643. if invalidParams.Len() > 0 {
  4644. return invalidParams
  4645. }
  4646. return nil
  4647. }
  4648. // The response from the server when the Amazon Cognito service makes the request
  4649. // to resend a confirmation code.
  4650. type ResendConfirmationCodeOutput struct {
  4651. _ struct{} `type:"structure"`
  4652. // The type of code delivery details being returned from the server.
  4653. CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"`
  4654. }
  4655. // String returns the string representation
  4656. func (s ResendConfirmationCodeOutput) String() string {
  4657. return awsutil.Prettify(s)
  4658. }
  4659. // GoString returns the string representation
  4660. func (s ResendConfirmationCodeOutput) GoString() string {
  4661. return s.String()
  4662. }
  4663. // The request to respond to an authentication challenge.
  4664. type RespondToAuthChallengeInput struct {
  4665. _ struct{} `type:"structure"`
  4666. // The name of the challenge.
  4667. ChallengeName *string `type:"string" required:"true" enum:"ChallengeNameType"`
  4668. // The responses to the authentication challenge.
  4669. ChallengeResponses map[string]*string `type:"map"`
  4670. // The client ID.
  4671. ClientId *string `min:"1" type:"string" required:"true"`
  4672. // The session.
  4673. Session *string `min:"20" type:"string"`
  4674. }
  4675. // String returns the string representation
  4676. func (s RespondToAuthChallengeInput) String() string {
  4677. return awsutil.Prettify(s)
  4678. }
  4679. // GoString returns the string representation
  4680. func (s RespondToAuthChallengeInput) GoString() string {
  4681. return s.String()
  4682. }
  4683. // Validate inspects the fields of the type to determine if they are valid.
  4684. func (s *RespondToAuthChallengeInput) Validate() error {
  4685. invalidParams := request.ErrInvalidParams{Context: "RespondToAuthChallengeInput"}
  4686. if s.ChallengeName == nil {
  4687. invalidParams.Add(request.NewErrParamRequired("ChallengeName"))
  4688. }
  4689. if s.ClientId == nil {
  4690. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  4691. }
  4692. if s.ClientId != nil && len(*s.ClientId) < 1 {
  4693. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  4694. }
  4695. if s.Session != nil && len(*s.Session) < 20 {
  4696. invalidParams.Add(request.NewErrParamMinLen("Session", 20))
  4697. }
  4698. if invalidParams.Len() > 0 {
  4699. return invalidParams
  4700. }
  4701. return nil
  4702. }
  4703. // The response to respond to the authentication challenge.
  4704. type RespondToAuthChallengeOutput struct {
  4705. _ struct{} `type:"structure"`
  4706. // The result type of the authentication result.
  4707. AuthenticationResult *AuthenticationResultType `type:"structure"`
  4708. // The challenge name.
  4709. ChallengeName *string `type:"string" enum:"ChallengeNameType"`
  4710. // The challenge parameters.
  4711. ChallengeParameters map[string]*string `type:"map"`
  4712. // The session.
  4713. Session *string `min:"20" type:"string"`
  4714. }
  4715. // String returns the string representation
  4716. func (s RespondToAuthChallengeOutput) String() string {
  4717. return awsutil.Prettify(s)
  4718. }
  4719. // GoString returns the string representation
  4720. func (s RespondToAuthChallengeOutput) GoString() string {
  4721. return s.String()
  4722. }
  4723. // Contains information about the schema attribute.
  4724. type SchemaAttributeType struct {
  4725. _ struct{} `type:"structure"`
  4726. // The attribute data type.
  4727. AttributeDataType *string `type:"string" enum:"AttributeDataType"`
  4728. // Specifies whether the attribute type is developer only.
  4729. DeveloperOnlyAttribute *bool `type:"boolean"`
  4730. // Specifies whether the attribute can be changed once it has been created.
  4731. Mutable *bool `type:"boolean"`
  4732. // A schema attribute of the name type.
  4733. Name *string `min:"1" type:"string"`
  4734. // Specifies the constraints for an attribute of the number type.
  4735. NumberAttributeConstraints *NumberAttributeConstraintsType `type:"structure"`
  4736. // Specifies whether a user pool attribute is required. If the attribute is
  4737. // required and the user does not provide a value, registration or sign-in will
  4738. // fail.
  4739. Required *bool `type:"boolean"`
  4740. // Specifies the constraints for an attribute of the string type.
  4741. StringAttributeConstraints *StringAttributeConstraintsType `type:"structure"`
  4742. }
  4743. // String returns the string representation
  4744. func (s SchemaAttributeType) String() string {
  4745. return awsutil.Prettify(s)
  4746. }
  4747. // GoString returns the string representation
  4748. func (s SchemaAttributeType) GoString() string {
  4749. return s.String()
  4750. }
  4751. // Validate inspects the fields of the type to determine if they are valid.
  4752. func (s *SchemaAttributeType) Validate() error {
  4753. invalidParams := request.ErrInvalidParams{Context: "SchemaAttributeType"}
  4754. if s.Name != nil && len(*s.Name) < 1 {
  4755. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4756. }
  4757. if invalidParams.Len() > 0 {
  4758. return invalidParams
  4759. }
  4760. return nil
  4761. }
  4762. // Represents the request to set user settings.
  4763. type SetUserSettingsInput struct {
  4764. _ struct{} `type:"structure"`
  4765. // The access token for the set user settings request.
  4766. AccessToken *string `type:"string" required:"true"`
  4767. // Specifies the options for MFA (e.g., email or phone number).
  4768. MFAOptions []*MFAOptionType `type:"list" required:"true"`
  4769. }
  4770. // String returns the string representation
  4771. func (s SetUserSettingsInput) String() string {
  4772. return awsutil.Prettify(s)
  4773. }
  4774. // GoString returns the string representation
  4775. func (s SetUserSettingsInput) GoString() string {
  4776. return s.String()
  4777. }
  4778. // Validate inspects the fields of the type to determine if they are valid.
  4779. func (s *SetUserSettingsInput) Validate() error {
  4780. invalidParams := request.ErrInvalidParams{Context: "SetUserSettingsInput"}
  4781. if s.AccessToken == nil {
  4782. invalidParams.Add(request.NewErrParamRequired("AccessToken"))
  4783. }
  4784. if s.MFAOptions == nil {
  4785. invalidParams.Add(request.NewErrParamRequired("MFAOptions"))
  4786. }
  4787. if s.MFAOptions != nil {
  4788. for i, v := range s.MFAOptions {
  4789. if v == nil {
  4790. continue
  4791. }
  4792. if err := v.Validate(); err != nil {
  4793. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MFAOptions", i), err.(request.ErrInvalidParams))
  4794. }
  4795. }
  4796. }
  4797. if invalidParams.Len() > 0 {
  4798. return invalidParams
  4799. }
  4800. return nil
  4801. }
  4802. // The response from the server for a set user settings request.
  4803. type SetUserSettingsOutput struct {
  4804. _ struct{} `type:"structure"`
  4805. }
  4806. // String returns the string representation
  4807. func (s SetUserSettingsOutput) String() string {
  4808. return awsutil.Prettify(s)
  4809. }
  4810. // GoString returns the string representation
  4811. func (s SetUserSettingsOutput) GoString() string {
  4812. return s.String()
  4813. }
  4814. // Represents the request to register a user.
  4815. type SignUpInput struct {
  4816. _ struct{} `type:"structure"`
  4817. // The ID of the client associated with the user pool.
  4818. ClientId *string `min:"1" type:"string" required:"true"`
  4819. // The password of the user you wish to register.
  4820. Password *string `min:"6" type:"string" required:"true"`
  4821. // A keyed-hash message authentication code (HMAC) calculated using the secret
  4822. // key of a user pool client and username plus the client ID in the message.
  4823. SecretHash *string `min:"1" type:"string"`
  4824. // An array of name-value pairs representing user attributes.
  4825. UserAttributes []*AttributeType `type:"list"`
  4826. // The user name of the user you wish to register.
  4827. Username *string `min:"1" type:"string" required:"true"`
  4828. // The validation data in the request to register a user.
  4829. ValidationData []*AttributeType `type:"list"`
  4830. }
  4831. // String returns the string representation
  4832. func (s SignUpInput) String() string {
  4833. return awsutil.Prettify(s)
  4834. }
  4835. // GoString returns the string representation
  4836. func (s SignUpInput) GoString() string {
  4837. return s.String()
  4838. }
  4839. // Validate inspects the fields of the type to determine if they are valid.
  4840. func (s *SignUpInput) Validate() error {
  4841. invalidParams := request.ErrInvalidParams{Context: "SignUpInput"}
  4842. if s.ClientId == nil {
  4843. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  4844. }
  4845. if s.ClientId != nil && len(*s.ClientId) < 1 {
  4846. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  4847. }
  4848. if s.Password == nil {
  4849. invalidParams.Add(request.NewErrParamRequired("Password"))
  4850. }
  4851. if s.Password != nil && len(*s.Password) < 6 {
  4852. invalidParams.Add(request.NewErrParamMinLen("Password", 6))
  4853. }
  4854. if s.SecretHash != nil && len(*s.SecretHash) < 1 {
  4855. invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1))
  4856. }
  4857. if s.Username == nil {
  4858. invalidParams.Add(request.NewErrParamRequired("Username"))
  4859. }
  4860. if s.Username != nil && len(*s.Username) < 1 {
  4861. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  4862. }
  4863. if s.UserAttributes != nil {
  4864. for i, v := range s.UserAttributes {
  4865. if v == nil {
  4866. continue
  4867. }
  4868. if err := v.Validate(); err != nil {
  4869. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams))
  4870. }
  4871. }
  4872. }
  4873. if s.ValidationData != nil {
  4874. for i, v := range s.ValidationData {
  4875. if v == nil {
  4876. continue
  4877. }
  4878. if err := v.Validate(); err != nil {
  4879. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationData", i), err.(request.ErrInvalidParams))
  4880. }
  4881. }
  4882. }
  4883. if invalidParams.Len() > 0 {
  4884. return invalidParams
  4885. }
  4886. return nil
  4887. }
  4888. // The response from the server for a registration request.
  4889. type SignUpOutput struct {
  4890. _ struct{} `type:"structure"`
  4891. // The type of code delivery details being returned from the server.
  4892. CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"`
  4893. // A response from the server indicating that a user registration has been confirmed.
  4894. UserConfirmed *bool `type:"boolean"`
  4895. }
  4896. // String returns the string representation
  4897. func (s SignUpOutput) String() string {
  4898. return awsutil.Prettify(s)
  4899. }
  4900. // GoString returns the string representation
  4901. func (s SignUpOutput) GoString() string {
  4902. return s.String()
  4903. }
  4904. // The SMS configuratoin type.
  4905. type SmsConfigurationType struct {
  4906. _ struct{} `type:"structure"`
  4907. // The external ID.
  4908. ExternalId *string `type:"string"`
  4909. // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
  4910. // (SNS) caller.
  4911. SnsCallerArn *string `min:"20" type:"string"`
  4912. }
  4913. // String returns the string representation
  4914. func (s SmsConfigurationType) String() string {
  4915. return awsutil.Prettify(s)
  4916. }
  4917. // GoString returns the string representation
  4918. func (s SmsConfigurationType) GoString() string {
  4919. return s.String()
  4920. }
  4921. // Validate inspects the fields of the type to determine if they are valid.
  4922. func (s *SmsConfigurationType) Validate() error {
  4923. invalidParams := request.ErrInvalidParams{Context: "SmsConfigurationType"}
  4924. if s.SnsCallerArn != nil && len(*s.SnsCallerArn) < 20 {
  4925. invalidParams.Add(request.NewErrParamMinLen("SnsCallerArn", 20))
  4926. }
  4927. if invalidParams.Len() > 0 {
  4928. return invalidParams
  4929. }
  4930. return nil
  4931. }
  4932. // The type of constraints associated with an attribute of the string type.
  4933. type StringAttributeConstraintsType struct {
  4934. _ struct{} `type:"structure"`
  4935. // The maximum length of an attribute value of the string type.
  4936. MaxLength *string `type:"string"`
  4937. // The minimum length of an attribute value of the string type.
  4938. MinLength *string `type:"string"`
  4939. }
  4940. // String returns the string representation
  4941. func (s StringAttributeConstraintsType) String() string {
  4942. return awsutil.Prettify(s)
  4943. }
  4944. // GoString returns the string representation
  4945. func (s StringAttributeConstraintsType) GoString() string {
  4946. return s.String()
  4947. }
  4948. // Represents the request to update the device status.
  4949. type UpdateDeviceStatusInput struct {
  4950. _ struct{} `type:"structure"`
  4951. // The access token.
  4952. AccessToken *string `type:"string" required:"true"`
  4953. // The device key.
  4954. DeviceKey *string `min:"1" type:"string" required:"true"`
  4955. // The status of whether a device is remembered.
  4956. DeviceRememberedStatus *string `type:"string" enum:"DeviceRememberedStatusType"`
  4957. }
  4958. // String returns the string representation
  4959. func (s UpdateDeviceStatusInput) String() string {
  4960. return awsutil.Prettify(s)
  4961. }
  4962. // GoString returns the string representation
  4963. func (s UpdateDeviceStatusInput) GoString() string {
  4964. return s.String()
  4965. }
  4966. // Validate inspects the fields of the type to determine if they are valid.
  4967. func (s *UpdateDeviceStatusInput) Validate() error {
  4968. invalidParams := request.ErrInvalidParams{Context: "UpdateDeviceStatusInput"}
  4969. if s.AccessToken == nil {
  4970. invalidParams.Add(request.NewErrParamRequired("AccessToken"))
  4971. }
  4972. if s.DeviceKey == nil {
  4973. invalidParams.Add(request.NewErrParamRequired("DeviceKey"))
  4974. }
  4975. if s.DeviceKey != nil && len(*s.DeviceKey) < 1 {
  4976. invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1))
  4977. }
  4978. if invalidParams.Len() > 0 {
  4979. return invalidParams
  4980. }
  4981. return nil
  4982. }
  4983. // The response to the request to update the device status.
  4984. type UpdateDeviceStatusOutput struct {
  4985. _ struct{} `type:"structure"`
  4986. }
  4987. // String returns the string representation
  4988. func (s UpdateDeviceStatusOutput) String() string {
  4989. return awsutil.Prettify(s)
  4990. }
  4991. // GoString returns the string representation
  4992. func (s UpdateDeviceStatusOutput) GoString() string {
  4993. return s.String()
  4994. }
  4995. // Represents the request to update user attributes.
  4996. type UpdateUserAttributesInput struct {
  4997. _ struct{} `type:"structure"`
  4998. // The access token for the request to update user attributes.
  4999. AccessToken *string `type:"string"`
  5000. // An array of name-value pairs representing user attributes.
  5001. UserAttributes []*AttributeType `type:"list" required:"true"`
  5002. }
  5003. // String returns the string representation
  5004. func (s UpdateUserAttributesInput) String() string {
  5005. return awsutil.Prettify(s)
  5006. }
  5007. // GoString returns the string representation
  5008. func (s UpdateUserAttributesInput) GoString() string {
  5009. return s.String()
  5010. }
  5011. // Validate inspects the fields of the type to determine if they are valid.
  5012. func (s *UpdateUserAttributesInput) Validate() error {
  5013. invalidParams := request.ErrInvalidParams{Context: "UpdateUserAttributesInput"}
  5014. if s.UserAttributes == nil {
  5015. invalidParams.Add(request.NewErrParamRequired("UserAttributes"))
  5016. }
  5017. if s.UserAttributes != nil {
  5018. for i, v := range s.UserAttributes {
  5019. if v == nil {
  5020. continue
  5021. }
  5022. if err := v.Validate(); err != nil {
  5023. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams))
  5024. }
  5025. }
  5026. }
  5027. if invalidParams.Len() > 0 {
  5028. return invalidParams
  5029. }
  5030. return nil
  5031. }
  5032. // Represents the response from the server for the request to update user attributes.
  5033. type UpdateUserAttributesOutput struct {
  5034. _ struct{} `type:"structure"`
  5035. // The code delivery details list from the server for the request to update
  5036. // user attributes.
  5037. CodeDeliveryDetailsList []*CodeDeliveryDetailsType `type:"list"`
  5038. }
  5039. // String returns the string representation
  5040. func (s UpdateUserAttributesOutput) String() string {
  5041. return awsutil.Prettify(s)
  5042. }
  5043. // GoString returns the string representation
  5044. func (s UpdateUserAttributesOutput) GoString() string {
  5045. return s.String()
  5046. }
  5047. // Represents the request to update the user pool client.
  5048. type UpdateUserPoolClientInput struct {
  5049. _ struct{} `type:"structure"`
  5050. // The ID of the client associated with the user pool.
  5051. ClientId *string `min:"1" type:"string" required:"true"`
  5052. // The client name from the update user pool client request.
  5053. ClientName *string `min:"1" type:"string"`
  5054. // Explicit authentication flows.
  5055. ExplicitAuthFlows []*string `type:"list"`
  5056. // The read-only attributes of the user pool.
  5057. ReadAttributes []*string `type:"list"`
  5058. // The validity of the refresh token.
  5059. RefreshTokenValidity *int64 `type:"integer"`
  5060. // The user pool ID for the user pool where you want to update the user pool
  5061. // client.
  5062. UserPoolId *string `min:"1" type:"string" required:"true"`
  5063. // The writeable attributes of the user pool.
  5064. WriteAttributes []*string `type:"list"`
  5065. }
  5066. // String returns the string representation
  5067. func (s UpdateUserPoolClientInput) String() string {
  5068. return awsutil.Prettify(s)
  5069. }
  5070. // GoString returns the string representation
  5071. func (s UpdateUserPoolClientInput) GoString() string {
  5072. return s.String()
  5073. }
  5074. // Validate inspects the fields of the type to determine if they are valid.
  5075. func (s *UpdateUserPoolClientInput) Validate() error {
  5076. invalidParams := request.ErrInvalidParams{Context: "UpdateUserPoolClientInput"}
  5077. if s.ClientId == nil {
  5078. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  5079. }
  5080. if s.ClientId != nil && len(*s.ClientId) < 1 {
  5081. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  5082. }
  5083. if s.ClientName != nil && len(*s.ClientName) < 1 {
  5084. invalidParams.Add(request.NewErrParamMinLen("ClientName", 1))
  5085. }
  5086. if s.UserPoolId == nil {
  5087. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  5088. }
  5089. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  5090. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  5091. }
  5092. if invalidParams.Len() > 0 {
  5093. return invalidParams
  5094. }
  5095. return nil
  5096. }
  5097. // Represents the response from the server to the request to update the user
  5098. // pool client.
  5099. type UpdateUserPoolClientOutput struct {
  5100. _ struct{} `type:"structure"`
  5101. // The user pool client value from the response from the server when an update
  5102. // user pool client request is made.
  5103. UserPoolClient *UserPoolClientType `type:"structure"`
  5104. }
  5105. // String returns the string representation
  5106. func (s UpdateUserPoolClientOutput) String() string {
  5107. return awsutil.Prettify(s)
  5108. }
  5109. // GoString returns the string representation
  5110. func (s UpdateUserPoolClientOutput) GoString() string {
  5111. return s.String()
  5112. }
  5113. // Represents the request to update the user pool.
  5114. type UpdateUserPoolInput struct {
  5115. _ struct{} `type:"structure"`
  5116. // The attributes that are automatically verified when the Amazon Cognito service
  5117. // makes a request to update user pools.
  5118. AutoVerifiedAttributes []*string `type:"list"`
  5119. // Device configuration.
  5120. DeviceConfiguration *DeviceConfigurationType `type:"structure"`
  5121. // Email configuration.
  5122. EmailConfiguration *EmailConfigurationType `type:"structure"`
  5123. // The contents of the email verification message.
  5124. EmailVerificationMessage *string `min:"6" type:"string"`
  5125. // The subject of the email verfication message
  5126. EmailVerificationSubject *string `min:"1" type:"string"`
  5127. // The AWS Lambda configuration information from the request to update the user
  5128. // pool.
  5129. LambdaConfig *LambdaConfigType `type:"structure"`
  5130. // Can be one of the following values:
  5131. //
  5132. // OFF - MFA tokens are not required and cannot be specified during user registration.
  5133. // ON - MFA tokens are required for all user registrations. You can only specify
  5134. // required when you are initially creating a user pool. OPTIONAL - Users have
  5135. // the option when registering to create an MFA token.
  5136. MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"`
  5137. // A container with the policies you wish to update in a user pool.
  5138. Policies *UserPoolPolicyType `type:"structure"`
  5139. // The contents of the SMS authentication message.
  5140. SmsAuthenticationMessage *string `min:"6" type:"string"`
  5141. // SMS configuration.
  5142. SmsConfiguration *SmsConfigurationType `type:"structure"`
  5143. // A container with information about the SMS verification message.
  5144. SmsVerificationMessage *string `min:"6" type:"string"`
  5145. // The user pool ID for the user pool you want to update.
  5146. UserPoolId *string `min:"1" type:"string" required:"true"`
  5147. }
  5148. // String returns the string representation
  5149. func (s UpdateUserPoolInput) String() string {
  5150. return awsutil.Prettify(s)
  5151. }
  5152. // GoString returns the string representation
  5153. func (s UpdateUserPoolInput) GoString() string {
  5154. return s.String()
  5155. }
  5156. // Validate inspects the fields of the type to determine if they are valid.
  5157. func (s *UpdateUserPoolInput) Validate() error {
  5158. invalidParams := request.ErrInvalidParams{Context: "UpdateUserPoolInput"}
  5159. if s.EmailVerificationMessage != nil && len(*s.EmailVerificationMessage) < 6 {
  5160. invalidParams.Add(request.NewErrParamMinLen("EmailVerificationMessage", 6))
  5161. }
  5162. if s.EmailVerificationSubject != nil && len(*s.EmailVerificationSubject) < 1 {
  5163. invalidParams.Add(request.NewErrParamMinLen("EmailVerificationSubject", 1))
  5164. }
  5165. if s.SmsAuthenticationMessage != nil && len(*s.SmsAuthenticationMessage) < 6 {
  5166. invalidParams.Add(request.NewErrParamMinLen("SmsAuthenticationMessage", 6))
  5167. }
  5168. if s.SmsVerificationMessage != nil && len(*s.SmsVerificationMessage) < 6 {
  5169. invalidParams.Add(request.NewErrParamMinLen("SmsVerificationMessage", 6))
  5170. }
  5171. if s.UserPoolId == nil {
  5172. invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
  5173. }
  5174. if s.UserPoolId != nil && len(*s.UserPoolId) < 1 {
  5175. invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1))
  5176. }
  5177. if s.EmailConfiguration != nil {
  5178. if err := s.EmailConfiguration.Validate(); err != nil {
  5179. invalidParams.AddNested("EmailConfiguration", err.(request.ErrInvalidParams))
  5180. }
  5181. }
  5182. if s.LambdaConfig != nil {
  5183. if err := s.LambdaConfig.Validate(); err != nil {
  5184. invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams))
  5185. }
  5186. }
  5187. if s.Policies != nil {
  5188. if err := s.Policies.Validate(); err != nil {
  5189. invalidParams.AddNested("Policies", err.(request.ErrInvalidParams))
  5190. }
  5191. }
  5192. if s.SmsConfiguration != nil {
  5193. if err := s.SmsConfiguration.Validate(); err != nil {
  5194. invalidParams.AddNested("SmsConfiguration", err.(request.ErrInvalidParams))
  5195. }
  5196. }
  5197. if invalidParams.Len() > 0 {
  5198. return invalidParams
  5199. }
  5200. return nil
  5201. }
  5202. // Represents the response from the server when you make a request to update
  5203. // the user pool.
  5204. type UpdateUserPoolOutput struct {
  5205. _ struct{} `type:"structure"`
  5206. }
  5207. // String returns the string representation
  5208. func (s UpdateUserPoolOutput) String() string {
  5209. return awsutil.Prettify(s)
  5210. }
  5211. // GoString returns the string representation
  5212. func (s UpdateUserPoolOutput) GoString() string {
  5213. return s.String()
  5214. }
  5215. // The description of the user poool client.
  5216. type UserPoolClientDescription struct {
  5217. _ struct{} `type:"structure"`
  5218. // The ID of the client associated with the user pool.
  5219. ClientId *string `min:"1" type:"string"`
  5220. // The client name from the user pool client description.
  5221. ClientName *string `min:"1" type:"string"`
  5222. // The user pool ID for the user pool where you want to describe the user pool
  5223. // client.
  5224. UserPoolId *string `min:"1" type:"string"`
  5225. }
  5226. // String returns the string representation
  5227. func (s UserPoolClientDescription) String() string {
  5228. return awsutil.Prettify(s)
  5229. }
  5230. // GoString returns the string representation
  5231. func (s UserPoolClientDescription) GoString() string {
  5232. return s.String()
  5233. }
  5234. // A user pool of the client type.
  5235. type UserPoolClientType struct {
  5236. _ struct{} `type:"structure"`
  5237. // The ID of the client associated with the user pool.
  5238. ClientId *string `min:"1" type:"string"`
  5239. // The client name from the user pool request of the client type.
  5240. ClientName *string `min:"1" type:"string"`
  5241. // The client secret from the user pool request of the client type.
  5242. ClientSecret *string `min:"1" type:"string"`
  5243. // The creation date from the user pool request of the client type.
  5244. CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  5245. // The explicit authentication flows.
  5246. ExplicitAuthFlows []*string `type:"list"`
  5247. // The last modified date from the user pool request of the client type.
  5248. LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  5249. // The Read-only attributes.
  5250. ReadAttributes []*string `type:"list"`
  5251. // The validity of the refresh token.
  5252. RefreshTokenValidity *int64 `type:"integer"`
  5253. // The user pool ID for the user pool client.
  5254. UserPoolId *string `min:"1" type:"string"`
  5255. // The writeable attributes.
  5256. WriteAttributes []*string `type:"list"`
  5257. }
  5258. // String returns the string representation
  5259. func (s UserPoolClientType) String() string {
  5260. return awsutil.Prettify(s)
  5261. }
  5262. // GoString returns the string representation
  5263. func (s UserPoolClientType) GoString() string {
  5264. return s.String()
  5265. }
  5266. // A user pool description.
  5267. type UserPoolDescriptionType struct {
  5268. _ struct{} `type:"structure"`
  5269. // The creation date in a user pool description.
  5270. CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  5271. // The ID in a user pool description.
  5272. Id *string `min:"1" type:"string"`
  5273. // The AWS Lambda configuration information in a user pool description.
  5274. LambdaConfig *LambdaConfigType `type:"structure"`
  5275. // The last modified date in a user pool description.
  5276. LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  5277. // The name in a user pool description.
  5278. Name *string `min:"1" type:"string"`
  5279. // The user pool status in a user pool description.
  5280. Status *string `type:"string" enum:"StatusType"`
  5281. }
  5282. // String returns the string representation
  5283. func (s UserPoolDescriptionType) String() string {
  5284. return awsutil.Prettify(s)
  5285. }
  5286. // GoString returns the string representation
  5287. func (s UserPoolDescriptionType) GoString() string {
  5288. return s.String()
  5289. }
  5290. // The type of policy in a user pool.
  5291. type UserPoolPolicyType struct {
  5292. _ struct{} `type:"structure"`
  5293. // A container with information about the user pool password policy.
  5294. PasswordPolicy *PasswordPolicyType `type:"structure"`
  5295. }
  5296. // String returns the string representation
  5297. func (s UserPoolPolicyType) String() string {
  5298. return awsutil.Prettify(s)
  5299. }
  5300. // GoString returns the string representation
  5301. func (s UserPoolPolicyType) GoString() string {
  5302. return s.String()
  5303. }
  5304. // Validate inspects the fields of the type to determine if they are valid.
  5305. func (s *UserPoolPolicyType) Validate() error {
  5306. invalidParams := request.ErrInvalidParams{Context: "UserPoolPolicyType"}
  5307. if s.PasswordPolicy != nil {
  5308. if err := s.PasswordPolicy.Validate(); err != nil {
  5309. invalidParams.AddNested("PasswordPolicy", err.(request.ErrInvalidParams))
  5310. }
  5311. }
  5312. if invalidParams.Len() > 0 {
  5313. return invalidParams
  5314. }
  5315. return nil
  5316. }
  5317. // A container with information about the user pool type.
  5318. type UserPoolType struct {
  5319. _ struct{} `type:"structure"`
  5320. // Specifies the attributes that are aliased in a user pool.
  5321. AliasAttributes []*string `type:"list"`
  5322. // Specifies the attributes that are auto-verified in a user pool.
  5323. AutoVerifiedAttributes []*string `type:"list"`
  5324. // The creation date of a user pool.
  5325. CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  5326. // The device configuration.
  5327. DeviceConfiguration *DeviceConfigurationType `type:"structure"`
  5328. // The email configuration.
  5329. EmailConfiguration *EmailConfigurationType `type:"structure"`
  5330. // The reason why the email configuration cannot send the messages to your users.
  5331. EmailConfigurationFailure *string `type:"string"`
  5332. // The contents of the email verification message.
  5333. EmailVerificationMessage *string `min:"6" type:"string"`
  5334. // The subject of the email verification message.
  5335. EmailVerificationSubject *string `min:"1" type:"string"`
  5336. // A number estimating the size of the user pool.
  5337. EstimatedNumberOfUsers *int64 `type:"integer"`
  5338. // The ID of the user pool.
  5339. Id *string `min:"1" type:"string"`
  5340. // A container describing the AWS Lambda triggers associated with a user pool.
  5341. LambdaConfig *LambdaConfigType `type:"structure"`
  5342. // The last modified date of a user pool.
  5343. LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  5344. // Can be one of the following values:
  5345. //
  5346. // OFF - MFA tokens are not required and cannot be specified during user registration.
  5347. // ON - MFA tokens are required for all user registrations. You can only specify
  5348. // required when you are initially creating a user pool. OPTIONAL - Users have
  5349. // the option when registering to create an MFA token.
  5350. MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"`
  5351. // The name of the user pool.
  5352. Name *string `min:"1" type:"string"`
  5353. // A container describing the policies associated with a user pool.
  5354. Policies *UserPoolPolicyType `type:"structure"`
  5355. // A container with the schema attributes of a user pool.
  5356. SchemaAttributes []*SchemaAttributeType `min:"1" type:"list"`
  5357. // The contents of the SMS authentication message.
  5358. SmsAuthenticationMessage *string `min:"6" type:"string"`
  5359. // The SMS configuration.
  5360. SmsConfiguration *SmsConfigurationType `type:"structure"`
  5361. // The reason why the SMS configuration cannot send the message(s) to your users.
  5362. SmsConfigurationFailure *string `type:"string"`
  5363. // The contents of the SMS verification message.
  5364. SmsVerificationMessage *string `min:"6" type:"string"`
  5365. // The status of a user pool.
  5366. Status *string `type:"string" enum:"StatusType"`
  5367. }
  5368. // String returns the string representation
  5369. func (s UserPoolType) String() string {
  5370. return awsutil.Prettify(s)
  5371. }
  5372. // GoString returns the string representation
  5373. func (s UserPoolType) GoString() string {
  5374. return s.String()
  5375. }
  5376. // The user type.
  5377. type UserType struct {
  5378. _ struct{} `type:"structure"`
  5379. // A container with information about the user type attributes.
  5380. Attributes []*AttributeType `type:"list"`
  5381. // Specifies whether the user is enabled.
  5382. Enabled *bool `type:"boolean"`
  5383. // The creation date of the user.
  5384. UserCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  5385. // The last modified date of the user.
  5386. UserLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  5387. // The user status. Can be one of the following:
  5388. //
  5389. // UNCONFIRMED - User has been created but not confirmed. CONFIRMED - User
  5390. // has been confirmed. ARCHIVED - User is no longer active. COMPROMISED - User
  5391. // is disabled due to a potential security threat. UNKNOWN - User status is
  5392. // not known.
  5393. UserStatus *string `type:"string" enum:"UserStatusType"`
  5394. // The user name of the user you wish to describe.
  5395. Username *string `min:"1" type:"string"`
  5396. }
  5397. // String returns the string representation
  5398. func (s UserType) String() string {
  5399. return awsutil.Prettify(s)
  5400. }
  5401. // GoString returns the string representation
  5402. func (s UserType) GoString() string {
  5403. return s.String()
  5404. }
  5405. // Represents the request to verify user attributes.
  5406. type VerifyUserAttributeInput struct {
  5407. _ struct{} `type:"structure"`
  5408. // Represents the access token of the request to verify user attributes.
  5409. AccessToken *string `type:"string"`
  5410. // The attribute name in the request to verify user attributes.
  5411. AttributeName *string `min:"1" type:"string" required:"true"`
  5412. // The verification code in the request to verify user attributes.
  5413. Code *string `min:"1" type:"string" required:"true"`
  5414. }
  5415. // String returns the string representation
  5416. func (s VerifyUserAttributeInput) String() string {
  5417. return awsutil.Prettify(s)
  5418. }
  5419. // GoString returns the string representation
  5420. func (s VerifyUserAttributeInput) GoString() string {
  5421. return s.String()
  5422. }
  5423. // Validate inspects the fields of the type to determine if they are valid.
  5424. func (s *VerifyUserAttributeInput) Validate() error {
  5425. invalidParams := request.ErrInvalidParams{Context: "VerifyUserAttributeInput"}
  5426. if s.AttributeName == nil {
  5427. invalidParams.Add(request.NewErrParamRequired("AttributeName"))
  5428. }
  5429. if s.AttributeName != nil && len(*s.AttributeName) < 1 {
  5430. invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1))
  5431. }
  5432. if s.Code == nil {
  5433. invalidParams.Add(request.NewErrParamRequired("Code"))
  5434. }
  5435. if s.Code != nil && len(*s.Code) < 1 {
  5436. invalidParams.Add(request.NewErrParamMinLen("Code", 1))
  5437. }
  5438. if invalidParams.Len() > 0 {
  5439. return invalidParams
  5440. }
  5441. return nil
  5442. }
  5443. // A container representing the response from the server from the request to
  5444. // verify user attributes.
  5445. type VerifyUserAttributeOutput struct {
  5446. _ struct{} `type:"structure"`
  5447. }
  5448. // String returns the string representation
  5449. func (s VerifyUserAttributeOutput) String() string {
  5450. return awsutil.Prettify(s)
  5451. }
  5452. // GoString returns the string representation
  5453. func (s VerifyUserAttributeOutput) GoString() string {
  5454. return s.String()
  5455. }
  5456. const (
  5457. // @enum AliasAttributeType
  5458. AliasAttributeTypePhoneNumber = "phone_number"
  5459. // @enum AliasAttributeType
  5460. AliasAttributeTypeEmail = "email"
  5461. // @enum AliasAttributeType
  5462. AliasAttributeTypePreferredUsername = "preferred_username"
  5463. )
  5464. const (
  5465. // @enum AttributeDataType
  5466. AttributeDataTypeString = "String"
  5467. // @enum AttributeDataType
  5468. AttributeDataTypeNumber = "Number"
  5469. // @enum AttributeDataType
  5470. AttributeDataTypeDateTime = "DateTime"
  5471. // @enum AttributeDataType
  5472. AttributeDataTypeBoolean = "Boolean"
  5473. )
  5474. const (
  5475. // @enum AuthFlowType
  5476. AuthFlowTypeUserSrpAuth = "USER_SRP_AUTH"
  5477. // @enum AuthFlowType
  5478. AuthFlowTypeRefreshTokenAuth = "REFRESH_TOKEN_AUTH"
  5479. // @enum AuthFlowType
  5480. AuthFlowTypeCustomAuth = "CUSTOM_AUTH"
  5481. // @enum AuthFlowType
  5482. AuthFlowTypeAdminNoSrpAuth = "ADMIN_NO_SRP_AUTH"
  5483. )
  5484. const (
  5485. // @enum ChallengeNameType
  5486. ChallengeNameTypeSmsMfa = "SMS_MFA"
  5487. // @enum ChallengeNameType
  5488. ChallengeNameTypePasswordVerifier = "PASSWORD_VERIFIER"
  5489. // @enum ChallengeNameType
  5490. ChallengeNameTypeCustomChallenge = "CUSTOM_CHALLENGE"
  5491. // @enum ChallengeNameType
  5492. ChallengeNameTypeDeviceSrpAuth = "DEVICE_SRP_AUTH"
  5493. // @enum ChallengeNameType
  5494. ChallengeNameTypeDevicePasswordVerifier = "DEVICE_PASSWORD_VERIFIER"
  5495. // @enum ChallengeNameType
  5496. ChallengeNameTypeAdminNoSrpAuth = "ADMIN_NO_SRP_AUTH"
  5497. )
  5498. const (
  5499. // @enum DeliveryMediumType
  5500. DeliveryMediumTypeSms = "SMS"
  5501. // @enum DeliveryMediumType
  5502. DeliveryMediumTypeEmail = "EMAIL"
  5503. )
  5504. const (
  5505. // @enum DeviceRememberedStatusType
  5506. DeviceRememberedStatusTypeRemembered = "remembered"
  5507. // @enum DeviceRememberedStatusType
  5508. DeviceRememberedStatusTypeNotRemembered = "not_remembered"
  5509. )
  5510. const (
  5511. // @enum ExplicitAuthFlowsType
  5512. ExplicitAuthFlowsTypeAdminNoSrpAuth = "ADMIN_NO_SRP_AUTH"
  5513. )
  5514. const (
  5515. // @enum StatusType
  5516. StatusTypeEnabled = "Enabled"
  5517. // @enum StatusType
  5518. StatusTypeDisabled = "Disabled"
  5519. )
  5520. const (
  5521. // @enum UserPoolMfaType
  5522. UserPoolMfaTypeOff = "OFF"
  5523. // @enum UserPoolMfaType
  5524. UserPoolMfaTypeOn = "ON"
  5525. // @enum UserPoolMfaType
  5526. UserPoolMfaTypeOptional = "OPTIONAL"
  5527. )
  5528. const (
  5529. // @enum UserStatusType
  5530. UserStatusTypeUnconfirmed = "UNCONFIRMED"
  5531. // @enum UserStatusType
  5532. UserStatusTypeConfirmed = "CONFIRMED"
  5533. // @enum UserStatusType
  5534. UserStatusTypeArchived = "ARCHIVED"
  5535. // @enum UserStatusType
  5536. UserStatusTypeCompromised = "COMPROMISED"
  5537. // @enum UserStatusType
  5538. UserStatusTypeUnknown = "UNKNOWN"
  5539. // @enum UserStatusType
  5540. UserStatusTypeResetRequired = "RESET_REQUIRED"
  5541. )
  5542. const (
  5543. // @enum VerifiedAttributeType
  5544. VerifiedAttributeTypePhoneNumber = "phone_number"
  5545. // @enum VerifiedAttributeType
  5546. VerifiedAttributeTypeEmail = "email"
  5547. )