12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574(* 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.sqsletapiVersion="2012-11-05"letendpointPrefix="sqs"letserviceFullName="Amazon Simple Queue Service"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="Amazon SQS"lettargetPrefix="AmazonSQS"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_valueendmoduleBinaryList=structtypenonrect=Binary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Binary.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:Binary.of_xml)letof_jsonj=list_of_json~kind:"BinaryList"~of_json:Binary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStringList=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:"StringList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMessageAttributeValue=structtypenonrect={stringValue:String_.toption[@ocaml.doc"Strings are Unicode with UTF-8 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, such as compressed data, encrypted data, or images."];stringListValues:StringList.toption[@ocaml.doc"Not implemented. Reserved for future use."];binaryListValues:BinaryList.toption[@ocaml.doc"Not implemented. Reserved for future use."];dataType:String_.t[@ocaml.doc"Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue. You can also append custom labels. For more information, see Amazon SQS Message Attributes in the Amazon SQS Developer Guide."]}letcontext_="MessageAttributeValue"letmake?stringValue=fun?binaryValue->fun?stringListValues->fun?binaryListValues->fun~dataType->fun()->{stringValue;binaryValue;stringListValues;binaryListValues;dataType}letto_valuex=structure_to_value[("StringValue",(Option.mapx.stringValue~f:String_.to_value));("BinaryValue",(Option.mapx.binaryValue~f:Binary.to_value));("StringListValues",(Option.mapx.stringListValues~f:StringList.to_value));("BinaryListValues",(Option.mapx.binaryListValues~f:BinaryList.to_value));("DataType",(Some(String_.to_valuex.dataType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataType=String_.of_xml(Xml.child_exn~context:context_xml_arg0"DataType")inletbinaryListValues=(Option.map~f:BinaryList.of_xml)(Xml.childxml_arg0"BinaryListValues")inletstringListValues=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"StringListValues")inletbinaryValue=(Option.map~f:Binary.of_xml)(Xml.childxml_arg0"BinaryValue")inletstringValue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StringValue")inmake~dataType?binaryListValues?stringListValues?binaryValue?stringValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataType=field_map_exnjson__"DataType"String_.of_jsoninletbinaryListValues=field_mapjson__"BinaryListValues"BinaryList.of_jsoninletstringListValues=field_mapjson__"StringListValues"StringList.of_jsoninletbinaryValue=field_mapjson__"BinaryValue"Binary.of_jsoninletstringValue=field_mapjson__"StringValue"String_.of_jsoninmake~dataType?binaryListValues?stringListValues?binaryValue?stringValue()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 SendMessage. Name, type, value and the message body must not be empty or null. All parts of the message attribute, including Name, Type, and Value, are part of the message size restriction (1 MiB or 1,048,576 bytes)."]moduleMessageSystemAttributeNameForSends=structtypenonrect=|AWSTraceHeader|Non_static_idofstringletmakei=iletto_string=function|AWSTraceHeader->"AWSTraceHeader"|Non_static_ids->sletof_string=function|"AWSTraceHeader"->AWSTraceHeader|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 MessageSystemAttributeNameForSends"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MessageSystemAttributeNameForSends"j)letto_json=simple_to_jsonto_valueendmoduleMessageSystemAttributeValue=structtypenonrect={stringValue:String_.toption[@ocaml.doc"Strings are Unicode with UTF-8 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, such as compressed data, encrypted data, or images."];stringListValues:StringList.toption[@ocaml.doc"Not implemented. Reserved for future use."];binaryListValues:BinaryList.toption[@ocaml.doc"Not implemented. Reserved for future use."];dataType:String_.t[@ocaml.doc"Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue. You can also append custom labels. For more information, see Amazon SQS Message Attributes in the Amazon SQS Developer Guide."]}letcontext_="MessageSystemAttributeValue"letmake?stringValue=fun?binaryValue->fun?stringListValues->fun?binaryListValues->fun~dataType->fun()->{stringValue;binaryValue;stringListValues;binaryListValues;dataType}letto_valuex=structure_to_value[("StringValue",(Option.mapx.stringValue~f:String_.to_value));("BinaryValue",(Option.mapx.binaryValue~f:Binary.to_value));("StringListValues",(Option.mapx.stringListValues~f:StringList.to_value));("BinaryListValues",(Option.mapx.binaryListValues~f:BinaryList.to_value));("DataType",(Some(String_.to_valuex.dataType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataType=String_.of_xml(Xml.child_exn~context:context_xml_arg0"DataType")inletbinaryListValues=(Option.map~f:BinaryList.of_xml)(Xml.childxml_arg0"BinaryListValues")inletstringListValues=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"StringListValues")inletbinaryValue=(Option.map~f:Binary.of_xml)(Xml.childxml_arg0"BinaryValue")inletstringValue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StringValue")inmake~dataType?binaryListValues?stringListValues?binaryValue?stringValue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataType=field_map_exnjson__"DataType"String_.of_jsoninletbinaryListValues=field_mapjson__"BinaryListValues"BinaryList.of_jsoninletstringListValues=field_mapjson__"StringListValues"StringList.of_jsoninletbinaryValue=field_mapjson__"BinaryValue"Binary.of_jsoninletstringValue=field_mapjson__"StringValue"String_.of_jsoninmake~dataType?binaryListValues?stringListValues?binaryValue?stringValue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The user-specified message system attribute value. For string data types, the Value attribute has the same restrictions on the content as the message body. For more information, see SendMessage. Name, type, value and the message body must not be empty or null."]moduleMessageSystemAttributeName=structtypenonrect=|All|SenderId|SentTimestamp|ApproximateReceiveCount|ApproximateFirstReceiveTimestamp|SequenceNumber|MessageDeduplicationId|MessageGroupId|AWSTraceHeader|DeadLetterQueueSourceArn|Non_static_idofstringletmakei=iletto_string=function|All->"All"|SenderId->"SenderId"|SentTimestamp->"SentTimestamp"|ApproximateReceiveCount->"ApproximateReceiveCount"|ApproximateFirstReceiveTimestamp->"ApproximateFirstReceiveTimestamp"|SequenceNumber->"SequenceNumber"|MessageDeduplicationId->"MessageDeduplicationId"|MessageGroupId->"MessageGroupId"|AWSTraceHeader->"AWSTraceHeader"|DeadLetterQueueSourceArn->"DeadLetterQueueSourceArn"|Non_static_ids->sletof_string=function|"All"->All|"SenderId"->SenderId|"SentTimestamp"->SentTimestamp|"ApproximateReceiveCount"->ApproximateReceiveCount|"ApproximateFirstReceiveTimestamp"->ApproximateFirstReceiveTimestamp|"SequenceNumber"->SequenceNumber|"MessageDeduplicationId"->MessageDeduplicationId|"MessageGroupId"->MessageGroupId|"AWSTraceHeader"->AWSTraceHeader|"DeadLetterQueueSourceArn"->DeadLetterQueueSourceArn|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 MessageSystemAttributeName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MessageSystemAttributeName"j)letto_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_valueendmoduleMessageBodyAttributeMap=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_valuevendmoduleMessageBodySystemAttributeMap=structtypenonrect=(MessageSystemAttributeNameForSends.t*MessageSystemAttributeValue.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 MessageSystemAttributeNameForSends MessageSystemAttributeValue"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(MessageSystemAttributeNameForSends.to_valuex)|>(funx->(MessageSystemAttributeValue.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:MessageSystemAttributeNameForSends.of_string~of_json:MessageSystemAttributeValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNullableInteger=structtypenonrect=intletmakei=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 NullableInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMessageSystemAttributeMap=structtypenonrect=(MessageSystemAttributeName.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->((MessageSystemAttributeName.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(MessageSystemAttributeName.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:MessageSystemAttributeName.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleNullableLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"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:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"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:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleExceptionMessage=structtypenonrect=stringletcontext_="ExceptionMessage"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:"ExceptionMessage"jletto_json=simple_to_jsonto_valueendmoduleQueueAttributeName=structtypenonrect=|All|Policy|VisibilityTimeout|MaximumMessageSize|MessageRetentionPeriod|ApproximateNumberOfMessages|ApproximateNumberOfMessagesNotVisible|CreatedTimestamp|LastModifiedTimestamp|QueueArn|ApproximateNumberOfMessagesDelayed|DelaySeconds|ReceiveMessageWaitTimeSeconds|RedrivePolicy|FifoQueue|ContentBasedDeduplication|KmsMasterKeyId|KmsDataKeyReusePeriodSeconds|DeduplicationScope|FifoThroughputLimit|RedriveAllowPolicy|SqsManagedSseEnabled|Non_static_idofstringletmakei=iletto_string=function|All->"All"|Policy->"Policy"|VisibilityTimeout->"VisibilityTimeout"|MaximumMessageSize->"MaximumMessageSize"|MessageRetentionPeriod->"MessageRetentionPeriod"|ApproximateNumberOfMessages->"ApproximateNumberOfMessages"|ApproximateNumberOfMessagesNotVisible->"ApproximateNumberOfMessagesNotVisible"|CreatedTimestamp->"CreatedTimestamp"|LastModifiedTimestamp->"LastModifiedTimestamp"|QueueArn->"QueueArn"|ApproximateNumberOfMessagesDelayed->"ApproximateNumberOfMessagesDelayed"|DelaySeconds->"DelaySeconds"|ReceiveMessageWaitTimeSeconds->"ReceiveMessageWaitTimeSeconds"|RedrivePolicy->"RedrivePolicy"|FifoQueue->"FifoQueue"|ContentBasedDeduplication->"ContentBasedDeduplication"|KmsMasterKeyId->"KmsMasterKeyId"|KmsDataKeyReusePeriodSeconds->"KmsDataKeyReusePeriodSeconds"|DeduplicationScope->"DeduplicationScope"|FifoThroughputLimit->"FifoThroughputLimit"|RedriveAllowPolicy->"RedriveAllowPolicy"|SqsManagedSseEnabled->"SqsManagedSseEnabled"|Non_static_ids->sletof_string=function|"All"->All|"Policy"->Policy|"VisibilityTimeout"->VisibilityTimeout|"MaximumMessageSize"->MaximumMessageSize|"MessageRetentionPeriod"->MessageRetentionPeriod|"ApproximateNumberOfMessages"->ApproximateNumberOfMessages|"ApproximateNumberOfMessagesNotVisible"->ApproximateNumberOfMessagesNotVisible|"CreatedTimestamp"->CreatedTimestamp|"LastModifiedTimestamp"->LastModifiedTimestamp|"QueueArn"->QueueArn|"ApproximateNumberOfMessagesDelayed"->ApproximateNumberOfMessagesDelayed|"DelaySeconds"->DelaySeconds|"ReceiveMessageWaitTimeSeconds"->ReceiveMessageWaitTimeSeconds|"RedrivePolicy"->RedrivePolicy|"FifoQueue"->FifoQueue|"ContentBasedDeduplication"->ContentBasedDeduplication|"KmsMasterKeyId"->KmsMasterKeyId|"KmsDataKeyReusePeriodSeconds"->KmsDataKeyReusePeriodSeconds|"DeduplicationScope"->DeduplicationScope|"FifoThroughputLimit"->FifoThroughputLimit|"RedriveAllowPolicy"->RedriveAllowPolicy|"SqsManagedSseEnabled"->SqsManagedSseEnabled|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 QueueAttributeName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"QueueAttributeName"j)letto_json=simple_to_jsonto_valueendmoduleBatchResultErrorEntry=structtypenonrect={id:String_.toption[@ocaml.doc"The Id of an entry in a batch request."];senderFault:Boolean.toption[@ocaml.doc"Specifies whether the error happened due to the caller of the batch API action."];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."]}letmake?id=fun?senderFault->fun?code->fun?message->fun()->{id;senderFault;code;message}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:String_.to_value));("SenderFault",(Option.mapx.senderFault~f:Boolean.to_value));("Code",(Option.mapx.code~f:String_.to_value));("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inletcode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Code")inletsenderFault=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"SenderFault")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Id")inmake?message?code?senderFault?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletcode=field_mapjson__"Code"String_.of_jsoninletsenderFault=field_mapjson__"SenderFault"Boolean.of_jsoninletid=field_mapjson__"Id"String_.of_jsoninmake?message?code?senderFault?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gives a detailed description of the result of an action on each entry in the request."]moduleSendMessageBatchResultEntry=structtypenonrect={id:String_.toption[@ocaml.doc"An identifier for the message in this batch."];messageId:String_.toption[@ocaml.doc"An identifier for the message."];mD5OfMessageBody:String_.toption[@ocaml.doc"An MD5 digest of the non-URL-encoded message body string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321."];mD5OfMessageAttributes:String_.toption[@ocaml.doc"An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321."];mD5OfMessageSystemAttributes:String_.toption[@ocaml.doc"An MD5 digest of the non-URL-encoded message system attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321."];sequenceNumber:String_.toption[@ocaml.doc"This parameter applies only to FIFO (first-in-first-out) queues. The large, non-consecutive number that Amazon SQS assigns to each message. The length of SequenceNumber is 128 bits. As SequenceNumber continues to increase for a particular MessageGroupId."]}letmake?id=fun?messageId->fun?mD5OfMessageBody->fun?mD5OfMessageAttributes->fun?mD5OfMessageSystemAttributes->fun?sequenceNumber->fun()->{id;messageId;mD5OfMessageBody;mD5OfMessageAttributes;mD5OfMessageSystemAttributes;sequenceNumber}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:String_.to_value));("MessageId",(Option.mapx.messageId~f:String_.to_value));("MD5OfMessageBody",(Option.mapx.mD5OfMessageBody~f:String_.to_value));("MD5OfMessageAttributes",(Option.mapx.mD5OfMessageAttributes~f:String_.to_value));("MD5OfMessageSystemAttributes",(Option.mapx.mD5OfMessageSystemAttributes~f:String_.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")inletmD5OfMessageSystemAttributes=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MD5OfMessageSystemAttributes")inletmD5OfMessageAttributes=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MD5OfMessageAttributes")inletmD5OfMessageBody=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MD5OfMessageBody")inletmessageId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MessageId")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Id")inmake?sequenceNumber?mD5OfMessageSystemAttributes?mD5OfMessageAttributes?mD5OfMessageBody?messageId?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"SequenceNumber"String_.of_jsoninletmD5OfMessageSystemAttributes=field_mapjson__"MD5OfMessageSystemAttributes"String_.of_jsoninletmD5OfMessageAttributes=field_mapjson__"MD5OfMessageAttributes"String_.of_jsoninletmD5OfMessageBody=field_mapjson__"MD5OfMessageBody"String_.of_jsoninletmessageId=field_mapjson__"MessageId"String_.of_jsoninletid=field_mapjson__"Id"String_.of_jsoninmake?sequenceNumber?mD5OfMessageSystemAttributes?mD5OfMessageAttributes?mD5OfMessageBody?messageId?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Encloses a MessageId for a successfully-enqueued message in a SendMessageBatch."]moduleSendMessageBatchRequestEntry=structtypenonrect={id:String_.t[@ocaml.doc"An identifier for a message in this batch used to communicate the result. The Ids of a batch request need to be unique within a request. This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_)."];messageBody:String_.t[@ocaml.doc"The body of the message."];delaySeconds:NullableInteger.toption[@ocaml.doc"The length of time, in seconds, for which a specific message is delayed. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue is applied. When you set FifoQueue, you can't set DelaySeconds per message. You can set this parameter only on a queue level."];messageAttributes:MessageBodyAttributeMap.toption[@ocaml.doc"Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide."];messageSystemAttributes:MessageBodySystemAttributeMap.toption[@ocaml.doc"The message system attribute to send Each message system attribute consists of a Name, Type, and Value. Currently, the only supported message system attribute is AWSTraceHeader. Its type must be String and its value must be a correctly formatted X-Ray trace header string. The size of a message system attribute doesn't count towards the total size of a message."];messageDeduplicationId:String_.toption[@ocaml.doc"This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular MessageDeduplicationId is sent successfully, subsequent messages with the same MessageDeduplicationId are accepted successfully but aren't delivered. For more information, see Exactly-once processing in the Amazon SQS Developer Guide. 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 queue, Amazon SQS 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 queue doesn't have ContentBasedDeduplication set, the action fails with an error. If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one. When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication 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 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 SQS can't detect duplicate messages. Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted. The length of MessageDeduplicationId is 128 characters. MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?\\@\\[\\\\]^_`\\{|\\}~). For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId Property in the Amazon SQS Developer Guide."];messageGroupId:String_.toption[@ocaml.doc"MessageGroupId is an attribute used in Amazon SQS FIFO (First-In-First-Out) and standard queues. In FIFO queues, MessageGroupId organizes messages into distinct groups. Messages within the same message group are always processed one at a time, in strict order, ensuring that no two messages from the same group are processed simultaneously. In standard queues, using MessageGroupId enables fair queues. It is used to identify the tenant a message belongs to, helping maintain consistent message dwell time across all tenants during noisy neighbor events. Unlike FIFO queues, messages with the same MessageGroupId can be processed in parallel, maintaining the high throughput of standard queues. FIFO queues: MessageGroupId acts as 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 queue, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple consumers can process the queue, but the session data of each user is processed in a FIFO fashion. If you do not provide a MessageGroupId when sending a message to a FIFO queue, the action fails. ReceiveMessage might return messages with multiple MessageGroupId values. For each MessageGroupId, the messages are sorted by time sent. Standard queues:Use MessageGroupId in standard queues to enable fair queues. The MessageGroupId identifies the tenant a message belongs to. A tenant can be any entity that shares a queue with others, such as your customer, a client application, or a request type. When one tenant sends a disproportionately large volume of messages or has messages that require longer processing time, fair queues ensure other tenants' messages maintain low dwell time. This preserves quality of service for all tenants while maintaining the scalability and throughput of standard queues. We recommend that you include a MessageGroupId in all messages when using fair queues. The length of MessageGroupId is 128 characters. Valid values: alphanumeric characters and punctuation (!\"#$%&'()*+,-./:;<=>?\\@\\[\\\\]^_`\\{|\\}~). For best practices of using MessageGroupId, see Using the MessageGroupId Property in the Amazon SQS Developer Guide."]}letcontext_="SendMessageBatchRequestEntry"letmake?delaySeconds=fun?messageAttributes->fun?messageSystemAttributes->fun?messageDeduplicationId->fun?messageGroupId->fun~id->fun~messageBody->fun()->{delaySeconds;messageAttributes;messageSystemAttributes;messageDeduplicationId;messageGroupId;id;messageBody}letto_valuex=structure_to_value[("Id",(Some(String_.to_valuex.id)));("MessageBody",(Some(String_.to_valuex.messageBody)));("DelaySeconds",(Option.mapx.delaySeconds~f:NullableInteger.to_value));("MessageAttributes",(Option.mapx.messageAttributes~f:MessageBodyAttributeMap.to_value));("MessageSystemAttributes",(Option.mapx.messageSystemAttributes~f:MessageBodySystemAttributeMap.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")inletmessageSystemAttributes=(Option.map~f:MessageBodySystemAttributeMap.of_xml)(Xml.childxml_arg0"MessageSystemAttributes")inletmessageAttributes=(Option.map~f:MessageBodyAttributeMap.of_xml)(Xml.childxml_arg0"MessageAttributes")inletdelaySeconds=(Option.map~f:NullableInteger.of_xml)(Xml.childxml_arg0"DelaySeconds")inletmessageBody=String_.of_xml(Xml.child_exn~context:context_xml_arg0"MessageBody")inletid=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake?messageGroupId?messageDeduplicationId?messageSystemAttributes?messageAttributes?delaySeconds~messageBody~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_jsoninletmessageSystemAttributes=field_mapjson__"MessageSystemAttributes"MessageBodySystemAttributeMap.of_jsoninletmessageAttributes=field_mapjson__"MessageAttributes"MessageBodyAttributeMap.of_jsoninletdelaySeconds=field_mapjson__"DelaySeconds"NullableInteger.of_jsoninletmessageBody=field_map_exnjson__"MessageBody"String_.of_jsoninletid=field_map_exnjson__"Id"String_.of_jsoninmake?messageGroupId?messageDeduplicationId?messageSystemAttributes?messageAttributes?delaySeconds~messageBody~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the details of a single Amazon SQS message along with an Id."]moduleMessage=structtypenonrect={messageId:String_.toption[@ocaml.doc"A unique identifier for the message. A MessageIdis considered unique across all Amazon Web Services accounts for an extended period of time."];receiptHandle:String_.toption[@ocaml.doc"An identifier associated with the act of receiving the message. A new receipt handle is returned every time you receive a message. When deleting a message, you provide the last received receipt handle to delete the message."];mD5OfBody:String_.toption[@ocaml.doc"An MD5 digest of the non-URL-encoded message body string."];body:String_.toption[@ocaml.doc"The message's contents (not URL-encoded)."];attributes:MessageSystemAttributeMap.toption[@ocaml.doc"A map of the attributes requested in ReceiveMessage to their respective values. Supported attributes: ApproximateReceiveCount ApproximateFirstReceiveTimestamp MessageDeduplicationId MessageGroupId SenderId SentTimestamp SequenceNumber ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an integer representing the epoch time in milliseconds."];mD5OfMessageAttributes:String_.toption[@ocaml.doc"An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321."];messageAttributes:MessageBodyAttributeMap.toption[@ocaml.doc"Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide."]}letmake?messageId=fun?receiptHandle->fun?mD5OfBody->fun?body->fun?attributes->fun?mD5OfMessageAttributes->fun?messageAttributes->fun()->{messageId;receiptHandle;mD5OfBody;body;attributes;mD5OfMessageAttributes;messageAttributes}letto_valuex=structure_to_value[("MessageId",(Option.mapx.messageId~f:String_.to_value));("ReceiptHandle",(Option.mapx.receiptHandle~f:String_.to_value));("MD5OfBody",(Option.mapx.mD5OfBody~f:String_.to_value));("Body",(Option.mapx.body~f:String_.to_value));("Attributes",(Option.mapx.attributes~f:MessageSystemAttributeMap.to_value));("MD5OfMessageAttributes",(Option.mapx.mD5OfMessageAttributes~f:String_.to_value));("MessageAttributes",(Option.mapx.messageAttributes~f:MessageBodyAttributeMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessageAttributes=(Option.map~f:MessageBodyAttributeMap.of_xml)(Xml.childxml_arg0"MessageAttributes")inletmD5OfMessageAttributes=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MD5OfMessageAttributes")inletattributes=(Option.map~f:MessageSystemAttributeMap.of_xml)(Xml.childxml_arg0"Attributes")inletbody=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Body")inletmD5OfBody=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MD5OfBody")inletreceiptHandle=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ReceiptHandle")inletmessageId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MessageId")inmake?messageAttributes?mD5OfMessageAttributes?attributes?body?mD5OfBody?receiptHandle?messageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageAttributes=field_mapjson__"MessageAttributes"MessageBodyAttributeMap.of_jsoninletmD5OfMessageAttributes=field_mapjson__"MD5OfMessageAttributes"String_.of_jsoninletattributes=field_mapjson__"Attributes"MessageSystemAttributeMap.of_jsoninletbody=field_mapjson__"Body"String_.of_jsoninletmD5OfBody=field_mapjson__"MD5OfBody"String_.of_jsoninletreceiptHandle=field_mapjson__"ReceiptHandle"String_.of_jsoninletmessageId=field_mapjson__"MessageId"String_.of_jsoninmake?messageAttributes?mD5OfMessageAttributes?attributes?body?mD5OfBody?receiptHandle?messageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An Amazon SQS message."]moduleMessageAttributeName=structtypenonrect=stringletcontext_="MessageAttributeName"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:"MessageAttributeName"jletto_json=simple_to_jsonto_valueendmoduleListMessageMoveTasksResultEntry=structtypenonrect={taskHandle:String_.toption[@ocaml.doc"An identifier associated with a message movement task. When this field is returned in the response of the ListMessageMoveTasks action, it is only populated for tasks that are in RUNNING status."];status:String_.toption[@ocaml.doc"The status of the message movement task. Possible values are: RUNNING, COMPLETED, CANCELLING, CANCELLED, and FAILED."];sourceArn:String_.toption[@ocaml.doc"The ARN of the queue that contains the messages to be moved to another queue."];destinationArn:String_.toption[@ocaml.doc"The ARN of the destination queue if it has been specified in the StartMessageMoveTask request. If a DestinationArn has not been specified in the StartMessageMoveTask request, this field value will be NULL."];maxNumberOfMessagesPerSecond:NullableInteger.toption[@ocaml.doc"The number of messages to be moved per second (the message movement rate), if it has been specified in the StartMessageMoveTask request. If a MaxNumberOfMessagesPerSecond has not been specified in the StartMessageMoveTask request, this field value will be NULL."];approximateNumberOfMessagesMoved:Long.toption[@ocaml.doc"The approximate number of messages already moved to the destination queue."];approximateNumberOfMessagesToMove:NullableLong.toption[@ocaml.doc"The number of messages to be moved from the source queue. This number is obtained at the time of starting the message movement task and is only included after the message movement task is selected to start."];failureReason:String_.toption[@ocaml.doc"The task failure reason (only included if the task status is FAILED)."];startedTimestamp:Long.toption[@ocaml.doc"The timestamp of starting the message movement task."]}letmake?taskHandle=fun?status->fun?sourceArn->fun?destinationArn->fun?maxNumberOfMessagesPerSecond->fun?approximateNumberOfMessagesMoved->fun?approximateNumberOfMessagesToMove->fun?failureReason->fun?startedTimestamp->fun()->{taskHandle;status;sourceArn;destinationArn;maxNumberOfMessagesPerSecond;approximateNumberOfMessagesMoved;approximateNumberOfMessagesToMove;failureReason;startedTimestamp}letto_valuex=structure_to_value[("TaskHandle",(Option.mapx.taskHandle~f:String_.to_value));("Status",(Option.mapx.status~f:String_.to_value));("SourceArn",(Option.mapx.sourceArn~f:String_.to_value));("DestinationArn",(Option.mapx.destinationArn~f:String_.to_value));("MaxNumberOfMessagesPerSecond",(Option.mapx.maxNumberOfMessagesPerSecond~f:NullableInteger.to_value));("ApproximateNumberOfMessagesMoved",(Option.mapx.approximateNumberOfMessagesMoved~f:Long.to_value));("ApproximateNumberOfMessagesToMove",(Option.mapx.approximateNumberOfMessagesToMove~f:NullableLong.to_value));("FailureReason",(Option.mapx.failureReason~f:String_.to_value));("StartedTimestamp",(Option.mapx.startedTimestamp~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartedTimestamp=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"StartedTimestamp")inletfailureReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"FailureReason")inletapproximateNumberOfMessagesToMove=(Option.map~f:NullableLong.of_xml)(Xml.childxml_arg0"ApproximateNumberOfMessagesToMove")inletapproximateNumberOfMessagesMoved=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"ApproximateNumberOfMessagesMoved")inletmaxNumberOfMessagesPerSecond=(Option.map~f:NullableInteger.of_xml)(Xml.childxml_arg0"MaxNumberOfMessagesPerSecond")inletdestinationArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DestinationArn")inletsourceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SourceArn")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Status")inlettaskHandle=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"TaskHandle")inmake?startedTimestamp?failureReason?approximateNumberOfMessagesToMove?approximateNumberOfMessagesMoved?maxNumberOfMessagesPerSecond?destinationArn?sourceArn?status?taskHandle()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartedTimestamp=field_mapjson__"StartedTimestamp"Long.of_jsoninletfailureReason=field_mapjson__"FailureReason"String_.of_jsoninletapproximateNumberOfMessagesToMove=field_mapjson__"ApproximateNumberOfMessagesToMove"NullableLong.of_jsoninletapproximateNumberOfMessagesMoved=field_mapjson__"ApproximateNumberOfMessagesMoved"Long.of_jsoninletmaxNumberOfMessagesPerSecond=field_mapjson__"MaxNumberOfMessagesPerSecond"NullableInteger.of_jsoninletdestinationArn=field_mapjson__"DestinationArn"String_.of_jsoninletsourceArn=field_mapjson__"SourceArn"String_.of_jsoninletstatus=field_mapjson__"Status"String_.of_jsoninlettaskHandle=field_mapjson__"TaskHandle"String_.of_jsoninmake?startedTimestamp?failureReason?approximateNumberOfMessagesToMove?approximateNumberOfMessagesMoved?maxNumberOfMessagesPerSecond?destinationArn?sourceArn?status?taskHandle()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the details of a message movement task."]moduleDeleteMessageBatchResultEntry=structtypenonrect={id:String_.toption[@ocaml.doc"Represents a successfully deleted message."]}letmake?id=fun()->{id}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Id")inmake?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_mapjson__"Id"String_.of_jsoninmake?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Encloses the Id of an entry in DeleteMessageBatch."]moduleDeleteMessageBatchRequestEntry=structtypenonrect={id:String_.t[@ocaml.doc"The identifier for this particular receipt handle. This is used to communicate the result. The Ids of a batch request need to be unique within a request. This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_)."];receiptHandle:String_.t[@ocaml.doc"A receipt handle."]}letcontext_="DeleteMessageBatchRequestEntry"letmake~id=fun~receiptHandle->fun()->{id;receiptHandle}letto_valuex=structure_to_value[("Id",(Some(String_.to_valuex.id)));("ReceiptHandle",(Some(String_.to_valuex.receiptHandle)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreceiptHandle=String_.of_xml(Xml.child_exn~context:context_xml_arg0"ReceiptHandle")inletid=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake~receiptHandle~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreceiptHandle=field_map_exnjson__"ReceiptHandle"String_.of_jsoninletid=field_map_exnjson__"Id"String_.of_jsoninmake~receiptHandle~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Encloses a receipt handle and an identifier for it."]moduleChangeMessageVisibilityBatchResultEntry=structtypenonrect={id:String_.toption[@ocaml.doc"Represents a message whose visibility timeout has been changed successfully."]}letmake?id=fun()->{id}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Id")inmake?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_mapjson__"Id"String_.of_jsoninmake?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Encloses the Id of an entry in ChangeMessageVisibilityBatch."]moduleChangeMessageVisibilityBatchRequestEntry=structtypenonrect={id:String_.t[@ocaml.doc"An identifier for this particular receipt handle used to communicate the result. The Ids of a batch request need to be unique within a request. This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_)."];receiptHandle:String_.t[@ocaml.doc"A receipt handle."];visibilityTimeout:NullableInteger.toption[@ocaml.doc"The new value (in seconds) for the message's visibility timeout."]}letcontext_="ChangeMessageVisibilityBatchRequestEntry"letmake?visibilityTimeout=fun~id->fun~receiptHandle->fun()->{visibilityTimeout;id;receiptHandle}letto_valuex=structure_to_value[("Id",(Some(String_.to_valuex.id)));("ReceiptHandle",(Some(String_.to_valuex.receiptHandle)));("VisibilityTimeout",(Option.mapx.visibilityTimeout~f:NullableInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvisibilityTimeout=(Option.map~f:NullableInteger.of_xml)(Xml.childxml_arg0"VisibilityTimeout")inletreceiptHandle=String_.of_xml(Xml.child_exn~context:context_xml_arg0"ReceiptHandle")inletid=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake?visibilityTimeout~receiptHandle~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvisibilityTimeout=field_mapjson__"VisibilityTimeout"NullableInteger.of_jsoninletreceiptHandle=field_map_exnjson__"ReceiptHandle"String_.of_jsoninletid=field_map_exnjson__"Id"String_.of_jsoninmake?visibilityTimeout~receiptHandle~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Encloses a receipt handle and an entry ID for each message in ChangeMessageVisibilityBatch."]moduleTagKeyList=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.mapx~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagMap=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.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:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInvalidAddress=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified ID is invalid."]moduleInvalidSecurity=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was not made over HTTPS or did not use SigV4 for signing."]moduleRequestThrottled=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to request throttling. Exceeds the permitted request rate for the queue or for the recipient of the request. Ensure that the request rate is within the Amazon SQS limits for sending messages. For more information, see Amazon SQS quotas in the Amazon SQS Developer Guide."]moduleResourceNotFoundException=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One or more specified resources don't exist."]moduleUnsupportedOperation=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Error code 400. Unsupported operation."]moduleQueueAttributeMap=structtypenonrect=(QueueAttributeName.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->((QueueAttributeName.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(QueueAttributeName.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:QueueAttributeName.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInvalidMessageContents=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The message contains characters outside the allowed set."]moduleKmsAccessDenied=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The caller doesn't have the required KMS access."]moduleKmsDisabled=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to request throttling."]moduleKmsInvalidKeyUsage=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was rejected for one of the following reasons: The KeyUsage value of the KMS key is incompatible with the API operation. The encryption algorithm or signing algorithm specified for the operation is incompatible with the type of key material in the KMS key (KeySpec)."]moduleKmsInvalidState=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was rejected because the state of the specified resource is not valid for this request."]moduleKmsNotFound=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was rejected because the specified entity or resource could not be found."]moduleKmsOptInRequired=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was rejected because the specified key policy isn't syntactically or semantically correct."]moduleKmsThrottled=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Amazon Web Services KMS throttles requests for the following conditions."]moduleQueueDoesNotExist=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Ensure that the QueueUrl is correct and that the queue has not been deleted."]moduleBatchEntryIdsNotDistinct=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Two or more batch entries in the request have the same Id."]moduleBatchRequestTooLong=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The length of all the 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.mapx~f:BatchResultErrorEntry.of_xml)letof_jsonj=list_of_json~kind:"BatchResultErrorEntryList"~of_json:BatchResultErrorEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEmptyBatchRequest=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The batch request doesn't contain any entries."]moduleInvalidBatchEntryId=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.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."]moduleSendMessageBatchResultEntryList=structtypenonrect=SendMessageBatchResultEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SendMessageBatchResultEntry.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:SendMessageBatchResultEntry.of_xml)letof_jsonj=list_of_json~kind:"SendMessageBatchResultEntryList"~of_json:SendMessageBatchResultEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTooManyEntriesInBatchRequest=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The batch request contains more entries than permissible. For Amazon SQS, the maximum number of entries you can include in a single SendMessageBatch, DeleteMessageBatch, or ChangeMessageVisibilityBatch request is 10."]moduleSendMessageBatchRequestEntryList=structtypenonrect=SendMessageBatchRequestEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SendMessageBatchRequestEntry.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:SendMessageBatchRequestEntry.of_xml)letof_jsonj=list_of_json~kind:"SendMessageBatchRequestEntryList"~of_json:SendMessageBatchRequestEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMessageList=structtypenonrect=Message.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Message.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:Message.of_xml)letof_jsonj=list_of_json~kind:"MessageList"~of_json:Message.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOverLimit=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified action violates a limit. For example, ReceiveMessage returns this error if the maximum number of in flight messages is reached and AddPermission returns this error if the maximum number of permissions for the queue is reached."]moduleAttributeNameList=structtypenonrect=QueueAttributeName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QueueAttributeName.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:QueueAttributeName.of_xml)letof_jsonj=list_of_json~kind:"AttributeNameList"~of_json:QueueAttributeName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMessageAttributeNameList=structtypenonrect=MessageAttributeName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MessageAttributeName.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:MessageAttributeName.of_xml)letof_jsonj=list_of_json~kind:"MessageAttributeNameList"~of_json:MessageAttributeName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMessageSystemAttributeList=structtypenonrect=MessageSystemAttributeName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MessageSystemAttributeName.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:MessageSystemAttributeName.of_xml)letof_jsonj=list_of_json~kind:"MessageSystemAttributeList"~of_json:MessageSystemAttributeName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleQueueUrlList=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.mapx~f:String_.of_xml)letof_jsonj=list_of_json~kind:"QueueUrlList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleToken=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_valueendmoduleBoxedInteger=structtypenonrect=intletmakei=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 BoxedInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListMessageMoveTasksResultEntryList=structtypenonrect=ListMessageMoveTasksResultEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ListMessageMoveTasksResultEntry.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:ListMessageMoveTasksResultEntry.of_xml)letof_jsonj=list_of_json~kind:"ListMessageMoveTasksResultEntryList"~of_json:ListMessageMoveTasksResultEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInvalidAttributeName=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified attribute doesn't exist."]moduleDeleteMessageBatchResultEntryList=structtypenonrect=DeleteMessageBatchResultEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DeleteMessageBatchResultEntry.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:DeleteMessageBatchResultEntry.of_xml)letof_jsonj=list_of_json~kind:"DeleteMessageBatchResultEntryList"~of_json:DeleteMessageBatchResultEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDeleteMessageBatchRequestEntryList=structtypenonrect=DeleteMessageBatchRequestEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DeleteMessageBatchRequestEntry.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:DeleteMessageBatchRequestEntry.of_xml)letof_jsonj=list_of_json~kind:"DeleteMessageBatchRequestEntryList"~of_json:DeleteMessageBatchRequestEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInvalidAttributeValue=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A queue attribute value is invalid."]moduleQueueDeletedRecently=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You must wait 60 seconds after deleting a queue before you can create another queue with the same name."]moduleQueueNameExists=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A queue with this name already exists. Amazon SQS returns this error only if the request includes attributes whose values differ from those of the existing queue."]moduleChangeMessageVisibilityBatchResultEntryList=structtypenonrect=ChangeMessageVisibilityBatchResultEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChangeMessageVisibilityBatchResultEntry.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:ChangeMessageVisibilityBatchResultEntry.of_xml)letof_jsonj=list_of_json~kind:"ChangeMessageVisibilityBatchResultEntryList"~of_json:ChangeMessageVisibilityBatchResultEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChangeMessageVisibilityBatchRequestEntryList=structtypenonrect=ChangeMessageVisibilityBatchRequestEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChangeMessageVisibilityBatchRequestEntry.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.mapx~f:ChangeMessageVisibilityBatchRequestEntry.of_xml)letof_jsonj=list_of_json~kind:"ChangeMessageVisibilityBatchRequestEntryList"~of_json:ChangeMessageVisibilityBatchRequestEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAWSAccountIdList=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.mapx~f:String_.of_xml)letof_jsonj=list_of_json~kind:"AWSAccountIdList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleActionNameList=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.mapx~f:String_.of_xml)letof_jsonj=list_of_json~kind:"ActionNameList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUntagQueueRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the queue."];tagKeys:TagKeyList.t[@ocaml.doc"The list of tags to be removed from the specified queue."]}letcontext_="UntagQueueRequest"letmake~queueUrl=fun~tagKeys->fun()->{queueUrl;tagKeys}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("TagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.childrenxml_arg0"TagKeys")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~tagKeys~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~tagKeys~queueUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Remove cost allocation tags from the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon SQS Developer Guide. Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username in the Amazon SQS Developer Guide."]moduleTagQueueRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the queue."];tags:TagMap.t[@ocaml.doc"The list of tags to be added to the specified queue."]}letcontext_="TagQueueRequest"letmake~queueUrl=fun~tags->fun()->{queueUrl;tags}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("Tags",(Some(TagMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~tags~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagMap.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~tags~queueUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon SQS Developer Guide. When you use queue tags, keep the following guidelines in mind: Adding more than 50 tags to a queue isn't recommended. Tags don't have any semantic meaning. Amazon SQS 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. For a full list of tag restrictions, see Quotas related to queues in the Amazon SQS Developer Guide. Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username in the Amazon SQS Developer Guide."]moduleStartMessageMoveTaskResult=structtypenonrect={taskHandle:String_.toption[@ocaml.doc"An identifier associated with a message movement task. You can use this identifier to cancel a specified message movement task using the CancelMessageMoveTask action."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidSecurityofInvalidSecurity.t|`RequestThrottledofRequestThrottled.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskHandle=fun()->{taskHandle}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TaskHandle",(Option.mapx.taskHandle~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskHandle=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"TaskHandle")inmake?taskHandle()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskHandle=field_mapjson__"TaskHandle"String_.of_jsoninmake?taskHandle()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts an asynchronous task to move messages from a specified source queue to a specified destination queue. This action is currently limited to supporting message redrive from queues that are configured as dead-letter queues (DLQs) of other Amazon SQS queues only. Non-SQS queue sources of dead-letter queues, such as Lambda or Amazon SNS topics, are currently not supported. In dead-letter queues redrive context, the StartMessageMoveTask the source queue is the DLQ, while the destination queue can be the original source queue (from which the messages were driven to the dead-letter-queue), or a custom destination queue. Only one active message movement task is supported per queue at any given time."]moduleStartMessageMoveTaskRequest=structtypenonrect={sourceArn:String_.t[@ocaml.doc"The ARN of the queue that contains the messages to be moved to another queue. Currently, only ARNs of dead-letter queues (DLQs) whose sources are other Amazon SQS queues are accepted. DLQs whose sources are non-SQS queues, such as Lambda or Amazon SNS topics, are not currently supported."];destinationArn:String_.toption[@ocaml.doc"The ARN of the queue that receives the moved messages. You can use this field to specify the destination queue where you would like to redrive messages. If this field is left blank, the messages will be redriven back to their respective original source queues."];maxNumberOfMessagesPerSecond:NullableInteger.toption[@ocaml.doc"The number of messages to be moved per second (the message movement rate). You can use this field to define a fixed message movement rate. The maximum value for messages per second is 500. If this field is left blank, the system will optimize the rate based on the queue message backlog size, which may vary throughout the duration of the message movement task."]}letcontext_="StartMessageMoveTaskRequest"letmake?destinationArn=fun?maxNumberOfMessagesPerSecond->fun~sourceArn->fun()->{destinationArn;maxNumberOfMessagesPerSecond;sourceArn}letto_valuex=structure_to_value[("SourceArn",(Some(String_.to_valuex.sourceArn)));("DestinationArn",(Option.mapx.destinationArn~f:String_.to_value));("MaxNumberOfMessagesPerSecond",(Option.mapx.maxNumberOfMessagesPerSecond~f:NullableInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxNumberOfMessagesPerSecond=(Option.map~f:NullableInteger.of_xml)(Xml.childxml_arg0"MaxNumberOfMessagesPerSecond")inletdestinationArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DestinationArn")inletsourceArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"SourceArn")inmake?maxNumberOfMessagesPerSecond?destinationArn~sourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxNumberOfMessagesPerSecond=field_mapjson__"MaxNumberOfMessagesPerSecond"NullableInteger.of_jsoninletdestinationArn=field_mapjson__"DestinationArn"String_.of_jsoninletsourceArn=field_map_exnjson__"SourceArn"String_.of_jsoninmake?maxNumberOfMessagesPerSecond?destinationArn~sourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts an asynchronous task to move messages from a specified source queue to a specified destination queue. This action is currently limited to supporting message redrive from queues that are configured as dead-letter queues (DLQs) of other Amazon SQS queues only. Non-SQS queue sources of dead-letter queues, such as Lambda or Amazon SNS topics, are currently not supported. In dead-letter queues redrive context, the StartMessageMoveTask the source queue is the DLQ, while the destination queue can be the original source queue (from which the messages were driven to the dead-letter-queue), or a custom destination queue. Only one active message movement task is supported per queue at any given time."]moduleSetQueueAttributesRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue whose attributes are set. Queue URLs and names are case-sensitive."];attributes:QueueAttributeMap.t[@ocaml.doc"A map of attributes to set. The following lists the names, descriptions, and values of the special request parameters that the SetQueueAttributes action uses: DelaySeconds \226\128\147 The length of time, in seconds, for which the delivery of all messages in the queue is delayed. Valid values: An integer from 0 to 900 (15 minutes). Default: 0. MaximumMessageSize \226\128\147 The limit of how many bytes a message can contain before Amazon SQS rejects it. Valid values: An integer from 1,024 bytes (1 KiB) up to 1,048,576 bytes (1 MiB). Default: 1,048,576 bytes (1 MiB). MessageRetentionPeriod \226\128\147 The length of time, in seconds, for which Amazon SQS retains a message. Valid values: An integer representing seconds, from 60 (1 minute) to 1,209,600 (14 days). Default: 345,600 (4 days). When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the Amazon SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes and will impact existing messages in the queue potentially causing them to be expired and deleted if the MessageRetentionPeriod is reduced below the age of existing messages. Policy \226\128\147 The queue's policy. A valid Amazon Web Services policy. For more information about policy structure, see Overview of Amazon Web Services IAM Policies in the Identity and Access Management User Guide. ReceiveMessageWaitTimeSeconds \226\128\147 The length of time, in seconds, for which a ReceiveMessage action waits for a message to arrive. Valid values: An integer from 0 to 20 (seconds). Default: 0. VisibilityTimeout \226\128\147 The visibility timeout for the queue, in seconds. Valid values: An integer from 0 to 43,200 (12 hours). Default: 30. For more information about the visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. The following attributes apply only to dead-letter queues: RedrivePolicy \226\128\147 The string that includes the parameters for the dead-letter queue functionality of the source queue as a JSON object. The parameters are as follows: deadLetterTargetArn \226\128\147 The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded. maxReceiveCount \226\128\147 The number of times a message is delivered to the source queue before being moved to the dead-letter queue. Default: 10. When the ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS moves the message to the dead-letter-queue. RedriveAllowPolicy \226\128\147 The string that includes the parameters for the permissions for the dead-letter queue redrive permission and which source queues can specify dead-letter queues as a JSON object. The parameters are as follows: redrivePermission \226\128\147 The permission type that defines which source queues can specify the current queue as the dead-letter queue. Valid values are: allowAll \226\128\147 (Default) Any source queues in this Amazon Web Services account in the same Region can specify this queue as the dead-letter queue. denyAll \226\128\147 No source queues can specify this queue as the dead-letter queue. byQueue \226\128\147 Only queues specified by the sourceQueueArns parameter can specify this queue as the dead-letter queue. sourceQueueArns \226\128\147 The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. You can specify this parameter only when the redrivePermission parameter is set to byQueue. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set the redrivePermission parameter to allowAll. The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue. The following attributes apply only to server-side-encryption: KmsMasterKeyId \226\128\147 The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms. While the alias of the AWS-managed CMK for Amazon SQS is always alias/aws/sqs, the alias of a custom CMK can, for example, be alias/MyAlias . For more examples, see KeyId in the Key Management Service API Reference. KmsDataKeyReusePeriodSeconds \226\128\147 The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). Default: 300 (5 minutes). A shorter time period provides better security but results in more calls to KMS which might incur charges after Free Tier. For more information, see How Does the Data Key Reuse Period Work?. SqsManagedSseEnabled \226\128\147 Enables server-side queue encryption using SQS owned encryption keys. Only one server-side encryption option is supported per queue (for example, SSE-KMS or SSE-SQS). The following attribute applies only to FIFO (first-in-first-out) queues: ContentBasedDeduplication \226\128\147 Enables content-based deduplication. For more information, see Exactly-once processing in the Amazon SQS Developer Guide. Note the following: 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 queue, Amazon SQS 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 queue doesn't have ContentBasedDeduplication set, the action fails with an error. If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one. When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication 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 and only one copy of the message is delivered. The following attributes apply only to high throughput for FIFO queues: DeduplicationScope \226\128\147 Specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroup and queue. FifoThroughputLimit \226\128\147 Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values are perQueue and perMessageGroupId. The perMessageGroupId value is allowed only when the value for DeduplicationScope is messageGroup. To enable high throughput for FIFO queues, do the following: Set DeduplicationScope to messageGroup. Set FifoThroughputLimit to perMessageGroupId. If you set these attributes to anything other than the values shown for enabling high throughput, normal throughput is in effect and deduplication occurs as specified. For information on throughput quotas, see Quotas related to messages in the Amazon SQS Developer Guide."]}letcontext_="SetQueueAttributesRequest"letmake~queueUrl=fun~attributes->fun()->{queueUrl;attributes}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("Attributes",(Some(QueueAttributeMap.to_valuex.attributes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=QueueAttributeMap.of_xml(Xml.child_exn~context:context_xml_arg0"Attributes")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~attributes~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_map_exnjson__"Attributes"QueueAttributeMap.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~attributes~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmoduleSendMessageResult=structtypenonrect={mD5OfMessageBody:String_.toption[@ocaml.doc"An MD5 digest of the non-URL-encoded message body string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321."];mD5OfMessageAttributes:String_.toption[@ocaml.doc"An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321."];mD5OfMessageSystemAttributes:String_.toption[@ocaml.doc"An MD5 digest of the non-URL-encoded message system attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest."];messageId:String_.toption[@ocaml.doc"An attribute containing the MessageId of the message sent to the queue. For more information, see Queue and Message Identifiers in the Amazon SQS Developer Guide."];sequenceNumber:String_.toption[@ocaml.doc"This parameter applies only to FIFO (first-in-first-out) queues. The large, non-consecutive number that Amazon SQS assigns to each message. The length of SequenceNumber is 128 bits. SequenceNumber continues to increase for a particular MessageGroupId."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidMessageContentsofInvalidMessageContents.t|`InvalidSecurityofInvalidSecurity.t|`KmsAccessDeniedofKmsAccessDenied.t|`KmsDisabledofKmsDisabled.t|`KmsInvalidKeyUsageofKmsInvalidKeyUsage.t|`KmsInvalidStateofKmsInvalidState.t|`KmsNotFoundofKmsNotFound.t|`KmsOptInRequiredofKmsOptInRequired.t|`KmsThrottledofKmsThrottled.t|`QueueDoesNotExistofQueueDoesNotExist.t|`RequestThrottledofRequestThrottled.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?mD5OfMessageBody=fun?mD5OfMessageAttributes->fun?mD5OfMessageSystemAttributes->fun?messageId->fun?sequenceNumber->fun()->{mD5OfMessageBody;mD5OfMessageAttributes;mD5OfMessageSystemAttributes;messageId;sequenceNumber}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidMessageContents"->`InvalidMessageContents(InvalidMessageContents.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"KmsAccessDenied"->`KmsAccessDenied(KmsAccessDenied.of_jsonjson)|"KmsDisabled"->`KmsDisabled(KmsDisabled.of_jsonjson)|"KmsInvalidKeyUsage"->`KmsInvalidKeyUsage(KmsInvalidKeyUsage.of_jsonjson)|"KmsInvalidState"->`KmsInvalidState(KmsInvalidState.of_jsonjson)|"KmsNotFound"->`KmsNotFound(KmsNotFound.of_jsonjson)|"KmsOptInRequired"->`KmsOptInRequired(KmsOptInRequired.of_jsonjson)|"KmsThrottled"->`KmsThrottled(KmsThrottled.of_jsonjson)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidMessageContents"->`InvalidMessageContents(InvalidMessageContents.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"KmsAccessDenied"->`KmsAccessDenied(KmsAccessDenied.of_xmlxml)|"KmsDisabled"->`KmsDisabled(KmsDisabled.of_xmlxml)|"KmsInvalidKeyUsage"->`KmsInvalidKeyUsage(KmsInvalidKeyUsage.of_xmlxml)|"KmsInvalidState"->`KmsInvalidState(KmsInvalidState.of_xmlxml)|"KmsNotFound"->`KmsNotFound(KmsNotFound.of_xmlxml)|"KmsOptInRequired"->`KmsOptInRequired(KmsOptInRequired.of_xmlxml)|"KmsThrottled"->`KmsThrottled(KmsThrottled.of_xmlxml)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidMessageContentse->`Assoc[("error",(`String"InvalidMessageContents"));("details",(InvalidMessageContents.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`KmsAccessDeniede->`Assoc[("error",(`String"KmsAccessDenied"));("details",(KmsAccessDenied.to_jsone))]|`KmsDisablede->`Assoc[("error",(`String"KmsDisabled"));("details",(KmsDisabled.to_jsone))]|`KmsInvalidKeyUsagee->`Assoc[("error",(`String"KmsInvalidKeyUsage"));("details",(KmsInvalidKeyUsage.to_jsone))]|`KmsInvalidStatee->`Assoc[("error",(`String"KmsInvalidState"));("details",(KmsInvalidState.to_jsone))]|`KmsNotFounde->`Assoc[("error",(`String"KmsNotFound"));("details",(KmsNotFound.to_jsone))]|`KmsOptInRequirede->`Assoc[("error",(`String"KmsOptInRequired"));("details",(KmsOptInRequired.to_jsone))]|`KmsThrottlede->`Assoc[("error",(`String"KmsThrottled"));("details",(KmsThrottled.to_jsone))]|`QueueDoesNotExiste->`Assoc[("error",(`String"QueueDoesNotExist"));("details",(QueueDoesNotExist.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MD5OfMessageBody",(Option.mapx.mD5OfMessageBody~f:String_.to_value));("MD5OfMessageAttributes",(Option.mapx.mD5OfMessageAttributes~f:String_.to_value));("MD5OfMessageSystemAttributes",(Option.mapx.mD5OfMessageSystemAttributes~f:String_.to_value));("MessageId",(Option.mapx.messageId~f:String_.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:String_.of_xml)(Xml.childxml_arg0"MessageId")inletmD5OfMessageSystemAttributes=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MD5OfMessageSystemAttributes")inletmD5OfMessageAttributes=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MD5OfMessageAttributes")inletmD5OfMessageBody=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MD5OfMessageBody")inmake?sequenceNumber?messageId?mD5OfMessageSystemAttributes?mD5OfMessageAttributes?mD5OfMessageBody()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"SequenceNumber"String_.of_jsoninletmessageId=field_mapjson__"MessageId"String_.of_jsoninletmD5OfMessageSystemAttributes=field_mapjson__"MD5OfMessageSystemAttributes"String_.of_jsoninletmD5OfMessageAttributes=field_mapjson__"MD5OfMessageAttributes"String_.of_jsoninletmD5OfMessageBody=field_mapjson__"MD5OfMessageBody"String_.of_jsoninmake?sequenceNumber?messageId?mD5OfMessageSystemAttributes?mD5OfMessageAttributes?mD5OfMessageBody()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The MD5OfMessageBody and MessageId elements."]moduleSendMessageRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue to which a message is sent. Queue URLs and names are case-sensitive."];messageBody:String_.t[@ocaml.doc"The message to send. The minimum size is one character. The maximum size is 1 MiB or 1,048,576 bytes A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed. For more information, see the W3C specification for characters. #x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF If a message contains characters outside the allowed set, Amazon SQS rejects the message and returns an InvalidMessageContents error. Ensure that your message body includes only valid characters to avoid this exception."];delaySeconds:NullableInteger.toption[@ocaml.doc"The length of time, in seconds, for which to delay a specific message. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue applies. When you set FifoQueue, you can't set DelaySeconds per message. You can set this parameter only on a queue level."];messageAttributes:MessageBodyAttributeMap.toption[@ocaml.doc"Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide."];messageSystemAttributes:MessageBodySystemAttributeMap.toption[@ocaml.doc"The message system attribute to send. Each message system attribute consists of a Name, Type, and Value. Currently, the only supported message system attribute is AWSTraceHeader. Its type must be String and its value must be a correctly formatted X-Ray trace header string. The size of a message system attribute doesn't count towards the total size of a message."];messageDeduplicationId:String_.toption[@ocaml.doc"This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of sent messages. If a message with a particular MessageDeduplicationId is sent successfully, any messages sent with the same MessageDeduplicationId are accepted successfully but aren't delivered during the 5-minute deduplication interval. For more information, see Exactly-once processing in the Amazon SQS Developer Guide. 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 queue, Amazon SQS 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 queue doesn't have ContentBasedDeduplication set, the action fails with an error. If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one. When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication 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 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 SQS can't detect duplicate messages. Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted. The maximum length of MessageDeduplicationId is 128 characters. MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?\\@\\[\\\\]^_`\\{|\\}~). For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId Property in the Amazon SQS Developer Guide."];messageGroupId:String_.toption[@ocaml.doc"MessageGroupId is an attribute used in Amazon SQS FIFO (First-In-First-Out) and standard queues. In FIFO queues, MessageGroupId organizes messages into distinct groups. Messages within the same message group are always processed one at a time, in strict order, ensuring that no two messages from the same group are processed simultaneously. In standard queues, using MessageGroupId enables fair queues. It is used to identify the tenant a message belongs to, helping maintain consistent message dwell time across all tenants during noisy neighbor events. Unlike FIFO queues, messages with the same MessageGroupId can be processed in parallel, maintaining the high throughput of standard queues. FIFO queues: MessageGroupId acts as 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 queue, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple consumers can process the queue, but the session data of each user is processed in a FIFO fashion. If you do not provide a MessageGroupId when sending a message to a FIFO queue, the action fails. ReceiveMessage might return messages with multiple MessageGroupId values. For each MessageGroupId, the messages are sorted by time sent. Standard queues:Use MessageGroupId in standard queues to enable fair queues. The MessageGroupId identifies the tenant a message belongs to. A tenant can be any entity that shares a queue with others, such as your customer, a client application, or a request type. When one tenant sends a disproportionately large volume of messages or has messages that require longer processing time, fair queues ensure other tenants' messages maintain low dwell time. This preserves quality of service for all tenants while maintaining the scalability and throughput of standard queues. We recommend that you include a MessageGroupId in all messages when using fair queues. The length of MessageGroupId is 128 characters. Valid values: alphanumeric characters and punctuation (!\"#$%&'()*+,-./:;<=>?\\@\\[\\\\]^_`\\{|\\}~). For best practices of using MessageGroupId, see Using the MessageGroupId Property in the Amazon SQS Developer Guide."]}letcontext_="SendMessageRequest"letmake?delaySeconds=fun?messageAttributes->fun?messageSystemAttributes->fun?messageDeduplicationId->fun?messageGroupId->fun~queueUrl->fun~messageBody->fun()->{delaySeconds;messageAttributes;messageSystemAttributes;messageDeduplicationId;messageGroupId;queueUrl;messageBody}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("MessageBody",(Some(String_.to_valuex.messageBody)));("DelaySeconds",(Option.mapx.delaySeconds~f:NullableInteger.to_value));("MessageAttributes",(Option.mapx.messageAttributes~f:MessageBodyAttributeMap.to_value));("MessageSystemAttributes",(Option.mapx.messageSystemAttributes~f:MessageBodySystemAttributeMap.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")inletmessageSystemAttributes=(Option.map~f:MessageBodySystemAttributeMap.of_xml)(Xml.childxml_arg0"MessageSystemAttributes")inletmessageAttributes=(Option.map~f:MessageBodyAttributeMap.of_xml)(Xml.childxml_arg0"MessageAttributes")inletdelaySeconds=(Option.map~f:NullableInteger.of_xml)(Xml.childxml_arg0"DelaySeconds")inletmessageBody=String_.of_xml(Xml.child_exn~context:context_xml_arg0"MessageBody")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake?messageGroupId?messageDeduplicationId?messageSystemAttributes?messageAttributes?delaySeconds~messageBody~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageGroupId=field_mapjson__"MessageGroupId"String_.of_jsoninletmessageDeduplicationId=field_mapjson__"MessageDeduplicationId"String_.of_jsoninletmessageSystemAttributes=field_mapjson__"MessageSystemAttributes"MessageBodySystemAttributeMap.of_jsoninletmessageAttributes=field_mapjson__"MessageAttributes"MessageBodyAttributeMap.of_jsoninletdelaySeconds=field_mapjson__"DelaySeconds"NullableInteger.of_jsoninletmessageBody=field_map_exnjson__"MessageBody"String_.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake?messageGroupId?messageDeduplicationId?messageSystemAttributes?messageAttributes?delaySeconds~messageBody~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmoduleSendMessageBatchResult=structtypenonrect={successful:SendMessageBatchResultEntryList.toption[@ocaml.doc"A list of SendMessageBatchResultEntry items."];failed:BatchResultErrorEntryList.toption[@ocaml.doc"A list of BatchResultErrorEntry items with error details about each message that can't be enqueued."]}typenonrecerror=[`BatchEntryIdsNotDistinctofBatchEntryIdsNotDistinct.t|`BatchRequestTooLongofBatchRequestTooLong.t|`EmptyBatchRequestofEmptyBatchRequest.t|`InvalidAddressofInvalidAddress.t|`InvalidBatchEntryIdofInvalidBatchEntryId.t|`InvalidSecurityofInvalidSecurity.t|`KmsAccessDeniedofKmsAccessDenied.t|`KmsDisabledofKmsDisabled.t|`KmsInvalidKeyUsageofKmsInvalidKeyUsage.t|`KmsInvalidStateofKmsInvalidState.t|`KmsNotFoundofKmsNotFound.t|`KmsOptInRequiredofKmsOptInRequired.t|`KmsThrottledofKmsThrottled.t|`QueueDoesNotExistofQueueDoesNotExist.t|`RequestThrottledofRequestThrottled.t|`TooManyEntriesInBatchRequestofTooManyEntriesInBatchRequest.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?successful=fun?failed->fun()->{successful;failed}leterror_of_jsonnamejson=matchnamewith|"BatchEntryIdsNotDistinct"->`BatchEntryIdsNotDistinct(BatchEntryIdsNotDistinct.of_jsonjson)|"BatchRequestTooLong"->`BatchRequestTooLong(BatchRequestTooLong.of_jsonjson)|"EmptyBatchRequest"->`EmptyBatchRequest(EmptyBatchRequest.of_jsonjson)|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidBatchEntryId"->`InvalidBatchEntryId(InvalidBatchEntryId.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"KmsAccessDenied"->`KmsAccessDenied(KmsAccessDenied.of_jsonjson)|"KmsDisabled"->`KmsDisabled(KmsDisabled.of_jsonjson)|"KmsInvalidKeyUsage"->`KmsInvalidKeyUsage(KmsInvalidKeyUsage.of_jsonjson)|"KmsInvalidState"->`KmsInvalidState(KmsInvalidState.of_jsonjson)|"KmsNotFound"->`KmsNotFound(KmsNotFound.of_jsonjson)|"KmsOptInRequired"->`KmsOptInRequired(KmsOptInRequired.of_jsonjson)|"KmsThrottled"->`KmsThrottled(KmsThrottled.of_jsonjson)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"TooManyEntriesInBatchRequest"->`TooManyEntriesInBatchRequest(TooManyEntriesInBatchRequest.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BatchEntryIdsNotDistinct"->`BatchEntryIdsNotDistinct(BatchEntryIdsNotDistinct.of_xmlxml)|"BatchRequestTooLong"->`BatchRequestTooLong(BatchRequestTooLong.of_xmlxml)|"EmptyBatchRequest"->`EmptyBatchRequest(EmptyBatchRequest.of_xmlxml)|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidBatchEntryId"->`InvalidBatchEntryId(InvalidBatchEntryId.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"KmsAccessDenied"->`KmsAccessDenied(KmsAccessDenied.of_xmlxml)|"KmsDisabled"->`KmsDisabled(KmsDisabled.of_xmlxml)|"KmsInvalidKeyUsage"->`KmsInvalidKeyUsage(KmsInvalidKeyUsage.of_xmlxml)|"KmsInvalidState"->`KmsInvalidState(KmsInvalidState.of_xmlxml)|"KmsNotFound"->`KmsNotFound(KmsNotFound.of_xmlxml)|"KmsOptInRequired"->`KmsOptInRequired(KmsOptInRequired.of_xmlxml)|"KmsThrottled"->`KmsThrottled(KmsThrottled.of_xmlxml)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"TooManyEntriesInBatchRequest"->`TooManyEntriesInBatchRequest(TooManyEntriesInBatchRequest.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BatchEntryIdsNotDistincte->`Assoc[("error",(`String"BatchEntryIdsNotDistinct"));("details",(BatchEntryIdsNotDistinct.to_jsone))]|`BatchRequestTooLonge->`Assoc[("error",(`String"BatchRequestTooLong"));("details",(BatchRequestTooLong.to_jsone))]|`EmptyBatchRequeste->`Assoc[("error",(`String"EmptyBatchRequest"));("details",(EmptyBatchRequest.to_jsone))]|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidBatchEntryIde->`Assoc[("error",(`String"InvalidBatchEntryId"));("details",(InvalidBatchEntryId.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`KmsAccessDeniede->`Assoc[("error",(`String"KmsAccessDenied"));("details",(KmsAccessDenied.to_jsone))]|`KmsDisablede->`Assoc[("error",(`String"KmsDisabled"));("details",(KmsDisabled.to_jsone))]|`KmsInvalidKeyUsagee->`Assoc[("error",(`String"KmsInvalidKeyUsage"));("details",(KmsInvalidKeyUsage.to_jsone))]|`KmsInvalidStatee->`Assoc[("error",(`String"KmsInvalidState"));("details",(KmsInvalidState.to_jsone))]|`KmsNotFounde->`Assoc[("error",(`String"KmsNotFound"));("details",(KmsNotFound.to_jsone))]|`KmsOptInRequirede->`Assoc[("error",(`String"KmsOptInRequired"));("details",(KmsOptInRequired.to_jsone))]|`KmsThrottlede->`Assoc[("error",(`String"KmsThrottled"));("details",(KmsThrottled.to_jsone))]|`QueueDoesNotExiste->`Assoc[("error",(`String"QueueDoesNotExist"));("details",(QueueDoesNotExist.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`TooManyEntriesInBatchRequeste->`Assoc[("error",(`String"TooManyEntriesInBatchRequest"));("details",(TooManyEntriesInBatchRequest.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Successful",(Option.mapx.successful~f:SendMessageBatchResultEntryList.to_value));("Failed",(Option.mapx.failed~f:BatchResultErrorEntryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailed=(Option.map~f:BatchResultErrorEntryList.of_xml)(Some(Xml.childrenxml_arg0"Failed"))inletsuccessful=(Option.map~f:SendMessageBatchResultEntryList.of_xml)(Some(Xml.childrenxml_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"SendMessageBatchResultEntryList.of_jsoninmake?failed?successful()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"For each message in the batch, the response contains a SendMessageBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails."]moduleSendMessageBatchRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue to which batched messages are sent. Queue URLs and names are case-sensitive."];entries:SendMessageBatchRequestEntryList.t[@ocaml.doc"A list of SendMessageBatchRequestEntry items."]}letcontext_="SendMessageBatchRequest"letmake~queueUrl=fun~entries->fun()->{queueUrl;entries}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("Entries",(Some(SendMessageBatchRequestEntryList.to_valuex.entries)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letentries=SendMessageBatchRequestEntryList.of_xml(Xml.childrenxml_arg0"Entries")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~entries~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letentries=field_map_exnjson__"Entries"SendMessageBatchRequestEntryList.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~entries~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmoduleRemovePermissionRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue from which permissions are removed. Queue URLs and names are case-sensitive."];label:String_.t[@ocaml.doc"The identification of the permission to remove. This is the label added using the AddPermission action."]}letcontext_="RemovePermissionRequest"letmake~queueUrl=fun~label->fun()->{queueUrl;label}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("Label",(Some(String_.to_valuex.label)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlabel=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Label")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~label~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlabel=field_map_exnjson__"Label"String_.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~label~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmoduleReceiveMessageResult=structtypenonrect={messages:MessageList.toption[@ocaml.doc"A list of messages."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidSecurityofInvalidSecurity.t|`KmsAccessDeniedofKmsAccessDenied.t|`KmsDisabledofKmsDisabled.t|`KmsInvalidKeyUsageofKmsInvalidKeyUsage.t|`KmsInvalidStateofKmsInvalidState.t|`KmsNotFoundofKmsNotFound.t|`KmsOptInRequiredofKmsOptInRequired.t|`KmsThrottledofKmsThrottled.t|`OverLimitofOverLimit.t|`QueueDoesNotExistofQueueDoesNotExist.t|`RequestThrottledofRequestThrottled.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?messages=fun()->{messages}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"KmsAccessDenied"->`KmsAccessDenied(KmsAccessDenied.of_jsonjson)|"KmsDisabled"->`KmsDisabled(KmsDisabled.of_jsonjson)|"KmsInvalidKeyUsage"->`KmsInvalidKeyUsage(KmsInvalidKeyUsage.of_jsonjson)|"KmsInvalidState"->`KmsInvalidState(KmsInvalidState.of_jsonjson)|"KmsNotFound"->`KmsNotFound(KmsNotFound.of_jsonjson)|"KmsOptInRequired"->`KmsOptInRequired(KmsOptInRequired.of_jsonjson)|"KmsThrottled"->`KmsThrottled(KmsThrottled.of_jsonjson)|"OverLimit"->`OverLimit(OverLimit.of_jsonjson)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"KmsAccessDenied"->`KmsAccessDenied(KmsAccessDenied.of_xmlxml)|"KmsDisabled"->`KmsDisabled(KmsDisabled.of_xmlxml)|"KmsInvalidKeyUsage"->`KmsInvalidKeyUsage(KmsInvalidKeyUsage.of_xmlxml)|"KmsInvalidState"->`KmsInvalidState(KmsInvalidState.of_xmlxml)|"KmsNotFound"->`KmsNotFound(KmsNotFound.of_xmlxml)|"KmsOptInRequired"->`KmsOptInRequired(KmsOptInRequired.of_xmlxml)|"KmsThrottled"->`KmsThrottled(KmsThrottled.of_xmlxml)|"OverLimit"->`OverLimit(OverLimit.of_xmlxml)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`KmsAccessDeniede->`Assoc[("error",(`String"KmsAccessDenied"));("details",(KmsAccessDenied.to_jsone))]|`KmsDisablede->`Assoc[("error",(`String"KmsDisabled"));("details",(KmsDisabled.to_jsone))]|`KmsInvalidKeyUsagee->`Assoc[("error",(`String"KmsInvalidKeyUsage"));("details",(KmsInvalidKeyUsage.to_jsone))]|`KmsInvalidStatee->`Assoc[("error",(`String"KmsInvalidState"));("details",(KmsInvalidState.to_jsone))]|`KmsNotFounde->`Assoc[("error",(`String"KmsNotFound"));("details",(KmsNotFound.to_jsone))]|`KmsOptInRequirede->`Assoc[("error",(`String"KmsOptInRequired"));("details",(KmsOptInRequired.to_jsone))]|`KmsThrottlede->`Assoc[("error",(`String"KmsThrottled"));("details",(KmsThrottled.to_jsone))]|`OverLimite->`Assoc[("error",(`String"OverLimit"));("details",(OverLimit.to_jsone))]|`QueueDoesNotExiste->`Assoc[("error",(`String"QueueDoesNotExist"));("details",(QueueDoesNotExist.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Messages",(Option.mapx.messages~f:MessageList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessages=(Option.map~f:MessageList.of_xml)(Some(Xml.childrenxml_arg0"Messages"))inmake?messages()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessages=field_mapjson__"Messages"MessageList.of_jsoninmake?messages()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of received messages."]moduleReceiveMessageRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue from which messages are received. Queue URLs and names are case-sensitive."];attributeNames:AttributeNameList.toption[@ocaml.doc"This parameter has been discontinued but will be supported for backward compatibility. To provide attribute names, you are encouraged to use MessageSystemAttributeNames. A list of attributes that need to be returned along with each message. These attributes include: All \226\128\147 Returns all values. ApproximateFirstReceiveTimestamp \226\128\147 Returns the time the message was first received from the queue (epoch time in milliseconds). ApproximateReceiveCount \226\128\147 Returns the number of times a message has been received across all queues but not deleted. AWSTraceHeader \226\128\147 Returns the X-Ray trace header string. SenderId For a user, returns the user ID, for example ABCDEFGHI1JKLMNOPQ23R. For an IAM role, returns the IAM role ID, for example ABCDE1F2GH3I4JK5LMNOP:i-a123b456. SentTimestamp \226\128\147 Returns the time the message was sent to the queue (epoch time in milliseconds). SqsManagedSseEnabled \226\128\147 Enables server-side queue encryption using SQS owned encryption keys. Only one server-side encryption option is supported per queue (for example, SSE-KMS or SSE-SQS). MessageDeduplicationId \226\128\147 Returns the value provided by the producer that calls the SendMessage action. MessageGroupId \226\128\147 Returns the value provided by the producer that calls the SendMessage action. SequenceNumber \226\128\147 Returns the value provided by Amazon SQS."];messageSystemAttributeNames:MessageSystemAttributeList.toption[@ocaml.doc"A list of attributes that need to be returned along with each message. These attributes include: All \226\128\147 Returns all values. ApproximateFirstReceiveTimestamp \226\128\147 Returns the time the message was first received from the queue (epoch time in milliseconds). ApproximateReceiveCount \226\128\147 Returns the number of times a message has been received across all queues but not deleted. AWSTraceHeader \226\128\147 Returns the X-Ray trace header string. SenderId For a user, returns the user ID, for example ABCDEFGHI1JKLMNOPQ23R. For an IAM role, returns the IAM role ID, for example ABCDE1F2GH3I4JK5LMNOP:i-a123b456. SentTimestamp \226\128\147 Returns the time the message was sent to the queue (epoch time in milliseconds). SqsManagedSseEnabled \226\128\147 Enables server-side queue encryption using SQS owned encryption keys. Only one server-side encryption option is supported per queue (for example, SSE-KMS or SSE-SQS). MessageDeduplicationId \226\128\147 Returns the value provided by the producer that calls the SendMessage action. MessageGroupId \226\128\147 Returns the value provided by the producer that calls the SendMessage action. SequenceNumber \226\128\147 Returns the value provided by Amazon SQS."];messageAttributeNames:MessageAttributeNameList.toption[@ocaml.doc"The name of the message attribute, where N is the index. The name can contain alphanumeric characters and the underscore (_), hyphen (-), and period (.). The name is case-sensitive and must be unique among all attribute names for the message. The name must not start with AWS-reserved prefixes such as AWS. or Amazon. (or any casing variants). The name must not start or end with a period (.), and it should not have periods in succession (..). The name can be up to 256 characters long. When using ReceiveMessage, you can send a list of attribute names to receive, or you can return all of the attributes by specifying All or .* in your request. You can also use all message attributes starting with a prefix, for example bar.*."];maxNumberOfMessages:NullableInteger.toption[@ocaml.doc"The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1."];visibilityTimeout:NullableInteger.toption[@ocaml.doc"The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. If not specified, the default visibility timeout for the queue is used, which is 30 seconds. Understanding VisibilityTimeout: When a message is received from a queue, it becomes temporarily invisible to other consumers for the duration of the visibility timeout. This prevents multiple consumers from processing the same message simultaneously. If the message is not deleted or its visibility timeout is not extended before the timeout expires, it becomes visible again and can be retrieved by other consumers. Setting an appropriate visibility timeout is crucial. If it's too short, the message might become visible again before processing is complete, leading to duplicate processing. If it's too long, it delays the reprocessing of messages if the initial processing fails. You can adjust the visibility timeout using the --visibility-timeout parameter in the receive-message command to match the processing time required by your application. A message that isn't deleted or a message whose visibility isn't extended before the visibility timeout expires counts as a failed receive. Depending on the configuration of the queue, the message might be sent to the dead-letter queue. For more information, see Visibility Timeout in the Amazon SQS Developer Guide."];waitTimeSeconds:NullableInteger.toption[@ocaml.doc"The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call does not return a message list. If you are using the Java SDK, it returns a ReceiveMessageResponse object, which has a empty list instead of a Null object. To avoid HTTP errors, ensure that the HTTP response timeout for ReceiveMessage requests is longer than the WaitTimeSeconds parameter. For example, with the Java SDK, you can set HTTP transport settings using the NettyNioAsyncHttpClient for asynchronous clients, or the ApacheHttpClient for synchronous clients."];receiveRequestAttemptId:String_.toption[@ocaml.doc"This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of ReceiveMessage calls. If a networking issue occurs after a ReceiveMessage action, and instead of a response you receive a generic error, it is possible to retry the same action with an identical ReceiveRequestAttemptId to retrieve the same set of messages, even if their visibility timeout has not yet expired. You can use ReceiveRequestAttemptId only for 5 minutes after a ReceiveMessage action. When you set FifoQueue, a caller of the ReceiveMessage action can provide a ReceiveRequestAttemptId explicitly. It is possible to retry the ReceiveMessage action with the same ReceiveRequestAttemptId if none of the messages have been modified (deleted or had their visibility changes). During a visibility timeout, subsequent calls with the same ReceiveRequestAttemptId return the same messages and receipt handles. If a retry occurs within the deduplication interval, it resets the visibility timeout. For more information, see Visibility Timeout in the Amazon SQS Developer Guide. If a caller of the ReceiveMessage action still processes messages when the visibility timeout expires and messages become visible, another worker consuming from the same queue can receive the same messages and therefore process duplicates. Also, if a consumer whose message processing time is longer than the visibility timeout tries to delete the processed messages, the action fails with an error. To mitigate this effect, ensure that your application observes a safe threshold before the visibility timeout expires and extend the visibility timeout as necessary. While messages with a particular MessageGroupId are invisible, no more messages belonging to the same MessageGroupId are returned until the visibility timeout expires. You can still receive messages with another MessageGroupId from your FIFO queue as long as they are visible. If a caller of ReceiveMessage can't track the ReceiveRequestAttemptId, no retries work until the original visibility timeout expires. As a result, delays might occur but the messages in the queue remain in a strict order. The maximum length of ReceiveRequestAttemptId is 128 characters. ReceiveRequestAttemptId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?\\@\\[\\\\]^_`\\{|\\}~). For best practices of using ReceiveRequestAttemptId, see Using the ReceiveRequestAttemptId Request Parameter in the Amazon SQS Developer Guide."]}letcontext_="ReceiveMessageRequest"letmake?attributeNames=fun?messageSystemAttributeNames->fun?messageAttributeNames->fun?maxNumberOfMessages->fun?visibilityTimeout->fun?waitTimeSeconds->fun?receiveRequestAttemptId->fun~queueUrl->fun()->{attributeNames;messageSystemAttributeNames;messageAttributeNames;maxNumberOfMessages;visibilityTimeout;waitTimeSeconds;receiveRequestAttemptId;queueUrl}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("AttributeNames",(Option.mapx.attributeNames~f:AttributeNameList.to_value));("MessageSystemAttributeNames",(Option.mapx.messageSystemAttributeNames~f:MessageSystemAttributeList.to_value));("MessageAttributeNames",(Option.mapx.messageAttributeNames~f:MessageAttributeNameList.to_value));("MaxNumberOfMessages",(Option.mapx.maxNumberOfMessages~f:NullableInteger.to_value));("VisibilityTimeout",(Option.mapx.visibilityTimeout~f:NullableInteger.to_value));("WaitTimeSeconds",(Option.mapx.waitTimeSeconds~f:NullableInteger.to_value));("ReceiveRequestAttemptId",(Option.mapx.receiveRequestAttemptId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreceiveRequestAttemptId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ReceiveRequestAttemptId")inletwaitTimeSeconds=(Option.map~f:NullableInteger.of_xml)(Xml.childxml_arg0"WaitTimeSeconds")inletvisibilityTimeout=(Option.map~f:NullableInteger.of_xml)(Xml.childxml_arg0"VisibilityTimeout")inletmaxNumberOfMessages=(Option.map~f:NullableInteger.of_xml)(Xml.childxml_arg0"MaxNumberOfMessages")inletmessageAttributeNames=(Option.map~f:MessageAttributeNameList.of_xml)(Some(Xml.childrenxml_arg0"MessageAttributeNames"))inletmessageSystemAttributeNames=(Option.map~f:MessageSystemAttributeList.of_xml)(Some(Xml.childrenxml_arg0"MessageSystemAttributeNames"))inletattributeNames=(Option.map~f:AttributeNameList.of_xml)(Some(Xml.childrenxml_arg0"AttributeNames"))inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake?receiveRequestAttemptId?waitTimeSeconds?visibilityTimeout?maxNumberOfMessages?messageAttributeNames?messageSystemAttributeNames?attributeNames~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreceiveRequestAttemptId=field_mapjson__"ReceiveRequestAttemptId"String_.of_jsoninletwaitTimeSeconds=field_mapjson__"WaitTimeSeconds"NullableInteger.of_jsoninletvisibilityTimeout=field_mapjson__"VisibilityTimeout"NullableInteger.of_jsoninletmaxNumberOfMessages=field_mapjson__"MaxNumberOfMessages"NullableInteger.of_jsoninletmessageAttributeNames=field_mapjson__"MessageAttributeNames"MessageAttributeNameList.of_jsoninletmessageSystemAttributeNames=field_mapjson__"MessageSystemAttributeNames"MessageSystemAttributeList.of_jsoninletattributeNames=field_mapjson__"AttributeNames"AttributeNameList.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake?receiveRequestAttemptId?waitTimeSeconds?visibilityTimeout?maxNumberOfMessages?messageAttributeNames?messageSystemAttributeNames?attributeNames~queueUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves one or more messages from a specified queue."]moduleReceiptHandleIsInvalid=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified receipt handle isn't valid."]modulePurgeQueueRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the queue from which the PurgeQueue action deletes messages. Queue URLs and names are case-sensitive."]}letcontext_="PurgeQueueRequest"letmake~queueUrl=fun()->{queueUrl}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmodulePurgeQueueInProgress=structtypenonrect={message:ExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that the specified queue previously received a PurgeQueue request within the last 60 seconds (the time it can take to delete the messages in the queue)."]moduleMessageNotInflight=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"The specified message isn't in flight."]moduleListQueuesResult=structtypenonrect={queueUrls:QueueUrlList.toption[@ocaml.doc"A list of queue URLs, up to 1,000 entries, or the value of MaxResults that you sent in the request."];nextToken:Token.toption[@ocaml.doc"Pagination token to include in the next request. Token value is null if there are no additional results to request, or if you did not set MaxResults in the request."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidSecurityofInvalidSecurity.t|`RequestThrottledofRequestThrottled.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?queueUrls=fun?nextToken->fun()->{queueUrls;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("QueueUrls",(Option.mapx.queueUrls~f:QueueUrlList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletqueueUrls=(Option.map~f:QueueUrlList.of_xml)(Some(Xml.childrenxml_arg0"QueueUrls"))inmake?nextToken?queueUrls()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletqueueUrls=field_mapjson__"QueueUrls"QueueUrlList.of_jsoninmake?nextToken?queueUrls()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of your queues."]moduleListQueuesRequest=structtypenonrect={queueNamePrefix:String_.toption[@ocaml.doc"A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. Queue URLs and names are case-sensitive."];nextToken:Token.toption[@ocaml.doc"Pagination token to request the next set of results."];maxResults:BoxedInteger.toption[@ocaml.doc"Maximum number of results to include in the response. Value range is 1 to 1000. You must set MaxResults to receive a value for NextToken in the response."]}letmake?queueNamePrefix=fun?nextToken->fun?maxResults->fun()->{queueNamePrefix;nextToken;maxResults}letto_valuex=structure_to_value[("QueueNamePrefix",(Option.mapx.queueNamePrefix~f:String_.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:BoxedInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:BoxedInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletqueueNamePrefix=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"QueueNamePrefix")inmake?maxResults?nextToken?queueNamePrefix()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"BoxedInteger.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletqueueNamePrefix=field_mapjson__"QueueNamePrefix"String_.of_jsoninmake?maxResults?nextToken?queueNamePrefix()letto_jsonv=composed_to_jsonto_valuevendmoduleListQueueTagsResult=structtypenonrect={tags:TagMap.toption[@ocaml.doc"The list of all tags added to the specified queue."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidSecurityofInvalidSecurity.t|`QueueDoesNotExistofQueueDoesNotExist.t|`RequestThrottledofRequestThrottled.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`QueueDoesNotExiste->`Assoc[("error",(`String"QueueDoesNotExist"));("details",(QueueDoesNotExist.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all cost allocation tags added to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon SQS Developer Guide. Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username in the Amazon SQS Developer Guide."]moduleListQueueTagsRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the queue."]}letcontext_="ListQueueTagsRequest"letmake~queueUrl=fun()->{queueUrl}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~queueUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all cost allocation tags added to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon SQS Developer Guide. Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username in the Amazon SQS Developer Guide."]moduleListMessageMoveTasksResult=structtypenonrect={results:ListMessageMoveTasksResultEntryList.toption[@ocaml.doc"A list of message movement tasks and their attributes."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidSecurityofInvalidSecurity.t|`RequestThrottledofRequestThrottled.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?results=fun()->{results}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Results",(Option.mapx.results~f:ListMessageMoveTasksResultEntryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresults=(Option.map~f:ListMessageMoveTasksResultEntryList.of_xml)(Some(Xml.childrenxml_arg0"Results"))inmake?results()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresults=field_mapjson__"Results"ListMessageMoveTasksResultEntryList.of_jsoninmake?results()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the most recent message movement tasks (up to 10) under a specific source queue. This action is currently limited to supporting message redrive from dead-letter queues (DLQs) only. In this context, the source queue is the dead-letter queue (DLQ), while the destination queue can be the original source queue (from which the messages were driven to the dead-letter-queue), or a custom destination queue. Only one active message movement task is supported per queue at any given time."]moduleListMessageMoveTasksRequest=structtypenonrect={sourceArn:String_.t[@ocaml.doc"The ARN of the queue whose message movement tasks are to be listed."];maxResults:NullableInteger.toption[@ocaml.doc"The maximum number of results to include in the response. The default is 1, which provides the most recent message movement task. The upper limit is 10."]}letcontext_="ListMessageMoveTasksRequest"letmake?maxResults=fun~sourceArn->fun()->{maxResults;sourceArn}letto_valuex=structure_to_value[("SourceArn",(Some(String_.to_valuex.sourceArn)));("MaxResults",(Option.mapx.maxResults~f:NullableInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:NullableInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletsourceArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"SourceArn")inmake?maxResults~sourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"NullableInteger.of_jsoninletsourceArn=field_map_exnjson__"SourceArn"String_.of_jsoninmake?maxResults~sourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the most recent message movement tasks (up to 10) under a specific source queue. This action is currently limited to supporting message redrive from dead-letter queues (DLQs) only. In this context, the source queue is the dead-letter queue (DLQ), while the destination queue can be the original source queue (from which the messages were driven to the dead-letter-queue), or a custom destination queue. Only one active message movement task is supported per queue at any given time."]moduleListDeadLetterSourceQueuesResult=structtypenonrect={queueUrls:QueueUrlList.toption[@ocaml.doc"A list of source queue URLs that have the RedrivePolicy queue attribute configured with a dead-letter queue."];nextToken:Token.toption[@ocaml.doc"Pagination token to include in the next request. Token value is null if there are no additional results to request, or if you did not set MaxResults in the request."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidSecurityofInvalidSecurity.t|`QueueDoesNotExistofQueueDoesNotExist.t|`RequestThrottledofRequestThrottled.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?queueUrls=fun?nextToken->fun()->{queueUrls;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`QueueDoesNotExiste->`Assoc[("error",(`String"QueueDoesNotExist"));("details",(QueueDoesNotExist.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("queueUrls",(Option.mapx.queueUrls~f:QueueUrlList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletqueueUrls=(Option.map~f:QueueUrlList.of_xml)(Some(Xml.childrenxml_arg0"queueUrls"))inmake?nextToken?queueUrls()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletqueueUrls=field_mapjson__"queueUrls"QueueUrlList.of_jsoninmake?nextToken?queueUrls()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of your dead letter source queues."]moduleListDeadLetterSourceQueuesRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of a dead-letter queue. Queue URLs and names are case-sensitive."];nextToken:Token.toption[@ocaml.doc"Pagination token to request the next set of results."];maxResults:BoxedInteger.toption[@ocaml.doc"Maximum number of results to include in the response. Value range is 1 to 1000. You must set MaxResults to receive a value for NextToken in the response."]}letcontext_="ListDeadLetterSourceQueuesRequest"letmake?nextToken=fun?maxResults->fun~queueUrl->fun()->{nextToken;maxResults;queueUrl}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:BoxedInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:BoxedInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake?maxResults?nextToken~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"BoxedInteger.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake?maxResults?nextToken~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmoduleInvalidIdFormat=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"The specified receipt handle isn't valid for the current version."]moduleGetQueueUrlResult=structtypenonrect={queueUrl:String_.toption[@ocaml.doc"The URL of the queue."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidSecurityofInvalidSecurity.t|`QueueDoesNotExistofQueueDoesNotExist.t|`RequestThrottledofRequestThrottled.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?queueUrl=fun()->{queueUrl}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`QueueDoesNotExiste->`Assoc[("error",(`String"QueueDoesNotExist"));("details",(QueueDoesNotExist.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("QueueUrl",(Option.mapx.queueUrl~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueueUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"QueueUrl")inmake?queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueueUrl=field_mapjson__"QueueUrl"String_.of_jsoninmake?queueUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"For more information, see Interpreting Responses in the Amazon SQS Developer Guide."]moduleGetQueueUrlRequest=structtypenonrect={queueName:String_.t[@ocaml.doc"(Required) The name of the queue for which you want to fetch the URL. The name can be up to 80 characters long and can include alphanumeric characters, hyphens (-), and underscores (_). Queue URLs and names are case-sensitive."];queueOwnerAWSAccountId:String_.toption[@ocaml.doc"(Optional) The Amazon Web Services account ID of the account that created the queue. This is only required when you are attempting to access a queue owned by another Amazon Web Services account."]}letcontext_="GetQueueUrlRequest"letmake?queueOwnerAWSAccountId=fun~queueName->fun()->{queueOwnerAWSAccountId;queueName}letto_valuex=structure_to_value[("QueueName",(Some(String_.to_valuex.queueName)));("QueueOwnerAWSAccountId",(Option.mapx.queueOwnerAWSAccountId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueueOwnerAWSAccountId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"QueueOwnerAWSAccountId")inletqueueName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueName")inmake?queueOwnerAWSAccountId~queueName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueueOwnerAWSAccountId=field_mapjson__"QueueOwnerAWSAccountId"String_.of_jsoninletqueueName=field_map_exnjson__"QueueName"String_.of_jsoninmake?queueOwnerAWSAccountId~queueName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the URL of an existing queue based on its name and, optionally, the Amazon Web Services account ID."]moduleGetQueueAttributesResult=structtypenonrect={attributes:QueueAttributeMap.toption[@ocaml.doc"A map of attributes to their respective values."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidAttributeNameofInvalidAttributeName.t|`InvalidSecurityofInvalidSecurity.t|`QueueDoesNotExistofQueueDoesNotExist.t|`RequestThrottledofRequestThrottled.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?attributes=fun()->{attributes}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidAttributeName"->`InvalidAttributeName(InvalidAttributeName.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidAttributeName"->`InvalidAttributeName(InvalidAttributeName.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidAttributeNamee->`Assoc[("error",(`String"InvalidAttributeName"));("details",(InvalidAttributeName.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`QueueDoesNotExiste->`Assoc[("error",(`String"QueueDoesNotExist"));("details",(QueueDoesNotExist.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Attributes",(Option.mapx.attributes~f:QueueAttributeMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributes=(Option.map~f:QueueAttributeMap.of_xml)(Xml.childxml_arg0"Attributes")inmake?attributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributes=field_mapjson__"Attributes"QueueAttributeMap.of_jsoninmake?attributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of returned queue attributes."]moduleGetQueueAttributesRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue whose attribute information is retrieved. Queue URLs and names are case-sensitive."];attributeNames:AttributeNameList.toption[@ocaml.doc"A list of attributes for which to retrieve information. The AttributeNames parameter is optional, but if you don't specify values for this parameter, the request returns empty results. In the future, new attributes might be added. If you write code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully. The following attributes are supported: The ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, and ApproximateNumberOfMessages metrics may not achieve consistency until at least 1 minute after the producers stop sending messages. This period is required for the queue metadata to reach eventual consistency. All \226\128\147 Returns all values. ApproximateNumberOfMessages \226\128\147 Returns the approximate number of messages available for retrieval from the queue. ApproximateNumberOfMessagesDelayed \226\128\147 Returns the approximate number of messages in the queue that are delayed and not available for reading immediately. This can happen when the queue is configured as a delay queue or when a message has been sent with a delay parameter. ApproximateNumberOfMessagesNotVisible \226\128\147 Returns the approximate number of messages that are in flight. Messages are considered to be in flight if they have been sent to a client but have not yet been deleted or have not yet reached the end of their visibility window. CreatedTimestamp \226\128\147 Returns the time when the queue was created in seconds (epoch time). DelaySeconds \226\128\147 Returns the default delay on the queue in seconds. LastModifiedTimestamp \226\128\147 Returns the time when the queue was last changed in seconds (epoch time). MaximumMessageSize \226\128\147 Returns the limit of how many bytes a message can contain before Amazon SQS rejects it. MessageRetentionPeriod \226\128\147 Returns the length of time, in seconds, for which Amazon SQS retains a message. When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the Amazon SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes and will impact existing messages in the queue potentially causing them to be expired and deleted if the MessageRetentionPeriod is reduced below the age of existing messages. Policy \226\128\147 Returns the policy of the queue. QueueArn \226\128\147 Returns the Amazon resource name (ARN) of the queue. ReceiveMessageWaitTimeSeconds \226\128\147 Returns the length of time, in seconds, for which the ReceiveMessage action waits for a message to arrive. VisibilityTimeout \226\128\147 Returns the visibility timeout for the queue. For more information about the visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. The following attributes apply only to dead-letter queues: RedrivePolicy \226\128\147 The string that includes the parameters for the dead-letter queue functionality of the source queue as a JSON object. The parameters are as follows: deadLetterTargetArn \226\128\147 The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded. maxReceiveCount \226\128\147 The number of times a message is delivered to the source queue before being moved to the dead-letter queue. Default: 10. When the ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS moves the message to the dead-letter-queue. RedriveAllowPolicy \226\128\147 The string that includes the parameters for the permissions for the dead-letter queue redrive permission and which source queues can specify dead-letter queues as a JSON object. The parameters are as follows: redrivePermission \226\128\147 The permission type that defines which source queues can specify the current queue as the dead-letter queue. Valid values are: allowAll \226\128\147 (Default) Any source queues in this Amazon Web Services account in the same Region can specify this queue as the dead-letter queue. denyAll \226\128\147 No source queues can specify this queue as the dead-letter queue. byQueue \226\128\147 Only queues specified by the sourceQueueArns parameter can specify this queue as the dead-letter queue. sourceQueueArns \226\128\147 The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. You can specify this parameter only when the redrivePermission parameter is set to byQueue. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set the redrivePermission parameter to allowAll. The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue. The following attributes apply only to server-side-encryption: KmsMasterKeyId \226\128\147 Returns the ID of an Amazon Web Services managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms. KmsDataKeyReusePeriodSeconds \226\128\147 Returns the length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling KMS again. For more information, see How Does the Data Key Reuse Period Work?. SqsManagedSseEnabled \226\128\147 Returns information about whether the queue is using SSE-SQS encryption using SQS owned encryption keys. Only one server-side encryption option is supported per queue (for example, SSE-KMS or SSE-SQS). The following attributes apply only to FIFO (first-in-first-out) queues: FifoQueue \226\128\147 Returns information about whether the queue is FIFO. For more information, see FIFO queue logic in the Amazon SQS Developer Guide. To determine whether a queue is FIFO, you can check whether QueueName ends with the .fifo suffix. ContentBasedDeduplication \226\128\147 Returns whether content-based deduplication is enabled for the queue. For more information, see Exactly-once processing in the Amazon SQS Developer Guide. The following attributes apply only to high throughput for FIFO queues: DeduplicationScope \226\128\147 Specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroup and queue. FifoThroughputLimit \226\128\147 Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values are perQueue and perMessageGroupId. The perMessageGroupId value is allowed only when the value for DeduplicationScope is messageGroup. To enable high throughput for FIFO queues, do the following: Set DeduplicationScope to messageGroup. Set FifoThroughputLimit to perMessageGroupId. If you set these attributes to anything other than the values shown for enabling high throughput, normal throughput is in effect and deduplication occurs as specified. For information on throughput quotas, see Quotas related to messages in the Amazon SQS Developer Guide."]}letcontext_="GetQueueAttributesRequest"letmake?attributeNames=fun~queueUrl->fun()->{attributeNames;queueUrl}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("AttributeNames",(Option.mapx.attributeNames~f:AttributeNameList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributeNames=(Option.map~f:AttributeNameList.of_xml)(Some(Xml.childrenxml_arg0"AttributeNames"))inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake?attributeNames~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributeNames=field_mapjson__"AttributeNames"AttributeNameList.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake?attributeNames~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmoduleDeleteQueueRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue to delete. Queue URLs and names are case-sensitive."]}letcontext_="DeleteQueueRequest"letmake~queueUrl=fun()->{queueUrl}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmoduleDeleteMessageRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue from which messages are deleted. Queue URLs and names are case-sensitive."];receiptHandle:String_.t[@ocaml.doc"The receipt handle associated with the message to delete."]}letcontext_="DeleteMessageRequest"letmake~queueUrl=fun~receiptHandle->fun()->{queueUrl;receiptHandle}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("ReceiptHandle",(Some(String_.to_valuex.receiptHandle)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreceiptHandle=String_.of_xml(Xml.child_exn~context:context_xml_arg0"ReceiptHandle")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~receiptHandle~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreceiptHandle=field_map_exnjson__"ReceiptHandle"String_.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~receiptHandle~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmoduleDeleteMessageBatchResult=structtypenonrect={successful:DeleteMessageBatchResultEntryList.toption[@ocaml.doc"A list of DeleteMessageBatchResultEntry items."];failed:BatchResultErrorEntryList.toption[@ocaml.doc"A list of BatchResultErrorEntry items."]}typenonrecerror=[`BatchEntryIdsNotDistinctofBatchEntryIdsNotDistinct.t|`EmptyBatchRequestofEmptyBatchRequest.t|`InvalidAddressofInvalidAddress.t|`InvalidBatchEntryIdofInvalidBatchEntryId.t|`InvalidSecurityofInvalidSecurity.t|`QueueDoesNotExistofQueueDoesNotExist.t|`RequestThrottledofRequestThrottled.t|`TooManyEntriesInBatchRequestofTooManyEntriesInBatchRequest.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?successful=fun?failed->fun()->{successful;failed}leterror_of_jsonnamejson=matchnamewith|"BatchEntryIdsNotDistinct"->`BatchEntryIdsNotDistinct(BatchEntryIdsNotDistinct.of_jsonjson)|"EmptyBatchRequest"->`EmptyBatchRequest(EmptyBatchRequest.of_jsonjson)|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidBatchEntryId"->`InvalidBatchEntryId(InvalidBatchEntryId.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"TooManyEntriesInBatchRequest"->`TooManyEntriesInBatchRequest(TooManyEntriesInBatchRequest.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BatchEntryIdsNotDistinct"->`BatchEntryIdsNotDistinct(BatchEntryIdsNotDistinct.of_xmlxml)|"EmptyBatchRequest"->`EmptyBatchRequest(EmptyBatchRequest.of_xmlxml)|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidBatchEntryId"->`InvalidBatchEntryId(InvalidBatchEntryId.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"TooManyEntriesInBatchRequest"->`TooManyEntriesInBatchRequest(TooManyEntriesInBatchRequest.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BatchEntryIdsNotDistincte->`Assoc[("error",(`String"BatchEntryIdsNotDistinct"));("details",(BatchEntryIdsNotDistinct.to_jsone))]|`EmptyBatchRequeste->`Assoc[("error",(`String"EmptyBatchRequest"));("details",(EmptyBatchRequest.to_jsone))]|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidBatchEntryIde->`Assoc[("error",(`String"InvalidBatchEntryId"));("details",(InvalidBatchEntryId.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`QueueDoesNotExiste->`Assoc[("error",(`String"QueueDoesNotExist"));("details",(QueueDoesNotExist.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`TooManyEntriesInBatchRequeste->`Assoc[("error",(`String"TooManyEntriesInBatchRequest"));("details",(TooManyEntriesInBatchRequest.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Successful",(Option.mapx.successful~f:DeleteMessageBatchResultEntryList.to_value));("Failed",(Option.mapx.failed~f:BatchResultErrorEntryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailed=(Option.map~f:BatchResultErrorEntryList.of_xml)(Some(Xml.childrenxml_arg0"Failed"))inletsuccessful=(Option.map~f:DeleteMessageBatchResultEntryList.of_xml)(Some(Xml.childrenxml_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"DeleteMessageBatchResultEntryList.of_jsoninmake?failed?successful()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"For each message in the batch, the response contains a DeleteMessageBatchResultEntry tag if the message is deleted or a BatchResultErrorEntry tag if the message can't be deleted."]moduleDeleteMessageBatchRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue from which messages are deleted. Queue URLs and names are case-sensitive."];entries:DeleteMessageBatchRequestEntryList.t[@ocaml.doc"Lists the receipt handles for the messages to be deleted."]}letcontext_="DeleteMessageBatchRequest"letmake~queueUrl=fun~entries->fun()->{queueUrl;entries}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("Entries",(Some(DeleteMessageBatchRequestEntryList.to_valuex.entries)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letentries=DeleteMessageBatchRequestEntryList.of_xml(Xml.childrenxml_arg0"Entries")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~entries~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letentries=field_map_exnjson__"Entries"DeleteMessageBatchRequestEntryList.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~entries~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmoduleCreateQueueResult=structtypenonrect={queueUrl:String_.toption[@ocaml.doc"The URL of the created Amazon SQS queue."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidAttributeNameofInvalidAttributeName.t|`InvalidAttributeValueofInvalidAttributeValue.t|`InvalidSecurityofInvalidSecurity.t|`QueueDeletedRecentlyofQueueDeletedRecently.t|`QueueNameExistsofQueueNameExists.t|`RequestThrottledofRequestThrottled.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?queueUrl=fun()->{queueUrl}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidAttributeName"->`InvalidAttributeName(InvalidAttributeName.of_jsonjson)|"InvalidAttributeValue"->`InvalidAttributeValue(InvalidAttributeValue.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"QueueDeletedRecently"->`QueueDeletedRecently(QueueDeletedRecently.of_jsonjson)|"QueueNameExists"->`QueueNameExists(QueueNameExists.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidAttributeName"->`InvalidAttributeName(InvalidAttributeName.of_xmlxml)|"InvalidAttributeValue"->`InvalidAttributeValue(InvalidAttributeValue.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"QueueDeletedRecently"->`QueueDeletedRecently(QueueDeletedRecently.of_xmlxml)|"QueueNameExists"->`QueueNameExists(QueueNameExists.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidAttributeNamee->`Assoc[("error",(`String"InvalidAttributeName"));("details",(InvalidAttributeName.to_jsone))]|`InvalidAttributeValuee->`Assoc[("error",(`String"InvalidAttributeValue"));("details",(InvalidAttributeValue.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`QueueDeletedRecentlye->`Assoc[("error",(`String"QueueDeletedRecently"));("details",(QueueDeletedRecently.to_jsone))]|`QueueNameExistse->`Assoc[("error",(`String"QueueNameExists"));("details",(QueueNameExists.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("QueueUrl",(Option.mapx.queueUrl~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueueUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"QueueUrl")inmake?queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueueUrl=field_mapjson__"QueueUrl"String_.of_jsoninmake?queueUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the QueueUrl attribute of the created queue."]moduleCreateQueueRequest=structtypenonrect={queueName:String_.t[@ocaml.doc"The name of the new queue. The following limits apply to this name: A queue name can have up to 80 characters. Valid values: alphanumeric characters, hyphens (-), and underscores (_). A FIFO queue name must end with the .fifo suffix. Queue URLs and names are case-sensitive."];attributes:QueueAttributeMap.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 CreateQueue action uses: DelaySeconds \226\128\147 The length of time, in seconds, for which the delivery of all messages in the queue is delayed. Valid values: An integer from 0 to 900 seconds (15 minutes). Default: 0. MaximumMessageSize \226\128\147 The limit of how many bytes a message can contain before Amazon SQS rejects it. Valid values: An integer from 1,024 bytes (1 KiB) to 1,048,576 bytes (1 MiB). Default: 1,048,576 bytes (1 MiB). MessageRetentionPeriod \226\128\147 The length of time, in seconds, for which Amazon SQS retains a message. Valid values: An integer from 60 seconds (1 minute) to 1,209,600 seconds (14 days). Default: 345,600 (4 days). When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the Amazon SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes and will impact existing messages in the queue potentially causing them to be expired and deleted if the MessageRetentionPeriod is reduced below the age of existing messages. Policy \226\128\147 The queue's policy. A valid Amazon Web Services policy. For more information about policy structure, see Overview of Amazon Web Services IAM Policies in the IAM User Guide. ReceiveMessageWaitTimeSeconds \226\128\147 The length of time, in seconds, for which a ReceiveMessage action waits for a message to arrive. Valid values: An integer from 0 to 20 (seconds). Default: 0. VisibilityTimeout \226\128\147 The visibility timeout for the queue, in seconds. Valid values: An integer from 0 to 43,200 (12 hours). Default: 30. For more information about the visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. The following attributes apply only to dead-letter queues: RedrivePolicy \226\128\147 The string that includes the parameters for the dead-letter queue functionality of the source queue as a JSON object. The parameters are as follows: deadLetterTargetArn \226\128\147 The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded. maxReceiveCount \226\128\147 The number of times a message is delivered to the source queue before being moved to the dead-letter queue. Default: 10. When the ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS moves the message to the dead-letter-queue. RedriveAllowPolicy \226\128\147 The string that includes the parameters for the permissions for the dead-letter queue redrive permission and which source queues can specify dead-letter queues as a JSON object. The parameters are as follows: redrivePermission \226\128\147 The permission type that defines which source queues can specify the current queue as the dead-letter queue. Valid values are: allowAll \226\128\147 (Default) Any source queues in this Amazon Web Services account in the same Region can specify this queue as the dead-letter queue. denyAll \226\128\147 No source queues can specify this queue as the dead-letter queue. byQueue \226\128\147 Only queues specified by the sourceQueueArns parameter can specify this queue as the dead-letter queue. sourceQueueArns \226\128\147 The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. You can specify this parameter only when the redrivePermission parameter is set to byQueue. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set the redrivePermission parameter to allowAll. The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue. The following attributes apply only to server-side-encryption: KmsMasterKeyId \226\128\147 The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms. While the alias of the Amazon Web Services managed CMK for Amazon SQS is always alias/aws/sqs, the alias of a custom CMK can, for example, be alias/MyAlias . For more examples, see KeyId in the Key Management Service API Reference. KmsDataKeyReusePeriodSeconds \226\128\147 The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). Default: 300 (5 minutes). A shorter time period provides better security but results in more calls to KMS which might incur charges after Free Tier. For more information, see How Does the Data Key Reuse Period Work? SqsManagedSseEnabled \226\128\147 Enables server-side queue encryption using SQS owned encryption keys. Only one server-side encryption option is supported per queue (for example, SSE-KMS or SSE-SQS). The following attributes apply only to FIFO (first-in-first-out) queues: FifoQueue \226\128\147 Designates a queue as FIFO. Valid values are true and false. If you don't specify the FifoQueue attribute, Amazon SQS creates a standard queue. You can provide this attribute only during queue creation. You can't change it for an existing queue. When you set this attribute, you must also provide the MessageGroupId for your messages explicitly. For more information, see FIFO queue logic in the Amazon SQS Developer Guide. ContentBasedDeduplication \226\128\147 Enables content-based deduplication. Valid values are true and false. For more information, see Exactly-once processing in the Amazon SQS Developer Guide. Note the following: 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 queue, Amazon SQS 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 queue doesn't have ContentBasedDeduplication set, the action fails with an error. If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one. When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication 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 and only one copy of the message is delivered. The following attributes apply only to high throughput for FIFO queues: DeduplicationScope \226\128\147 Specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroup and queue. FifoThroughputLimit \226\128\147 Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values are perQueue and perMessageGroupId. The perMessageGroupId value is allowed only when the value for DeduplicationScope is messageGroup. To enable high throughput for FIFO queues, do the following: Set DeduplicationScope to messageGroup. Set FifoThroughputLimit to perMessageGroupId. If you set these attributes to anything other than the values shown for enabling high throughput, normal throughput is in effect and deduplication occurs as specified. For information on throughput quotas, see Quotas related to messages in the Amazon SQS Developer Guide."];tags:TagMap.toption[@ocaml.doc"Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon SQS Developer Guide. When you use queue tags, keep the following guidelines in mind: Adding more than 50 tags to a queue isn't recommended. Tags don't have any semantic meaning. Amazon SQS 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. For a full list of tag restrictions, see Quotas related to queues in the Amazon SQS Developer Guide. To be able to tag a queue on creation, you must have the sqs:CreateQueue and sqs:TagQueue permissions. Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username in the Amazon SQS Developer Guide."]}letcontext_="CreateQueueRequest"letmake?attributes=fun?tags->fun~queueName->fun()->{attributes;tags;queueName}letto_valuex=structure_to_value[("QueueName",(Some(String_.to_valuex.queueName)));("Attributes",(Option.mapx.attributes~f:QueueAttributeMap.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletattributes=(Option.map~f:QueueAttributeMap.of_xml)(Xml.childxml_arg0"Attributes")inletqueueName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueName")inmake?tags?attributes~queueName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninletattributes=field_mapjson__"Attributes"QueueAttributeMap.of_jsoninletqueueName=field_map_exnjson__"QueueName"String_.of_jsoninmake?tags?attributes~queueName()letto_jsonv=composed_to_jsonto_valuevendmoduleChangeMessageVisibilityRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue whose message's visibility is changed. Queue URLs and names are case-sensitive."];receiptHandle:String_.t[@ocaml.doc"The receipt handle associated with the message, whose visibility timeout is changed. This parameter is returned by the ReceiveMessage action."];visibilityTimeout:NullableInteger.t[@ocaml.doc"The new value for the message's visibility timeout (in seconds). Values range: 0 to 43200. Maximum: 12 hours."]}letcontext_="ChangeMessageVisibilityRequest"letmake~queueUrl=fun~receiptHandle->fun~visibilityTimeout->fun()->{queueUrl;receiptHandle;visibilityTimeout}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("ReceiptHandle",(Some(String_.to_valuex.receiptHandle)));("VisibilityTimeout",(Some(NullableInteger.to_valuex.visibilityTimeout)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvisibilityTimeout=NullableInteger.of_xml(Xml.child_exn~context:context_xml_arg0"VisibilityTimeout")inletreceiptHandle=String_.of_xml(Xml.child_exn~context:context_xml_arg0"ReceiptHandle")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~visibilityTimeout~receiptHandle~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvisibilityTimeout=field_map_exnjson__"VisibilityTimeout"NullableInteger.of_jsoninletreceiptHandle=field_map_exnjson__"ReceiptHandle"String_.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~visibilityTimeout~receiptHandle~queueUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Changes the visibility timeout of a specified message in a queue to a new value. The default visibility timeout for a message is 30 seconds. The minimum is 0 seconds. The maximum is 12 hours. For more information, see Visibility Timeout in the Amazon SQS Developer Guide. For example, if the default timeout for a queue is 60 seconds, 15 seconds have elapsed since you received the message, and you send a ChangeMessageVisibility call with VisibilityTimeout set to 10 seconds, the 10 seconds begin to count from the time that you make the ChangeMessageVisibility call. Thus, any attempt to change the visibility timeout or to delete that message 10 seconds after you initially change the visibility timeout (a total of 25 seconds) might result in an error. An Amazon SQS message has three basic states: Sent to a queue by a producer. Received from the queue by a consumer. Deleted from the queue. A message is considered to be stored after it is sent to a queue by a producer, but not yet received from the queue by a consumer (that is, between states 1 and 2). There is no limit to the number of stored messages. A message is considered to be in flight after it is received from a queue by a consumer, but not yet deleted from the queue (that is, between states 2 and 3). There is a limit to the number of in flight messages. Limits that apply to in flight messages are unrelated to the unlimited number of stored messages. For most standard queues (depending on queue traffic and message backlog), there can be a maximum of approximately 120,000 in flight messages (received from a queue by a consumer, but not yet deleted from the queue). If you reach this limit, Amazon SQS returns the OverLimit error message. To avoid reaching the limit, you should delete messages from the queue after they're processed. You can also increase the number of queues you use to process your messages. To request a limit increase, file a support request. For FIFO queues, there can be a maximum of 120,000 in flight messages (received from a queue by a consumer, but not yet deleted from the queue). If you reach this limit, Amazon SQS returns no error messages. If you attempt to set the VisibilityTimeout to a value greater than the maximum time left, Amazon SQS returns an error. Amazon SQS doesn't automatically recalculate and increase the timeout to the maximum remaining time. Unlike with a queue, when you change the visibility timeout for a specific message the timeout value is applied immediately but isn't saved in memory for that message. If you don't delete a message after it is received, the visibility timeout for the message reverts to the original timeout value (not to the value you set using the ChangeMessageVisibility action) the next time the message is received."]moduleChangeMessageVisibilityBatchResult=structtypenonrect={successful:ChangeMessageVisibilityBatchResultEntryList.toption[@ocaml.doc"A list of ChangeMessageVisibilityBatchResultEntry items."];failed:BatchResultErrorEntryList.toption[@ocaml.doc"A list of BatchResultErrorEntry items."]}typenonrecerror=[`BatchEntryIdsNotDistinctofBatchEntryIdsNotDistinct.t|`EmptyBatchRequestofEmptyBatchRequest.t|`InvalidAddressofInvalidAddress.t|`InvalidBatchEntryIdofInvalidBatchEntryId.t|`InvalidSecurityofInvalidSecurity.t|`QueueDoesNotExistofQueueDoesNotExist.t|`RequestThrottledofRequestThrottled.t|`TooManyEntriesInBatchRequestofTooManyEntriesInBatchRequest.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?successful=fun?failed->fun()->{successful;failed}leterror_of_jsonnamejson=matchnamewith|"BatchEntryIdsNotDistinct"->`BatchEntryIdsNotDistinct(BatchEntryIdsNotDistinct.of_jsonjson)|"EmptyBatchRequest"->`EmptyBatchRequest(EmptyBatchRequest.of_jsonjson)|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidBatchEntryId"->`InvalidBatchEntryId(InvalidBatchEntryId.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"TooManyEntriesInBatchRequest"->`TooManyEntriesInBatchRequest(TooManyEntriesInBatchRequest.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BatchEntryIdsNotDistinct"->`BatchEntryIdsNotDistinct(BatchEntryIdsNotDistinct.of_xmlxml)|"EmptyBatchRequest"->`EmptyBatchRequest(EmptyBatchRequest.of_xmlxml)|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidBatchEntryId"->`InvalidBatchEntryId(InvalidBatchEntryId.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"QueueDoesNotExist"->`QueueDoesNotExist(QueueDoesNotExist.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"TooManyEntriesInBatchRequest"->`TooManyEntriesInBatchRequest(TooManyEntriesInBatchRequest.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BatchEntryIdsNotDistincte->`Assoc[("error",(`String"BatchEntryIdsNotDistinct"));("details",(BatchEntryIdsNotDistinct.to_jsone))]|`EmptyBatchRequeste->`Assoc[("error",(`String"EmptyBatchRequest"));("details",(EmptyBatchRequest.to_jsone))]|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidBatchEntryIde->`Assoc[("error",(`String"InvalidBatchEntryId"));("details",(InvalidBatchEntryId.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`QueueDoesNotExiste->`Assoc[("error",(`String"QueueDoesNotExist"));("details",(QueueDoesNotExist.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`TooManyEntriesInBatchRequeste->`Assoc[("error",(`String"TooManyEntriesInBatchRequest"));("details",(TooManyEntriesInBatchRequest.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Successful",(Option.mapx.successful~f:ChangeMessageVisibilityBatchResultEntryList.to_value));("Failed",(Option.mapx.failed~f:BatchResultErrorEntryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailed=(Option.map~f:BatchResultErrorEntryList.of_xml)(Some(Xml.childrenxml_arg0"Failed"))inletsuccessful=(Option.map~f:ChangeMessageVisibilityBatchResultEntryList.of_xml)(Some(Xml.childrenxml_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"ChangeMessageVisibilityBatchResultEntryList.of_jsoninmake?failed?successful()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails."]moduleChangeMessageVisibilityBatchRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue whose messages' visibility is changed. Queue URLs and names are case-sensitive."];entries:ChangeMessageVisibilityBatchRequestEntryList.t[@ocaml.doc"Lists the receipt handles of the messages for which the visibility timeout must be changed."]}letcontext_="ChangeMessageVisibilityBatchRequest"letmake~queueUrl=fun~entries->fun()->{queueUrl;entries}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("Entries",(Some(ChangeMessageVisibilityBatchRequestEntryList.to_valuex.entries)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letentries=ChangeMessageVisibilityBatchRequestEntryList.of_xml(Xml.childrenxml_arg0"Entries")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~entries~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letentries=field_map_exnjson__"Entries"ChangeMessageVisibilityBatchRequestEntryList.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~entries~queueUrl()letto_jsonv=composed_to_jsonto_valuevendmoduleCancelMessageMoveTaskResult=structtypenonrect={approximateNumberOfMessagesMoved:Long.toption[@ocaml.doc"The approximate number of messages already moved to the destination queue."]}typenonrecerror=[`InvalidAddressofInvalidAddress.t|`InvalidSecurityofInvalidSecurity.t|`RequestThrottledofRequestThrottled.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationofUnsupportedOperation.t|`Unknown_operation_errorof(string*stringoption)]letmake?approximateNumberOfMessagesMoved=fun()->{approximateNumberOfMessagesMoved}leterror_of_jsonnamejson=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_jsonjson)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_jsonjson)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidAddress"->`InvalidAddress(InvalidAddress.of_xmlxml)|"InvalidSecurity"->`InvalidSecurity(InvalidSecurity.of_xmlxml)|"RequestThrottled"->`RequestThrottled(RequestThrottled.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperation"->`UnsupportedOperation(UnsupportedOperation.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidAddresse->`Assoc[("error",(`String"InvalidAddress"));("details",(InvalidAddress.to_jsone))]|`InvalidSecuritye->`Assoc[("error",(`String"InvalidSecurity"));("details",(InvalidSecurity.to_jsone))]|`RequestThrottlede->`Assoc[("error",(`String"RequestThrottled"));("details",(RequestThrottled.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperatione->`Assoc[("error",(`String"UnsupportedOperation"));("details",(UnsupportedOperation.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ApproximateNumberOfMessagesMoved",(Option.mapx.approximateNumberOfMessagesMoved~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapproximateNumberOfMessagesMoved=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"ApproximateNumberOfMessagesMoved")inmake?approximateNumberOfMessagesMoved()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapproximateNumberOfMessagesMoved=field_mapjson__"ApproximateNumberOfMessagesMoved"Long.of_jsoninmake?approximateNumberOfMessagesMoved()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels a specified message movement task. A message movement can only be cancelled when the current status is RUNNING. Cancelling a message movement task does not revert the messages that have already been moved. It can only stop the messages that have not been moved yet. This action is currently limited to supporting message redrive from dead-letter queues (DLQs) only. In this context, the source queue is the dead-letter queue (DLQ), while the destination queue can be the original source queue (from which the messages were driven to the dead-letter-queue), or a custom destination queue. Only one active message movement task is supported per queue at any given time."]moduleCancelMessageMoveTaskRequest=structtypenonrect={taskHandle:String_.t[@ocaml.doc"An identifier associated with a message movement task."]}letcontext_="CancelMessageMoveTaskRequest"letmake~taskHandle=fun()->{taskHandle}letto_valuex=structure_to_value[("TaskHandle",(Some(String_.to_valuex.taskHandle)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskHandle=String_.of_xml(Xml.child_exn~context:context_xml_arg0"TaskHandle")inmake~taskHandle()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskHandle=field_map_exnjson__"TaskHandle"String_.of_jsoninmake~taskHandle()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels a specified message movement task. A message movement can only be cancelled when the current status is RUNNING. Cancelling a message movement task does not revert the messages that have already been moved. It can only stop the messages that have not been moved yet. This action is currently limited to supporting message redrive from dead-letter queues (DLQs) only. In this context, the source queue is the dead-letter queue (DLQ), while the destination queue can be the original source queue (from which the messages were driven to the dead-letter-queue), or a custom destination queue. Only one active message movement task is supported per queue at any given time."]moduleAddPermissionRequest=structtypenonrect={queueUrl:String_.t[@ocaml.doc"The URL of the Amazon SQS queue to which permissions are added. Queue URLs and names are case-sensitive."];label:String_.t[@ocaml.doc"The unique identification of the permission you're setting (for example, AliceSendMessage). Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-), and underscores (_)."];aWSAccountIds:AWSAccountIdList.t[@ocaml.doc"The Amazon Web Services account numbers of the principals who are to receive permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide."];actions:ActionNameList.t[@ocaml.doc"The action the client wants to allow for the specified principal. Valid values: the name of any action or *. For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide. Specifying SendMessage, DeleteMessage, or ChangeMessageVisibility for ActionName.n also grants permissions for the corresponding batch versions of those actions: SendMessageBatch, DeleteMessageBatch, and ChangeMessageVisibilityBatch."]}letcontext_="AddPermissionRequest"letmake~queueUrl=fun~label->fun~aWSAccountIds->fun~actions->fun()->{queueUrl;label;aWSAccountIds;actions}letto_valuex=structure_to_value[("QueueUrl",(Some(String_.to_valuex.queueUrl)));("Label",(Some(String_.to_valuex.label)));("AWSAccountIds",(Some(AWSAccountIdList.to_valuex.aWSAccountIds)));("Actions",(Some(ActionNameList.to_valuex.actions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactions=ActionNameList.of_xml(Xml.childrenxml_arg0"Actions")inletaWSAccountIds=AWSAccountIdList.of_xml(Xml.childrenxml_arg0"AWSAccountIds")inletlabel=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Label")inletqueueUrl=String_.of_xml(Xml.child_exn~context:context_xml_arg0"QueueUrl")inmake~actions~aWSAccountIds~label~queueUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactions=field_map_exnjson__"Actions"ActionNameList.of_jsoninletaWSAccountIds=field_map_exnjson__"AWSAccountIds"AWSAccountIdList.of_jsoninletlabel=field_map_exnjson__"Label"String_.of_jsoninletqueueUrl=field_map_exnjson__"QueueUrl"String_.of_jsoninmake~actions~aWSAccountIds~label~queueUrl()letto_jsonv=composed_to_jsonto_valuevend