12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104(* 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.bcm_data_exportsletapiVersion="2023-11-26"letendpointPrefix="bcm-data-exports"letserviceFullName="AWS Billing and Cost Management Data Exports"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"lettargetPrefix="AWSBillingAndCostManagementDataExports"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[]))])moduleGenericString=structtypenonrect=stringletcontext_="GenericString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"[\\S\\s]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GenericString"jletto_json=simple_to_jsonto_valueendmoduleTableProperty=structtypenonrect=stringletcontext_="TableProperty"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"[\\S\\s]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TableProperty"jletto_json=simple_to_jsonto_valueendmoduleTablePropertyGenericString=structtypenonrect=stringletcontext_="TablePropertyGenericString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:16384)>>=(fun()->check_patterni~pattern:"[\\S\\s]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TablePropertyGenericString"jletto_json=simple_to_jsonto_valueendmoduleCompressionOption=structtypenonrect=|GZIP|PARQUET|Non_static_idofstringletmakei=iletto_string=function|GZIP->"GZIP"|PARQUET->"PARQUET"|Non_static_ids->sletof_string=function|"GZIP"->GZIP|"PARQUET"->PARQUET|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 CompressionOption"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CompressionOption"j)letto_json=simple_to_jsonto_valueendmoduleFormatOption=structtypenonrect=|TEXT_OR_CSV|PARQUET|Non_static_idofstringletmakei=iletto_string=function|TEXT_OR_CSV->"TEXT_OR_CSV"|PARQUET->"PARQUET"|Non_static_ids->sletof_string=function|"TEXT_OR_CSV"->TEXT_OR_CSV|"PARQUET"->PARQUET|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 FormatOption"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FormatOption"j)letto_json=simple_to_jsonto_valueendmoduleOverwriteOption=structtypenonrect=|CREATE_NEW_REPORT|OVERWRITE_REPORT|Non_static_idofstringletmakei=iletto_string=function|CREATE_NEW_REPORT->"CREATE_NEW_REPORT"|OVERWRITE_REPORT->"OVERWRITE_REPORT"|Non_static_ids->sletof_string=function|"CREATE_NEW_REPORT"->CREATE_NEW_REPORT|"OVERWRITE_REPORT"->OVERWRITE_REPORT|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 OverwriteOption"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OverwriteOption"j)letto_json=simple_to_jsonto_valueendmoduleS3OutputType=structtypenonrect=|CUSTOM|ATHENA|REDSHIFT|Non_static_idofstringletmakei=iletto_string=function|CUSTOM->"CUSTOM"|ATHENA->"ATHENA"|REDSHIFT->"REDSHIFT"|Non_static_ids->sletof_string=function|"CUSTOM"->CUSTOM|"ATHENA"->ATHENA|"REDSHIFT"->REDSHIFT|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 S3OutputType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"S3OutputType"j)letto_json=simple_to_jsonto_valueendmoduleGenericStringList=structtypenonrect=GenericString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:GenericString.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:GenericString.of_xml)letof_jsonj=list_of_json~kind:"GenericStringList"~of_json:GenericString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTableName=structtypenonrect=stringletcontext_="TableName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"[\\S\\s]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TableName"jletto_json=simple_to_jsonto_valueendmoduleTableProperties=structtypenonrect=(TableProperty.t*TablePropertyGenericString.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TableProperty.of_stringchopped),(TablePropertyGenericString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TableProperty.to_valuex)|>(funx->(TablePropertyGenericString.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:TableProperty.of_string~of_json:TablePropertyGenericString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccountId=structtypenonrect=stringletcontext_="AccountId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"[0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AccountId"jletto_json=simple_to_jsonto_valueendmoduleS3OutputConfigurations=structtypenonrect={outputType:S3OutputType.t[@ocaml.doc"The output type for the data export."];format:FormatOption.t[@ocaml.doc"The file format for the data export."];compression:CompressionOption.t[@ocaml.doc"The compression type for the data export."];overwrite:OverwriteOption.t[@ocaml.doc"The rule to follow when generating a version of the data export file. You have the choice to overwrite the previous version or to be delivered in addition to the previous versions. Overwriting exports can save on Amazon S3 storage costs. Creating new export versions allows you to track the changes in cost and usage data over time."]}letcontext_="S3OutputConfigurations"letmake~outputType=fun~format->fun~compression->fun~overwrite->fun()->{outputType;format;compression;overwrite}letto_valuex=structure_to_value[("OutputType",(Some(S3OutputType.to_valuex.outputType)));("Format",(Some(FormatOption.to_valuex.format)));("Compression",(Some(CompressionOption.to_valuex.compression)));("Overwrite",(Some(OverwriteOption.to_valuex.overwrite)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoverwrite=OverwriteOption.of_xml(Xml.child_exn~context:context_xml_arg0"Overwrite")inletcompression=CompressionOption.of_xml(Xml.child_exn~context:context_xml_arg0"Compression")inletformat=FormatOption.of_xml(Xml.child_exn~context:context_xml_arg0"Format")inletoutputType=S3OutputType.of_xml(Xml.child_exn~context:context_xml_arg0"OutputType")inmake~overwrite~compression~format~outputType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoverwrite=field_map_exnjson__"Overwrite"OverwriteOption.of_jsoninletcompression=field_map_exnjson__"Compression"CompressionOption.of_jsoninletformat=field_map_exnjson__"Format"FormatOption.of_jsoninletoutputType=field_map_exnjson__"OutputType"S3OutputType.of_jsoninmake~overwrite~compression~format~outputType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The compression type, file format, and overwrite preference for the data export."]moduleTablePropertyDescription=structtypenonrect={name:GenericString.toption[@ocaml.doc"The name of the table."];validValues:GenericStringList.toption[@ocaml.doc"The valid values for the table."];defaultValue:GenericString.toption[@ocaml.doc"The default value for the table."];description:GenericString.toption[@ocaml.doc"The description for the table."]}letmake?name=fun?validValues->fun?defaultValue->fun?description->fun()->{name;validValues;defaultValue;description}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:GenericString.to_value));("ValidValues",(Option.mapx.validValues~f:GenericStringList.to_value));("DefaultValue",(Option.mapx.defaultValue~f:GenericString.to_value));("Description",(Option.mapx.description~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Description")inletdefaultValue=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"DefaultValue")inletvalidValues=(Option.map~f:GenericStringList.of_xml)(Xml.childxml_arg0"ValidValues")inletname=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Name")inmake?description?defaultValue?validValues?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"GenericString.of_jsoninletdefaultValue=field_mapjson__"DefaultValue"GenericString.of_jsoninletvalidValues=field_mapjson__"ValidValues"GenericStringList.of_jsoninletname=field_mapjson__"Name"GenericString.of_jsoninmake?description?defaultValue?validValues?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The properties for the data export table."]moduleExecutionStatusReason=structtypenonrect=|INSUFFICIENT_PERMISSION|BILL_OWNER_CHANGED|INTERNAL_FAILURE|Non_static_idofstringletmakei=iletto_string=function|INSUFFICIENT_PERMISSION->"INSUFFICIENT_PERMISSION"|BILL_OWNER_CHANGED->"BILL_OWNER_CHANGED"|INTERNAL_FAILURE->"INTERNAL_FAILURE"|Non_static_ids->sletof_string=function|"INSUFFICIENT_PERMISSION"->INSUFFICIENT_PERMISSION|"BILL_OWNER_CHANGED"->BILL_OWNER_CHANGED|"INTERNAL_FAILURE"->INTERNAL_FAILURE|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 ExecutionStatusReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionStatusReason"j)letto_json=simple_to_jsonto_valueendmoduleExportStatusCode=structtypenonrect=|HEALTHY|UNHEALTHY|Non_static_idofstringletmakei=iletto_string=function|HEALTHY->"HEALTHY"|UNHEALTHY->"UNHEALTHY"|Non_static_ids->sletof_string=function|"HEALTHY"->HEALTHY|"UNHEALTHY"->UNHEALTHY|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 ExportStatusCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExportStatusCode"j)letto_json=simple_to_jsonto_valueendmoduleSyntheticTimestamp_date_time=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleExecutionStatusCode=structtypenonrect=|INITIATION_IN_PROCESS|QUERY_QUEUED|QUERY_IN_PROCESS|QUERY_FAILURE|DELIVERY_IN_PROCESS|DELIVERY_SUCCESS|DELIVERY_FAILURE|Non_static_idofstringletmakei=iletto_string=function|INITIATION_IN_PROCESS->"INITIATION_IN_PROCESS"|QUERY_QUEUED->"QUERY_QUEUED"|QUERY_IN_PROCESS->"QUERY_IN_PROCESS"|QUERY_FAILURE->"QUERY_FAILURE"|DELIVERY_IN_PROCESS->"DELIVERY_IN_PROCESS"|DELIVERY_SUCCESS->"DELIVERY_SUCCESS"|DELIVERY_FAILURE->"DELIVERY_FAILURE"|Non_static_ids->sletof_string=function|"INITIATION_IN_PROCESS"->INITIATION_IN_PROCESS|"QUERY_QUEUED"->QUERY_QUEUED|"QUERY_IN_PROCESS"->QUERY_IN_PROCESS|"QUERY_FAILURE"->QUERY_FAILURE|"DELIVERY_IN_PROCESS"->DELIVERY_IN_PROCESS|"DELIVERY_SUCCESS"->DELIVERY_SUCCESS|"DELIVERY_FAILURE"->DELIVERY_FAILURE|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 ExecutionStatusCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionStatusCode"j)letto_json=simple_to_jsonto_valueendmoduleValidationExceptionField=structtypenonrect={name:GenericString.toption[@ocaml.doc"The field name where the invalid entry was detected."];message:GenericString.toption[@ocaml.doc"A message with the reason for the validation exception error."]}letmake?name=fun?message->fun()->{name;message}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:GenericString.to_value));("Message",(Option.mapx.message~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Message")inletname=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Name")inmake?message?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"GenericString.of_jsoninletname=field_mapjson__"Name"GenericString.of_jsoninmake?message?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input failed to meet the constraints specified by the Amazon Web Services service in a specified field."]moduleQueryStatement=structtypenonrect=stringletcontext_="QueryStatement"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:36000)>>=(fun()->check_patterni~pattern:"[\\S\\s]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"QueryStatement"jletto_json=simple_to_jsonto_valueendmoduleTableConfigurations=structtypenonrect=(TableName.t*TableProperties.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 TableName TableProperties"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TableName.to_valuex)|>(funx->(TableProperties.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:TableName.of_string~of_json:TableProperties.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleS3Destination=structtypenonrect={s3Bucket:GenericString.t[@ocaml.doc"The name of the Amazon S3 bucket used as the destination of a data export file."];s3BucketOwner:AccountId.toption[@ocaml.doc"The AWS Account ID that owns the S3 bucket used as the destination for the data export."];s3Prefix:GenericString.t[@ocaml.doc"The S3 path prefix you want prepended to the name of your data export."];s3Region:GenericString.t[@ocaml.doc"The S3 bucket Region."];s3OutputConfigurations:S3OutputConfigurations.t[@ocaml.doc"The output configuration for the data export."]}letcontext_="S3Destination"letmake?s3BucketOwner=fun~s3Bucket->fun~s3Prefix->fun~s3Region->fun~s3OutputConfigurations->fun()->{s3BucketOwner;s3Bucket;s3Prefix;s3Region;s3OutputConfigurations}letto_valuex=structure_to_value[("S3Bucket",(Some(GenericString.to_valuex.s3Bucket)));("S3BucketOwner",(Option.mapx.s3BucketOwner~f:AccountId.to_value));("S3Prefix",(Some(GenericString.to_valuex.s3Prefix)));("S3Region",(Some(GenericString.to_valuex.s3Region)));("S3OutputConfigurations",(Some(S3OutputConfigurations.to_valuex.s3OutputConfigurations)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3OutputConfigurations=S3OutputConfigurations.of_xml(Xml.child_exn~context:context_xml_arg0"S3OutputConfigurations")inlets3Region=GenericString.of_xml(Xml.child_exn~context:context_xml_arg0"S3Region")inlets3Prefix=GenericString.of_xml(Xml.child_exn~context:context_xml_arg0"S3Prefix")inlets3BucketOwner=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"S3BucketOwner")inlets3Bucket=GenericString.of_xml(Xml.child_exn~context:context_xml_arg0"S3Bucket")inmake~s3OutputConfigurations~s3Region~s3Prefix?s3BucketOwner~s3Bucket()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3OutputConfigurations=field_map_exnjson__"S3OutputConfigurations"S3OutputConfigurations.of_jsoninlets3Region=field_map_exnjson__"S3Region"GenericString.of_jsoninlets3Prefix=field_map_exnjson__"S3Prefix"GenericString.of_jsoninlets3BucketOwner=field_mapjson__"S3BucketOwner"AccountId.of_jsoninlets3Bucket=field_map_exnjson__"S3Bucket"GenericString.of_jsoninmake~s3OutputConfigurations~s3Region~s3Prefix?s3BucketOwner~s3Bucket()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a data exports file."]moduleFrequencyOption=structtypenonrect=|SYNCHRONOUS|Non_static_idofstringletmakei=iletto_string=function|SYNCHRONOUS->"SYNCHRONOUS"|Non_static_ids->sletof_string=function|"SYNCHRONOUS"->SYNCHRONOUS|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 FrequencyOption"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FrequencyOption"j)letto_json=simple_to_jsonto_valueendmoduleResourceTagKey=structtypenonrect=stringletcontext_="ResourceTagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceTagKey"jletto_json=simple_to_jsonto_valueendmoduleResourceTagValue=structtypenonrect=stringletcontext_="ResourceTagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceTagValue"jletto_json=simple_to_jsonto_valueendmoduleTablePropertyDescriptionList=structtypenonrect=TablePropertyDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TablePropertyDescription.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:TablePropertyDescription.of_xml)letof_jsonj=list_of_json~kind:"TablePropertyDescriptionList"~of_json:TablePropertyDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleArn=structtypenonrect=stringletcontext_="Arn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:aws[-a-z0-9]*:(bcm-data-exports):[-a-z0-9]*:[0-9]{12}:[-a-zA-Z0-9/:_]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Arn"jletto_json=simple_to_jsonto_valueendmoduleExportName=structtypenonrect=stringletcontext_="ExportName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[0-9A-Za-z\\-_]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ExportName"jletto_json=simple_to_jsonto_valueendmoduleExportStatus=structtypenonrect={statusCode:ExportStatusCode.toption[@ocaml.doc"The status code for the request."];statusReason:ExecutionStatusReason.toption[@ocaml.doc"The description for the status code."];createdAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp of when the export was created."];lastUpdatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp of when the export was updated."];lastRefreshedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp of when the export was last generated."]}letmake?statusCode=fun?statusReason->fun?createdAt->fun?lastUpdatedAt->fun?lastRefreshedAt->fun()->{statusCode;statusReason;createdAt;lastUpdatedAt;lastRefreshedAt}letto_valuex=structure_to_value[("StatusCode",(Option.mapx.statusCode~f:ExportStatusCode.to_value));("StatusReason",(Option.mapx.statusReason~f:ExecutionStatusReason.to_value));("CreatedAt",(Option.mapx.createdAt~f:SyntheticTimestamp_date_time.to_value));("LastUpdatedAt",(Option.mapx.lastUpdatedAt~f:SyntheticTimestamp_date_time.to_value));("LastRefreshedAt",(Option.mapx.lastRefreshedAt~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastRefreshedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"LastRefreshedAt")inletlastUpdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"LastUpdatedAt")inletcreatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"CreatedAt")inletstatusReason=(Option.map~f:ExecutionStatusReason.of_xml)(Xml.childxml_arg0"StatusReason")inletstatusCode=(Option.map~f:ExportStatusCode.of_xml)(Xml.childxml_arg0"StatusCode")inmake?lastRefreshedAt?lastUpdatedAt?createdAt?statusReason?statusCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastRefreshedAt=field_mapjson__"LastRefreshedAt"SyntheticTimestamp_date_time.of_jsoninletlastUpdatedAt=field_mapjson__"LastUpdatedAt"SyntheticTimestamp_date_time.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"SyntheticTimestamp_date_time.of_jsoninletstatusReason=field_mapjson__"StatusReason"ExecutionStatusReason.of_jsoninletstatusCode=field_mapjson__"StatusCode"ExportStatusCode.of_jsoninmake?lastRefreshedAt?lastUpdatedAt?createdAt?statusReason?statusCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The status of the data export."]moduleExecutionStatus=structtypenonrect={statusCode:ExecutionStatusCode.toption[@ocaml.doc"The code for the status of the execution."];statusReason:ExecutionStatusReason.toption[@ocaml.doc"The reason for the failed status."];createdAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The time when the execution was created."];completedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The time when the execution was completed."];lastUpdatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The time when the execution was last updated."]}letmake?statusCode=fun?statusReason->fun?createdAt->fun?completedAt->fun?lastUpdatedAt->fun()->{statusCode;statusReason;createdAt;completedAt;lastUpdatedAt}letto_valuex=structure_to_value[("StatusCode",(Option.mapx.statusCode~f:ExecutionStatusCode.to_value));("StatusReason",(Option.mapx.statusReason~f:ExecutionStatusReason.to_value));("CreatedAt",(Option.mapx.createdAt~f:SyntheticTimestamp_date_time.to_value));("CompletedAt",(Option.mapx.completedAt~f:SyntheticTimestamp_date_time.to_value));("LastUpdatedAt",(Option.mapx.lastUpdatedAt~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"LastUpdatedAt")inletcompletedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"CompletedAt")inletcreatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"CreatedAt")inletstatusReason=(Option.map~f:ExecutionStatusReason.of_xml)(Xml.childxml_arg0"StatusReason")inletstatusCode=(Option.map~f:ExecutionStatusCode.of_xml)(Xml.childxml_arg0"StatusCode")inmake?lastUpdatedAt?completedAt?createdAt?statusReason?statusCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdatedAt=field_mapjson__"LastUpdatedAt"SyntheticTimestamp_date_time.of_jsoninletcompletedAt=field_mapjson__"CompletedAt"SyntheticTimestamp_date_time.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"SyntheticTimestamp_date_time.of_jsoninletstatusReason=field_mapjson__"StatusReason"ExecutionStatusReason.of_jsoninletstatusCode=field_mapjson__"StatusCode"ExecutionStatusCode.of_jsoninmake?lastUpdatedAt?completedAt?createdAt?statusReason?statusCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The status of the execution."]moduleValidationExceptionFieldList=structtypenonrect=ValidationExceptionField.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ValidationExceptionField.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:ValidationExceptionField.of_xml)letof_jsonj=list_of_json~kind:"ValidationExceptionFieldList"~of_json:ValidationExceptionField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidationExceptionReason=structtypenonrect=|UnknownOperation|CannotParse|FieldValidationFailed|Other|Non_static_idofstringletmakei=iletto_string=function|UnknownOperation->"unknownOperation"|CannotParse->"cannotParse"|FieldValidationFailed->"fieldValidationFailed"|Other->"other"|Non_static_ids->sletof_string=function|"unknownOperation"->UnknownOperation|"cannotParse"->CannotParse|"fieldValidationFailed"->FieldValidationFailed|"other"->Other|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 ValidationExceptionReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidationExceptionReason"j)letto_json=simple_to_jsonto_valueendmoduleDataQuery=structtypenonrect={queryStatement:QueryStatement.t[@ocaml.doc"The query statement."];tableConfigurations:TableConfigurations.toption[@ocaml.doc"The table configuration."]}letcontext_="DataQuery"letmake?tableConfigurations=fun~queryStatement->fun()->{tableConfigurations;queryStatement}letto_valuex=structure_to_value[("QueryStatement",(Some(QueryStatement.to_valuex.queryStatement)));("TableConfigurations",(Option.mapx.tableConfigurations~f:TableConfigurations.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettableConfigurations=(Option.map~f:TableConfigurations.of_xml)(Xml.childxml_arg0"TableConfigurations")inletqueryStatement=QueryStatement.of_xml(Xml.child_exn~context:context_xml_arg0"QueryStatement")inmake?tableConfigurations~queryStatement()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettableConfigurations=field_mapjson__"TableConfigurations"TableConfigurations.of_jsoninletqueryStatement=field_map_exnjson__"QueryStatement"QueryStatement.of_jsoninmake?tableConfigurations~queryStatement()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The SQL query of column selections and row filters from the data table you want."]moduleDestinationConfigurations=structtypenonrect={s3Destination:S3Destination.t[@ocaml.doc"An object that describes the destination of the data exports file."]}letcontext_="DestinationConfigurations"letmake~s3Destination=fun()->{s3Destination}letto_valuex=structure_to_value[("S3Destination",(Some(S3Destination.to_valuex.s3Destination)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3Destination=S3Destination.of_xml(Xml.child_exn~context:context_xml_arg0"S3Destination")inmake~s3Destination()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3Destination=field_map_exnjson__"S3Destination"S3Destination.of_jsoninmake~s3Destination()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The destinations used for data exports."]moduleRefreshCadence=structtypenonrect={frequency:FrequencyOption.t[@ocaml.doc"The frequency that data exports are updated. The export refreshes each time the source data updates, up to three times daily."]}letcontext_="RefreshCadence"letmake~frequency=fun()->{frequency}letto_valuex=structure_to_value[("Frequency",(Some(FrequencyOption.to_valuex.frequency)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfrequency=FrequencyOption.of_xml(Xml.child_exn~context:context_xml_arg0"Frequency")inmake~frequency()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfrequency=field_map_exnjson__"Frequency"FrequencyOption.of_jsoninmake~frequency()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The cadence for Amazon Web Services to update the data export in your S3 bucket."]moduleResourceTag=structtypenonrect={key:ResourceTagKey.t[@ocaml.doc"The key that's associated with the tag."];value:ResourceTagValue.t[@ocaml.doc"The value that's associated with the tag."]}letcontext_="ResourceTag"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Some(ResourceTagKey.to_valuex.key)));("Value",(Some(ResourceTagValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=ResourceTagValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=ResourceTagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake~value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"ResourceTagValue.of_jsoninletkey=field_map_exnjson__"Key"ResourceTagKey.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The tag structure that contains a tag key and value."]moduleTable=structtypenonrect={tableName:TableName.toption[@ocaml.doc"The name of the table."];description:GenericString.toption[@ocaml.doc"The description for the table."];tableProperties:TablePropertyDescriptionList.toption[@ocaml.doc"The properties for the table."]}letmake?tableName=fun?description->fun?tableProperties->fun()->{tableName;description;tableProperties}letto_valuex=structure_to_value[("TableName",(Option.mapx.tableName~f:TableName.to_value));("Description",(Option.mapx.description~f:GenericString.to_value));("TableProperties",(Option.mapx.tableProperties~f:TablePropertyDescriptionList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettableProperties=(Option.map~f:TablePropertyDescriptionList.of_xml)(Xml.childxml_arg0"TableProperties")inletdescription=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Description")inlettableName=(Option.map~f:TableName.of_xml)(Xml.childxml_arg0"TableName")inmake?tableProperties?description?tableName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettableProperties=field_mapjson__"TableProperties"TablePropertyDescriptionList.of_jsoninletdescription=field_mapjson__"Description"GenericString.of_jsoninlettableName=field_mapjson__"TableName"TableName.of_jsoninmake?tableProperties?description?tableName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details for the data export table."]moduleExportReference=structtypenonrect={exportArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for this export."];exportName:ExportName.toption[@ocaml.doc"The name of this specific data export."];exportStatus:ExportStatus.toption[@ocaml.doc"The status of this specific data export."]}letmake?exportArn=fun?exportName->fun?exportStatus->fun()->{exportArn;exportName;exportStatus}letto_valuex=structure_to_value[("ExportArn",(Option.mapx.exportArn~f:Arn.to_value));("ExportName",(Option.mapx.exportName~f:ExportName.to_value));("ExportStatus",(Option.mapx.exportStatus~f:ExportStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexportStatus=(Option.map~f:ExportStatus.of_xml)(Xml.childxml_arg0"ExportStatus")inletexportName=(Option.map~f:ExportName.of_xml)(Xml.childxml_arg0"ExportName")inletexportArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"ExportArn")inmake?exportStatus?exportName?exportArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexportStatus=field_mapjson__"ExportStatus"ExportStatus.of_jsoninletexportName=field_mapjson__"ExportName"ExportName.of_jsoninletexportArn=field_mapjson__"ExportArn"Arn.of_jsoninmake?exportStatus?exportName?exportArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The reference details for a given export."]moduleExecutionReference=structtypenonrect={executionId:GenericString.toption[@ocaml.doc"The ID for this specific execution."];executionStatus:ExecutionStatus.toption[@ocaml.doc"The status of this specific execution."]}letmake?executionId=fun?executionStatus->fun()->{executionId;executionStatus}letto_valuex=structure_to_value[("ExecutionId",(Option.mapx.executionId~f:GenericString.to_value));("ExecutionStatus",(Option.mapx.executionStatus~f:ExecutionStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionStatus=(Option.map~f:ExecutionStatus.of_xml)(Xml.childxml_arg0"ExecutionStatus")inletexecutionId=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"ExecutionId")inmake?executionStatus?executionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionStatus=field_mapjson__"ExecutionStatus"ExecutionStatus.of_jsoninletexecutionId=field_mapjson__"ExecutionId"GenericString.of_jsoninmake?executionStatus?executionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The reference for the data export update."]moduleColumn=structtypenonrect={name:GenericString.toption[@ocaml.doc"The column name."];type_:GenericString.toption[@ocaml.doc"The kind of data a column stores."];description:GenericString.toption[@ocaml.doc"The description for a column."]}letmake?name=fun?type_->fun?description->fun()->{name;type_;description}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:GenericString.to_value));("Type",(Option.mapx.type_~f:GenericString.to_value));("Description",(Option.mapx.description~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Description")inlettype_=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Type")inletname=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Name")inmake?description?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"GenericString.of_jsoninlettype_=field_mapjson__"Type"GenericString.of_jsoninletname=field_mapjson__"Name"GenericString.of_jsoninmake?description?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Includes basic information for a data column such as its description, name, and type."]moduleInternalServerException=structtypenonrect={message:GenericString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"GenericString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An error on the server occurred during the processing of your request. Try again later."]moduleResourceNotFoundException=structtypenonrect={message:GenericString.toption;resourceId:GenericString.toption[@ocaml.doc"The identifier of the resource that was not found."];resourceType:GenericString.toption[@ocaml.doc"The type of the resource that was not found."]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:GenericString.to_value));("ResourceId",(Option.mapx.resourceId~f:GenericString.to_value));("ResourceType",(Option.mapx.resourceType~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"ResourceType")inletresourceId=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"ResourceId")inletmessage=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"ResourceType"GenericString.of_jsoninletresourceId=field_mapjson__"ResourceId"GenericString.of_jsoninletmessage=field_mapjson__"Message"GenericString.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified Amazon Resource Name (ARN) in the request doesn't exist."]moduleThrottlingException=structtypenonrect={message:GenericString.toption;quotaCode:GenericString.toption[@ocaml.doc"The quota code that exceeded the throttling limit."];serviceCode:GenericString.toption[@ocaml.doc"The service code that exceeded the throttling limit. It will always be \226\128\156AWSBillingAndCostManagementDataExports\226\128\157."]}letmake?message=fun?quotaCode->fun?serviceCode->fun()->{message;quotaCode;serviceCode}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:GenericString.to_value));("QuotaCode",(Option.mapx.quotaCode~f:GenericString.to_value));("ServiceCode",(Option.mapx.serviceCode~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceCode=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"ServiceCode")inletquotaCode=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"QuotaCode")inletmessage=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Message")inmake?serviceCode?quotaCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceCode=field_mapjson__"ServiceCode"GenericString.of_jsoninletquotaCode=field_mapjson__"QuotaCode"GenericString.of_jsoninletmessage=field_mapjson__"Message"GenericString.of_jsoninmake?serviceCode?quotaCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to request throttling."]moduleValidationException=structtypenonrect={message:GenericString.toption;reason:ValidationExceptionReason.toption[@ocaml.doc"The reason for the validation exception."];fields:ValidationExceptionFieldList.toption[@ocaml.doc"The list of fields that are invalid."]}letmake?message=fun?reason->fun?fields->fun()->{message;reason;fields}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:GenericString.to_value));("Reason",(Option.mapx.reason~f:ValidationExceptionReason.to_value));("Fields",(Option.mapx.fields~f:ValidationExceptionFieldList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=(Option.map~f:ValidationExceptionFieldList.of_xml)(Xml.childxml_arg0"Fields")inletreason=(Option.map~f:ValidationExceptionReason.of_xml)(Xml.childxml_arg0"Reason")inletmessage=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Message")inmake?fields?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_mapjson__"Fields"ValidationExceptionFieldList.of_jsoninletreason=field_mapjson__"Reason"ValidationExceptionReason.of_jsoninletmessage=field_mapjson__"Message"GenericString.of_jsoninmake?fields?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input fails to satisfy the constraints specified by an Amazon Web Services service."]moduleExport=structtypenonrect={exportArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for this export."];name:ExportName.t[@ocaml.doc"The name of this specific data export."];description:GenericString.toption[@ocaml.doc"The description for this specific data export."];dataQuery:DataQuery.t[@ocaml.doc"The data query for this specific data export."];destinationConfigurations:DestinationConfigurations.t[@ocaml.doc"The destination configuration for this specific data export."];refreshCadence:RefreshCadence.t[@ocaml.doc"The cadence for Amazon Web Services to update the export in your S3 bucket."]}letcontext_="Export"letmake?exportArn=fun?description->fun~name->fun~dataQuery->fun~destinationConfigurations->fun~refreshCadence->fun()->{exportArn;description;name;dataQuery;destinationConfigurations;refreshCadence}letto_valuex=structure_to_value[("ExportArn",(Option.mapx.exportArn~f:Arn.to_value));("Name",(Some(ExportName.to_valuex.name)));("Description",(Option.mapx.description~f:GenericString.to_value));("DataQuery",(Some(DataQuery.to_valuex.dataQuery)));("DestinationConfigurations",(Some(DestinationConfigurations.to_valuex.destinationConfigurations)));("RefreshCadence",(Some(RefreshCadence.to_valuex.refreshCadence)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrefreshCadence=RefreshCadence.of_xml(Xml.child_exn~context:context_xml_arg0"RefreshCadence")inletdestinationConfigurations=DestinationConfigurations.of_xml(Xml.child_exn~context:context_xml_arg0"DestinationConfigurations")inletdataQuery=DataQuery.of_xml(Xml.child_exn~context:context_xml_arg0"DataQuery")inletdescription=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Description")inletname=ExportName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inletexportArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"ExportArn")inmake~refreshCadence~destinationConfigurations~dataQuery?description~name?exportArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrefreshCadence=field_map_exnjson__"RefreshCadence"RefreshCadence.of_jsoninletdestinationConfigurations=field_map_exnjson__"DestinationConfigurations"DestinationConfigurations.of_jsoninletdataQuery=field_map_exnjson__"DataQuery"DataQuery.of_jsoninletdescription=field_mapjson__"Description"GenericString.of_jsoninletname=field_map_exnjson__"Name"ExportName.of_jsoninletexportArn=field_mapjson__"ExportArn"Arn.of_jsoninmake~refreshCadence~destinationConfigurations~dataQuery?description~name?exportArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details that are available for an export."]moduleAccessDeniedException=structtypenonrect={message:GenericString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"GenericString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You don't have sufficient access to perform this action."]moduleResourceTagKeyList=structtypenonrect=ResourceTagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourceTagKey.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:ResourceTagKey.of_xml)letof_jsonj=list_of_json~kind:"ResourceTagKeyList"~of_json:ResourceTagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceTagList=structtypenonrect=ResourceTag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourceTag.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:ResourceTag.of_xml)letof_jsonj=list_of_json~kind:"ResourceTagList"~of_json:ResourceTag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNextPageToken=structtypenonrect=stringletcontext_="NextPageToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:8192)>>=(fun()->check_patterni~pattern:"[\\S\\s]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NextPageToken"jletto_json=simple_to_jsonto_valueendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:300)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTableList=structtypenonrect=Table.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Table.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:Table.of_xml)letof_jsonj=list_of_json~kind:"TableList"~of_json:Table.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExportReferenceList=structtypenonrect=ExportReference.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ExportReference.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:ExportReference.of_xml)letof_jsonj=list_of_json~kind:"ExportReferenceList"~of_json:ExportReference.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExecutionReferenceList=structtypenonrect=ExecutionReference.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ExecutionReference.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:ExecutionReference.of_xml)letof_jsonj=list_of_json~kind:"ExecutionReferenceList"~of_json:ExecutionReference.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleColumnList=structtypenonrect=Column.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Column.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:Column.of_xml)letof_jsonj=list_of_json~kind:"ColumnList"~of_json:Column.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceQuotaExceededException=structtypenonrect={message:GenericString.toption;resourceId:GenericString.toption[@ocaml.doc"The identifier of the resource that exceeded quota."];resourceType:GenericString.toption[@ocaml.doc"The type of the resource that exceeded quota."];quotaCode:GenericString.toption[@ocaml.doc"The quota code that was exceeded."];serviceCode:GenericString.toption[@ocaml.doc"The service code that exceeded quota. It will always be \226\128\156AWSBillingAndCostManagementDataExports\226\128\157."]}letmake?message=fun?resourceId->fun?resourceType->fun?quotaCode->fun?serviceCode->fun()->{message;resourceId;resourceType;quotaCode;serviceCode}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:GenericString.to_value));("ResourceId",(Option.mapx.resourceId~f:GenericString.to_value));("ResourceType",(Option.mapx.resourceType~f:GenericString.to_value));("QuotaCode",(Option.mapx.quotaCode~f:GenericString.to_value));("ServiceCode",(Option.mapx.serviceCode~f:GenericString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceCode=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"ServiceCode")inletquotaCode=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"QuotaCode")inletresourceType=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"ResourceType")inletresourceId=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"ResourceId")inletmessage=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Message")inmake?serviceCode?quotaCode?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceCode=field_mapjson__"ServiceCode"GenericString.of_jsoninletquotaCode=field_mapjson__"QuotaCode"GenericString.of_jsoninletresourceType=field_mapjson__"ResourceType"GenericString.of_jsoninletresourceId=field_mapjson__"ResourceId"GenericString.of_jsoninletmessage=field_mapjson__"Message"GenericString.of_jsoninmake?serviceCode?quotaCode?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You've reached the limit on the number of resources you can create, or exceeded the size of an individual resource."]moduleUpdateExportResponse=structtypenonrect={exportArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for this export."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?exportArn=fun()->{exportArn}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ExportArn",(Option.mapx.exportArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexportArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"ExportArn")inmake?exportArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexportArn=field_mapjson__"ExportArn"Arn.of_jsoninmake?exportArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing data export by overwriting all export parameters. All export parameters must be provided in the UpdateExport request."]moduleUpdateExportRequest=structtypenonrect={exportArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) for this export."];export:Export.t[@ocaml.doc"The name and query details for the export."]}letcontext_="UpdateExportRequest"letmake~exportArn=fun~export->fun()->{exportArn;export}letto_valuex=structure_to_value[("ExportArn",(Some(Arn.to_valuex.exportArn)));("Export",(Some(Export.to_valuex.export)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexport=Export.of_xml(Xml.child_exn~context:context_xml_arg0"Export")inletexportArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ExportArn")inmake~export~exportArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexport=field_map_exnjson__"Export"Export.of_jsoninletexportArn=field_map_exnjson__"ExportArn"Arn.of_jsoninmake~export~exportArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing data export by overwriting all export parameters. All export parameters must be provided in the UpdateExport request."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes tags associated with an existing data export definition."]moduleUntagResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The unique identifier for the resource."];resourceTagKeys:ResourceTagKeyList.t[@ocaml.doc"The tag keys that are associated with the resource ARN."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~resourceTagKeys->fun()->{resourceArn;resourceTagKeys}letto_valuex=structure_to_value[("ResourceArn",(Some(Arn.to_valuex.resourceArn)));("ResourceTagKeys",(Some(ResourceTagKeyList.to_valuex.resourceTagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceTagKeys=ResourceTagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceTagKeys")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~resourceTagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceTagKeys=field_map_exnjson__"ResourceTagKeys"ResourceTagKeyList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"Arn.of_jsoninmake~resourceTagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes tags associated with an existing data export definition."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds tags for an existing data export definition."]moduleTagResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The unique identifier for the resource."];resourceTags:ResourceTagList.t[@ocaml.doc"The tags to associate with the resource. Each tag consists of a key and a value, and each key must be unique for the resource."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~resourceTags->fun()->{resourceArn;resourceTags}letto_valuex=structure_to_value[("ResourceArn",(Some(Arn.to_valuex.resourceArn)));("ResourceTags",(Some(ResourceTagList.to_valuex.resourceTags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceTags=ResourceTagList.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceTags")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~resourceTags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceTags=field_map_exnjson__"ResourceTags"ResourceTagList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"Arn.of_jsoninmake~resourceTags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds tags for an existing data export definition."]moduleListTagsForResourceResponse=structtypenonrect={resourceTags:ResourceTagList.toption[@ocaml.doc"An optional list of tags to associate with the specified export. Each tag consists of a key and a value, and each key must be unique for the resource."];nextToken:NextPageToken.toption[@ocaml.doc"The token to retrieve the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceTags=fun?nextToken->fun()->{resourceTags;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ResourceTags",(Option.mapx.resourceTags~f:ResourceTagList.to_value));("NextToken",(Option.mapx.nextToken~f:NextPageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextPageToken.of_xml)(Xml.childxml_arg0"NextToken")inletresourceTags=(Option.map~f:ResourceTagList.of_xml)(Xml.childxml_arg0"ResourceTags")inmake?nextToken?resourceTags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextPageToken.of_jsoninletresourceTags=field_mapjson__"ResourceTags"ResourceTagList.of_jsoninmake?nextToken?resourceTags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List tags associated with an existing data export."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The unique identifier for the resource."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of objects that are returned for the request."];nextToken:NextPageToken.toption[@ocaml.doc"The token to retrieve the next set of results."]}letcontext_="ListTagsForResourceRequest"letmake?maxResults=fun?nextToken->fun~resourceArn->fun()->{maxResults;nextToken;resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(Arn.to_valuex.resourceArn)));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextPageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextPageToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake?nextToken?maxResults~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextPageToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"Arn.of_jsoninmake?nextToken?maxResults~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List tags associated with an existing data export."]moduleListTablesResponse=structtypenonrect={tables:TableList.toption[@ocaml.doc"The list of tables."];nextToken:NextPageToken.toption[@ocaml.doc"The token to retrieve the next set of results."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tables=fun?nextToken->fun()->{tables;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tables",(Option.mapx.tables~f:TableList.to_value));("NextToken",(Option.mapx.nextToken~f:NextPageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextPageToken.of_xml)(Xml.childxml_arg0"NextToken")inlettables=(Option.map~f:TableList.of_xml)(Xml.childxml_arg0"Tables")inmake?nextToken?tables()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextPageToken.of_jsoninlettables=field_mapjson__"Tables"TableList.of_jsoninmake?nextToken?tables()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all available tables in data exports."]moduleListTablesRequest=structtypenonrect={nextToken:NextPageToken.toption[@ocaml.doc"The token to retrieve the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of objects that are returned for the request."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextPageToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextPageToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextPageToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all available tables in data exports."]moduleListExportsResponse=structtypenonrect={exports:ExportReferenceList.toption[@ocaml.doc"The details of the exports, including name and export status."];nextToken:NextPageToken.toption[@ocaml.doc"The token to retrieve the next set of results."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?exports=fun?nextToken->fun()->{exports;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Exports",(Option.mapx.exports~f:ExportReferenceList.to_value));("NextToken",(Option.mapx.nextToken~f:NextPageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextPageToken.of_xml)(Xml.childxml_arg0"NextToken")inletexports=(Option.map~f:ExportReferenceList.of_xml)(Xml.childxml_arg0"Exports")inmake?nextToken?exports()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextPageToken.of_jsoninletexports=field_mapjson__"Exports"ExportReferenceList.of_jsoninmake?nextToken?exports()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all data export definitions."]moduleListExportsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"The maximum number of objects that are returned for the request."];nextToken:NextPageToken.toption[@ocaml.doc"The token to retrieve the next set of results."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextPageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextPageToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextPageToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all data export definitions."]moduleListExecutionsResponse=structtypenonrect={executions:ExecutionReferenceList.toption[@ocaml.doc"The list of executions."];nextToken:NextPageToken.toption[@ocaml.doc"The token to retrieve the next set of results."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executions=fun?nextToken->fun()->{executions;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Executions",(Option.mapx.executions~f:ExecutionReferenceList.to_value));("NextToken",(Option.mapx.nextToken~f:NextPageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextPageToken.of_xml)(Xml.childxml_arg0"NextToken")inletexecutions=(Option.map~f:ExecutionReferenceList.of_xml)(Xml.childxml_arg0"Executions")inmake?nextToken?executions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextPageToken.of_jsoninletexecutions=field_mapjson__"Executions"ExecutionReferenceList.of_jsoninmake?nextToken?executions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the historical executions for the export."]moduleListExecutionsRequest=structtypenonrect={exportArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) for this export."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of objects that are returned for the request."];nextToken:NextPageToken.toption[@ocaml.doc"The token to retrieve the next set of results."]}letcontext_="ListExecutionsRequest"letmake?maxResults=fun?nextToken->fun~exportArn->fun()->{maxResults;nextToken;exportArn}letto_valuex=structure_to_value[("ExportArn",(Some(Arn.to_valuex.exportArn)));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextPageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextPageToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletexportArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ExportArn")inmake?nextToken?maxResults~exportArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextPageToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletexportArn=field_map_exnjson__"ExportArn"Arn.of_jsoninmake?nextToken?maxResults~exportArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the historical executions for the export."]moduleGetTableResponse=structtypenonrect={tableName:TableName.toption[@ocaml.doc"The name of the table."];description:GenericString.toption[@ocaml.doc"The table description."];tableProperties:TableProperties.toption[@ocaml.doc"TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. Tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified."];schema:ColumnList.toption[@ocaml.doc"The schema of the table."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tableName=fun?description->fun?tableProperties->fun?schema->fun()->{tableName;description;tableProperties;schema}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TableName",(Option.mapx.tableName~f:TableName.to_value));("Description",(Option.mapx.description~f:GenericString.to_value));("TableProperties",(Option.mapx.tableProperties~f:TableProperties.to_value));("Schema",(Option.mapx.schema~f:ColumnList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letschema=(Option.map~f:ColumnList.of_xml)(Xml.childxml_arg0"Schema")inlettableProperties=(Option.map~f:TableProperties.of_xml)(Xml.childxml_arg0"TableProperties")inletdescription=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"Description")inlettableName=(Option.map~f:TableName.of_xml)(Xml.childxml_arg0"TableName")inmake?schema?tableProperties?description?tableName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letschema=field_mapjson__"Schema"ColumnList.of_jsoninlettableProperties=field_mapjson__"TableProperties"TableProperties.of_jsoninletdescription=field_mapjson__"Description"GenericString.of_jsoninlettableName=field_mapjson__"TableName"TableName.of_jsoninmake?schema?tableProperties?description?tableName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the metadata for the specified table and table properties. This includes the list of columns in the table schema, their data types, and column descriptions."]moduleGetTableRequest=structtypenonrect={tableName:TableName.t[@ocaml.doc"The name of the table."];tableProperties:TableProperties.toption[@ocaml.doc"TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. Tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified."]}letcontext_="GetTableRequest"letmake?tableProperties=fun~tableName->fun()->{tableProperties;tableName}letto_valuex=structure_to_value[("TableName",(Some(TableName.to_valuex.tableName)));("TableProperties",(Option.mapx.tableProperties~f:TableProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettableProperties=(Option.map~f:TableProperties.of_xml)(Xml.childxml_arg0"TableProperties")inlettableName=TableName.of_xml(Xml.child_exn~context:context_xml_arg0"TableName")inmake?tableProperties~tableName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettableProperties=field_mapjson__"TableProperties"TableProperties.of_jsoninlettableName=field_map_exnjson__"TableName"TableName.of_jsoninmake?tableProperties~tableName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the metadata for the specified table and table properties. This includes the list of columns in the table schema, their data types, and column descriptions."]moduleGetExportResponse=structtypenonrect={export:Export.toption[@ocaml.doc"The data for this specific export."];exportStatus:ExportStatus.toption[@ocaml.doc"The status of this specific export."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?export=fun?exportStatus->fun()->{export;exportStatus}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Export",(Option.mapx.export~f:Export.to_value));("ExportStatus",(Option.mapx.exportStatus~f:ExportStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexportStatus=(Option.map~f:ExportStatus.of_xml)(Xml.childxml_arg0"ExportStatus")inletexport=(Option.map~f:Export.of_xml)(Xml.childxml_arg0"Export")inmake?exportStatus?export()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexportStatus=field_mapjson__"ExportStatus"ExportStatus.of_jsoninletexport=field_mapjson__"Export"Export.of_jsoninmake?exportStatus?export()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Views the definition of an existing data export."]moduleGetExportRequest=structtypenonrect={exportArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) for this export."]}letcontext_="GetExportRequest"letmake~exportArn=fun()->{exportArn}letto_valuex=structure_to_value[("ExportArn",(Some(Arn.to_valuex.exportArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexportArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ExportArn")inmake~exportArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexportArn=field_map_exnjson__"ExportArn"Arn.of_jsoninmake~exportArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Views the definition of an existing data export."]moduleGetExecutionResponse=structtypenonrect={executionId:GenericString.toption[@ocaml.doc"The ID for this specific execution."];export:Export.toption[@ocaml.doc"The export data for this specific execution. This export data is a snapshot from when the execution was generated. The data could be different from the current export data if the export was updated since the execution was generated."];executionStatus:ExecutionStatus.toption[@ocaml.doc"The status of this specific execution."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executionId=fun?export->fun?executionStatus->fun()->{executionId;export;executionStatus}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ExecutionId",(Option.mapx.executionId~f:GenericString.to_value));("Export",(Option.mapx.export~f:Export.to_value));("ExecutionStatus",(Option.mapx.executionStatus~f:ExecutionStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionStatus=(Option.map~f:ExecutionStatus.of_xml)(Xml.childxml_arg0"ExecutionStatus")inletexport=(Option.map~f:Export.of_xml)(Xml.childxml_arg0"Export")inletexecutionId=(Option.map~f:GenericString.of_xml)(Xml.childxml_arg0"ExecutionId")inmake?executionStatus?export?executionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionStatus=field_mapjson__"ExecutionStatus"ExecutionStatus.of_jsoninletexport=field_mapjson__"Export"Export.of_jsoninletexecutionId=field_mapjson__"ExecutionId"GenericString.of_jsoninmake?executionStatus?export?executionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exports data based on the source data update."]moduleGetExecutionRequest=structtypenonrect={exportArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Export object that generated this specific execution."];executionId:GenericString.t[@ocaml.doc"The ID for this specific execution."]}letcontext_="GetExecutionRequest"letmake~exportArn=fun~executionId->fun()->{exportArn;executionId}letto_valuex=structure_to_value[("ExportArn",(Some(Arn.to_valuex.exportArn)));("ExecutionId",(Some(GenericString.to_valuex.executionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionId=GenericString.of_xml(Xml.child_exn~context:context_xml_arg0"ExecutionId")inletexportArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ExportArn")inmake~executionId~exportArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionId=field_map_exnjson__"ExecutionId"GenericString.of_jsoninletexportArn=field_map_exnjson__"ExportArn"Arn.of_jsoninmake~executionId~exportArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exports data based on the source data update."]moduleDeleteExportResponse=structtypenonrect={exportArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for this export."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?exportArn=fun()->{exportArn}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ExportArn",(Option.mapx.exportArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexportArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"ExportArn")inmake?exportArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexportArn=field_mapjson__"ExportArn"Arn.of_jsoninmake?exportArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing data export."]moduleDeleteExportRequest=structtypenonrect={exportArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) for this export."]}letcontext_="DeleteExportRequest"letmake~exportArn=fun()->{exportArn}letto_valuex=structure_to_value[("ExportArn",(Some(Arn.to_valuex.exportArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexportArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ExportArn")inmake~exportArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexportArn=field_map_exnjson__"ExportArn"Arn.of_jsoninmake~exportArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing data export."]moduleCreateExportResponse=structtypenonrect={exportArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) for this export."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?exportArn=fun()->{exportArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ExportArn",(Option.mapx.exportArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexportArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"ExportArn")inmake?exportArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexportArn=field_mapjson__"ExportArn"Arn.of_jsoninmake?exportArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a data export and specifies the data query, the delivery preference, and any optional resource tags. A DataQuery consists of both a QueryStatement and TableConfigurations. The QueryStatement is an SQL statement. Data Exports only supports a limited subset of the SQL syntax. For more information on the SQL syntax that is supported, see Data query. To view the available tables and columns, see the Data Exports table dictionary. The TableConfigurations is a collection of specified TableProperties for the table being queried in the QueryStatement. TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. However, tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified. For more information on table configurations, see Data query. To view the table properties available for each table, see the Data Exports table dictionary or use the ListTables API to get a response of all tables and their available properties."]moduleCreateExportRequest=structtypenonrect={export:Export.t[@ocaml.doc"The details of the export, including data query, name, description, and destination configuration."];resourceTags:ResourceTagList.toption[@ocaml.doc"An optional list of tags to associate with the specified export. Each tag consists of a key and a value, and each key must be unique for the resource."]}letcontext_="CreateExportRequest"letmake?resourceTags=fun~export->fun()->{resourceTags;export}letto_valuex=structure_to_value[("Export",(Some(Export.to_valuex.export)));("ResourceTags",(Option.mapx.resourceTags~f:ResourceTagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceTags=(Option.map~f:ResourceTagList.of_xml)(Xml.childxml_arg0"ResourceTags")inletexport=Export.of_xml(Xml.child_exn~context:context_xml_arg0"Export")inmake?resourceTags~export()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceTags=field_mapjson__"ResourceTags"ResourceTagList.of_jsoninletexport=field_map_exnjson__"Export"Export.of_jsoninmake?resourceTags~export()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a data export and specifies the data query, the delivery preference, and any optional resource tags. A DataQuery consists of both a QueryStatement and TableConfigurations. The QueryStatement is an SQL statement. Data Exports only supports a limited subset of the SQL syntax. For more information on the SQL syntax that is supported, see Data query. To view the available tables and columns, see the Data Exports table dictionary. The TableConfigurations is a collection of specified TableProperties for the table being queried in the QueryStatement. TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. However, tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified. For more information on table configurations, see Data query. To view the table properties available for each table, see the Data Exports table dictionary or use the ListTables API to get a response of all tables and their available properties."]