12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157(* generated by: awso-codegen generate-all --botocore-data vendor/botocore/botocore/data -o aws --runtime-dir lib/runtime/awso --cli-dir awso-cli *)openAwsoopen!Import[@@@warning"-32"]letservice=Service.snsletapiVersion="2010-03-31"letendpointPrefix="sns"letserviceFullName="Amazon Simple Notification Service"letsignatureVersion="v4"letprotocol="query"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="Amazon SNS"letxmlNamespace="http://sns.amazonaws.com/doc/2010-03-31/"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])moduleBinary=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleMessageAttributeValue=structtypenonrect={dataType:String_.t[@ocaml.doc"Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types."];stringValue:String_.toption[@ocaml.doc"Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters."];binaryValue:Binary.toption[@ocaml.doc"Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images."]}letcontext_="MessageAttributeValue"letmake?stringValue=fun?binaryValue->fun~dataType->fun()->{stringValue;binaryValue;dataType}letto_valuex=structure_to_value[("DataType",(Some(String_.to_valuex.dataType)));("StringValue",(Option.mapx.stringValue~f:String_.to_value));("BinaryValue",(Option.mapx.binaryValue~f:Binary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbinaryValue=(Option.map~f:Binary.of_xml)(Xml.childxml_arg0"BinaryValue")inletstringValue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StringValue")inletdataType=String_.of_xml(Xml.child_exn~context:context_xml_arg0"DataType")inmake?binaryValue?stringValue~dataType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbinaryValue=field_mapjson__"BinaryValue"Binary.of_jsoninletstringValue=field_mapjson__"StringValue"String_.of_jsoninletdataType=field_map_exnjson__"DataType"String_.of_jsoninmake?binaryValue?stringValue~dataType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The user-specified message attribute value. For string data types, the value attribute has the same restrictions on the content as the message body. For more information, see Publish. Name, type, and value must not be empty or null. In addition, the message body should not be empty or null. All parts of the message attribute, including name, type, and value, are included in the message size restriction, which is currently 256 KB (262,144 bytes). For more information, see Amazon SNS message attributes and Publishing to a mobile phone in the Amazon SNS Developer Guide."]moduleNumberCapability=structtypenonrect=|SMS|MMS|VOICE|Non_static_idofstringletmakei=iletto_string=function|SMS->"SMS"|MMS->"MMS"|VOICE->"VOICE"|Non_static_ids->sletof_string=function|"SMS"->SMS|"MMS"->MMS|"VOICE"->VOICE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration NumberCapability"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"NumberCapability"j)letto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleMessageId=structtypenonrect=stringletcontext_="messageId"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"messageId"jletto_json=simple_to_jsonto_valueendmoduleMessageAttributeMap=structtypenonrect=(String_.t*MessageAttributeValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types String MessageAttributeValue"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(MessageAttributeValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:MessageAttributeValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMessage=structtypenonrect=stringletcontext_="message"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"message"jletto_json=simple_to_jsonto_valueendmoduleMessageStructure=structtypenonrect=stringletcontext_="messageStructure"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"messageStructure"jletto_json=simple_to_jsonto_valueendmoduleSubject=structtypenonrect=stringletcontext_="subject"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"subject"jletto_json=simple_to_jsonto_valueendmoduleTopicARN=structtypenonrect=stringletcontext_="topicARN"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"topicARN"jletto_json=simple_to_jsonto_valueendmoduleEndpoint__lc1=structtypenonrect=stringletcontext_="Endpoint__lc1"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Endpoint__lc1"jletto_json=simple_to_jsonto_valueendmoduleAccount=structtypenonrect=stringletcontext_="account"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"account"jletto_json=simple_to_jsonto_valueendmoduleProtocol=structtypenonrect=stringletcontext_="protocol"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"protocol"jletto_json=simple_to_jsonto_valueendmoduleSubscriptionARN=structtypenonrect=stringletcontext_="subscriptionARN"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"subscriptionARN"jletto_json=simple_to_jsonto_valueendmodulePhoneNumberString=structtypenonrect=stringletcontext_="PhoneNumberString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:20)>>=(fun()->check_patterni~pattern:"^(\\+[0-9]{8,}|[0-9]{0,9})$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PhoneNumberString"jletto_json=simple_to_jsonto_valueendmoduleSMSSandboxPhoneNumberVerificationStatus=structtypenonrect=|Pending|Verified|Non_static_idofstringletmakei=iletto_string=function|Pending->"Pending"|Verified->"Verified"|Non_static_ids->sletof_string=function|"Pending"->Pending|"Verified"->Verified|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SMSSandboxPhoneNumberVerificationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SMSSandboxPhoneNumberVerificationStatus"j)letto_json=simple_to_jsonto_valueendmoduleMapStringToString=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIso2CountryCode=structtypenonrect=string[@@ocaml.doc"The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. For example, GB or US."]letcontext_="Iso2CountryCode"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2)>>=(fun()->check_patterni~pattern:"^[A-Za-z]{2}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Iso2CountryCode"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. For example, GB or US."]moduleNumberCapabilityList=structtypenonrect=NumberCapability.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NumberCapability.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:NumberCapability.of_xml)letof_jsonj=list_of_json~kind:"NumberCapabilityList"~of_json:NumberCapability.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePhoneNumber=structtypenonrect=stringletcontext_="PhoneNumber"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PhoneNumber"jletto_json=simple_to_jsonto_valueendmoduleRouteType=structtypenonrect=|Transactional|Promotional|Premium|Non_static_idofstringletmakei=iletto_string=function|Transactional->"Transactional"|Promotional->"Promotional"|Premium->"Premium"|Non_static_ids->sletof_string=function|"Transactional"->Transactional|"Promotional"->Promotional|"Premium"->Premium|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration RouteType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RouteType"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleString__lc1=structtypenonrect=stringletcontext_="String__lc1"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String__lc1"jletto_json=simple_to_jsonto_valueendmoduleTag=structtypenonrect={key:TagKey.t[@ocaml.doc"The required key portion of the tag."];value:TagValue.t[@ocaml.doc"The optional value portion of the tag."]}letcontext_="Tag"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Some(TagValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=TagValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake~value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The list of tags to be added to the specified topic."]moduleAttributeName=structtypenonrect=stringletcontext_="attributeName"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"attributeName"jletto_json=simple_to_jsonto_valueendmoduleAttributeValue=structtypenonrect=stringletcontext_="attributeValue"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"attributeValue"jletto_json=simple_to_jsonto_valueendmoduleBatchResultErrorEntry=structtypenonrect={id:String_.toption[@ocaml.doc"The Id of an entry in a batch request"];code:String_.toption[@ocaml.doc"An error code representing why the action failed on this entry."];message:String_.toption[@ocaml.doc"A message explaining why the action failed on this entry."];senderFault:Boolean.toption[@ocaml.doc"Specifies whether the error happened due to the caller of the batch API action."]}letmake?id=fun?code->fun?message->fun?senderFault->fun()->{id;code;message;senderFault}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:String_.to_value));("Code",(Option.mapx.code~f:String_.to_value));("Message",(Option.mapx.message~f:String_.to_value));("SenderFault",(Option.mapx.senderFault~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsenderFault=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"SenderFault")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Code")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Id")inmake?senderFault?message?code?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsenderFault=field_mapjson__"SenderFault"Boolean.of_jsoninletmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"String_.of_jsoninletid=field_mapjson__"Id"String_.of_jsoninmake?senderFault?message?code?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gives a detailed description of failed messages in the batch."]modulePublishBatchResultEntry=structtypenonrect={id:String_.toption[@ocaml.doc"The Id of an entry in a batch request."];messageId:MessageId.toption[@ocaml.doc"An identifier for the message."];sequenceNumber:String_.toption[@ocaml.doc"This parameter applies only to FIFO (first-in-first-out) topics. The large, non-consecutive number that Amazon SNS assigns to each message. The length of SequenceNumber is 128 bits. SequenceNumber continues to increase for a particular MessageGroupId."]}letmake?id=fun?messageId->fun?sequenceNumber->fun()->{id;messageId;sequenceNumber}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:String_.to_value));("MessageId",(Option.mapx.messageId~f:MessageId.to_value));("SequenceNumber",(Option.mapx.sequenceNumber~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsequenceNumber=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SequenceNumber")inletmessageId=(Option.map~f:MessageId.of_xml)(Xml.childxml_arg0"MessageId")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Id")inmake?sequenceNumber?messageId?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"SequenceNumber"String_.of_jsoninletmessageId=field_mapjson__"MessageId"MessageId.of_jsoninletid=field_mapjson__"Id"String_.of_jsoninmake?sequenceNumber?messageId?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Encloses data related to a successful message in a batch request for topic."]modulePublishBatchRequestEntry=structtypenonrect={id:String_.t[@ocaml.doc"An identifier for the message in this batch. The Ids of a batch request must be unique within a request. This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_)."];message:Message.t[@ocaml.doc"The body of the message."];subject:Subject.toption[@ocaml.doc"The subject of the batch message."];messageStructure:MessageStructure.toption[@ocaml.doc"Set MessageStructure to json if you want to send a different message for each protocol. For example, using one publish action, you can send a short message to your SMS subscribers and a longer message to your email subscribers. If you set MessageStructure to json, the value of the Message parameter must: be a syntactically valid JSON object; and contain at least a top-level JSON key of \"default\" with a value that is a string. You can define other top-level keys that define the message you want to send to a specific transport protocol (for example, http)."];messageAttributes:MessageAttributeMap.toption[@ocaml.doc"Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SNS message attributes in the Amazon SNS Developer Guide."];messageDeduplicationId:String_.toption[@ocaml.doc"This parameter applies only to FIFO (first-in-first-out) topics. This parameter applies only to FIFO (first-in-first-out) topics. The MessageDeduplicationId can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?\\@\\[\\\\]^_`\\{|\\}~). Every message must have a unique MessageDeduplicationId, which is a token used for deduplication of sent messages within the 5 minute minimum deduplication interval. The scope of deduplication depends on the FifoThroughputScope attribute, when set to Topic the message deduplication scope is across the entire topic, when set to MessageGroup the message deduplication scope is within each individual message group. If a message with a particular MessageDeduplicationId is sent successfully, subsequent messages within the deduplication scope and interval, with the same MessageDeduplicationId, are accepted successfully but aren't delivered. Every message must have a unique MessageDeduplicationId. You may provide a MessageDeduplicationId explicitly. If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication for your topic, Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message). If you don't provide a MessageDeduplicationId and the topic doesn't have ContentBasedDeduplication set, the action fails with an error. If the topic has a ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one. When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication scope and interval are treated as duplicates and only one copy of the message is delivered. If you send one message with ContentBasedDeduplication enabled, and then another message with a MessageDeduplicationId that is the same as the one generated for the first MessageDeduplicationId, the two messages are treated as duplicates, within the deduplication scope and interval, and only one copy of the message is delivered. The MessageDeduplicationId is available to the consumer of the message (this can be useful for troubleshooting delivery issues). If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId after the deduplication interval, Amazon SNS can't detect duplicate messages. Amazon SNS continues to keep track of the message deduplication ID even after the message is received and deleted."];messageGroupId:String_.toption[@ocaml.doc"FIFO topics: The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single topic, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple consumers can process the topic, but the session data of each user is processed in a FIFO fashion. You must associate a non-empty MessageGroupId with a message. If you do not provide a MessageGroupId, the action fails. Standard topics: The MessageGroupId is optional and is forwarded only to Amazon SQS standard subscriptions to activate fair queues. The MessageGroupId is not used for, or sent to, any other endpoint types. The length of MessageGroupId is 128 characters. MessageGroupId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?\\@\\[\\\\]^_`\\{|\\}~)."]}letcontext_="PublishBatchRequestEntry"letmake?subject=fun?messageStructure->fun?messageAttributes->fun?messageDeduplicationId->fun?messageGroupId->fun~id->fun~message->fun()->{subject;messageStructure;messageAttributes;messageDeduplicationId;messageGroupId;id;message}letto_valuex=structure_to_value[("Id",(Some(String_.to_valuex.id)));("Message",(Some(Message.to_valuex.message)));("Subject",(Option.mapx.subject~f:Subject.to_value));("MessageStructure",(Option.mapx.messageStructure~f:MessageStructure.to_value));("MessageAttributes",(Option.mapx.messageAttributes~f:MessageAttributeMap.to_value));("MessageDeduplicationId",(Option.mapx.messageDeduplicationId~f:String_.to_value));("MessageGroupId",(Option.mapx.messageGroupId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessageGroupId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MessageGroupId")inletmessageDeduplicationId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MessageDeduplicationId")inletmessageAttributes=(Option.map~f:MessageAttributeMap.of_xml)(Xml.childxml_arg0"MessageAttributes")inletmessageStructure=(Option.map~f:MessageStructure.of_xml)(Xml.childxml_arg0"MessageStructure")inletsubject=(Option.map~f:Subject.of_xml)(Xml.childxml_arg0"Subject")inletmessage=Message.of_xml(Xml.child_exn~context:context_xml_arg0"Message")inletid=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake?messageGroupId?messageDeduplicationId?messageAttributes?messageStructure?subject~message~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageGroupId=field_mapjson__"MessageGroupId"String_.of_jsoninletmessageDeduplicationId=field_mapjson__"MessageDeduplicationId"String_.of_jsoninletmessageAttributes=field_mapjson__"MessageAttributes"MessageAttributeMap.of_jsoninletmessageStructure=field_mapjson__"MessageStructure"MessageStructure.of_jsoninletsubject=field_mapjson__"Subject"Subject.of_jsoninletmessage=field_map_exnjson__"Message"Message.of_jsoninletid=field_map_exnjson__"Id"String_.of_jsoninmake?messageGroupId?messageDeduplicationId?messageAttributes?messageStructure?subject~message~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the details of a single Amazon SNS message along with an Id that identifies a message within the batch."]moduleTopic=structtypenonrect={topicArn:TopicARN.toption[@ocaml.doc"The topic's ARN."]}letmake?topicArn=fun()->{topicArn}letto_valuex=structure_to_value[("TopicArn",(Option.mapx.topicArn~f:TopicARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettopicArn=(Option.map~f:TopicARN.of_xml)(Xml.childxml_arg0"TopicArn")inmake?topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopicArn=field_mapjson__"TopicArn"TopicARN.of_jsoninmake?topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a topic's attributes, use GetTopicAttributes."]moduleSubscription=structtypenonrect={subscriptionArn:SubscriptionARN.toption[@ocaml.doc"The subscription's ARN."];owner:Account.toption[@ocaml.doc"The subscription's owner."];protocol:Protocol.toption[@ocaml.doc"The subscription's protocol."];endpoint:Endpoint__lc1.toption[@ocaml.doc"The subscription's endpoint (format depends on the protocol)."];topicArn:TopicARN.toption[@ocaml.doc"The ARN of the subscription's topic."]}letmake?subscriptionArn=fun?owner->fun?protocol->fun?endpoint->fun?topicArn->fun()->{subscriptionArn;owner;protocol;endpoint;topicArn}letto_valuex=structure_to_value[("SubscriptionArn",(Option.mapx.subscriptionArn~f:SubscriptionARN.to_value));("Owner",(Option.mapx.owner~f:Account.to_value));("Protocol",(Option.mapx.protocol~f:Protocol.to_value));("Endpoint",(Option.mapx.endpoint~f:Endpoint__lc1.to_value));("TopicArn",(Option.mapx.topicArn~f:TopicARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettopicArn=(Option.map~f:TopicARN.of_xml)(Xml.childxml_arg0"TopicArn")inletendpoint=(Option.map~f:Endpoint__lc1.of_xml)(Xml.childxml_arg0"Endpoint")inletprotocol=(Option.map~f:Protocol.of_xml)(Xml.childxml_arg0"Protocol")inletowner=(Option.map~f:Account.of_xml)(Xml.childxml_arg0"Owner")inletsubscriptionArn=(Option.map~f:SubscriptionARN.of_xml)(Xml.childxml_arg0"SubscriptionArn")inmake?topicArn?endpoint?protocol?owner?subscriptionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopicArn=field_mapjson__"TopicArn"TopicARN.of_jsoninletendpoint=field_mapjson__"Endpoint"Endpoint__lc1.of_jsoninletprotocol=field_mapjson__"Protocol"Protocol.of_jsoninletowner=field_mapjson__"Owner"Account.of_jsoninletsubscriptionArn=field_mapjson__"SubscriptionArn"SubscriptionARN.of_jsoninmake?topicArn?endpoint?protocol?owner?subscriptionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A wrapper type for the attributes of an Amazon SNS subscription."]moduleSMSSandboxPhoneNumber=structtypenonrect={phoneNumber:PhoneNumberString.toption[@ocaml.doc"The destination phone number."];status:SMSSandboxPhoneNumberVerificationStatus.toption[@ocaml.doc"The destination phone number's verification status."]}letmake?phoneNumber=fun?status->fun()->{phoneNumber;status}letto_valuex=structure_to_value[("PhoneNumber",(Option.mapx.phoneNumber~f:PhoneNumberString.to_value));("Status",(Option.mapx.status~f:SMSSandboxPhoneNumberVerificationStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:SMSSandboxPhoneNumberVerificationStatus.of_xml)(Xml.childxml_arg0"Status")inletphoneNumber=(Option.map~f:PhoneNumberString.of_xml)(Xml.childxml_arg0"PhoneNumber")inmake?status?phoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"SMSSandboxPhoneNumberVerificationStatus.of_jsoninletphoneNumber=field_mapjson__"PhoneNumber"PhoneNumberString.of_jsoninmake?status?phoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A verified or pending destination phone number in the SMS sandbox. When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide."]modulePlatformApplication=structtypenonrect={platformApplicationArn:String_.toption[@ocaml.doc"PlatformApplicationArn for platform application object."];attributes:MapStringToString.toption[@ocaml.doc"Attributes for platform application object."]}letmake?platformApplicationArn=fun?attributes->fun()->{platformApplicationArn;attributes}letto_valuex=structure_to_value[("PlatformApplicationArn",(Option.mapx.platformApplicationArn~f:String_.to_value));("Attributes",(Option.mapx.attributes~f:MapStringToString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:MapStringToString.of_xml)(Xml.childxml_arg0"Attributes")inletplatformApplicationArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"PlatformApplicationArn")inmake?attributes?platformApplicationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"Attributes"MapStringToString.of_jsoninletplatformApplicationArn=field_mapjson__"PlatformApplicationArn"String_.of_jsoninmake?attributes?platformApplicationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Platform application object."]modulePhoneNumberInformation=structtypenonrect={createdAt:Timestamp.toption[@ocaml.doc"The date and time when the phone number was created."];phoneNumber:PhoneNumber.toption[@ocaml.doc"The phone number."];status:String_.toption[@ocaml.doc"The status of the phone number."];iso2CountryCode:Iso2CountryCode.toption[@ocaml.doc"The two-character code for the country or region, in ISO 3166-1 alpha-2 format."];routeType:RouteType.toption[@ocaml.doc"The list of supported routes."];numberCapabilities:NumberCapabilityList.toption[@ocaml.doc"The capabilities of each phone number."]}letmake?createdAt=fun?phoneNumber->fun?status->fun?iso2CountryCode->fun?routeType->fun?numberCapabilities->fun()->{createdAt;phoneNumber;status;iso2CountryCode;routeType;numberCapabilities}letto_valuex=structure_to_value[("CreatedAt",(Option.mapx.createdAt~f:Timestamp.to_value));("PhoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value));("Status",(Option.mapx.status~f:String_.to_value));("Iso2CountryCode",(Option.mapx.iso2CountryCode~f:Iso2CountryCode.to_value));("RouteType",(Option.mapx.routeType~f:RouteType.to_value));("NumberCapabilities",(Option.mapx.numberCapabilities~f:NumberCapabilityList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnumberCapabilities=(Option.map~f:NumberCapabilityList.of_xml)(Xml.childxml_arg0"NumberCapabilities")inletrouteType=(Option.map~f:RouteType.of_xml)(Xml.childxml_arg0"RouteType")inletiso2CountryCode=(Option.map~f:Iso2CountryCode.of_xml)(Xml.childxml_arg0"Iso2CountryCode")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Status")inletphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"PhoneNumber")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedAt")inmake?numberCapabilities?routeType?iso2CountryCode?status?phoneNumber?createdAt()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnumberCapabilities=field_mapjson__"NumberCapabilities"NumberCapabilityList.of_jsoninletrouteType=field_mapjson__"RouteType"RouteType.of_jsoninletiso2CountryCode=field_mapjson__"Iso2CountryCode"Iso2CountryCode.of_jsoninletstatus=field_mapjson__"Status"String_.of_jsoninletphoneNumber=field_mapjson__"PhoneNumber"PhoneNumber.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Timestamp.of_jsoninmake?numberCapabilities?routeType?iso2CountryCode?status?phoneNumber?createdAt()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of phone numbers and their metadata."]moduleEndpoint=structtypenonrect={endpointArn:String_.toption[@ocaml.doc"The EndpointArn for mobile app and device."];attributes:MapStringToString.toption[@ocaml.doc"Attributes for endpoint."]}letmake?endpointArn=fun?attributes->fun()->{endpointArn;attributes}letto_valuex=structure_to_value[("EndpointArn",(Option.mapx.endpointArn~f:String_.to_value));("Attributes",(Option.mapx.attributes~f:MapStringToString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:MapStringToString.of_xml)(Xml.childxml_arg0"Attributes")inletendpointArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"EndpointArn")inmake?attributes?endpointArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"Attributes"MapStringToString.of_jsoninletendpointArn=field_mapjson__"EndpointArn"String_.of_jsoninmake?attributes?endpointArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The endpoint for mobile app and device."]moduleAction=structtypenonrect=stringletcontext_="action"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"action"jletto_json=simple_to_jsonto_valueendmoduleDelegate=structtypenonrect=stringletcontext_="delegate"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"delegate"jletto_json=simple_to_jsonto_valueendmoduleAuthorizationErrorException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the user has been denied access to the requested resource."]moduleInternalErrorException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates an internal service error."]moduleInvalidParameterException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that a request parameter does not comply with the associated constraints."]moduleResourceNotFoundException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Can\226\128\153t perform the action on the specified resource. Make sure that the resource exists."]moduleThrottledException=structtypenonrect={message:String__lc1.toption[@ocaml.doc"Throttled request."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account."]moduleVerificationException=structtypenonrect={message:String__lc1.toption;status:String__lc1.toption[@ocaml.doc"The status of the verification error."]}letmake?message=fun?status->fun()->{message;status}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String__lc1.to_value));("Status",(Option.mapx.status~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Status")inletmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?status?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"String__lc1.of_jsoninletmessage=field_mapjson__"Message"String__lc1.of_jsoninmake?status?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the one-time password (OTP) used for verification is invalid."]moduleOTPCode=structtypenonrect=string[@@ocaml.doc"String of Origination/Destination address including phone numbers and email addresses"]letcontext_="OTPCode"letmakei=letopenResultinok_or_failwith((check_string_mini~min:5)>>=(fun()->(check_string_maxi~max:8)>>=(fun()->check_patterni~pattern:"^[0-9]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"OTPCode"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"String of Origination/Destination address including phone numbers and email addresses"]moduleConcurrentAccessException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Can't perform multiple operations on a tag simultaneously. Perform the operations sequentially."]moduleStaleTagException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A tag has been added to a resource with the same ARN as a deleted resource. Wait a short while and then retry the operation."]moduleTagLimitExceededException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Can't add more than 50 tags to a topic."]moduleTagPolicyException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request doesn't comply with the IAM tag policy. Correct your request and then retry it."]moduleAmazonResourceName=structtypenonrect=stringletcontext_="AmazonResourceName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1011)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AmazonResourceName"jletto_json=simple_to_jsonto_valueendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagList=structtypenonrect=Tag.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFilterPolicyLimitExceededException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. To add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web ServicesSupport Center."]moduleInvalidSecurityException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The credential signature isn't valid. You must use an HTTPS endpoint and sign your request using Signature Version 4."]moduleNotFoundException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the requested resource does not exist."]moduleReplayLimitExceededException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the request parameter has exceeded the maximum number of concurrent message replays."]moduleSubscriptionLimitExceededException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the customer already owns the maximum allowed number of subscriptions."]moduleSubscriptionAttributesMap=structtypenonrect=(AttributeName.t*AttributeValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((AttributeName.of_stringchopped),(AttributeValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(AttributeName.to_valuex)|>(funx->(AttributeValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:AttributeName.of_string~of_json:AttributeValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLabel=structtypenonrect=stringletcontext_="label"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"label"jletto_json=simple_to_jsonto_valueendmoduleEndpointDisabledException=structtypenonrect={message:String__lc1.toption[@ocaml.doc"Message for endpoint disabled."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exception error indicating endpoint disabled."]moduleInvalidParameterValueException=structtypenonrect={message:String__lc1.toption[@ocaml.doc"The parameter of an entry in a request doesn't abide by the specification."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that a request parameter does not comply with the associated constraints."]moduleKMSAccessDeniedException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The ciphertext references a key that doesn't exist or that you don't have access to."]moduleKMSDisabledException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was rejected because the specified Amazon Web Services KMS key isn't enabled."]moduleKMSInvalidStateException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was rejected because the state of the specified resource isn't valid for this request. For more information, see Key states of Amazon Web Services KMS keys in the Key Management Service Developer Guide."]moduleKMSNotFoundException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was rejected because the specified entity or resource can't be found."]moduleKMSOptInRequired=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Amazon Web Services access key ID needs a subscription for the service."]moduleKMSThrottlingException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to request throttling. For more information about throttling, see Limits in the Key Management Service Developer Guide."]modulePlatformApplicationDisabledException=structtypenonrect={message:String__lc1.toption[@ocaml.doc"Message for platform application disabled."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exception error indicating platform application disabled."]moduleValidationException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that a parameter in the request is invalid."]moduleBatchEntryIdsNotDistinctException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Two or more batch entries in the request have the same Id."]moduleBatchRequestTooLongException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The length of all the batch messages put together is more than the limit."]moduleBatchResultErrorEntryList=structtypenonrect=BatchResultErrorEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BatchResultErrorEntry.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:BatchResultErrorEntry.of_xml)letof_jsonj=list_of_json~kind:"BatchResultErrorEntryList"~of_json:BatchResultErrorEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEmptyBatchRequestException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The batch request doesn't contain any entries."]moduleInvalidBatchEntryIdException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Id of a batch entry in a batch request doesn't abide by the specification."]modulePublishBatchResultEntryList=structtypenonrect=PublishBatchResultEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PublishBatchResultEntry.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:PublishBatchResultEntry.of_xml)letof_jsonj=list_of_json~kind:"PublishBatchResultEntryList"~of_json:PublishBatchResultEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTooManyEntriesInBatchRequestException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The batch request contains more entries than permissible (more than 10)."]modulePublishBatchRequestEntryList=structtypenonrect=PublishBatchRequestEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PublishBatchRequestEntry.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:PublishBatchRequestEntry.of_xml)letof_jsonj=list_of_json~kind:"PublishBatchRequestEntryList"~of_json:PublishBatchRequestEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTopicsList=structtypenonrect=Topic.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Topic.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Topic.of_xml)letof_jsonj=list_of_json~kind:"TopicsList"~of_json:Topic.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNextToken=structtypenonrect=stringletcontext_="nextToken"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"nextToken"jletto_json=simple_to_jsonto_valueendmoduleSubscriptionsList=structtypenonrect=Subscription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Subscription.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Subscription.of_xml)letof_jsonj=list_of_json~kind:"SubscriptionsList"~of_json:Subscription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSMSSandboxPhoneNumberList=structtypenonrect=SMSSandboxPhoneNumber.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SMSSandboxPhoneNumber.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:SMSSandboxPhoneNumber.of_xml)letof_jsonj=list_of_json~kind:"SMSSandboxPhoneNumberList"~of_json:SMSSandboxPhoneNumber.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxItems=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxItems"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListOfPlatformApplications=structtypenonrect=PlatformApplication.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PlatformApplication.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:PlatformApplication.of_xml)letof_jsonj=list_of_json~kind:"ListOfPlatformApplications"~of_json:PlatformApplication.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePhoneNumberList=structtypenonrect=PhoneNumber.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PhoneNumber.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:PhoneNumber.of_xml)letof_jsonj=list_of_json~kind:"PhoneNumberList"~of_json:PhoneNumber.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePhoneNumberInformationList=structtypenonrect=PhoneNumberInformation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PhoneNumberInformation.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:PhoneNumberInformation.of_xml)letof_jsonj=list_of_json~kind:"PhoneNumberInformationList"~of_json:PhoneNumberInformation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxItemsListOriginationNumbers=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:30)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxItemsListOriginationNumbers"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListOfEndpoints=structtypenonrect=Endpoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Endpoint.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Endpoint.of_xml)letof_jsonj=list_of_json~kind:"ListOfEndpoints"~of_json:Endpoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTopicAttributesMap=structtypenonrect=(AttributeName.t*AttributeValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((AttributeName.of_stringchopped),(AttributeValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(AttributeName.to_valuex)|>(funx->(AttributeValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:AttributeName.of_string~of_json:AttributeValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListString=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"ListString"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUserErrorException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that a request parameter does not comply with the associated constraints."]moduleTopicLimitExceededException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the customer already owns the maximum allowed number of topics."]moduleTopicName=structtypenonrect=stringletcontext_="topicName"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"topicName"jletto_json=simple_to_jsonto_valueendmoduleOptedOutException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the specified phone number opted out of receiving SMS messages from your Amazon Web Services account. You can't send SMS messages to phone numbers that opt out."]moduleLanguageCodeString=structtypenonrect=|En_US|En_GB|Es_419|Es_ES|De_DE|Fr_CA|Fr_FR|It_IT|Ja_JP|Pt_BR|Kr_KR|Zh_CN|Zh_TW|Non_static_idofstringletmakei=iletto_string=function|En_US->"en-US"|En_GB->"en-GB"|Es_419->"es-419"|Es_ES->"es-ES"|De_DE->"de-DE"|Fr_CA->"fr-CA"|Fr_FR->"fr-FR"|It_IT->"it-IT"|Ja_JP->"ja-JP"|Pt_BR->"pt-BR"|Kr_KR->"kr-KR"|Zh_CN->"zh-CN"|Zh_TW->"zh-TW"|Non_static_ids->sletof_string=function|"en-US"->En_US|"en-GB"->En_GB|"es-419"->Es_419|"es-ES"->Es_ES|"de-DE"->De_DE|"fr-CA"->Fr_CA|"fr-FR"->Fr_FR|"it-IT"->It_IT|"ja-JP"->Ja_JP|"pt-BR"->Pt_BR|"kr-KR"->Kr_KR|"zh-CN"->Zh_CN|"zh-TW"->Zh_TW|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration LanguageCodeString"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LanguageCodeString"j)letto_json=simple_to_jsonto_valueendmoduleAuthenticateOnUnsubscribe=structtypenonrect=stringletcontext_="authenticateOnUnsubscribe"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"authenticateOnUnsubscribe"jletto_json=simple_to_jsonto_valueendmoduleToken=structtypenonrect=stringletcontext_="token"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"token"jletto_json=simple_to_jsonto_valueendmoduleActionsList=structtypenonrect=Action.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Action.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Action.of_xml)letof_jsonj=list_of_json~kind:"ActionsList"~of_json:Action.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDelegatesList=structtypenonrect=Delegate.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Delegate.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Delegate.of_xml)letof_jsonj=list_of_json~kind:"DelegatesList"~of_json:Delegate.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleVerifySMSSandboxPhoneNumberResult=structtypeverifySMSSandboxPhoneNumberResult=unitandresponseMetaData=unitandt={verifySMSSandboxPhoneNumberResult:verifySMSSandboxPhoneNumberResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledExceptionofThrottledException.t|`VerificationExceptionofVerificationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()={verifySMSSandboxPhoneNumberResult=();responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|"VerificationException"->`VerificationException(VerificationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|"VerificationException"->`VerificationException(VerificationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`VerificationExceptione->`Assoc[("error",(`String"VerificationException"));("details",(VerificationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The destination phone number's verification status."]moduleVerifySMSSandboxPhoneNumberInput=structtypenonrect={phoneNumber:PhoneNumberString.t[@ocaml.doc"The destination phone number to verify."];oneTimePassword:OTPCode.t[@ocaml.doc"The OTP sent to the destination number from the CreateSMSSandBoxPhoneNumber call."]}letcontext_="VerifySMSSandboxPhoneNumberInput"letmake~phoneNumber=fun~oneTimePassword->fun()->{phoneNumber;oneTimePassword}letto_valuex=structure_to_value[("PhoneNumber",(Some(PhoneNumberString.to_valuex.phoneNumber)));("OneTimePassword",(Some(OTPCode.to_valuex.oneTimePassword)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoneTimePassword=OTPCode.of_xml(Xml.child_exn~context:context_xml_arg0"OneTimePassword")inletphoneNumber=PhoneNumberString.of_xml(Xml.child_exn~context:context_xml_arg0"PhoneNumber")inmake~oneTimePassword~phoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoneTimePassword=field_map_exnjson__"OneTimePassword"OTPCode.of_jsoninletphoneNumber=field_map_exnjson__"PhoneNumber"PhoneNumberString.of_jsoninmake~oneTimePassword~phoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Verifies a destination phone number with a one-time password (OTP) for the calling Amazon Web Services account. When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide."]moduleUntagResourceResponse=structtypeuntagResourceResult=unitandresponseMetaData=unitandt={untagResourceResult:untagResourceResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`ConcurrentAccessExceptionofConcurrentAccessException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`StaleTagExceptionofStaleTagException.t|`TagLimitExceededExceptionofTagLimitExceededException.t|`TagPolicyExceptionofTagPolicyException.t|`Unknown_operation_errorof(string*stringoption)]letmake()={untagResourceResult=();responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"ConcurrentAccessException"->`ConcurrentAccessException(ConcurrentAccessException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"StaleTagException"->`StaleTagException(StaleTagException.of_jsonjson)|"TagLimitExceededException"->`TagLimitExceededException(TagLimitExceededException.of_jsonjson)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"ConcurrentAccessException"->`ConcurrentAccessException(ConcurrentAccessException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"StaleTagException"->`StaleTagException(StaleTagException.of_xmlxml)|"TagLimitExceededException"->`TagLimitExceededException(TagLimitExceededException.of_xmlxml)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`ConcurrentAccessExceptione->`Assoc[("error",(`String"ConcurrentAccessException"));("details",(ConcurrentAccessException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`StaleTagExceptione->`Assoc[("error",(`String"StaleTagException"));("details",(StaleTagException.to_jsone))]|`TagLimitExceededExceptione->`Assoc[("error",(`String"TagLimitExceededException"));("details",(TagLimitExceededException.to_jsone))]|`TagPolicyExceptione->`Assoc[("error",(`String"TagPolicyException"));("details",(TagPolicyException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Remove tags from the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide."]moduleUntagResourceRequest=structtypenonrect={resourceArn:AmazonResourceName.t[@ocaml.doc"The ARN of the topic from which to remove tags."];tagKeys:TagKeyList.t[@ocaml.doc"The list of tag keys to remove from the specified topic."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("ResourceArn",(Some(AmazonResourceName.to_valuex.resourceArn)));("TagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletresourceArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"AmazonResourceName.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Remove tags from the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide."]moduleUnsubscribeInput=structtypenonrect={subscriptionArn:SubscriptionARN.t[@ocaml.doc"The ARN of the subscription to be deleted."]}letcontext_="UnsubscribeInput"letmake~subscriptionArn=fun()->{subscriptionArn}letto_valuex=structure_to_value[("SubscriptionArn",(Some(SubscriptionARN.to_valuex.subscriptionArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscriptionArn=SubscriptionARN.of_xml(Xml.child_exn~context:context_xml_arg0"SubscriptionArn")inmake~subscriptionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscriptionArn=field_map_exnjson__"SubscriptionArn"SubscriptionARN.of_jsoninmake~subscriptionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for Unsubscribe action."]moduleTagResourceResponse=structtypetagResourceResult=unitandresponseMetaData=unitandt={tagResourceResult:tagResourceResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`ConcurrentAccessExceptionofConcurrentAccessException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`StaleTagExceptionofStaleTagException.t|`TagLimitExceededExceptionofTagLimitExceededException.t|`TagPolicyExceptionofTagPolicyException.t|`Unknown_operation_errorof(string*stringoption)]letmake()={tagResourceResult=();responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"ConcurrentAccessException"->`ConcurrentAccessException(ConcurrentAccessException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"StaleTagException"->`StaleTagException(StaleTagException.of_jsonjson)|"TagLimitExceededException"->`TagLimitExceededException(TagLimitExceededException.of_jsonjson)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"ConcurrentAccessException"->`ConcurrentAccessException(ConcurrentAccessException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"StaleTagException"->`StaleTagException(StaleTagException.of_xmlxml)|"TagLimitExceededException"->`TagLimitExceededException(TagLimitExceededException.of_xmlxml)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`ConcurrentAccessExceptione->`Assoc[("error",(`String"ConcurrentAccessException"));("details",(ConcurrentAccessException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`StaleTagExceptione->`Assoc[("error",(`String"StaleTagException"));("details",(StaleTagException.to_jsone))]|`TagLimitExceededExceptione->`Assoc[("error",(`String"TagLimitExceededException"));("details",(TagLimitExceededException.to_jsone))]|`TagPolicyExceptione->`Assoc[("error",(`String"TagPolicyException"));("details",(TagPolicyException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add tags to the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide. When you use topic tags, keep the following guidelines in mind: Adding more than 50 tags to a topic isn't recommended. Tags don't have any semantic meaning. Amazon SNS interprets tags as character strings. Tags are case-sensitive. A new tag with a key identical to that of an existing tag overwrites the existing tag. Tagging actions are limited to 10 TPS per Amazon Web Services account, per Amazon Web Services Region. If your application requires a higher throughput, file a technical support request."]moduleTagResourceRequest=structtypenonrect={resourceArn:AmazonResourceName.t[@ocaml.doc"The ARN of the topic to which to add tags."];tags:TagList.t[@ocaml.doc"The tags to be added to the specified topic. A tag consists of a required key and an optional value."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("ResourceArn",(Some(AmazonResourceName.to_valuex.resourceArn)));("Tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"AmazonResourceName.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add tags to the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide. When you use topic tags, keep the following guidelines in mind: Adding more than 50 tags to a topic isn't recommended. Tags don't have any semantic meaning. Amazon SNS interprets tags as character strings. Tags are case-sensitive. A new tag with a key identical to that of an existing tag overwrites the existing tag. Tagging actions are limited to 10 TPS per Amazon Web Services account, per Amazon Web Services Region. If your application requires a higher throughput, file a technical support request."]moduleSubscribeResponse=structtypesubscribeResult={subscriptionArn:SubscriptionARN.toption[@ocaml.doc"The ARN of the subscription if it is confirmed, or the string \"pending confirmation\" if the subscription requires confirmation. However, if the API request parameter ReturnSubscriptionArn is true, then the value is always the subscription ARN, even if the subscription requires confirmation."]}andresponseMetaData=unitandt={subscribeResult:subscribeResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`FilterPolicyLimitExceededExceptionofFilterPolicyLimitExceededException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidSecurityExceptionofInvalidSecurityException.t|`NotFoundExceptionofNotFoundException.t|`ReplayLimitExceededExceptionofReplayLimitExceededException.t|`SubscriptionLimitExceededExceptionofSubscriptionLimitExceededException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="SubscribeResponse"letmake?subscriptionArn=fun()->{subscribeResult={subscriptionArn};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"FilterPolicyLimitExceededException"->`FilterPolicyLimitExceededException(FilterPolicyLimitExceededException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ReplayLimitExceededException"->`ReplayLimitExceededException(ReplayLimitExceededException.of_jsonjson)|"SubscriptionLimitExceededException"->`SubscriptionLimitExceededException(SubscriptionLimitExceededException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"FilterPolicyLimitExceededException"->`FilterPolicyLimitExceededException(FilterPolicyLimitExceededException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ReplayLimitExceededException"->`ReplayLimitExceededException(ReplayLimitExceededException.of_xmlxml)|"SubscriptionLimitExceededException"->`SubscriptionLimitExceededException(SubscriptionLimitExceededException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`FilterPolicyLimitExceededExceptione->`Assoc[("error",(`String"FilterPolicyLimitExceededException"));("details",(FilterPolicyLimitExceededException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidSecurityExceptione->`Assoc[("error",(`String"InvalidSecurityException"));("details",(InvalidSecurityException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ReplayLimitExceededExceptione->`Assoc[("error",(`String"ReplayLimitExceededException"));("details",(ReplayLimitExceededException.to_jsone))]|`SubscriptionLimitExceededExceptione->`Assoc[("error",(`String"SubscriptionLimitExceededException"));("details",(SubscriptionLimitExceededException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.subscribeResultinstructure_to_wrapped_value[("SubscriptionArn",(Option.mapx.subscriptionArn~f:SubscriptionARN.to_value))]~wrapper:"SubscribeResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"SubscribeResult"inletsubscriptionArn=(Option.map~f:SubscriptionARN.of_xml)(Xml.childxml_arg0"SubscriptionArn")inmake?subscriptionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscriptionArn=field_mapjson__"SubscriptionArn"SubscriptionARN.of_jsoninmake?subscriptionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for Subscribe action."]moduleSubscribeInput=structtypenonrect={topicArn:TopicARN.t[@ocaml.doc"The ARN of the topic you want to subscribe to."];protocol:Protocol.t[@ocaml.doc"The protocol that you want to use. Supported protocols include: http \226\128\147 delivery of JSON-encoded message via HTTP POST https \226\128\147 delivery of JSON-encoded message via HTTPS POST email \226\128\147 delivery of message via SMTP email-json \226\128\147 delivery of JSON-encoded message via SMTP sms \226\128\147 delivery of message via SMS sqs \226\128\147 delivery of JSON-encoded message to an Amazon SQS queue application \226\128\147 delivery of JSON-encoded message to an EndpointArn for a mobile app and device lambda \226\128\147 delivery of JSON-encoded message to an Lambda function firehose \226\128\147 delivery of JSON-encoded message to an Amazon Data Firehose delivery stream."];endpoint:Endpoint__lc1.toption[@ocaml.doc"The endpoint that you want to receive notifications. Endpoints vary by protocol: For the http protocol, the (public) endpoint is a URL beginning with http://. For the https protocol, the (public) endpoint is a URL beginning with https://. For the email protocol, the endpoint is an email address. For the email-json protocol, the endpoint is an email address. For the sms protocol, the endpoint is a phone number of an SMS-enabled device. For the sqs protocol, the endpoint is the ARN of an Amazon SQS queue. For the application protocol, the endpoint is the EndpointArn of a mobile app and device. For the lambda protocol, the endpoint is the ARN of an Lambda function. For the firehose protocol, the endpoint is the ARN of an Amazon Data Firehose delivery stream."];attributes:SubscriptionAttributesMap.toption[@ocaml.doc"A map of attributes with their corresponding values. The following lists the names, descriptions, and values of the special request parameters that the Subscribe action uses: DeliveryPolicy \226\128\147 The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints. FilterPolicy \226\128\147 The simple JSON object that lets your subscriber receive only a subset of messages, rather than receiving every message published to the topic. FilterPolicyScope \226\128\147 This attribute lets you choose the filtering scope by using one of the following string value types: MessageAttributes (default) \226\128\147 The filter is applied on the message attributes. MessageBody \226\128\147 The filter is applied on the message body. RawMessageDelivery \226\128\147 When set to true, enables raw message delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints to process JSON formatting, which is otherwise created for Amazon SNS metadata. RedrivePolicy \226\128\147 When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing. The following attribute applies only to Amazon Data Firehose delivery stream subscriptions: SubscriptionRoleArn \226\128\147 The ARN of the IAM role that has the following: Permission to write to the Firehose delivery stream Amazon SNS listed as a trusted entity Specifying a valid ARN for this attribute is required for Firehose delivery stream subscriptions. For more information, see Fanout to Firehose delivery streams in the Amazon SNS Developer Guide. The following attributes apply only to FIFO topics: ReplayPolicy \226\128\147 Adds or updates an inline policy document for a subscription to replay messages stored in the specified Amazon SNS topic. ReplayStatus \226\128\147 Retrieves the status of the subscription message replay, which can be one of the following: Completed \226\128\147 The replay has successfully redelivered all messages, and is now delivering newly published messages. If an ending point was specified in the ReplayPolicy then the subscription will no longer receive newly published messages. In progress \226\128\147 The replay is currently replaying the selected messages. Failed \226\128\147 The replay was unable to complete. Pending \226\128\147 The default state while the replay initiates."];returnSubscriptionArn:Boolean.toption[@ocaml.doc"Sets whether the response from the Subscribe request includes the subscription ARN, even if the subscription is not yet confirmed. If you set this parameter to true, the response includes the ARN in all cases, even if the subscription is not yet confirmed. In addition to the ARN for confirmed subscriptions, the response also includes the pending subscription ARN value for subscriptions that aren't yet confirmed. A subscription becomes confirmed when the subscriber calls the ConfirmSubscription action with a confirmation token. The default value is false."]}letcontext_="SubscribeInput"letmake?endpoint=fun?attributes->fun?returnSubscriptionArn->fun~topicArn->fun~protocol->fun()->{endpoint;attributes;returnSubscriptionArn;topicArn;protocol}letto_valuex=structure_to_value[("TopicArn",(Some(TopicARN.to_valuex.topicArn)));("Protocol",(Some(Protocol.to_valuex.protocol)));("Endpoint",(Option.mapx.endpoint~f:Endpoint__lc1.to_value));("Attributes",(Option.mapx.attributes~f:SubscriptionAttributesMap.to_value));("ReturnSubscriptionArn",(Option.mapx.returnSubscriptionArn~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreturnSubscriptionArn=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"ReturnSubscriptionArn")inletattributes=(Option.map~f:SubscriptionAttributesMap.of_xml)(Xml.childxml_arg0"Attributes")inletendpoint=(Option.map~f:Endpoint__lc1.of_xml)(Xml.childxml_arg0"Endpoint")inletprotocol=Protocol.of_xml(Xml.child_exn~context:context_xml_arg0"Protocol")inlettopicArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"TopicArn")inmake?returnSubscriptionArn?attributes?endpoint~protocol~topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreturnSubscriptionArn=field_mapjson__"ReturnSubscriptionArn"Boolean.of_jsoninletattributes=field_mapjson__"Attributes"SubscriptionAttributesMap.of_jsoninletendpoint=field_mapjson__"Endpoint"Endpoint__lc1.of_jsoninletprotocol=field_map_exnjson__"Protocol"Protocol.of_jsoninlettopicArn=field_map_exnjson__"TopicArn"TopicARN.of_jsoninmake?returnSubscriptionArn?attributes?endpoint~protocol~topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for Subscribe action."]moduleSetTopicAttributesInput=structtypenonrect={topicArn:TopicARN.t[@ocaml.doc"The ARN of the topic to modify."];attributeName:AttributeName.t[@ocaml.doc"A map of attributes with their corresponding values. The following lists the names, descriptions, and values of the special request parameters that the SetTopicAttributes action uses: DeliveryPolicy \226\128\147 The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints. DisplayName \226\128\147 The display name to use for a topic with SMS subscriptions. Policy \226\128\147 The policy that defines who can access your topic. By default, only the topic owner can publish or subscribe to the topic. TracingConfig \226\128\147 Tracing mode of an Amazon SNS topic. By default TracingConfig is set to PassThrough, and the topic passes through the tracing header it receives from an Amazon SNS publisher to its subscriptions. If set to Active, Amazon SNS will vend X-Ray segment data to topic owner account if the sampled flag in the tracing header is true. This is only supported on standard topics. HTTP HTTPSuccessFeedbackRoleArn \226\128\147 Indicates successful message delivery status for an Amazon SNS topic that is subscribed to an HTTP endpoint. HTTPSuccessFeedbackSampleRate \226\128\147 Indicates percentage of successful messages to sample for an Amazon SNS topic that is subscribed to an HTTP endpoint. HTTPFailureFeedbackRoleArn \226\128\147 Indicates failed message delivery status for an Amazon SNS topic that is subscribed to an HTTP endpoint. Amazon Data Firehose FirehoseSuccessFeedbackRoleArn \226\128\147 Indicates successful message delivery status for an Amazon SNS topic that is subscribed to an Amazon Data Firehose endpoint. FirehoseSuccessFeedbackSampleRate \226\128\147 Indicates percentage of successful messages to sample for an Amazon SNS topic that is subscribed to an Amazon Data Firehose endpoint. FirehoseFailureFeedbackRoleArn \226\128\147 Indicates failed message delivery status for an Amazon SNS topic that is subscribed to an Amazon Data Firehose endpoint. Lambda LambdaSuccessFeedbackRoleArn \226\128\147 Indicates successful message delivery status for an Amazon SNS topic that is subscribed to an Lambda endpoint. LambdaSuccessFeedbackSampleRate \226\128\147 Indicates percentage of successful messages to sample for an Amazon SNS topic that is subscribed to an Lambda endpoint. LambdaFailureFeedbackRoleArn \226\128\147 Indicates failed message delivery status for an Amazon SNS topic that is subscribed to an Lambda endpoint. Platform application endpoint ApplicationSuccessFeedbackRoleArn \226\128\147 Indicates successful message delivery status for an Amazon SNS topic that is subscribed to an platform application endpoint. ApplicationSuccessFeedbackSampleRate \226\128\147 Indicates percentage of successful messages to sample for an Amazon SNS topic that is subscribed to an platform application endpoint. ApplicationFailureFeedbackRoleArn \226\128\147 Indicates failed message delivery status for an Amazon SNS topic that is subscribed to an platform application endpoint. In addition to being able to configure topic attributes for message delivery status of notification messages sent to Amazon SNS application endpoints, you can also configure application attributes for the delivery status of push notification messages sent to push notification services. For example, For more information, see Using Amazon SNS Application Attributes for Message Delivery Status. Amazon SQS SQSSuccessFeedbackRoleArn \226\128\147 Indicates successful message delivery status for an Amazon SNS topic that is subscribed to an Amazon SQS endpoint. SQSSuccessFeedbackSampleRate \226\128\147 Indicates percentage of successful messages to sample for an Amazon SNS topic that is subscribed to an Amazon SQS endpoint. SQSFailureFeedbackRoleArn \226\128\147 Indicates failed message delivery status for an Amazon SNS topic that is subscribed to an Amazon SQS endpoint. The <ENDPOINT>SuccessFeedbackRoleArn and <ENDPOINT>FailureFeedbackRoleArn attributes are used to give Amazon SNS write access to use CloudWatch Logs on your behalf. The <ENDPOINT>SuccessFeedbackSampleRate attribute is for specifying the sample rate percentage (0-100) of successfully delivered messages. After you configure the <ENDPOINT>FailureFeedbackRoleArn attribute, then all failed message deliveries generate CloudWatch Logs. The following attribute applies only to server-side-encryption: KmsMasterKeyId \226\128\147 The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see Key Terms. For more examples, see KeyId in the Key Management Service API Reference. SignatureVersion \226\128\147 The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. By default, SignatureVersion is set to 1. The following attribute applies only to FIFO topics: ArchivePolicy \226\128\147 The policy that sets the retention period for messages stored in the message archive of an Amazon SNS FIFO topic. ContentBasedDeduplication \226\128\147 Enables content-based deduplication for FIFO topics. By default, ContentBasedDeduplication is set to false. If you create a FIFO topic and this attribute is false, you must specify a value for the MessageDeduplicationId parameter for the Publish action. When you set ContentBasedDeduplication to true, Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message). (Optional) To override the generated value, you can specify a value for the MessageDeduplicationId parameter for the Publish action. FifoThroughputScope \226\128\147 Enables higher throughput for your FIFO topic by adjusting the scope of deduplication. This attribute has two possible values: Topic \226\128\147 The scope of message deduplication is across the entire topic. This is the default value and maintains existing behavior, with a maximum throughput of 3000 messages per second or 20MB per second, whichever comes first. MessageGroup \226\128\147 The scope of deduplication is within each individual message group, which enables higher throughput per topic subject to regional quotas. For more information on quotas or to request an increase, see Amazon SNS service quotas in the Amazon Web Services General Reference."];attributeValue:AttributeValue.toption[@ocaml.doc"The new value for the attribute."]}letcontext_="SetTopicAttributesInput"letmake?attributeValue=fun~topicArn->fun~attributeName->fun()->{attributeValue;topicArn;attributeName}letto_valuex=structure_to_value[("TopicArn",(Some(TopicARN.to_valuex.topicArn)));("AttributeName",(Some(AttributeName.to_valuex.attributeName)));("AttributeValue",(Option.mapx.attributeValue~f:AttributeValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributeValue=(Option.map~f:AttributeValue.of_xml)(Xml.childxml_arg0"AttributeValue")inletattributeName=AttributeName.of_xml(Xml.child_exn~context:context_xml_arg0"AttributeName")inlettopicArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"TopicArn")inmake?attributeValue~attributeName~topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributeValue=field_mapjson__"AttributeValue"AttributeValue.of_jsoninletattributeName=field_map_exnjson__"AttributeName"AttributeName.of_jsoninlettopicArn=field_map_exnjson__"TopicArn"TopicARN.of_jsoninmake?attributeValue~attributeName~topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for SetTopicAttributes action."]moduleSetSubscriptionAttributesInput=structtypenonrect={subscriptionArn:SubscriptionARN.t[@ocaml.doc"The ARN of the subscription to modify."];attributeName:AttributeName.t[@ocaml.doc"A map of attributes with their corresponding values. The following lists the names, descriptions, and values of the special request parameters that this action uses: DeliveryPolicy \226\128\147 The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints. FilterPolicy \226\128\147 The simple JSON object that lets your subscriber receive only a subset of messages, rather than receiving every message published to the topic. FilterPolicyScope \226\128\147 This attribute lets you choose the filtering scope by using one of the following string value types: MessageAttributes (default) \226\128\147 The filter is applied on the message attributes. MessageBody \226\128\147 The filter is applied on the message body. RawMessageDelivery \226\128\147 When set to true, enables raw message delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints to process JSON formatting, which is otherwise created for Amazon SNS metadata. RedrivePolicy \226\128\147 When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing. The following attribute applies only to Amazon Data Firehose delivery stream subscriptions: SubscriptionRoleArn \226\128\147 The ARN of the IAM role that has the following: Permission to write to the Firehose delivery stream Amazon SNS listed as a trusted entity Specifying a valid ARN for this attribute is required for Firehose delivery stream subscriptions. For more information, see Fanout to Firehose delivery streams in the Amazon SNS Developer Guide."];attributeValue:AttributeValue.toption[@ocaml.doc"The new value for the attribute in JSON format."]}letcontext_="SetSubscriptionAttributesInput"letmake?attributeValue=fun~subscriptionArn->fun~attributeName->fun()->{attributeValue;subscriptionArn;attributeName}letto_valuex=structure_to_value[("SubscriptionArn",(Some(SubscriptionARN.to_valuex.subscriptionArn)));("AttributeName",(Some(AttributeName.to_valuex.attributeName)));("AttributeValue",(Option.mapx.attributeValue~f:AttributeValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributeValue=(Option.map~f:AttributeValue.of_xml)(Xml.childxml_arg0"AttributeValue")inletattributeName=AttributeName.of_xml(Xml.child_exn~context:context_xml_arg0"AttributeName")inletsubscriptionArn=SubscriptionARN.of_xml(Xml.child_exn~context:context_xml_arg0"SubscriptionArn")inmake?attributeValue~attributeName~subscriptionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributeValue=field_mapjson__"AttributeValue"AttributeValue.of_jsoninletattributeName=field_map_exnjson__"AttributeName"AttributeName.of_jsoninletsubscriptionArn=field_map_exnjson__"SubscriptionArn"SubscriptionARN.of_jsoninmake?attributeValue~attributeName~subscriptionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for SetSubscriptionAttributes action."]moduleSetSMSAttributesResponse=structtypesetSMSAttributesResult=unitandresponseMetaData=unitandt={setSMSAttributesResult:setSMSAttributesResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ThrottledExceptionofThrottledException.t|`Unknown_operation_errorof(string*stringoption)]letmake()={setSMSAttributesResult=();responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response for the SetSMSAttributes action."]moduleSetSMSAttributesInput=structtypenonrect={attributes:MapStringToString.t[@ocaml.doc"The default settings for sending SMS messages from your Amazon Web Services account. You can set values for the following attribute names: MonthlySpendLimit \226\128\147 The maximum amount in USD that you are willing to spend each month to send SMS messages. When Amazon SNS determines that sending an SMS message would incur a cost that exceeds this limit, it stops sending SMS messages within minutes. Amazon SNS stops sending SMS messages within minutes of the limit being crossed. During that interval, if you continue to send SMS messages, you will incur costs that exceed your limit. By default, the spend limit is set to the maximum allowed by Amazon SNS. If you want to raise the limit, submit an SNS Limit Increase case. For New limit value, enter your desired monthly spend limit. In the Use Case Description field, explain that you are requesting an SMS monthly spend limit increase. DeliveryStatusIAMRole \226\128\147 The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs. For each SMS message that you send, Amazon SNS writes a log that includes the message price, the success or failure status, the reason for failure (if the message failed), the message dwell time, and other information. DeliveryStatusSuccessSamplingRate \226\128\147 The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value can be an integer from 0 - 100. For example, to write logs only for failed deliveries, set this value to 0. To write logs for 10% of your successful deliveries, set it to 10. DefaultSenderID \226\128\147 A string, such as your business brand, that is displayed as the sender on the receiving device. Support for sender IDs varies by country. The sender ID can be 1 - 11 alphanumeric characters, and it must contain at least one letter. DefaultSMSType \226\128\147 The type of SMS message that you will send by default. You can assign the following values: Promotional \226\128\147 (Default) Noncritical messages, such as marketing messages. Amazon SNS optimizes the message delivery to incur the lowest cost. Transactional \226\128\147 Critical messages that support customer transactions, such as one-time passcodes for multi-factor authentication. Amazon SNS optimizes the message delivery to achieve the highest reliability. UsageReportS3Bucket \226\128\147 The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage report as a CSV file to the bucket. The report includes the following information for each SMS message that was successfully delivered by your Amazon Web Services account: Time that the message was published (in UTC) Message ID Destination phone number Message type Delivery status Message price (in USD) Part number (a message is split into multiple parts if it is too long for a single message) Total number of parts To receive the report, the bucket must have a policy that allows the Amazon SNS service principal to perform the s3:PutObject and s3:GetBucketLocation actions. For an example bucket policy and usage report, see Monitoring SMS Activity in the Amazon SNS Developer Guide."]}letcontext_="SetSMSAttributesInput"letmake~attributes=fun()->{attributes}letto_valuex=structure_to_value[("attributes",(Some(MapStringToString.to_valuex.attributes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=MapStringToString.of_xml(Xml.child_exn~context:context_xml_arg0"Attributes")inmake~attributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_map_exnjson__"attributes"MapStringToString.of_jsoninmake~attributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input for the SetSMSAttributes action."]moduleSetPlatformApplicationAttributesInput=structtypenonrect={platformApplicationArn:String_.t[@ocaml.doc"PlatformApplicationArn for SetPlatformApplicationAttributes action."];attributes:MapStringToString.t[@ocaml.doc"A map of the platform application attributes. Attributes in this map include the following: PlatformCredential \226\128\147 The credential received from the notification service. For ADM, PlatformCredentialis client secret. For Apple Services using certificate credentials, PlatformCredential is private key. For Apple Services using token credentials, PlatformCredential is signing key. For GCM (Firebase Cloud Messaging) using key credentials, there is no PlatformPrincipal. The PlatformCredential is API key. For GCM (Firebase Cloud Messaging) using token credentials, there is no PlatformPrincipal. The PlatformCredential is a JSON formatted private key file. When using the Amazon Web Services CLI, the file must be in string format and special characters must be ignored. To format the file correctly, Amazon SNS recommends using the following command: SERVICE_JSON=`jq \\@json <<< cat service.json`. PlatformPrincipal \226\128\147 The principal received from the notification service. For ADM, PlatformPrincipalis client id. For Apple Services using certificate credentials, PlatformPrincipal is SSL certificate. For Apple Services using token credentials, PlatformPrincipal is signing key ID. For GCM (Firebase Cloud Messaging), there is no PlatformPrincipal. EventEndpointCreated \226\128\147 Topic ARN to which EndpointCreated event notifications are sent. EventEndpointDeleted \226\128\147 Topic ARN to which EndpointDeleted event notifications are sent. EventEndpointUpdated \226\128\147 Topic ARN to which EndpointUpdate event notifications are sent. EventDeliveryFailure \226\128\147 Topic ARN to which DeliveryFailure event notifications are sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints. SuccessFeedbackRoleArn \226\128\147 IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf. FailureFeedbackRoleArn \226\128\147 IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf. SuccessFeedbackSampleRate \226\128\147 Sample rate percentage (0-100) of successfully delivered messages. The following attributes only apply to APNs token-based authentication: ApplePlatformTeamID \226\128\147 The identifier that's assigned to your Apple developer account team. ApplePlatformBundleID \226\128\147 The bundle identifier that's assigned to your iOS app."]}letcontext_="SetPlatformApplicationAttributesInput"letmake~platformApplicationArn=fun~attributes->fun()->{platformApplicationArn;attributes}letto_valuex=structure_to_value[("PlatformApplicationArn",(Some(String_.to_valuex.platformApplicationArn)));("Attributes",(Some(MapStringToString.to_valuex.attributes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=MapStringToString.of_xml(Xml.child_exn~context:context_xml_arg0"Attributes")inletplatformApplicationArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"PlatformApplicationArn")inmake~attributes~platformApplicationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_map_exnjson__"Attributes"MapStringToString.of_jsoninletplatformApplicationArn=field_map_exnjson__"PlatformApplicationArn"String_.of_jsoninmake~attributes~platformApplicationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for SetPlatformApplicationAttributes action."]moduleSetEndpointAttributesInput=structtypenonrect={endpointArn:String_.t[@ocaml.doc"EndpointArn used for SetEndpointAttributes action."];attributes:MapStringToString.t[@ocaml.doc"A map of the endpoint attributes. Attributes in this map include the following: CustomUserData \226\128\147 arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB. Enabled \226\128\147 flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token. Token \226\128\147 device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service."]}letcontext_="SetEndpointAttributesInput"letmake~endpointArn=fun~attributes->fun()->{endpointArn;attributes}letto_valuex=structure_to_value[("EndpointArn",(Some(String_.to_valuex.endpointArn)));("Attributes",(Some(MapStringToString.to_valuex.attributes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=MapStringToString.of_xml(Xml.child_exn~context:context_xml_arg0"Attributes")inletendpointArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"EndpointArn")inmake~attributes~endpointArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_map_exnjson__"Attributes"MapStringToString.of_jsoninletendpointArn=field_map_exnjson__"EndpointArn"String_.of_jsoninmake~attributes~endpointArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for SetEndpointAttributes action."]moduleRemovePermissionInput=structtypenonrect={topicArn:TopicARN.t[@ocaml.doc"The ARN of the topic whose access control policy you wish to modify."];label:Label.t[@ocaml.doc"The unique label of the statement you want to remove."]}letcontext_="RemovePermissionInput"letmake~topicArn=fun~label->fun()->{topicArn;label}letto_valuex=structure_to_value[("TopicArn",(Some(TopicARN.to_valuex.topicArn)));("Label",(Some(Label.to_valuex.label)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlabel=Label.of_xml(Xml.child_exn~context:context_xml_arg0"Label")inlettopicArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"TopicArn")inmake~label~topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlabel=field_map_exnjson__"Label"Label.of_jsoninlettopicArn=field_map_exnjson__"TopicArn"TopicARN.of_jsoninmake~label~topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for RemovePermission action."]modulePutDataProtectionPolicyInput=structtypenonrect={resourceArn:TopicARN.t[@ocaml.doc"The ARN of the topic whose DataProtectionPolicy you want to add or update. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference."];dataProtectionPolicy:AttributeValue.t[@ocaml.doc"The JSON serialization of the topic's DataProtectionPolicy. The DataProtectionPolicy must be in JSON string format. Length Constraints: Maximum length of 30,720."]}letcontext_="PutDataProtectionPolicyInput"letmake~resourceArn=fun~dataProtectionPolicy->fun()->{resourceArn;dataProtectionPolicy}letto_valuex=structure_to_value[("ResourceArn",(Some(TopicARN.to_valuex.resourceArn)));("DataProtectionPolicy",(Some(AttributeValue.to_valuex.dataProtectionPolicy)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataProtectionPolicy=AttributeValue.of_xml(Xml.child_exn~context:context_xml_arg0"DataProtectionPolicy")inletresourceArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~dataProtectionPolicy~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataProtectionPolicy=field_map_exnjson__"DataProtectionPolicy"AttributeValue.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"TopicARN.of_jsoninmake~dataProtectionPolicy~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or updates an inline policy document that is stored in the specified Amazon SNS topic."]modulePublishResponse=structtypepublishResult={messageId:MessageId.toption[@ocaml.doc"Unique identifier assigned to the published message. Length Constraint: Maximum 100 characters"];sequenceNumber:String_.toption[@ocaml.doc"This response element applies only to FIFO (first-in-first-out) topics. The sequence number is a large, non-consecutive number that Amazon SNS assigns to each message. The length of SequenceNumber is 128 bits. SequenceNumber continues to increase for each MessageGroupId."]}andresponseMetaData=unitandt={publishResult:publishResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`EndpointDisabledExceptionofEndpointDisabledException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidParameterValueExceptionofInvalidParameterValueException.t|`InvalidSecurityExceptionofInvalidSecurityException.t|`KMSAccessDeniedExceptionofKMSAccessDeniedException.t|`KMSDisabledExceptionofKMSDisabledException.t|`KMSInvalidStateExceptionofKMSInvalidStateException.t|`KMSNotFoundExceptionofKMSNotFoundException.t|`KMSOptInRequiredofKMSOptInRequired.t|`KMSThrottlingExceptionofKMSThrottlingException.t|`NotFoundExceptionofNotFoundException.t|`PlatformApplicationDisabledExceptionofPlatformApplicationDisabledException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="PublishResponse"letmake?messageId=fun?sequenceNumber->fun()->{publishResult={messageId;sequenceNumber};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"EndpointDisabledException"->`EndpointDisabledException(EndpointDisabledException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidParameterValueException"->`InvalidParameterValueException(InvalidParameterValueException.of_jsonjson)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_jsonjson)|"KMSAccessDeniedException"->`KMSAccessDeniedException(KMSAccessDeniedException.of_jsonjson)|"KMSDisabledException"->`KMSDisabledException(KMSDisabledException.of_jsonjson)|"KMSInvalidStateException"->`KMSInvalidStateException(KMSInvalidStateException.of_jsonjson)|"KMSNotFoundException"->`KMSNotFoundException(KMSNotFoundException.of_jsonjson)|"KMSOptInRequired"->`KMSOptInRequired(KMSOptInRequired.of_jsonjson)|"KMSThrottlingException"->`KMSThrottlingException(KMSThrottlingException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"PlatformApplicationDisabledException"->`PlatformApplicationDisabledException(PlatformApplicationDisabledException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"EndpointDisabledException"->`EndpointDisabledException(EndpointDisabledException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidParameterValueException"->`InvalidParameterValueException(InvalidParameterValueException.of_xmlxml)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_xmlxml)|"KMSAccessDeniedException"->`KMSAccessDeniedException(KMSAccessDeniedException.of_xmlxml)|"KMSDisabledException"->`KMSDisabledException(KMSDisabledException.of_xmlxml)|"KMSInvalidStateException"->`KMSInvalidStateException(KMSInvalidStateException.of_xmlxml)|"KMSNotFoundException"->`KMSNotFoundException(KMSNotFoundException.of_xmlxml)|"KMSOptInRequired"->`KMSOptInRequired(KMSOptInRequired.of_xmlxml)|"KMSThrottlingException"->`KMSThrottlingException(KMSThrottlingException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"PlatformApplicationDisabledException"->`PlatformApplicationDisabledException(PlatformApplicationDisabledException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`EndpointDisabledExceptione->`Assoc[("error",(`String"EndpointDisabledException"));("details",(EndpointDisabledException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidParameterValueExceptione->`Assoc[("error",(`String"InvalidParameterValueException"));("details",(InvalidParameterValueException.to_jsone))]|`InvalidSecurityExceptione->`Assoc[("error",(`String"InvalidSecurityException"));("details",(InvalidSecurityException.to_jsone))]|`KMSAccessDeniedExceptione->`Assoc[("error",(`String"KMSAccessDeniedException"));("details",(KMSAccessDeniedException.to_jsone))]|`KMSDisabledExceptione->`Assoc[("error",(`String"KMSDisabledException"));("details",(KMSDisabledException.to_jsone))]|`KMSInvalidStateExceptione->`Assoc[("error",(`String"KMSInvalidStateException"));("details",(KMSInvalidStateException.to_jsone))]|`KMSNotFoundExceptione->`Assoc[("error",(`String"KMSNotFoundException"));("details",(KMSNotFoundException.to_jsone))]|`KMSOptInRequirede->`Assoc[("error",(`String"KMSOptInRequired"));("details",(KMSOptInRequired.to_jsone))]|`KMSThrottlingExceptione->`Assoc[("error",(`String"KMSThrottlingException"));("details",(KMSThrottlingException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`PlatformApplicationDisabledExceptione->`Assoc[("error",(`String"PlatformApplicationDisabledException"));("details",(PlatformApplicationDisabledException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.publishResultinstructure_to_wrapped_value[("MessageId",(Option.mapx.messageId~f:MessageId.to_value));("SequenceNumber",(Option.mapx.sequenceNumber~f:String_.to_value))]~wrapper:"PublishResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"PublishResult"inletsequenceNumber=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SequenceNumber")inletmessageId=(Option.map~f:MessageId.of_xml)(Xml.childxml_arg0"MessageId")inmake?sequenceNumber?messageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"SequenceNumber"String_.of_jsoninletmessageId=field_mapjson__"MessageId"MessageId.of_jsoninmake?sequenceNumber?messageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for Publish action."]modulePublishInput=structtypenonrect={topicArn:TopicARN.toption[@ocaml.doc"The topic you want to publish to. If you don't specify a value for the TopicArn parameter, you must specify a value for the PhoneNumber or TargetArn parameters."];targetArn:String_.toption[@ocaml.doc"If you don't specify a value for the TargetArn parameter, you must specify a value for the PhoneNumber or TopicArn parameters."];phoneNumber:PhoneNumber.toption[@ocaml.doc"The phone number to which you want to deliver an SMS message. Use E.164 format. If you don't specify a value for the PhoneNumber parameter, you must specify a value for the TargetArn or TopicArn parameters."];message:Message.t[@ocaml.doc"The message you want to send. If you are publishing to a topic and you want to send the same message to all transport protocols, include the text of the message as a String value. If you want to send different messages for each transport protocol, set the value of the MessageStructure parameter to json and use a JSON object for the Message parameter. Constraints: With the exception of SMS, messages must be UTF-8 encoded strings and at most 256 KB in size (262,144 bytes, not 262,144 characters). For SMS, each message can contain up to 140 characters. This character limit depends on the encoding schema. For example, an SMS message can contain 160 GSM characters, 140 ASCII characters, or 70 UCS-2 characters. If you publish a message that exceeds this size limit, Amazon SNS sends the message as multiple messages, each fitting within the size limit. Messages aren't truncated mid-word but are cut off at whole-word boundaries. The total size limit for a single SMS Publish action is 1,600 characters. JSON-specific constraints: Keys in the JSON object that correspond to supported transport protocols must have simple JSON string values. The values will be parsed (unescaped) before they are used in outgoing messages. Outbound notifications are JSON encoded (meaning that the characters will be reescaped for sending). Values have a minimum length of 0 (the empty string, \"\", is allowed). Values have a maximum length bounded by the overall message size (so, including multiple protocols may limit message sizes). Non-string values will cause the key to be ignored. Keys that do not correspond to supported transport protocols are ignored. Duplicate keys are not allowed. Failure to parse or validate any key or value in the message will cause the Publish call to return an error (no partial delivery)."];subject:Subject.toption[@ocaml.doc"Optional parameter to be used as the \"Subject\" line when the message is delivered to email endpoints. This field will also be included, if present, in the standard JSON messages delivered to other endpoints. Constraints: Subjects must be UTF-8 text with no line breaks or control characters, and less than 100 characters long."];messageStructure:MessageStructure.toption[@ocaml.doc"Set MessageStructure to json if you want to send a different message for each protocol. For example, using one publish action, you can send a short message to your SMS subscribers and a longer message to your email subscribers. If you set MessageStructure to json, the value of the Message parameter must: be a syntactically valid JSON object; and contain at least a top-level JSON key of \"default\" with a value that is a string. You can define other top-level keys that define the message you want to send to a specific transport protocol (e.g., \"http\"). Valid value: json"];messageAttributes:MessageAttributeMap.toption[@ocaml.doc"Message attributes for Publish action."];messageDeduplicationId:String_.toption[@ocaml.doc"This parameter applies only to FIFO (first-in-first-out) topics. The MessageDeduplicationId can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?\\@\\[\\\\]^_`\\{|\\}~). Every message must have a unique MessageDeduplicationId, which is a token used for deduplication of sent messages within the 5 minute minimum deduplication interval. The scope of deduplication depends on the FifoThroughputScope attribute, when set to Topic the message deduplication scope is across the entire topic, when set to MessageGroup the message deduplication scope is within each individual message group. If a message with a particular MessageDeduplicationId is sent successfully, subsequent messages within the deduplication scope and interval, with the same MessageDeduplicationId, are accepted successfully but aren't delivered. Every message must have a unique MessageDeduplicationId: You may provide a MessageDeduplicationId explicitly. If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication for your topic, Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message). If you don't provide a MessageDeduplicationId and the topic doesn't have ContentBasedDeduplication set, the action fails with an error. If the topic has a ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one. When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication scope and interval are treated as duplicates and only one copy of the message is delivered. If you send one message with ContentBasedDeduplication enabled, and then another message with a MessageDeduplicationId that is the same as the one generated for the first MessageDeduplicationId, the two messages are treated as duplicates, within the deduplication scope and interval, and only one copy of the message is delivered."];messageGroupId:String_.toption[@ocaml.doc"The MessageGroupId can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?\\@\\[\\\\]^_`\\{|\\}~). For FIFO topics: The MessageGroupId is a tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). Every message must include a MessageGroupId. For standard topics: The MessageGroupId is optional and is forwarded only to Amazon SQS standard subscriptions to activate fair queues. The MessageGroupId is not used for, or sent to, any other endpoint types. When provided, the same validation rules apply as for FIFO topics."]}letcontext_="PublishInput"letmake?topicArn=fun?targetArn->fun?phoneNumber->fun?subject->fun?messageStructure->fun?messageAttributes->fun?messageDeduplicationId->fun?messageGroupId->fun~message->fun()->{topicArn;targetArn;phoneNumber;subject;messageStructure;messageAttributes;messageDeduplicationId;messageGroupId;message}letto_valuex=structure_to_value[("TopicArn",(Option.mapx.topicArn~f:TopicARN.to_value));("TargetArn",(Option.mapx.targetArn~f:String_.to_value));("PhoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value));("Message",(Some(Message.to_valuex.message)));("Subject",(Option.mapx.subject~f:Subject.to_value));("MessageStructure",(Option.mapx.messageStructure~f:MessageStructure.to_value));("MessageAttributes",(Option.mapx.messageAttributes~f:MessageAttributeMap.to_value));("MessageDeduplicationId",(Option.mapx.messageDeduplicationId~f:String_.to_value));("MessageGroupId",(Option.mapx.messageGroupId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessageGroupId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MessageGroupId")inletmessageDeduplicationId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MessageDeduplicationId")inletmessageAttributes=(Option.map~f:MessageAttributeMap.of_xml)(Xml.childxml_arg0"MessageAttributes")inletmessageStructure=(Option.map~f:MessageStructure.of_xml)(Xml.childxml_arg0"MessageStructure")inletsubject=(Option.map~f:Subject.of_xml)(Xml.childxml_arg0"Subject")inletmessage=Message.of_xml(Xml.child_exn~context:context_xml_arg0"Message")inletphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"PhoneNumber")inlettargetArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"TargetArn")inlettopicArn=(Option.map~f:TopicARN.of_xml)(Xml.childxml_arg0"TopicArn")inmake?messageGroupId?messageDeduplicationId?messageAttributes?messageStructure?subject~message?phoneNumber?targetArn?topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageGroupId=field_mapjson__"MessageGroupId"String_.of_jsoninletmessageDeduplicationId=field_mapjson__"MessageDeduplicationId"String_.of_jsoninletmessageAttributes=field_mapjson__"MessageAttributes"MessageAttributeMap.of_jsoninletmessageStructure=field_mapjson__"MessageStructure"MessageStructure.of_jsoninletsubject=field_mapjson__"Subject"Subject.of_jsoninletmessage=field_map_exnjson__"Message"Message.of_jsoninletphoneNumber=field_mapjson__"PhoneNumber"PhoneNumber.of_jsoninlettargetArn=field_mapjson__"TargetArn"String_.of_jsoninlettopicArn=field_mapjson__"TopicArn"TopicARN.of_jsoninmake?messageGroupId?messageDeduplicationId?messageAttributes?messageStructure?subject~message?phoneNumber?targetArn?topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for Publish action."]modulePublishBatchResponse=structtypepublishBatchResult={successful:PublishBatchResultEntryList.toption[@ocaml.doc"A list of successful PublishBatch responses."];failed:BatchResultErrorEntryList.toption[@ocaml.doc"A list of failed PublishBatch responses."]}andresponseMetaData=unitandt={publishBatchResult:publishBatchResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`BatchEntryIdsNotDistinctExceptionofBatchEntryIdsNotDistinctException.t|`BatchRequestTooLongExceptionofBatchRequestTooLongException.t|`EmptyBatchRequestExceptionofEmptyBatchRequestException.t|`EndpointDisabledExceptionofEndpointDisabledException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidBatchEntryIdExceptionofInvalidBatchEntryIdException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidParameterValueExceptionofInvalidParameterValueException.t|`InvalidSecurityExceptionofInvalidSecurityException.t|`KMSAccessDeniedExceptionofKMSAccessDeniedException.t|`KMSDisabledExceptionofKMSDisabledException.t|`KMSInvalidStateExceptionofKMSInvalidStateException.t|`KMSNotFoundExceptionofKMSNotFoundException.t|`KMSOptInRequiredofKMSOptInRequired.t|`KMSThrottlingExceptionofKMSThrottlingException.t|`NotFoundExceptionofNotFoundException.t|`PlatformApplicationDisabledExceptionofPlatformApplicationDisabledException.t|`TooManyEntriesInBatchRequestExceptionofTooManyEntriesInBatchRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="PublishBatchResponse"letmake?successful=fun?failed->fun()->{publishBatchResult={successful;failed};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"BatchEntryIdsNotDistinctException"->`BatchEntryIdsNotDistinctException(BatchEntryIdsNotDistinctException.of_jsonjson)|"BatchRequestTooLongException"->`BatchRequestTooLongException(BatchRequestTooLongException.of_jsonjson)|"EmptyBatchRequestException"->`EmptyBatchRequestException(EmptyBatchRequestException.of_jsonjson)|"EndpointDisabledException"->`EndpointDisabledException(EndpointDisabledException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidBatchEntryIdException"->`InvalidBatchEntryIdException(InvalidBatchEntryIdException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidParameterValueException"->`InvalidParameterValueException(InvalidParameterValueException.of_jsonjson)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_jsonjson)|"KMSAccessDeniedException"->`KMSAccessDeniedException(KMSAccessDeniedException.of_jsonjson)|"KMSDisabledException"->`KMSDisabledException(KMSDisabledException.of_jsonjson)|"KMSInvalidStateException"->`KMSInvalidStateException(KMSInvalidStateException.of_jsonjson)|"KMSNotFoundException"->`KMSNotFoundException(KMSNotFoundException.of_jsonjson)|"KMSOptInRequired"->`KMSOptInRequired(KMSOptInRequired.of_jsonjson)|"KMSThrottlingException"->`KMSThrottlingException(KMSThrottlingException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"PlatformApplicationDisabledException"->`PlatformApplicationDisabledException(PlatformApplicationDisabledException.of_jsonjson)|"TooManyEntriesInBatchRequestException"->`TooManyEntriesInBatchRequestException(TooManyEntriesInBatchRequestException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"BatchEntryIdsNotDistinctException"->`BatchEntryIdsNotDistinctException(BatchEntryIdsNotDistinctException.of_xmlxml)|"BatchRequestTooLongException"->`BatchRequestTooLongException(BatchRequestTooLongException.of_xmlxml)|"EmptyBatchRequestException"->`EmptyBatchRequestException(EmptyBatchRequestException.of_xmlxml)|"EndpointDisabledException"->`EndpointDisabledException(EndpointDisabledException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidBatchEntryIdException"->`InvalidBatchEntryIdException(InvalidBatchEntryIdException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidParameterValueException"->`InvalidParameterValueException(InvalidParameterValueException.of_xmlxml)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_xmlxml)|"KMSAccessDeniedException"->`KMSAccessDeniedException(KMSAccessDeniedException.of_xmlxml)|"KMSDisabledException"->`KMSDisabledException(KMSDisabledException.of_xmlxml)|"KMSInvalidStateException"->`KMSInvalidStateException(KMSInvalidStateException.of_xmlxml)|"KMSNotFoundException"->`KMSNotFoundException(KMSNotFoundException.of_xmlxml)|"KMSOptInRequired"->`KMSOptInRequired(KMSOptInRequired.of_xmlxml)|"KMSThrottlingException"->`KMSThrottlingException(KMSThrottlingException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"PlatformApplicationDisabledException"->`PlatformApplicationDisabledException(PlatformApplicationDisabledException.of_xmlxml)|"TooManyEntriesInBatchRequestException"->`TooManyEntriesInBatchRequestException(TooManyEntriesInBatchRequestException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`BatchEntryIdsNotDistinctExceptione->`Assoc[("error",(`String"BatchEntryIdsNotDistinctException"));("details",(BatchEntryIdsNotDistinctException.to_jsone))]|`BatchRequestTooLongExceptione->`Assoc[("error",(`String"BatchRequestTooLongException"));("details",(BatchRequestTooLongException.to_jsone))]|`EmptyBatchRequestExceptione->`Assoc[("error",(`String"EmptyBatchRequestException"));("details",(EmptyBatchRequestException.to_jsone))]|`EndpointDisabledExceptione->`Assoc[("error",(`String"EndpointDisabledException"));("details",(EndpointDisabledException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidBatchEntryIdExceptione->`Assoc[("error",(`String"InvalidBatchEntryIdException"));("details",(InvalidBatchEntryIdException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidParameterValueExceptione->`Assoc[("error",(`String"InvalidParameterValueException"));("details",(InvalidParameterValueException.to_jsone))]|`InvalidSecurityExceptione->`Assoc[("error",(`String"InvalidSecurityException"));("details",(InvalidSecurityException.to_jsone))]|`KMSAccessDeniedExceptione->`Assoc[("error",(`String"KMSAccessDeniedException"));("details",(KMSAccessDeniedException.to_jsone))]|`KMSDisabledExceptione->`Assoc[("error",(`String"KMSDisabledException"));("details",(KMSDisabledException.to_jsone))]|`KMSInvalidStateExceptione->`Assoc[("error",(`String"KMSInvalidStateException"));("details",(KMSInvalidStateException.to_jsone))]|`KMSNotFoundExceptione->`Assoc[("error",(`String"KMSNotFoundException"));("details",(KMSNotFoundException.to_jsone))]|`KMSOptInRequirede->`Assoc[("error",(`String"KMSOptInRequired"));("details",(KMSOptInRequired.to_jsone))]|`KMSThrottlingExceptione->`Assoc[("error",(`String"KMSThrottlingException"));("details",(KMSThrottlingException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`PlatformApplicationDisabledExceptione->`Assoc[("error",(`String"PlatformApplicationDisabledException"));("details",(PlatformApplicationDisabledException.to_jsone))]|`TooManyEntriesInBatchRequestExceptione->`Assoc[("error",(`String"TooManyEntriesInBatchRequestException"));("details",(TooManyEntriesInBatchRequestException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.publishBatchResultinstructure_to_wrapped_value[("Successful",(Option.mapx.successful~f:PublishBatchResultEntryList.to_value));("Failed",(Option.mapx.failed~f:BatchResultErrorEntryList.to_value))]~wrapper:"PublishBatchResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"PublishBatchResult"inletfailed=(Option.map~f:BatchResultErrorEntryList.of_xml)(Xml.childxml_arg0"Failed")inletsuccessful=(Option.map~f:PublishBatchResultEntryList.of_xml)(Xml.childxml_arg0"Successful")inmake?failed?successful()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfailed=field_mapjson__"Failed"BatchResultErrorEntryList.of_jsoninletsuccessful=field_mapjson__"Successful"PublishBatchResultEntryList.of_jsoninmake?failed?successful()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Publishes up to 10 messages to the specified topic in a single batch. This is a batch version of the Publish API. If you try to send more than 10 messages in a single batch request, you will receive a TooManyEntriesInBatchRequest exception. For FIFO topics, multiple messages within a single batch are published in the order they are sent, and messages are deduplicated within the batch and across batches for five minutes. The result of publishing each message is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200. The maximum allowed individual message size and the maximum total payload size (the sum of the individual lengths of all of the batched messages) are both 256 KB (262,144 bytes). The PublishBatch API can send up to 10 messages at a time. If you attempt to send more than 10 messages in one request, you will encounter a TooManyEntriesInBatchRequest exception. In such cases, split your messages into multiple requests, each containing no more than 10 messages. Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this: &AttributeName.1=first &AttributeName.2=second If you send a batch message to a topic, Amazon SNS publishes the batch message to each endpoint that is subscribed to the topic. The format of the batch message depends on the notification protocol for each subscribed endpoint. When a messageId is returned, the batch message is saved, and Amazon SNS immediately delivers the message to subscribers."]modulePublishBatchInput=structtypenonrect={topicArn:TopicARN.t[@ocaml.doc"The Amazon resource name (ARN) of the topic you want to batch publish to."];publishBatchRequestEntries:PublishBatchRequestEntryList.t[@ocaml.doc"A list of PublishBatch request entries to be sent to the SNS topic."]}letcontext_="PublishBatchInput"letmake~topicArn=fun~publishBatchRequestEntries->fun()->{topicArn;publishBatchRequestEntries}letto_valuex=structure_to_value[("TopicArn",(Some(TopicARN.to_valuex.topicArn)));("PublishBatchRequestEntries",(Some(PublishBatchRequestEntryList.to_valuex.publishBatchRequestEntries)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpublishBatchRequestEntries=PublishBatchRequestEntryList.of_xml(Xml.child_exn~context:context_xml_arg0"PublishBatchRequestEntries")inlettopicArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"TopicArn")inmake~publishBatchRequestEntries~topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpublishBatchRequestEntries=field_map_exnjson__"PublishBatchRequestEntries"PublishBatchRequestEntryList.of_jsoninlettopicArn=field_map_exnjson__"TopicArn"TopicARN.of_jsoninmake~publishBatchRequestEntries~topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Publishes up to 10 messages to the specified topic in a single batch. This is a batch version of the Publish API. If you try to send more than 10 messages in a single batch request, you will receive a TooManyEntriesInBatchRequest exception. For FIFO topics, multiple messages within a single batch are published in the order they are sent, and messages are deduplicated within the batch and across batches for five minutes. The result of publishing each message is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200. The maximum allowed individual message size and the maximum total payload size (the sum of the individual lengths of all of the batched messages) are both 256 KB (262,144 bytes). The PublishBatch API can send up to 10 messages at a time. If you attempt to send more than 10 messages in one request, you will encounter a TooManyEntriesInBatchRequest exception. In such cases, split your messages into multiple requests, each containing no more than 10 messages. Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this: &AttributeName.1=first &AttributeName.2=second If you send a batch message to a topic, Amazon SNS publishes the batch message to each endpoint that is subscribed to the topic. The format of the batch message depends on the notification protocol for each subscribed endpoint. When a messageId is returned, the batch message is saved, and Amazon SNS immediately delivers the message to subscribers."]moduleOptInPhoneNumberResponse=structtypeoptInPhoneNumberResult=unitandresponseMetaData=unitandt={optInPhoneNumberResult:optInPhoneNumberResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ThrottledExceptionofThrottledException.t|`Unknown_operation_errorof(string*stringoption)]letmake()={optInPhoneNumberResult=();responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response for the OptInPhoneNumber action."]moduleOptInPhoneNumberInput=structtypenonrect={phoneNumber:PhoneNumber.t[@ocaml.doc"The phone number to opt in. Use E.164 format."]}letcontext_="OptInPhoneNumberInput"letmake~phoneNumber=fun()->{phoneNumber}letto_valuex=structure_to_value[("phoneNumber",(Some(PhoneNumber.to_valuex.phoneNumber)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumber=PhoneNumber.of_xml(Xml.child_exn~context:context_xml_arg0"PhoneNumber")inmake~phoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumber=field_map_exnjson__"phoneNumber"PhoneNumber.of_jsoninmake~phoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for the OptInPhoneNumber action."]moduleListTopicsResponse=structtypelistTopicsResult={topics:TopicsList.toption[@ocaml.doc"A list of topic ARNs."];nextToken:NextToken.toption[@ocaml.doc"Token to pass along to the next ListTopics request. This element is returned if there are additional topics to retrieve."]}andresponseMetaData=unitandt={listTopicsResult:listTopicsResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="ListTopicsResponse"letmake?topics=fun?nextToken->fun()->{listTopicsResult={topics;nextToken};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.listTopicsResultinstructure_to_wrapped_value[("Topics",(Option.mapx.topics~f:TopicsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]~wrapper:"ListTopicsResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"ListTopicsResult"inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inlettopics=(Option.map~f:TopicsList.of_xml)(Xml.childxml_arg0"Topics")inmake?nextToken?topics()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninlettopics=field_mapjson__"Topics"TopicsList.of_jsoninmake?nextToken?topics()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for ListTopics action."]moduleListTopicsInput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"Token returned by the previous ListTopics request."]}letmake?nextToken=fun()->{nextToken}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the requester's topics. Each call returns a limited list of topics, up to 100. If there are more topics, a NextToken is also returned. Use the NextToken parameter in a new ListTopics call to get further results. This action is throttled at 30 transactions per second (TPS)."]moduleListTagsForResourceResponse=structtypelistTagsForResourceResult={tags:TagList.toption[@ocaml.doc"The tags associated with the specified topic."]}andresponseMetaData=unitandt={listTagsForResourceResult:listTagsForResourceResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`ConcurrentAccessExceptionofConcurrentAccessException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TagPolicyExceptionofTagPolicyException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="ListTagsForResourceResponse"letmake?tags=fun()->{listTagsForResourceResult={tags};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"ConcurrentAccessException"->`ConcurrentAccessException(ConcurrentAccessException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"ConcurrentAccessException"->`ConcurrentAccessException(ConcurrentAccessException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`ConcurrentAccessExceptione->`Assoc[("error",(`String"ConcurrentAccessException"));("details",(ConcurrentAccessException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TagPolicyExceptione->`Assoc[("error",(`String"TagPolicyException"));("details",(TagPolicyException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.listTagsForResourceResultinstructure_to_wrapped_value[("Tags",(Option.mapx.tags~f:TagList.to_value))]~wrapper:"ListTagsForResourceResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"ListTagsForResourceResult"inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all tags added to the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon Simple Notification Service Developer Guide."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:AmazonResourceName.t[@ocaml.doc"The ARN of the topic for which to list tags."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(AmazonResourceName.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"AmazonResourceName.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all tags added to the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon Simple Notification Service Developer Guide."]moduleListSubscriptionsResponse=structtypelistSubscriptionsResult={subscriptions:SubscriptionsList.toption[@ocaml.doc"A list of subscriptions."];nextToken:NextToken.toption[@ocaml.doc"Token to pass along to the next ListSubscriptions request. This element is returned if there are more subscriptions to retrieve."]}andresponseMetaData=unitandt={listSubscriptionsResult:listSubscriptionsResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="ListSubscriptionsResponse"letmake?subscriptions=fun?nextToken->fun()->{listSubscriptionsResult={subscriptions;nextToken};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.listSubscriptionsResultinstructure_to_wrapped_value[("Subscriptions",(Option.mapx.subscriptions~f:SubscriptionsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]~wrapper:"ListSubscriptionsResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"ListSubscriptionsResult"inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletsubscriptions=(Option.map~f:SubscriptionsList.of_xml)(Xml.childxml_arg0"Subscriptions")inmake?nextToken?subscriptions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletsubscriptions=field_mapjson__"Subscriptions"SubscriptionsList.of_jsoninmake?nextToken?subscriptions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for ListSubscriptions action"]moduleListSubscriptionsInput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"Token returned by the previous ListSubscriptions request."]}letmake?nextToken=fun()->{nextToken}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for ListSubscriptions action."]moduleListSubscriptionsByTopicResponse=structtypelistSubscriptionsByTopicResult={subscriptions:SubscriptionsList.toption[@ocaml.doc"A list of subscriptions."];nextToken:NextToken.toption[@ocaml.doc"Token to pass along to the next ListSubscriptionsByTopic request. This element is returned if there are more subscriptions to retrieve."]}andresponseMetaData=unitandt={listSubscriptionsByTopicResult:listSubscriptionsByTopicResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="ListSubscriptionsByTopicResponse"letmake?subscriptions=fun?nextToken->fun()->{listSubscriptionsByTopicResult={subscriptions;nextToken};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.listSubscriptionsByTopicResultinstructure_to_wrapped_value[("Subscriptions",(Option.mapx.subscriptions~f:SubscriptionsList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]~wrapper:"ListSubscriptionsByTopicResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"ListSubscriptionsByTopicResult"inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletsubscriptions=(Option.map~f:SubscriptionsList.of_xml)(Xml.childxml_arg0"Subscriptions")inmake?nextToken?subscriptions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletsubscriptions=field_mapjson__"Subscriptions"SubscriptionsList.of_jsoninmake?nextToken?subscriptions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for ListSubscriptionsByTopic action."]moduleListSubscriptionsByTopicInput=structtypenonrect={topicArn:TopicARN.t[@ocaml.doc"The ARN of the topic for which you wish to find subscriptions."];nextToken:NextToken.toption[@ocaml.doc"Token returned by the previous ListSubscriptionsByTopic request."]}letcontext_="ListSubscriptionsByTopicInput"letmake?nextToken=fun~topicArn->fun()->{nextToken;topicArn}letto_valuex=structure_to_value[("TopicArn",(Some(TopicARN.to_valuex.topicArn)));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inlettopicArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"TopicArn")inmake?nextToken~topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninlettopicArn=field_map_exnjson__"TopicArn"TopicARN.of_jsoninmake?nextToken~topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for ListSubscriptionsByTopic action."]moduleListSMSSandboxPhoneNumbersResult=structtypelistSMSSandboxPhoneNumbersResult={phoneNumbers:SMSSandboxPhoneNumberList.toption[@ocaml.doc"A list of the calling account's pending and verified phone numbers."];nextToken:String__lc1.toption[@ocaml.doc"A NextToken string is returned when you call the ListSMSSandboxPhoneNumbersInput operation if additional pages of records are available."]}andresponseMetaData=unitandt={listSMSSandboxPhoneNumbersResult:listSMSSandboxPhoneNumbersResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledExceptionofThrottledException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="ListSMSSandboxPhoneNumbersResult"letmake?phoneNumbers=fun?nextToken->fun()->{listSMSSandboxPhoneNumbersResult={phoneNumbers;nextToken};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.listSMSSandboxPhoneNumbersResultinstructure_to_wrapped_value[("PhoneNumbers",(Option.mapx.phoneNumbers~f:SMSSandboxPhoneNumberList.to_value));("NextToken",(Option.mapx.nextToken~f:String__lc1.to_value))]~wrapper:"ListSMSSandboxPhoneNumbersResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"ListSMSSandboxPhoneNumbersResult"inletnextToken=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"NextToken")inletphoneNumbers=(Option.map~f:SMSSandboxPhoneNumberList.of_xml)(Xml.childxml_arg0"PhoneNumbers")inmake?nextToken?phoneNumbers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String__lc1.of_jsoninletphoneNumbers=field_mapjson__"PhoneNumbers"SMSSandboxPhoneNumberList.of_jsoninmake?nextToken?phoneNumbers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the calling Amazon Web Services account's current verified and pending destination phone numbers in the SMS sandbox. When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide."]moduleListSMSSandboxPhoneNumbersInput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"Token that the previous ListSMSSandboxPhoneNumbersInput request returns."];maxResults:MaxItems.toption[@ocaml.doc"The maximum number of phone numbers to return."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxItems.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxItems.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxItems.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the calling Amazon Web Services account's current verified and pending destination phone numbers in the SMS sandbox. When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide."]moduleListPlatformApplicationsResponse=structtypelistPlatformApplicationsResult={platformApplications:ListOfPlatformApplications.toption[@ocaml.doc"Platform applications returned when calling ListPlatformApplications action."];nextToken:String_.toption[@ocaml.doc"NextToken string is returned when calling ListPlatformApplications action if additional records are available after the first page results."]}andresponseMetaData=unitandt={listPlatformApplicationsResult:listPlatformApplicationsResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="ListPlatformApplicationsResponse"letmake?platformApplications=fun?nextToken->fun()->{listPlatformApplicationsResult={platformApplications;nextToken};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.listPlatformApplicationsResultinstructure_to_wrapped_value[("PlatformApplications",(Option.mapx.platformApplications~f:ListOfPlatformApplications.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]~wrapper:"ListPlatformApplicationsResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"ListPlatformApplicationsResult"inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletplatformApplications=(Option.map~f:ListOfPlatformApplications.of_xml)(Xml.childxml_arg0"PlatformApplications")inmake?nextToken?platformApplications()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletplatformApplications=field_mapjson__"PlatformApplications"ListOfPlatformApplications.of_jsoninmake?nextToken?platformApplications()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for ListPlatformApplications action."]moduleListPlatformApplicationsInput=structtypenonrect={nextToken:String_.toption[@ocaml.doc"NextToken string is used when calling ListPlatformApplications action to retrieve additional records that are available after the first page results."]}letmake?nextToken=fun()->{nextToken}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inmake?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninmake?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for ListPlatformApplications action."]moduleListPhoneNumbersOptedOutResponse=structtypelistPhoneNumbersOptedOutResult={phoneNumbers:PhoneNumberList.toption[@ocaml.doc"A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers."];nextToken:String__lc1.toption[@ocaml.doc"A NextToken string is returned when you call the ListPhoneNumbersOptedOut action if additional records are available after the first page of results."]}andresponseMetaData=unitandt={listPhoneNumbersOptedOutResult:listPhoneNumbersOptedOutResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ThrottledExceptionofThrottledException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="ListPhoneNumbersOptedOutResponse"letmake?phoneNumbers=fun?nextToken->fun()->{listPhoneNumbersOptedOutResult={phoneNumbers;nextToken};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.listPhoneNumbersOptedOutResultinstructure_to_wrapped_value[("phoneNumbers",(Option.mapx.phoneNumbers~f:PhoneNumberList.to_value));("nextToken",(Option.mapx.nextToken~f:String__lc1.to_value))]~wrapper:"ListPhoneNumbersOptedOutResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"ListPhoneNumbersOptedOutResult"inletnextToken=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"NextToken")inletphoneNumbers=(Option.map~f:PhoneNumberList.of_xml)(Xml.childxml_arg0"PhoneNumbers")inmake?nextToken?phoneNumbers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String__lc1.of_jsoninletphoneNumbers=field_mapjson__"phoneNumbers"PhoneNumberList.of_jsoninmake?nextToken?phoneNumbers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response from the ListPhoneNumbersOptedOut action."]moduleListPhoneNumbersOptedOutInput=structtypenonrect={nextToken:String__lc1.toption[@ocaml.doc"A NextToken string is used when you call the ListPhoneNumbersOptedOut action to retrieve additional records that are available after the first page of results."]}letmake?nextToken=fun()->{nextToken}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"NextToken")inmake?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String__lc1.of_jsoninmake?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input for the ListPhoneNumbersOptedOut action."]moduleListOriginationNumbersResult=structtypelistOriginationNumbersResult={nextToken:NextToken.toption[@ocaml.doc"A NextToken string is returned when you call the ListOriginationNumbers operation if additional pages of records are available."];phoneNumbers:PhoneNumberInformationList.toption[@ocaml.doc"A list of the calling account's verified and pending origination numbers."]}andresponseMetaData=unitandt={listOriginationNumbersResult:listOriginationNumbersResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ThrottledExceptionofThrottledException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="ListOriginationNumbersResult"letmake?nextToken=fun?phoneNumbers->fun()->{listOriginationNumbersResult={nextToken;phoneNumbers};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.listOriginationNumbersResultinstructure_to_wrapped_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("PhoneNumbers",(Option.mapx.phoneNumbers~f:PhoneNumberInformationList.to_value))]~wrapper:"ListOriginationNumbersResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"ListOriginationNumbersResult"inletphoneNumbers=(Option.map~f:PhoneNumberInformationList.of_xml)(Xml.childxml_arg0"PhoneNumbers")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?phoneNumbers?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumbers=field_mapjson__"PhoneNumbers"PhoneNumberInformationList.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?phoneNumbers?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the calling Amazon Web Services account's dedicated origination numbers and their metadata. For more information about origination numbers, see Origination numbers in the Amazon SNS Developer Guide."]moduleListOriginationNumbersRequest=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"Token that the previous ListOriginationNumbers request returns."];maxResults:MaxItemsListOriginationNumbers.toption[@ocaml.doc"The maximum number of origination numbers to return."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxItemsListOriginationNumbers.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxItemsListOriginationNumbers.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxItemsListOriginationNumbers.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the calling Amazon Web Services account's dedicated origination numbers and their metadata. For more information about origination numbers, see Origination numbers in the Amazon SNS Developer Guide."]moduleListEndpointsByPlatformApplicationResponse=structtypelistEndpointsByPlatformApplicationResult={endpoints:ListOfEndpoints.toption[@ocaml.doc"Endpoints returned for ListEndpointsByPlatformApplication action."];nextToken:String_.toption[@ocaml.doc"NextToken string is returned when calling ListEndpointsByPlatformApplication action if additional records are available after the first page results."]}andresponseMetaData=unitandt={listEndpointsByPlatformApplicationResult:listEndpointsByPlatformApplicationResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="ListEndpointsByPlatformApplicationResponse"letmake?endpoints=fun?nextToken->fun()->{listEndpointsByPlatformApplicationResult={endpoints;nextToken};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.listEndpointsByPlatformApplicationResultinstructure_to_wrapped_value[("Endpoints",(Option.mapx.endpoints~f:ListOfEndpoints.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]~wrapper:"ListEndpointsByPlatformApplicationResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"ListEndpointsByPlatformApplicationResult"inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletendpoints=(Option.map~f:ListOfEndpoints.of_xml)(Xml.childxml_arg0"Endpoints")inmake?nextToken?endpoints()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletendpoints=field_mapjson__"Endpoints"ListOfEndpoints.of_jsoninmake?nextToken?endpoints()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for ListEndpointsByPlatformApplication action."]moduleListEndpointsByPlatformApplicationInput=structtypenonrect={platformApplicationArn:String_.t[@ocaml.doc"PlatformApplicationArn for ListEndpointsByPlatformApplicationInput action."];nextToken:String_.toption[@ocaml.doc"NextToken string is used when calling ListEndpointsByPlatformApplication action to retrieve additional records that are available after the first page results."]}letcontext_="ListEndpointsByPlatformApplicationInput"letmake?nextToken=fun~platformApplicationArn->fun()->{nextToken;platformApplicationArn}letto_valuex=structure_to_value[("PlatformApplicationArn",(Some(String_.to_valuex.platformApplicationArn)));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletplatformApplicationArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"PlatformApplicationArn")inmake?nextToken~platformApplicationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletplatformApplicationArn=field_map_exnjson__"PlatformApplicationArn"String_.of_jsoninmake?nextToken~platformApplicationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for ListEndpointsByPlatformApplication action."]moduleInvalidStateException=structtypenonrect={message:String__lc1.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String__lc1.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String__lc1.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String__lc1.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the specified state is not a valid state for an event source."]moduleGetTopicAttributesResponse=structtypegetTopicAttributesResult={attributes:TopicAttributesMap.toption[@ocaml.doc"A map of the topic's attributes. Attributes in this map include the following: DeliveryPolicy \226\128\147 The JSON serialization of the topic's delivery policy. DisplayName \226\128\147 The human-readable name used in the From field for notifications to email and email-json endpoints. EffectiveDeliveryPolicy \226\128\147 The JSON serialization of the effective delivery policy, taking system defaults into account. Owner \226\128\147 The Amazon Web Services account ID of the topic's owner. Policy \226\128\147 The JSON serialization of the topic's access control policy. SignatureVersion \226\128\147 The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. By default, SignatureVersion is set to 1. The signature is a Base64-encoded SHA1withRSA signature. When you set SignatureVersion to 2. Amazon SNS uses a Base64-encoded SHA256withRSA signature. If the API response does not include the SignatureVersion attribute, it means that the SignatureVersion for the topic has value 1. SubscriptionsConfirmed \226\128\147 The number of confirmed subscriptions for the topic. SubscriptionsDeleted \226\128\147 The number of deleted subscriptions for the topic. SubscriptionsPending \226\128\147 The number of subscriptions pending confirmation for the topic. TopicArn \226\128\147 The topic's ARN. TracingConfig \226\128\147 Tracing mode of an Amazon SNS topic. By default TracingConfig is set to PassThrough, and the topic passes through the tracing header it receives from an Amazon SNS publisher to its subscriptions. If set to Active, Amazon SNS will vend X-Ray segment data to topic owner account if the sampled flag in the tracing header is true. This is only supported on standard topics. The following attribute applies only to server-side-encryption: KmsMasterKeyId - The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see Key Terms. For more examples, see KeyId in the Key Management Service API Reference. The following attributes apply only to FIFO topics: ArchivePolicy \226\128\147 The policy that sets the retention period for messages stored in the message archive of an Amazon SNS FIFO topic. BeginningArchiveTime \226\128\147 The earliest starting point at which a message in the topic\226\128\153s archive can be replayed from. This point in time is based on the configured message retention period set by the topic\226\128\153s message archiving policy. ContentBasedDeduplication \226\128\147 Enables content-based deduplication for FIFO topics. By default, ContentBasedDeduplication is set to false. If you create a FIFO topic and this attribute is false, you must specify a value for the MessageDeduplicationId parameter for the Publish action. When you set ContentBasedDeduplication to true, Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message). (Optional) To override the generated value, you can specify a value for the MessageDeduplicationId parameter for the Publish action. FifoTopic \226\128\147 When this is set to true, a FIFO topic is created."]}andresponseMetaData=unitandt={getTopicAttributesResult:getTopicAttributesResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidSecurityExceptionofInvalidSecurityException.t|`NotFoundExceptionofNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="GetTopicAttributesResponse"letmake?attributes=fun()->{getTopicAttributesResult={attributes};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidSecurityExceptione->`Assoc[("error",(`String"InvalidSecurityException"));("details",(InvalidSecurityException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.getTopicAttributesResultinstructure_to_wrapped_value[("Attributes",(Option.mapx.attributes~f:TopicAttributesMap.to_value))]~wrapper:"GetTopicAttributesResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"GetTopicAttributesResult"inletattributes=(Option.map~f:TopicAttributesMap.of_xml)(Xml.childxml_arg0"Attributes")inmake?attributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"Attributes"TopicAttributesMap.of_jsoninmake?attributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for GetTopicAttributes action."]moduleGetTopicAttributesInput=structtypenonrect={topicArn:TopicARN.t[@ocaml.doc"The ARN of the topic whose properties you want to get."]}letcontext_="GetTopicAttributesInput"letmake~topicArn=fun()->{topicArn}letto_valuex=structure_to_value[("TopicArn",(Some(TopicARN.to_valuex.topicArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettopicArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"TopicArn")inmake~topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopicArn=field_map_exnjson__"TopicArn"TopicARN.of_jsoninmake~topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for GetTopicAttributes action."]moduleGetSubscriptionAttributesResponse=structtypegetSubscriptionAttributesResult={attributes:SubscriptionAttributesMap.toption[@ocaml.doc"A map of the subscription's attributes. Attributes in this map include the following: ConfirmationWasAuthenticated \226\128\147 true if the subscription confirmation request was authenticated. DeliveryPolicy \226\128\147 The JSON serialization of the subscription's delivery policy. EffectiveDeliveryPolicy \226\128\147 The JSON serialization of the effective delivery policy that takes into account the topic delivery policy and account system defaults. FilterPolicy \226\128\147 The filter policy JSON that is assigned to the subscription. For more information, see Amazon SNS Message Filtering in the Amazon SNS Developer Guide. FilterPolicyScope \226\128\147 This attribute lets you choose the filtering scope by using one of the following string value types: MessageAttributes (default) \226\128\147 The filter is applied on the message attributes. MessageBody \226\128\147 The filter is applied on the message body. Owner \226\128\147 The Amazon Web Services account ID of the subscription's owner. PendingConfirmation \226\128\147 true if the subscription hasn't been confirmed. To confirm a pending subscription, call the ConfirmSubscription action with a confirmation token. RawMessageDelivery \226\128\147 true if raw message delivery is enabled for the subscription. Raw messages are free of JSON formatting and can be sent to HTTP/S and Amazon SQS endpoints. RedrivePolicy \226\128\147 When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing. SubscriptionArn \226\128\147 The subscription's ARN. TopicArn \226\128\147 The topic ARN that the subscription is associated with. The following attribute applies only to Amazon Data Firehose delivery stream subscriptions: SubscriptionRoleArn \226\128\147 The ARN of the IAM role that has the following: Permission to write to the Firehose delivery stream Amazon SNS listed as a trusted entity Specifying a valid ARN for this attribute is required for Firehose delivery stream subscriptions. For more information, see Fanout to Firehose delivery streams in the Amazon SNS Developer Guide."]}andresponseMetaData=unitandt={getSubscriptionAttributesResult:getSubscriptionAttributesResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="GetSubscriptionAttributesResponse"letmake?attributes=fun()->{getSubscriptionAttributesResult={attributes};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.getSubscriptionAttributesResultinstructure_to_wrapped_value[("Attributes",(Option.mapx.attributes~f:SubscriptionAttributesMap.to_value))]~wrapper:"GetSubscriptionAttributesResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"GetSubscriptionAttributesResult"inletattributes=(Option.map~f:SubscriptionAttributesMap.of_xml)(Xml.childxml_arg0"Attributes")inmake?attributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"Attributes"SubscriptionAttributesMap.of_jsoninmake?attributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for GetSubscriptionAttributes action."]moduleGetSubscriptionAttributesInput=structtypenonrect={subscriptionArn:SubscriptionARN.t[@ocaml.doc"The ARN of the subscription whose properties you want to get."]}letcontext_="GetSubscriptionAttributesInput"letmake~subscriptionArn=fun()->{subscriptionArn}letto_valuex=structure_to_value[("SubscriptionArn",(Some(SubscriptionARN.to_valuex.subscriptionArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscriptionArn=SubscriptionARN.of_xml(Xml.child_exn~context:context_xml_arg0"SubscriptionArn")inmake~subscriptionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscriptionArn=field_map_exnjson__"SubscriptionArn"SubscriptionARN.of_jsoninmake~subscriptionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for GetSubscriptionAttributes."]moduleGetSMSSandboxAccountStatusResult=structtypegetSMSSandboxAccountStatusResult={isInSandbox:Boolean.toption[@ocaml.doc"Indicates whether the calling Amazon Web Services account is in the SMS sandbox."]}andresponseMetaData=unitandt={getSMSSandboxAccountStatusResult:getSMSSandboxAccountStatusResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`ThrottledExceptionofThrottledException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="GetSMSSandboxAccountStatusResult"letmake?isInSandbox=fun()->{getSMSSandboxAccountStatusResult={isInSandbox};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.getSMSSandboxAccountStatusResultinstructure_to_wrapped_value[("IsInSandbox",(Option.mapx.isInSandbox~f:Boolean.to_value))]~wrapper:"GetSMSSandboxAccountStatusResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"GetSMSSandboxAccountStatusResult"inletisInSandbox=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IsInSandbox")inmake?isInSandbox()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisInSandbox=field_mapjson__"IsInSandbox"Boolean.of_jsoninmake?isInSandbox()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the SMS sandbox status for the calling Amazon Web Services account in the target Amazon Web Services Region. When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide."]moduleGetSMSSandboxAccountStatusInput=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the SMS sandbox status for the calling Amazon Web Services account in the target Amazon Web Services Region. When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide."]moduleGetSMSAttributesResponse=structtypegetSMSAttributesResult={attributes:MapStringToString.toption[@ocaml.doc"The SMS attribute names and their values."]}andresponseMetaData=unitandt={getSMSAttributesResult:getSMSAttributesResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ThrottledExceptionofThrottledException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="GetSMSAttributesResponse"letmake?attributes=fun()->{getSMSAttributesResult={attributes};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.getSMSAttributesResultinstructure_to_wrapped_value[("attributes",(Option.mapx.attributes~f:MapStringToString.to_value))]~wrapper:"GetSMSAttributesResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"GetSMSAttributesResult"inletattributes=(Option.map~f:MapStringToString.of_xml)(Xml.childxml_arg0"Attributes")inmake?attributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"attributes"MapStringToString.of_jsoninmake?attributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response from the GetSMSAttributes request."]moduleGetSMSAttributesInput=structtypenonrect={attributes:ListString.toption[@ocaml.doc"A list of the individual attribute names, such as MonthlySpendLimit, for which you want values. For all attribute names, see SetSMSAttributes. If you don't use this parameter, Amazon SNS returns all SMS attributes."]}letmake?attributes=fun()->{attributes}letto_valuex=structure_to_value[("attributes",(Option.mapx.attributes~f:ListString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:ListString.of_xml)(Xml.childxml_arg0"Attributes")inmake?attributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"attributes"ListString.of_jsoninmake?attributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input for the GetSMSAttributes request."]moduleGetPlatformApplicationAttributesResponse=structtypegetPlatformApplicationAttributesResult={attributes:MapStringToString.toption[@ocaml.doc"Attributes include the following: AppleCertificateExpiryDate \226\128\147 The expiry date of the SSL certificate used to configure certificate-based authentication. ApplePlatformTeamID \226\128\147 The Apple developer account ID used to configure token-based authentication. ApplePlatformBundleID \226\128\147 The app identifier used to configure token-based authentication. AuthenticationMethod \226\128\147 Returns the credential type used when sending push notifications from application to APNS/APNS_Sandbox, or application to GCM. APNS \226\128\147 Returns the token or certificate. GCM \226\128\147 Returns the token or key. EventEndpointCreated \226\128\147 Topic ARN to which EndpointCreated event notifications should be sent. EventEndpointDeleted \226\128\147 Topic ARN to which EndpointDeleted event notifications should be sent. EventEndpointUpdated \226\128\147 Topic ARN to which EndpointUpdate event notifications should be sent. EventDeliveryFailure \226\128\147 Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints."]}andresponseMetaData=unitandt={getPlatformApplicationAttributesResult:getPlatformApplicationAttributesResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="GetPlatformApplicationAttributesResponse"letmake?attributes=fun()->{getPlatformApplicationAttributesResult={attributes};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.getPlatformApplicationAttributesResultinstructure_to_wrapped_value[("Attributes",(Option.mapx.attributes~f:MapStringToString.to_value))]~wrapper:"GetPlatformApplicationAttributesResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"GetPlatformApplicationAttributesResult"inletattributes=(Option.map~f:MapStringToString.of_xml)(Xml.childxml_arg0"Attributes")inmake?attributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"Attributes"MapStringToString.of_jsoninmake?attributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for GetPlatformApplicationAttributes action."]moduleGetPlatformApplicationAttributesInput=structtypenonrect={platformApplicationArn:String_.t[@ocaml.doc"PlatformApplicationArn for GetPlatformApplicationAttributesInput."]}letcontext_="GetPlatformApplicationAttributesInput"letmake~platformApplicationArn=fun()->{platformApplicationArn}letto_valuex=structure_to_value[("PlatformApplicationArn",(Some(String_.to_valuex.platformApplicationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplatformApplicationArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"PlatformApplicationArn")inmake~platformApplicationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplatformApplicationArn=field_map_exnjson__"PlatformApplicationArn"String_.of_jsoninmake~platformApplicationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for GetPlatformApplicationAttributes action."]moduleGetEndpointAttributesResponse=structtypegetEndpointAttributesResult={attributes:MapStringToString.toption[@ocaml.doc"Attributes include the following: CustomUserData \226\128\147 arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB. Enabled \226\128\147 flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token. Token \226\128\147 device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service. The device token for the iOS platform is returned in lowercase."]}andresponseMetaData=unitandt={getEndpointAttributesResult:getEndpointAttributesResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="GetEndpointAttributesResponse"letmake?attributes=fun()->{getEndpointAttributesResult={attributes};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.getEndpointAttributesResultinstructure_to_wrapped_value[("Attributes",(Option.mapx.attributes~f:MapStringToString.to_value))]~wrapper:"GetEndpointAttributesResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"GetEndpointAttributesResult"inletattributes=(Option.map~f:MapStringToString.of_xml)(Xml.childxml_arg0"Attributes")inmake?attributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"Attributes"MapStringToString.of_jsoninmake?attributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response from GetEndpointAttributes of the EndpointArn."]moduleGetEndpointAttributesInput=structtypenonrect={endpointArn:String_.t[@ocaml.doc"EndpointArn for GetEndpointAttributes input."]}letcontext_="GetEndpointAttributesInput"letmake~endpointArn=fun()->{endpointArn}letto_valuex=structure_to_value[("EndpointArn",(Some(String_.to_valuex.endpointArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendpointArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"EndpointArn")inmake~endpointArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendpointArn=field_map_exnjson__"EndpointArn"String_.of_jsoninmake~endpointArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for GetEndpointAttributes action."]moduleGetDataProtectionPolicyResponse=structtypegetDataProtectionPolicyResult={dataProtectionPolicy:AttributeValue.toption[@ocaml.doc"Retrieves the DataProtectionPolicy in JSON string format."]}andresponseMetaData=unitandt={getDataProtectionPolicyResult:getDataProtectionPolicyResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidSecurityExceptionofInvalidSecurityException.t|`NotFoundExceptionofNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="GetDataProtectionPolicyResponse"letmake?dataProtectionPolicy=fun()->{getDataProtectionPolicyResult={dataProtectionPolicy};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidSecurityExceptione->`Assoc[("error",(`String"InvalidSecurityException"));("details",(InvalidSecurityException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.getDataProtectionPolicyResultinstructure_to_wrapped_value[("DataProtectionPolicy",(Option.mapx.dataProtectionPolicy~f:AttributeValue.to_value))]~wrapper:"GetDataProtectionPolicyResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"GetDataProtectionPolicyResult"inletdataProtectionPolicy=(Option.map~f:AttributeValue.of_xml)(Xml.childxml_arg0"DataProtectionPolicy")inmake?dataProtectionPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataProtectionPolicy=field_mapjson__"DataProtectionPolicy"AttributeValue.of_jsoninmake?dataProtectionPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the specified inline DataProtectionPolicy document that is stored in the specified Amazon SNS topic."]moduleGetDataProtectionPolicyInput=structtypenonrect={resourceArn:TopicARN.t[@ocaml.doc"The ARN of the topic whose DataProtectionPolicy you want to get. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference."]}letcontext_="GetDataProtectionPolicyInput"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(TopicARN.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"TopicARN.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the specified inline DataProtectionPolicy document that is stored in the specified Amazon SNS topic."]moduleDeleteTopicInput=structtypenonrect={topicArn:TopicARN.t[@ocaml.doc"The ARN of the topic you want to delete."]}letcontext_="DeleteTopicInput"letmake~topicArn=fun()->{topicArn}letto_valuex=structure_to_value[("TopicArn",(Some(TopicARN.to_valuex.topicArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettopicArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"TopicArn")inmake~topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopicArn=field_map_exnjson__"TopicArn"TopicARN.of_jsoninmake~topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a topic and all its subscriptions. Deleting a topic might prevent some messages previously sent to the topic from being delivered to subscribers. This action is idempotent, so deleting a topic that does not exist does not result in an error."]moduleDeleteSMSSandboxPhoneNumberResult=structtypedeleteSMSSandboxPhoneNumberResult=unitandresponseMetaData=unitandt={deleteSMSSandboxPhoneNumberResult:deleteSMSSandboxPhoneNumberResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledExceptionofThrottledException.t|`UserErrorExceptionofUserErrorException.t|`Unknown_operation_errorof(string*stringoption)]letmake()={deleteSMSSandboxPhoneNumberResult=();responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|"UserErrorException"->`UserErrorException(UserErrorException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|"UserErrorException"->`UserErrorException(UserErrorException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`UserErrorExceptione->`Assoc[("error",(`String"UserErrorException"));("details",(UserErrorException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an Amazon Web Services account's verified or pending phone number from the SMS sandbox. When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide."]moduleDeleteSMSSandboxPhoneNumberInput=structtypenonrect={phoneNumber:PhoneNumberString.t[@ocaml.doc"The destination phone number to delete."]}letcontext_="DeleteSMSSandboxPhoneNumberInput"letmake~phoneNumber=fun()->{phoneNumber}letto_valuex=structure_to_value[("PhoneNumber",(Some(PhoneNumberString.to_valuex.phoneNumber)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumber=PhoneNumberString.of_xml(Xml.child_exn~context:context_xml_arg0"PhoneNumber")inmake~phoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumber=field_map_exnjson__"PhoneNumber"PhoneNumberString.of_jsoninmake~phoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an Amazon Web Services account's verified or pending phone number from the SMS sandbox. When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide."]moduleDeletePlatformApplicationInput=structtypenonrect={platformApplicationArn:String_.t[@ocaml.doc"PlatformApplicationArn of platform application object to delete."]}letcontext_="DeletePlatformApplicationInput"letmake~platformApplicationArn=fun()->{platformApplicationArn}letto_valuex=structure_to_value[("PlatformApplicationArn",(Some(String_.to_valuex.platformApplicationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplatformApplicationArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"PlatformApplicationArn")inmake~platformApplicationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplatformApplicationArn=field_map_exnjson__"PlatformApplicationArn"String_.of_jsoninmake~platformApplicationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for DeletePlatformApplication action."]moduleDeleteEndpointInput=structtypenonrect={endpointArn:String_.t[@ocaml.doc"EndpointArn of endpoint to delete."]}letcontext_="DeleteEndpointInput"letmake~endpointArn=fun()->{endpointArn}letto_valuex=structure_to_value[("EndpointArn",(Some(String_.to_valuex.endpointArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendpointArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"EndpointArn")inmake~endpointArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendpointArn=field_map_exnjson__"EndpointArn"String_.of_jsoninmake~endpointArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for DeleteEndpoint action."]moduleCreateTopicResponse=structtypecreateTopicResult={topicArn:TopicARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the created topic."]}andresponseMetaData=unitandt={createTopicResult:createTopicResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`ConcurrentAccessExceptionofConcurrentAccessException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidSecurityExceptionofInvalidSecurityException.t|`StaleTagExceptionofStaleTagException.t|`TagLimitExceededExceptionofTagLimitExceededException.t|`TagPolicyExceptionofTagPolicyException.t|`TopicLimitExceededExceptionofTopicLimitExceededException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="CreateTopicResponse"letmake?topicArn=fun()->{createTopicResult={topicArn};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"ConcurrentAccessException"->`ConcurrentAccessException(ConcurrentAccessException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_jsonjson)|"StaleTagException"->`StaleTagException(StaleTagException.of_jsonjson)|"TagLimitExceededException"->`TagLimitExceededException(TagLimitExceededException.of_jsonjson)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_jsonjson)|"TopicLimitExceededException"->`TopicLimitExceededException(TopicLimitExceededException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"ConcurrentAccessException"->`ConcurrentAccessException(ConcurrentAccessException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidSecurityException"->`InvalidSecurityException(InvalidSecurityException.of_xmlxml)|"StaleTagException"->`StaleTagException(StaleTagException.of_xmlxml)|"TagLimitExceededException"->`TagLimitExceededException(TagLimitExceededException.of_xmlxml)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_xmlxml)|"TopicLimitExceededException"->`TopicLimitExceededException(TopicLimitExceededException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`ConcurrentAccessExceptione->`Assoc[("error",(`String"ConcurrentAccessException"));("details",(ConcurrentAccessException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidSecurityExceptione->`Assoc[("error",(`String"InvalidSecurityException"));("details",(InvalidSecurityException.to_jsone))]|`StaleTagExceptione->`Assoc[("error",(`String"StaleTagException"));("details",(StaleTagException.to_jsone))]|`TagLimitExceededExceptione->`Assoc[("error",(`String"TagLimitExceededException"));("details",(TagLimitExceededException.to_jsone))]|`TagPolicyExceptione->`Assoc[("error",(`String"TagPolicyException"));("details",(TagPolicyException.to_jsone))]|`TopicLimitExceededExceptione->`Assoc[("error",(`String"TopicLimitExceededException"));("details",(TopicLimitExceededException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.createTopicResultinstructure_to_wrapped_value[("TopicArn",(Option.mapx.topicArn~f:TopicARN.to_value))]~wrapper:"CreateTopicResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"CreateTopicResult"inlettopicArn=(Option.map~f:TopicARN.of_xml)(Xml.childxml_arg0"TopicArn")inmake?topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopicArn=field_mapjson__"TopicArn"TopicARN.of_jsoninmake?topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response from CreateTopic action."]moduleCreateTopicInput=structtypenonrect={name:TopicName.t[@ocaml.doc"The name of the topic you want to create. Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long. For a FIFO (first-in-first-out) topic, the name must end with the .fifo suffix."];attributes:TopicAttributesMap.toption[@ocaml.doc"A map of attributes with their corresponding values. The following lists names, descriptions, and values of the special request parameters that the CreateTopic action uses: DeliveryPolicy \226\128\147 The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints. DisplayName \226\128\147 The display name to use for a topic with SMS subscriptions. Policy \226\128\147 The policy that defines who can access your topic. By default, only the topic owner can publish or subscribe to the topic. TracingConfig \226\128\147 Tracing mode of an Amazon SNS topic. By default TracingConfig is set to PassThrough, and the topic passes through the tracing header it receives from an Amazon SNS publisher to its subscriptions. If set to Active, Amazon SNS will vend X-Ray segment data to topic owner account if the sampled flag in the tracing header is true. This is only supported on standard topics. HTTP HTTPSuccessFeedbackRoleArn \226\128\147 Indicates successful message delivery status for an Amazon SNS topic that is subscribed to an HTTP endpoint. HTTPSuccessFeedbackSampleRate \226\128\147 Indicates percentage of successful messages to sample for an Amazon SNS topic that is subscribed to an HTTP endpoint. HTTPFailureFeedbackRoleArn \226\128\147 Indicates failed message delivery status for an Amazon SNS topic that is subscribed to an HTTP endpoint. Amazon Data Firehose FirehoseSuccessFeedbackRoleArn \226\128\147 Indicates successful message delivery status for an Amazon SNS topic that is subscribed to an Amazon Data Firehose endpoint. FirehoseSuccessFeedbackSampleRate \226\128\147 Indicates percentage of successful messages to sample for an Amazon SNS topic that is subscribed to an Amazon Data Firehose endpoint. FirehoseFailureFeedbackRoleArn \226\128\147 Indicates failed message delivery status for an Amazon SNS topic that is subscribed to an Amazon Data Firehose endpoint. Lambda LambdaSuccessFeedbackRoleArn \226\128\147 Indicates successful message delivery status for an Amazon SNS topic that is subscribed to an Lambda endpoint. LambdaSuccessFeedbackSampleRate \226\128\147 Indicates percentage of successful messages to sample for an Amazon SNS topic that is subscribed to an Lambda endpoint. LambdaFailureFeedbackRoleArn \226\128\147 Indicates failed message delivery status for an Amazon SNS topic that is subscribed to an Lambda endpoint. Platform application endpoint ApplicationSuccessFeedbackRoleArn \226\128\147 Indicates successful message delivery status for an Amazon SNS topic that is subscribed to a platform application endpoint. ApplicationSuccessFeedbackSampleRate \226\128\147 Indicates percentage of successful messages to sample for an Amazon SNS topic that is subscribed to an platform application endpoint. ApplicationFailureFeedbackRoleArn \226\128\147 Indicates failed message delivery status for an Amazon SNS topic that is subscribed to an platform application endpoint. In addition to being able to configure topic attributes for message delivery status of notification messages sent to Amazon SNS application endpoints, you can also configure application attributes for the delivery status of push notification messages sent to push notification services. For example, For more information, see Using Amazon SNS Application Attributes for Message Delivery Status. Amazon SQS SQSSuccessFeedbackRoleArn \226\128\147 Indicates successful message delivery status for an Amazon SNS topic that is subscribed to an Amazon SQS endpoint. SQSSuccessFeedbackSampleRate \226\128\147 Indicates percentage of successful messages to sample for an Amazon SNS topic that is subscribed to an Amazon SQS endpoint. SQSFailureFeedbackRoleArn \226\128\147 Indicates failed message delivery status for an Amazon SNS topic that is subscribed to an Amazon SQS endpoint. The <ENDPOINT>SuccessFeedbackRoleArn and <ENDPOINT>FailureFeedbackRoleArn attributes are used to give Amazon SNS write access to use CloudWatch Logs on your behalf. The <ENDPOINT>SuccessFeedbackSampleRate attribute is for specifying the sample rate percentage (0-100) of successfully delivered messages. After you configure the <ENDPOINT>FailureFeedbackRoleArn attribute, then all failed message deliveries generate CloudWatch Logs. The following attribute applies only to server-side encryption: KmsMasterKeyId \226\128\147 The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see Key Terms. For more examples, see KeyId in the Key Management Service API Reference. The following attributes apply only to FIFO topics: ArchivePolicy \226\128\147 The policy that sets the retention period for messages stored in the message archive of an Amazon SNS FIFO topic. ContentBasedDeduplication \226\128\147 Enables content-based deduplication for FIFO topics. By default, ContentBasedDeduplication is set to false. If you create a FIFO topic and this attribute is false, you must specify a value for the MessageDeduplicationId parameter for the Publish action. When you set ContentBasedDeduplication to true, Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message). (Optional) To override the generated value, you can specify a value for the MessageDeduplicationId parameter for the Publish action. FifoThroughputScope \226\128\147 Enables higher throughput for your FIFO topic by adjusting the scope of deduplication. This attribute has two possible values: Topic \226\128\147 The scope of message deduplication is across the entire topic. This is the default value and maintains existing behavior, with a maximum throughput of 3000 messages per second or 20MB per second, whichever comes first. MessageGroup \226\128\147 The scope of deduplication is within each individual message group, which enables higher throughput per topic subject to regional quotas. For more information on quotas or to request an increase, see Amazon SNS service quotas in the Amazon Web Services General Reference."];tags:TagList.toption[@ocaml.doc"The list of tags to add to a new topic. To be able to tag a topic on creation, you must have the sns:CreateTopic and sns:TagResource permissions."];dataProtectionPolicy:AttributeValue.toption[@ocaml.doc"The body of the policy document you want to use for this topic. You can only add one policy per topic. The policy must be in JSON string format. Length Constraints: Maximum length of 30,720."]}letcontext_="CreateTopicInput"letmake?attributes=fun?tags->fun?dataProtectionPolicy->fun~name->fun()->{attributes;tags;dataProtectionPolicy;name}letto_valuex=structure_to_value[("Name",(Some(TopicName.to_valuex.name)));("Attributes",(Option.mapx.attributes~f:TopicAttributesMap.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value));("DataProtectionPolicy",(Option.mapx.dataProtectionPolicy~f:AttributeValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataProtectionPolicy=(Option.map~f:AttributeValue.of_xml)(Xml.childxml_arg0"DataProtectionPolicy")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletattributes=(Option.map~f:TopicAttributesMap.of_xml)(Xml.childxml_arg0"Attributes")inletname=TopicName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?dataProtectionPolicy?tags?attributes~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataProtectionPolicy=field_mapjson__"DataProtectionPolicy"AttributeValue.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletattributes=field_mapjson__"Attributes"TopicAttributesMap.of_jsoninletname=field_map_exnjson__"Name"TopicName.of_jsoninmake?dataProtectionPolicy?tags?attributes~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for CreateTopic action."]moduleCreateSMSSandboxPhoneNumberResult=structtypecreateSMSSandboxPhoneNumberResult=unitandresponseMetaData=unitandt={createSMSSandboxPhoneNumberResult:createSMSSandboxPhoneNumberResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`OptedOutExceptionofOptedOutException.t|`ThrottledExceptionofThrottledException.t|`UserErrorExceptionofUserErrorException.t|`Unknown_operation_errorof(string*stringoption)]letmake()={createSMSSandboxPhoneNumberResult=();responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"OptedOutException"->`OptedOutException(OptedOutException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|"UserErrorException"->`UserErrorException(UserErrorException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"OptedOutException"->`OptedOutException(OptedOutException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|"UserErrorException"->`UserErrorException(UserErrorException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`OptedOutExceptione->`Assoc[("error",(`String"OptedOutException"));("details",(OptedOutException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`UserErrorExceptione->`Assoc[("error",(`String"UserErrorException"));("details",(UserErrorException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a destination phone number to an Amazon Web Services account in the SMS sandbox and sends a one-time password (OTP) to that phone number. When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide."]moduleCreateSMSSandboxPhoneNumberInput=structtypenonrect={phoneNumber:PhoneNumberString.t[@ocaml.doc"The destination phone number to verify. On verification, Amazon SNS adds this phone number to the list of verified phone numbers that you can send SMS messages to."];languageCode:LanguageCodeString.toption[@ocaml.doc"The language to use for sending the OTP. The default value is en-US."]}letcontext_="CreateSMSSandboxPhoneNumberInput"letmake?languageCode=fun~phoneNumber->fun()->{languageCode;phoneNumber}letto_valuex=structure_to_value[("PhoneNumber",(Some(PhoneNumberString.to_valuex.phoneNumber)));("LanguageCode",(Option.mapx.languageCode~f:LanguageCodeString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlanguageCode=(Option.map~f:LanguageCodeString.of_xml)(Xml.childxml_arg0"LanguageCode")inletphoneNumber=PhoneNumberString.of_xml(Xml.child_exn~context:context_xml_arg0"PhoneNumber")inmake?languageCode~phoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlanguageCode=field_mapjson__"LanguageCode"LanguageCodeString.of_jsoninletphoneNumber=field_map_exnjson__"PhoneNumber"PhoneNumberString.of_jsoninmake?languageCode~phoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a destination phone number to an Amazon Web Services account in the SMS sandbox and sends a one-time password (OTP) to that phone number. When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide."]moduleCreatePlatformEndpointInput=structtypenonrect={platformApplicationArn:String_.t[@ocaml.doc"PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint."];token:String_.t[@ocaml.doc"Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM (Firebase Cloud Messaging) or ADM, the device token equivalent is called the registration ID."];customUserData:String_.toption[@ocaml.doc"Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB."];attributes:MapStringToString.toption[@ocaml.doc"For a list of attributes, see SetEndpointAttributes ."]}letcontext_="CreatePlatformEndpointInput"letmake?customUserData=fun?attributes->fun~platformApplicationArn->fun~token->fun()->{customUserData;attributes;platformApplicationArn;token}letto_valuex=structure_to_value[("PlatformApplicationArn",(Some(String_.to_valuex.platformApplicationArn)));("Token",(Some(String_.to_valuex.token)));("CustomUserData",(Option.mapx.customUserData~f:String_.to_value));("Attributes",(Option.mapx.attributes~f:MapStringToString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:MapStringToString.of_xml)(Xml.childxml_arg0"Attributes")inletcustomUserData=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"CustomUserData")inlettoken=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Token")inletplatformApplicationArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"PlatformApplicationArn")inmake?attributes?customUserData~token~platformApplicationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"Attributes"MapStringToString.of_jsoninletcustomUserData=field_mapjson__"CustomUserData"String_.of_jsoninlettoken=field_map_exnjson__"Token"String_.of_jsoninletplatformApplicationArn=field_map_exnjson__"PlatformApplicationArn"String_.of_jsoninmake?attributes?customUserData~token~platformApplicationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for CreatePlatformEndpoint action."]moduleCreatePlatformApplicationResponse=structtypecreatePlatformApplicationResult={platformApplicationArn:String_.toption[@ocaml.doc"PlatformApplicationArn is returned."]}andresponseMetaData=unitandt={createPlatformApplicationResult:createPlatformApplicationResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="CreatePlatformApplicationResponse"letmake?platformApplicationArn=fun()->{createPlatformApplicationResult={platformApplicationArn};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.createPlatformApplicationResultinstructure_to_wrapped_value[("PlatformApplicationArn",(Option.mapx.platformApplicationArn~f:String_.to_value))]~wrapper:"CreatePlatformApplicationResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"CreatePlatformApplicationResult"inletplatformApplicationArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"PlatformApplicationArn")inmake?platformApplicationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplatformApplicationArn=field_mapjson__"PlatformApplicationArn"String_.of_jsoninmake?platformApplicationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response from CreatePlatformApplication action."]moduleCreatePlatformApplicationInput=structtypenonrect={name:String_.t[@ocaml.doc"Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long."];platform:String_.t[@ocaml.doc"The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging)."];attributes:MapStringToString.t[@ocaml.doc"For a list of attributes, see SetPlatformApplicationAttributes ."]}letcontext_="CreatePlatformApplicationInput"letmake~name=fun~platform->fun~attributes->fun()->{name;platform;attributes}letto_valuex=structure_to_value[("Name",(Some(String_.to_valuex.name)));("Platform",(Some(String_.to_valuex.platform)));("Attributes",(Some(MapStringToString.to_valuex.attributes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=MapStringToString.of_xml(Xml.child_exn~context:context_xml_arg0"Attributes")inletplatform=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Platform")inletname=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~attributes~platform~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_map_exnjson__"Attributes"MapStringToString.of_jsoninletplatform=field_map_exnjson__"Platform"String_.of_jsoninletname=field_map_exnjson__"Name"String_.of_jsoninmake~attributes~platform~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for CreatePlatformApplication action."]moduleCreateEndpointResponse=structtypecreatePlatformEndpointResult={endpointArn:String_.toption[@ocaml.doc"EndpointArn returned from CreateEndpoint action."]}andresponseMetaData=unitandt={createPlatformEndpointResult:createPlatformEndpointResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="CreateEndpointResponse"letmake?endpointArn=fun()->{createPlatformEndpointResult={endpointArn};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.createPlatformEndpointResultinstructure_to_wrapped_value[("EndpointArn",(Option.mapx.endpointArn~f:String_.to_value))]~wrapper:"CreatePlatformEndpointResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"CreatePlatformEndpointResult"inletendpointArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"EndpointArn")inmake?endpointArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendpointArn=field_mapjson__"EndpointArn"String_.of_jsoninmake?endpointArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response from CreateEndpoint action."]moduleConfirmSubscriptionResponse=structtypeconfirmSubscriptionResult={subscriptionArn:SubscriptionARN.toption[@ocaml.doc"The ARN of the created subscription."]}andresponseMetaData=unitandt={confirmSubscriptionResult:confirmSubscriptionResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`FilterPolicyLimitExceededExceptionofFilterPolicyLimitExceededException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ReplayLimitExceededExceptionofReplayLimitExceededException.t|`SubscriptionLimitExceededExceptionofSubscriptionLimitExceededException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="ConfirmSubscriptionResponse"letmake?subscriptionArn=fun()->{confirmSubscriptionResult={subscriptionArn};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"FilterPolicyLimitExceededException"->`FilterPolicyLimitExceededException(FilterPolicyLimitExceededException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ReplayLimitExceededException"->`ReplayLimitExceededException(ReplayLimitExceededException.of_jsonjson)|"SubscriptionLimitExceededException"->`SubscriptionLimitExceededException(SubscriptionLimitExceededException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"FilterPolicyLimitExceededException"->`FilterPolicyLimitExceededException(FilterPolicyLimitExceededException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ReplayLimitExceededException"->`ReplayLimitExceededException(ReplayLimitExceededException.of_xmlxml)|"SubscriptionLimitExceededException"->`SubscriptionLimitExceededException(SubscriptionLimitExceededException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`FilterPolicyLimitExceededExceptione->`Assoc[("error",(`String"FilterPolicyLimitExceededException"));("details",(FilterPolicyLimitExceededException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ReplayLimitExceededExceptione->`Assoc[("error",(`String"ReplayLimitExceededException"));("details",(ReplayLimitExceededException.to_jsone))]|`SubscriptionLimitExceededExceptione->`Assoc[("error",(`String"SubscriptionLimitExceededException"));("details",(SubscriptionLimitExceededException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.confirmSubscriptionResultinstructure_to_wrapped_value[("SubscriptionArn",(Option.mapx.subscriptionArn~f:SubscriptionARN.to_value))]~wrapper:"ConfirmSubscriptionResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"ConfirmSubscriptionResult"inletsubscriptionArn=(Option.map~f:SubscriptionARN.of_xml)(Xml.childxml_arg0"SubscriptionArn")inmake?subscriptionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscriptionArn=field_mapjson__"SubscriptionArn"SubscriptionARN.of_jsoninmake?subscriptionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response for ConfirmSubscriptions action."]moduleConfirmSubscriptionInput=structtypenonrect={topicArn:TopicARN.t[@ocaml.doc"The ARN of the topic for which you wish to confirm a subscription."];token:Token.t[@ocaml.doc"Short-lived token sent to an endpoint during the Subscribe action."];authenticateOnUnsubscribe:AuthenticateOnUnsubscribe.toption[@ocaml.doc"Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true and the request has an Amazon Web Services signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires Amazon Web Services authentication."]}letcontext_="ConfirmSubscriptionInput"letmake?authenticateOnUnsubscribe=fun~topicArn->fun~token->fun()->{authenticateOnUnsubscribe;topicArn;token}letto_valuex=structure_to_value[("TopicArn",(Some(TopicARN.to_valuex.topicArn)));("Token",(Some(Token.to_valuex.token)));("AuthenticateOnUnsubscribe",(Option.mapx.authenticateOnUnsubscribe~f:AuthenticateOnUnsubscribe.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthenticateOnUnsubscribe=(Option.map~f:AuthenticateOnUnsubscribe.of_xml)(Xml.childxml_arg0"AuthenticateOnUnsubscribe")inlettoken=Token.of_xml(Xml.child_exn~context:context_xml_arg0"Token")inlettopicArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"TopicArn")inmake?authenticateOnUnsubscribe~token~topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthenticateOnUnsubscribe=field_mapjson__"AuthenticateOnUnsubscribe"AuthenticateOnUnsubscribe.of_jsoninlettoken=field_map_exnjson__"Token"Token.of_jsoninlettopicArn=field_map_exnjson__"TopicArn"TopicARN.of_jsoninmake?authenticateOnUnsubscribe~token~topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for ConfirmSubscription action."]moduleCheckIfPhoneNumberIsOptedOutResponse=structtypecheckIfPhoneNumberIsOptedOutResult={isOptedOut:Boolean.toption[@ocaml.doc"Indicates whether the phone number is opted out: true \226\128\147 The phone number is opted out, meaning you cannot publish SMS messages to it. false \226\128\147 The phone number is opted in, meaning you can publish SMS messages to it."]}andresponseMetaData=unitandt={checkIfPhoneNumberIsOptedOutResult:checkIfPhoneNumberIsOptedOutResult;responseMetaData:responseMetaData}typeerror=[`AuthorizationErrorExceptionofAuthorizationErrorException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ThrottledExceptionofThrottledException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="CheckIfPhoneNumberIsOptedOutResponse"letmake?isOptedOut=fun()->{checkIfPhoneNumberIsOptedOutResult={isOptedOut};responseMetaData=()}leterror_of_jsonnamejson=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ThrottledException"->`ThrottledException(ThrottledException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AuthorizationErrorException"->`AuthorizationErrorException(AuthorizationErrorException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ThrottledException"->`ThrottledException(ThrottledException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AuthorizationErrorExceptione->`Assoc[("error",(`String"AuthorizationErrorException"));("details",(AuthorizationErrorException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ThrottledExceptione->`Assoc[("error",(`String"ThrottledException"));("details",(ThrottledException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuet=letx=t.checkIfPhoneNumberIsOptedOutResultinstructure_to_wrapped_value[("isOptedOut",(Option.mapx.isOptedOut~f:Boolean.to_value))]~wrapper:"CheckIfPhoneNumberIsOptedOutResult"~response:"ResponseMetaData"letto_queryv=to_queryto_valuevletof_xmlt=letxml_arg0=Xml.child_exn~context:context_t"CheckIfPhoneNumberIsOptedOutResult"inletisOptedOut=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IsOptedOut")inmake?isOptedOut()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisOptedOut=field_mapjson__"isOptedOut"Boolean.of_jsoninmake?isOptedOut()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response from the CheckIfPhoneNumberIsOptedOut action."]moduleCheckIfPhoneNumberIsOptedOutInput=structtypenonrect={phoneNumber:PhoneNumber.t[@ocaml.doc"The phone number for which you want to check the opt out status."]}letcontext_="CheckIfPhoneNumberIsOptedOutInput"letmake~phoneNumber=fun()->{phoneNumber}letto_valuex=structure_to_value[("phoneNumber",(Some(PhoneNumber.to_valuex.phoneNumber)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumber=PhoneNumber.of_xml(Xml.child_exn~context:context_xml_arg0"PhoneNumber")inmake~phoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumber=field_map_exnjson__"phoneNumber"PhoneNumber.of_jsoninmake~phoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input for the CheckIfPhoneNumberIsOptedOut action."]moduleAddPermissionInput=structtypenonrect={topicArn:TopicARN.t[@ocaml.doc"The ARN of the topic whose access control policy you wish to modify."];label:Label.t[@ocaml.doc"A unique identifier for the new policy statement."];aWSAccountId:DelegatesList.t[@ocaml.doc"The Amazon Web Services account IDs of the users (principals) who will be given access to the specified actions. The users must have Amazon Web Services account, but do not need to be signed up for this service."];actionName:ActionsList.t[@ocaml.doc"The action you want to allow for the specified principal(s). Valid values: Any Amazon SNS action name, for example Publish."]}letcontext_="AddPermissionInput"letmake~topicArn=fun~label->fun~aWSAccountId->fun~actionName->fun()->{topicArn;label;aWSAccountId;actionName}letto_valuex=structure_to_value[("TopicArn",(Some(TopicARN.to_valuex.topicArn)));("Label",(Some(Label.to_valuex.label)));("AWSAccountId",(Some(DelegatesList.to_valuex.aWSAccountId)));("ActionName",(Some(ActionsList.to_valuex.actionName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactionName=ActionsList.of_xml(Xml.child_exn~context:context_xml_arg0"ActionName")inletaWSAccountId=DelegatesList.of_xml(Xml.child_exn~context:context_xml_arg0"AWSAccountId")inletlabel=Label.of_xml(Xml.child_exn~context:context_xml_arg0"Label")inlettopicArn=TopicARN.of_xml(Xml.child_exn~context:context_xml_arg0"TopicArn")inmake~actionName~aWSAccountId~label~topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactionName=field_map_exnjson__"ActionName"ActionsList.of_jsoninletaWSAccountId=field_map_exnjson__"AWSAccountId"DelegatesList.of_jsoninletlabel=field_map_exnjson__"Label"Label.of_jsoninlettopicArn=field_map_exnjson__"TopicArn"TopicARN.of_jsoninmake~actionName~aWSAccountId~label~topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a statement to a topic's access control policy, granting access for the specified Amazon Web Services accounts to the specified actions. To remove the ability to change topic permissions, you must deny permissions to the AddPermission, RemovePermission, and SetTopicAttributes actions in your IAM policy."]