1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204(* 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.supportletapiVersion="2013-04-15"letendpointPrefix="support"letserviceFullName="AWS Support"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"lettargetPrefix="AWSSupport_20130415"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[]))])moduleAttachmentId=structtypenonrect=stringletcontext_="AttachmentId"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AttachmentId"jletto_json=simple_to_jsonto_valueendmoduleFileName=structtypenonrect=stringletcontext_="FileName"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FileName"jletto_json=simple_to_jsonto_valueendmoduleAttachmentDetails=structtypenonrect={attachmentId:AttachmentId.toption[@ocaml.doc"The ID of the attachment."];fileName:FileName.toption[@ocaml.doc"The file name of the attachment."]}letmake?attachmentId=fun?fileName->fun()->{attachmentId;fileName}letto_valuex=structure_to_value[("attachmentId",(Option.mapx.attachmentId~f:AttachmentId.to_value));("fileName",(Option.mapx.fileName~f:FileName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileName=(Option.map~f:FileName.of_xml)(Xml.childxml_arg0"fileName")inletattachmentId=(Option.map~f:AttachmentId.of_xml)(Xml.childxml_arg0"attachmentId")inmake?fileName?attachmentId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileName=field_mapjson__"fileName"FileName.of_jsoninletattachmentId=field_mapjson__"attachmentId"AttachmentId.of_jsoninmake?fileName?attachmentId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The file name and ID of an attachment to a case communication. You can use the ID to retrieve the attachment with the DescribeAttachment operation."]moduleAttachmentSet=structtypenonrect=AttachmentDetails.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttachmentDetails.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:AttachmentDetails.of_xml)letof_jsonj=list_of_json~kind:"AttachmentSet"~of_json:AttachmentDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCaseId=structtypenonrect=stringletcontext_="CaseId"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CaseId"jletto_json=simple_to_jsonto_valueendmoduleSubmittedBy=structtypenonrect=stringletcontext_="SubmittedBy"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SubmittedBy"jletto_json=simple_to_jsonto_valueendmoduleTimeCreated=structtypenonrect=stringletcontext_="TimeCreated"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TimeCreated"jletto_json=simple_to_jsonto_valueendmoduleValidatedCommunicationBody=structtypenonrect=stringletcontext_="ValidatedCommunicationBody"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:8000)>>=(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:"ValidatedCommunicationBody"jletto_json=simple_to_jsonto_valueendmoduleDouble=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleCategoryCode=structtypenonrect=stringletcontext_="CategoryCode"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CategoryCode"jletto_json=simple_to_jsonto_valueendmoduleCategoryName=structtypenonrect=stringletcontext_="CategoryName"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CategoryName"jletto_json=simple_to_jsonto_valueendmoduleValidatedDateTime=structtypenonrect=stringletcontext_="ValidatedDateTime"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:30)>>=(fun()->check_string_mini~min:8));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ValidatedDateTime"jletto_json=simple_to_jsonto_valueendmoduleEndTime=structtypenonrect=stringletcontext_="EndTime"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EndTime"jletto_json=simple_to_jsonto_valueendmoduleStartTime=structtypenonrect=stringletcontext_="StartTime"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StartTime"jletto_json=simple_to_jsonto_valueendmoduleCommunication=structtypenonrect={caseId:CaseId.toption[@ocaml.doc"The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47"];body:ValidatedCommunicationBody.toption[@ocaml.doc"The text of the communication between the customer and Amazon Web Services Support."];submittedBy:SubmittedBy.toption[@ocaml.doc"The identity of the account that submitted, or responded to, the support case. Customer entries include the IAM role as well as the email address (for example, \"AdminRole (Role) <janedoe\\@example.com>). Entries from the Amazon Web Services Support team display \"Amazon Web Services,\" and don't show an email address."];timeCreated:TimeCreated.toption[@ocaml.doc"The time the communication was created."];attachmentSet:AttachmentSet.toption[@ocaml.doc"Information about the attachments to the case communication."]}letmake?caseId=fun?body->fun?submittedBy->fun?timeCreated->fun?attachmentSet->fun()->{caseId;body;submittedBy;timeCreated;attachmentSet}letto_valuex=structure_to_value[("caseId",(Option.mapx.caseId~f:CaseId.to_value));("body",(Option.mapx.body~f:ValidatedCommunicationBody.to_value));("submittedBy",(Option.mapx.submittedBy~f:SubmittedBy.to_value));("timeCreated",(Option.mapx.timeCreated~f:TimeCreated.to_value));("attachmentSet",(Option.mapx.attachmentSet~f:AttachmentSet.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattachmentSet=(Option.map~f:AttachmentSet.of_xml)(Xml.childxml_arg0"attachmentSet")inlettimeCreated=(Option.map~f:TimeCreated.of_xml)(Xml.childxml_arg0"timeCreated")inletsubmittedBy=(Option.map~f:SubmittedBy.of_xml)(Xml.childxml_arg0"submittedBy")inletbody=(Option.map~f:ValidatedCommunicationBody.of_xml)(Xml.childxml_arg0"body")inletcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inmake?attachmentSet?timeCreated?submittedBy?body?caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattachmentSet=field_mapjson__"attachmentSet"AttachmentSet.of_jsoninlettimeCreated=field_mapjson__"timeCreated"TimeCreated.of_jsoninletsubmittedBy=field_mapjson__"submittedBy"SubmittedBy.of_jsoninletbody=field_mapjson__"body"ValidatedCommunicationBody.of_jsoninletcaseId=field_mapjson__"caseId"CaseId.of_jsoninmake?attachmentSet?timeCreated?submittedBy?body?caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A communication associated with a support case. The communication consists of the case ID, the message body, attachment information, the submitter of the communication, and the date and time of the communication."]moduleTrustedAdvisorCostOptimizingSummary=structtypenonrect={estimatedMonthlySavings:Double.toption[@ocaml.doc"The estimated monthly savings that might be realized if the recommended operations are taken."];estimatedPercentMonthlySavings:Double.toption[@ocaml.doc"The estimated percentage of savings that might be realized if the recommended operations are taken."]}letmake?estimatedMonthlySavings=fun?estimatedPercentMonthlySavings->fun()->{estimatedMonthlySavings;estimatedPercentMonthlySavings}letto_valuex=structure_to_value[("estimatedMonthlySavings",(Option.mapx.estimatedMonthlySavings~f:Double.to_value));("estimatedPercentMonthlySavings",(Option.mapx.estimatedPercentMonthlySavings~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letestimatedPercentMonthlySavings=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"estimatedPercentMonthlySavings")inletestimatedMonthlySavings=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"estimatedMonthlySavings")inmake?estimatedPercentMonthlySavings?estimatedMonthlySavings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letestimatedPercentMonthlySavings=field_mapjson__"estimatedPercentMonthlySavings"Double.of_jsoninletestimatedMonthlySavings=field_mapjson__"estimatedMonthlySavings"Double.of_jsoninmake?estimatedPercentMonthlySavings?estimatedMonthlySavings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The estimated cost savings that might be realized if the recommended operations are taken."]moduleLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleStringList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"StringList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCategory=structtypenonrect={code:CategoryCode.toption[@ocaml.doc"The category code for the support case."];name:CategoryName.toption[@ocaml.doc"The category name for the support case."]}letmake?code=fun?name->fun()->{code;name}letto_valuex=structure_to_value[("code",(Option.mapx.code~f:CategoryCode.to_value));("name",(Option.mapx.name~f:CategoryName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:CategoryName.of_xml)(Xml.childxml_arg0"name")inletcode=(Option.map~f:CategoryCode.of_xml)(Xml.childxml_arg0"code")inmake?name?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"CategoryName.of_jsoninletcode=field_mapjson__"code"CategoryCode.of_jsoninmake?name?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A JSON-formatted name/value pair that represents the category name and category code of the problem, selected from the DescribeServices response for each Amazon Web Services service."]moduleDateInterval=structtypenonrect={startDateTime:ValidatedDateTime.toption[@ocaml.doc"A JSON object containing start and date time (UTC). Date and time format is RFC 3339 : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'."];endDateTime:ValidatedDateTime.toption[@ocaml.doc"End Date Time (UTC). RFC 3339 format : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'."]}letmake?startDateTime=fun?endDateTime->fun()->{startDateTime;endDateTime}letto_valuex=structure_to_value[("startDateTime",(Option.mapx.startDateTime~f:ValidatedDateTime.to_value));("endDateTime",(Option.mapx.endDateTime~f:ValidatedDateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendDateTime=(Option.map~f:ValidatedDateTime.of_xml)(Xml.childxml_arg0"endDateTime")inletstartDateTime=(Option.map~f:ValidatedDateTime.of_xml)(Xml.childxml_arg0"startDateTime")inmake?endDateTime?startDateTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendDateTime=field_mapjson__"endDateTime"ValidatedDateTime.of_jsoninletstartDateTime=field_mapjson__"startDateTime"ValidatedDateTime.of_jsoninmake?endDateTime?startDateTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Date and time (UTC) format in RFC 3339 : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'."]moduleSupportedHour=structtypenonrect={startTime:StartTime.toption[@ocaml.doc"Start Time. RFC 3339 format 'HH:mm:ss.SSS'."];endTime:EndTime.toption[@ocaml.doc"End Time. RFC 3339 format 'HH:mm:ss.SSS'."]}letmake?startTime=fun?endTime->fun()->{startTime;endTime}letto_valuex=structure_to_value[("startTime",(Option.mapx.startTime~f:StartTime.to_value));("endTime",(Option.mapx.endTime~f:EndTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendTime=(Option.map~f:EndTime.of_xml)(Xml.childxml_arg0"endTime")inletstartTime=(Option.map~f:StartTime.of_xml)(Xml.childxml_arg0"startTime")inmake?endTime?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendTime=field_mapjson__"endTime"EndTime.of_jsoninletstartTime=field_mapjson__"startTime"StartTime.of_jsoninmake?endTime?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Time range object with startTime and endTime range in RFC 3339 format. 'HH:mm:ss.SSS'."]moduleCcEmailAddress=structtypenonrect=stringletcontext_="CcEmailAddress"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CcEmailAddress"jletto_json=simple_to_jsonto_valueendmoduleCommunicationList=structtypenonrect=Communication.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Communication.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:Communication.of_xml)letof_jsonj=list_of_json~kind:"CommunicationList"~of_json:Communication.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleTrustedAdvisorCategorySpecificSummary=structtypenonrect={costOptimizing:TrustedAdvisorCostOptimizingSummary.toption[@ocaml.doc"The summary information about cost savings for a Trusted Advisor check that is in the Cost Optimizing category."]}letmake?costOptimizing=fun()->{costOptimizing}letto_valuex=structure_to_value[("costOptimizing",(Option.mapx.costOptimizing~f:TrustedAdvisorCostOptimizingSummary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcostOptimizing=(Option.map~f:TrustedAdvisorCostOptimizingSummary.of_xml)(Xml.childxml_arg0"costOptimizing")inmake?costOptimizing()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcostOptimizing=field_mapjson__"costOptimizing"TrustedAdvisorCostOptimizingSummary.of_jsoninmake?costOptimizing()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The container for summary information that relates to the category of the Trusted Advisor check."]moduleTrustedAdvisorResourcesSummary=structtypenonrect={resourcesProcessed:Long.toption[@ocaml.doc"The number of Amazon Web Services resources that were analyzed by the Trusted Advisor check."];resourcesFlagged:Long.toption[@ocaml.doc"The number of Amazon Web Services resources that were flagged (listed) by the Trusted Advisor check."];resourcesIgnored:Long.toption[@ocaml.doc"The number of Amazon Web Services resources ignored by Trusted Advisor because information was unavailable."];resourcesSuppressed:Long.toption[@ocaml.doc"The number of Amazon Web Services resources ignored by Trusted Advisor because they were marked as suppressed by the user."]}letmake?resourcesProcessed=fun?resourcesFlagged->fun?resourcesIgnored->fun?resourcesSuppressed->fun()->{resourcesProcessed;resourcesFlagged;resourcesIgnored;resourcesSuppressed}letto_valuex=structure_to_value[("resourcesProcessed",(Option.mapx.resourcesProcessed~f:Long.to_value));("resourcesFlagged",(Option.mapx.resourcesFlagged~f:Long.to_value));("resourcesIgnored",(Option.mapx.resourcesIgnored~f:Long.to_value));("resourcesSuppressed",(Option.mapx.resourcesSuppressed~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourcesSuppressed=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"resourcesSuppressed")inletresourcesIgnored=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"resourcesIgnored")inletresourcesFlagged=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"resourcesFlagged")inletresourcesProcessed=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"resourcesProcessed")inmake?resourcesSuppressed?resourcesIgnored?resourcesFlagged?resourcesProcessed()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourcesSuppressed=field_mapjson__"resourcesSuppressed"Long.of_jsoninletresourcesIgnored=field_mapjson__"resourcesIgnored"Long.of_jsoninletresourcesFlagged=field_mapjson__"resourcesFlagged"Long.of_jsoninletresourcesProcessed=field_mapjson__"resourcesProcessed"Long.of_jsoninmake?resourcesSuppressed?resourcesIgnored?resourcesFlagged?resourcesProcessed()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details about Amazon Web Services resources that were analyzed in a call to Trusted Advisor DescribeTrustedAdvisorCheckSummaries."]moduleTrustedAdvisorResourceDetail=structtypenonrect={status:String_.toption[@ocaml.doc"The status code for the resource identified in the Trusted Advisor check."];region:String_.toption[@ocaml.doc"The Amazon Web Services Region in which the identified resource is located."];resourceId:String_.toption[@ocaml.doc"The unique identifier for the identified resource."];isSuppressed:Boolean.toption[@ocaml.doc"Specifies whether the Amazon Web Services resource was ignored by Trusted Advisor because it was marked as suppressed by the user."];metadata:StringList.toption[@ocaml.doc"Additional information about the identified resource. The exact metadata and its order can be obtained by inspecting the TrustedAdvisorCheckDescription object returned by the call to DescribeTrustedAdvisorChecks. Metadata contains all the data that is shown in the Excel download, even in those cases where the UI shows just summary data."]}letmake?status=fun?region->fun?resourceId->fun?isSuppressed->fun?metadata->fun()->{status;region;resourceId;isSuppressed;metadata}letto_valuex=structure_to_value[("status",(Option.mapx.status~f:String_.to_value));("region",(Option.mapx.region~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("isSuppressed",(Option.mapx.isSuppressed~f:Boolean.to_value));("metadata",(Option.mapx.metadata~f:StringList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetadata=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"metadata")inletisSuppressed=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isSuppressed")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletregion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"region")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inmake?metadata?isSuppressed?resourceId?region?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetadata=field_mapjson__"metadata"StringList.of_jsoninletisSuppressed=field_mapjson__"isSuppressed"Boolean.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletregion=field_mapjson__"region"String_.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninmake?metadata?isSuppressed?resourceId?region?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about a resource identified by a Trusted Advisor check."]moduleCode=structtypenonrect=stringletcontext_="Code"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Code"jletto_json=simple_to_jsonto_valueendmoduleDisplay=structtypenonrect=stringletcontext_="Display"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Display"jletto_json=simple_to_jsonto_valueendmoduleLanguage=structtypenonrect=stringletcontext_="Language"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Language"jletto_json=simple_to_jsonto_valueendmoduleSeverityLevelCode=structtypenonrect=stringletcontext_="SeverityLevelCode"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SeverityLevelCode"jletto_json=simple_to_jsonto_valueendmoduleSeverityLevelName=structtypenonrect=stringletcontext_="SeverityLevelName"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SeverityLevelName"jletto_json=simple_to_jsonto_valueendmoduleCategoryList=structtypenonrect=Category.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Category.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:Category.of_xml)letof_jsonj=list_of_json~kind:"CategoryList"~of_json:Category.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceCode=structtypenonrect=stringletcontext_="ServiceCode"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceCode"jletto_json=simple_to_jsonto_valueendmoduleServiceName=structtypenonrect=stringletcontext_="ServiceName"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceName"jletto_json=simple_to_jsonto_valueendmoduleDatesWithoutSupportList=structtypenonrect=DateInterval.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DateInterval.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:DateInterval.of_xml)letof_jsonj=list_of_json~kind:"DatesWithoutSupportList"~of_json:DateInterval.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSupportedHoursList=structtypenonrect=SupportedHour.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SupportedHour.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:SupportedHour.of_xml)letof_jsonj=list_of_json~kind:"SupportedHoursList"~of_json:SupportedHour.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleType=structtypenonrect=stringletcontext_="Type"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Type"jletto_json=simple_to_jsonto_valueendmoduleCcEmailAddressList=structtypenonrect=CcEmailAddress.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:CcEmailAddress.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:CcEmailAddress.of_xml)letof_jsonj=list_of_json~kind:"CcEmailAddressList"~of_json:CcEmailAddress.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDisplayId=structtypenonrect=stringletcontext_="DisplayId"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DisplayId"jletto_json=simple_to_jsonto_valueendmoduleRecentCaseCommunications=structtypenonrect={communications:CommunicationList.toption[@ocaml.doc"The five most recent communications associated with the case."];nextToken:NextToken.toption[@ocaml.doc"A resumption point for pagination."]}letmake?communications=fun?nextToken->fun()->{communications;nextToken}letto_valuex=structure_to_value[("communications",(Option.mapx.communications~f:CommunicationList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletcommunications=(Option.map~f:CommunicationList.of_xml)(Xml.childxml_arg0"communications")inmake?nextToken?communications()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletcommunications=field_mapjson__"communications"CommunicationList.of_jsoninmake?nextToken?communications()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The five most recent communications associated with the case."]moduleSeverityCode=structtypenonrect=stringletcontext_="SeverityCode"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SeverityCode"jletto_json=simple_to_jsonto_valueendmoduleStatus=structtypenonrect=stringletcontext_="Status"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Status"jletto_json=simple_to_jsonto_valueendmoduleSubject=structtypenonrect=stringletcontext_="Subject"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Subject"jletto_json=simple_to_jsonto_valueendmoduleData=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleErrorMessage=structtypenonrect=stringletcontext_="ErrorMessage"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleAvailabilityErrorMessage=structtypenonrect=stringletcontext_="AvailabilityErrorMessage"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AvailabilityErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleTrustedAdvisorCheckDescription=structtypenonrect={id:String_.toption[@ocaml.doc"The unique identifier for the Trusted Advisor check."];name:String_.toption[@ocaml.doc"The display name for the Trusted Advisor check."];description:String_.toption[@ocaml.doc"The description of the Trusted Advisor check, which includes the alert criteria and recommended operations (contains HTML markup)."];category:String_.toption[@ocaml.doc"The category of the Trusted Advisor check."];metadata:StringList.toption[@ocaml.doc"The column headings for the data returned by the Trusted Advisor check. The order of the headings corresponds to the order of the data in the Metadata element of the TrustedAdvisorResourceDetail for the check. Metadata contains all the data that is shown in the Excel download, even in those cases where the UI shows just summary data."]}letmake?id=fun?name->fun?description->fun?category->fun?metadata->fun()->{id;name;description;category;metadata}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:String_.to_value));("name",(Option.mapx.name~f:String_.to_value));("description",(Option.mapx.description~f:String_.to_value));("category",(Option.mapx.category~f:String_.to_value));("metadata",(Option.mapx.metadata~f:StringList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetadata=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"metadata")inletcategory=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"category")inletdescription=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"id")inmake?metadata?category?description?name?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetadata=field_mapjson__"metadata"StringList.of_jsoninletcategory=field_mapjson__"category"String_.of_jsoninletdescription=field_mapjson__"description"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninletid=field_mapjson__"id"String_.of_jsoninmake?metadata?category?description?name?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The description and metadata for a Trusted Advisor check."]moduleTrustedAdvisorCheckSummary=structtypenonrect={checkId:String_.toption[@ocaml.doc"The unique identifier for the Trusted Advisor check."];timestamp:String_.toption[@ocaml.doc"The time of the last refresh of the check."];status:String_.toption[@ocaml.doc"The alert status of the check: \"ok\" (green), \"warning\" (yellow), \"error\" (red), or \"not_available\"."];hasFlaggedResources:Boolean.toption[@ocaml.doc"Specifies whether the Trusted Advisor check has flagged resources."];resourcesSummary:TrustedAdvisorResourcesSummary.toption;categorySpecificSummary:TrustedAdvisorCategorySpecificSummary.toption[@ocaml.doc"Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported."]}letmake?checkId=fun?timestamp->fun?status->fun?hasFlaggedResources->fun?resourcesSummary->fun?categorySpecificSummary->fun()->{checkId;timestamp;status;hasFlaggedResources;resourcesSummary;categorySpecificSummary}letto_valuex=structure_to_value[("checkId",(Option.mapx.checkId~f:String_.to_value));("timestamp",(Option.mapx.timestamp~f:String_.to_value));("status",(Option.mapx.status~f:String_.to_value));("hasFlaggedResources",(Option.mapx.hasFlaggedResources~f:Boolean.to_value));("resourcesSummary",(Option.mapx.resourcesSummary~f:TrustedAdvisorResourcesSummary.to_value));("categorySpecificSummary",(Option.mapx.categorySpecificSummary~f:TrustedAdvisorCategorySpecificSummary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategorySpecificSummary=(Option.map~f:TrustedAdvisorCategorySpecificSummary.of_xml)(Xml.childxml_arg0"categorySpecificSummary")inletresourcesSummary=(Option.map~f:TrustedAdvisorResourcesSummary.of_xml)(Xml.childxml_arg0"resourcesSummary")inlethasFlaggedResources=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"hasFlaggedResources")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inlettimestamp=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"timestamp")inletcheckId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"checkId")inmake?categorySpecificSummary?resourcesSummary?hasFlaggedResources?status?timestamp?checkId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategorySpecificSummary=field_mapjson__"categorySpecificSummary"TrustedAdvisorCategorySpecificSummary.of_jsoninletresourcesSummary=field_mapjson__"resourcesSummary"TrustedAdvisorResourcesSummary.of_jsoninlethasFlaggedResources=field_mapjson__"hasFlaggedResources"Boolean.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninlettimestamp=field_mapjson__"timestamp"String_.of_jsoninletcheckId=field_mapjson__"checkId"String_.of_jsoninmake?categorySpecificSummary?resourcesSummary?hasFlaggedResources?status?timestamp?checkId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A summary of a Trusted Advisor check result, including the alert status, last refresh, and number of resources examined."]moduleTrustedAdvisorResourceDetailList=structtypenonrect=TrustedAdvisorResourceDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TrustedAdvisorResourceDetail.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:TrustedAdvisorResourceDetail.of_xml)letof_jsonj=list_of_json~kind:"TrustedAdvisorResourceDetailList"~of_json:TrustedAdvisorResourceDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTrustedAdvisorCheckRefreshStatus=structtypenonrect={checkId:String_.toption[@ocaml.doc"The unique identifier for the Trusted Advisor check."];status:String_.toption[@ocaml.doc"The status of the Trusted Advisor check for which a refresh has been requested: none - The check is not refreshed or the non-success status exceeds the timeout enqueued - The check refresh requests has entered the refresh queue processing - The check refresh request is picked up by the rule processing engine success - The check is successfully refreshed abandoned - The check refresh has failed"];millisUntilNextRefreshable:Long.toption[@ocaml.doc"The amount of time, in milliseconds, until the Trusted Advisor check is eligible for refresh."]}letmake?checkId=fun?status->fun?millisUntilNextRefreshable->fun()->{checkId;status;millisUntilNextRefreshable}letto_valuex=structure_to_value[("checkId",(Option.mapx.checkId~f:String_.to_value));("status",(Option.mapx.status~f:String_.to_value));("millisUntilNextRefreshable",(Option.mapx.millisUntilNextRefreshable~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmillisUntilNextRefreshable=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"millisUntilNextRefreshable")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inletcheckId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"checkId")inmake?millisUntilNextRefreshable?status?checkId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmillisUntilNextRefreshable=field_mapjson__"millisUntilNextRefreshable"Long.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninletcheckId=field_mapjson__"checkId"String_.of_jsoninmake?millisUntilNextRefreshable?status?checkId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The refresh status of a Trusted Advisor check."]moduleSupportedLanguage=structtypenonrect={code:Code.toption[@ocaml.doc"2 digit ISO 639-1 code. e.g. en"];language:Language.toption[@ocaml.doc"Full language description e.g. ENGLISH"];display:Display.toption[@ocaml.doc"Language display value e.g. ENGLISH"]}letmake?code=fun?language->fun?display->fun()->{code;language;display}letto_valuex=structure_to_value[("code",(Option.mapx.code~f:Code.to_value));("language",(Option.mapx.language~f:Language.to_value));("display",(Option.mapx.display~f:Display.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdisplay=(Option.map~f:Display.of_xml)(Xml.childxml_arg0"display")inletlanguage=(Option.map~f:Language.of_xml)(Xml.childxml_arg0"language")inletcode=(Option.map~f:Code.of_xml)(Xml.childxml_arg0"code")inmake?display?language?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdisplay=field_mapjson__"display"Display.of_jsoninletlanguage=field_mapjson__"language"Language.of_jsoninletcode=field_mapjson__"code"Code.of_jsoninmake?display?language?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A JSON-formatted object that contains the available ISO 639-1 language code, language name and langauge display value. The language code is what should be used in the CreateCase call."]moduleSeverityLevel=structtypenonrect={code:SeverityLevelCode.toption[@ocaml.doc"The code for case severity level. Valid values: low | normal | high | urgent | critical"];name:SeverityLevelName.toption[@ocaml.doc"The name of the severity level that corresponds to the severity level code. The values returned by the API are different from the values that appear in the Amazon Web Services Support Center. For example, the API uses the code low, but the name appears as General guidance in Support Center. The following are the API code names and how they appear in the console: low - General guidance normal - System impaired high - Production system impaired urgent - Production system down critical - Business-critical system down For more information, see Choosing a severity in the Amazon Web Services Support User Guide."]}letmake?code=fun?name->fun()->{code;name}letto_valuex=structure_to_value[("code",(Option.mapx.code~f:SeverityLevelCode.to_value));("name",(Option.mapx.name~f:SeverityLevelName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:SeverityLevelName.of_xml)(Xml.childxml_arg0"name")inletcode=(Option.map~f:SeverityLevelCode.of_xml)(Xml.childxml_arg0"code")inmake?name?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"SeverityLevelName.of_jsoninletcode=field_mapjson__"code"SeverityLevelCode.of_jsoninmake?name?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A code and name pair that represents the severity level of a support case. The available values depend on the support plan for the account. For more information, see Choosing a severity in the Amazon Web Services Support User Guide."]moduleService=structtypenonrect={code:ServiceCode.toption[@ocaml.doc"The code for an Amazon Web Services service returned by the DescribeServices response. The name element contains the corresponding friendly name."];name:ServiceName.toption[@ocaml.doc"The friendly name for an Amazon Web Services service. The code element contains the corresponding code."];categories:CategoryList.toption[@ocaml.doc"A list of categories that describe the type of support issue a case describes. Categories consist of a category name and a category code. Category names and codes are passed to Amazon Web Services Support when you call CreateCase."]}letmake?code=fun?name->fun?categories->fun()->{code;name;categories}letto_valuex=structure_to_value[("code",(Option.mapx.code~f:ServiceCode.to_value));("name",(Option.mapx.name~f:ServiceName.to_value));("categories",(Option.mapx.categories~f:CategoryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategories=(Option.map~f:CategoryList.of_xml)(Xml.childxml_arg0"categories")inletname=(Option.map~f:ServiceName.of_xml)(Xml.childxml_arg0"name")inletcode=(Option.map~f:ServiceCode.of_xml)(Xml.childxml_arg0"code")inmake?categories?name?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategories=field_mapjson__"categories"CategoryList.of_jsoninletname=field_mapjson__"name"ServiceName.of_jsoninletcode=field_mapjson__"code"ServiceCode.of_jsoninmake?categories?name?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about an Amazon Web Services service returned by the DescribeServices operation."]moduleCommunicationTypeOptions=structtypenonrect={type_:Type.toption[@ocaml.doc"A string value indicating the communication type. At the moment the type value can assume one of 3 values at the moment chat, web and call."];supportedHours:SupportedHoursList.toption[@ocaml.doc"A JSON-formatted list containing time ranges when support is available."];datesWithoutSupport:DatesWithoutSupportList.toption[@ocaml.doc"A JSON-formatted list containing date and time ranges for periods without support"]}letmake?type_=fun?supportedHours->fun?datesWithoutSupport->fun()->{type_;supportedHours;datesWithoutSupport}letto_valuex=structure_to_value[("type",(Option.mapx.type_~f:Type.to_value));("supportedHours",(Option.mapx.supportedHours~f:SupportedHoursList.to_value));("datesWithoutSupport",(Option.mapx.datesWithoutSupport~f:DatesWithoutSupportList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatesWithoutSupport=(Option.map~f:DatesWithoutSupportList.of_xml)(Xml.childxml_arg0"datesWithoutSupport")inletsupportedHours=(Option.map~f:SupportedHoursList.of_xml)(Xml.childxml_arg0"supportedHours")inlettype_=(Option.map~f:Type.of_xml)(Xml.childxml_arg0"type")inmake?datesWithoutSupport?supportedHours?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatesWithoutSupport=field_mapjson__"datesWithoutSupport"DatesWithoutSupportList.of_jsoninletsupportedHours=field_mapjson__"supportedHours"SupportedHoursList.of_jsoninlettype_=field_mapjson__"type"Type.of_jsoninmake?datesWithoutSupport?supportedHours?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A JSON-formatted object that contains the CommunicationTypeOptions for creating a case for a certain communication channel. It is contained in the response from a DescribeCreateCaseOptions request. CommunicationTypeOptions contains the following fields: datesWithoutSupport - A JSON-formatted list containing date and time ranges for periods without support in UTC time. Date and time format is RFC 3339 : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. supportedHours - A JSON-formatted list containing time ranges when support are available. Time format is RFC 3339 : 'HH:mm:ss.SSS'. type - A string value indicating the communication type that the aforementioned rules apply to. At the moment the type value can assume one of 3 values at the moment chat, web and call."]moduleCaseDetails=structtypenonrect={caseId:CaseId.toption[@ocaml.doc"The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47"];displayId:DisplayId.toption[@ocaml.doc"The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string."];subject:Subject.toption[@ocaml.doc"The subject line for the case in the Amazon Web Services Support Center."];status:Status.toption[@ocaml.doc"The status of the case. Valid values: all-open customer-action-completed opened pending-customer-action reopened resolved unassigned work-in-progress"];serviceCode:ServiceCode.toption[@ocaml.doc"The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by calling DescribeServices."];categoryCode:CategoryCode.toption[@ocaml.doc"The category of problem for the support case."];severityCode:SeverityCode.toption[@ocaml.doc"The code for the severity level returned by the call to DescribeSeverityLevels."];submittedBy:SubmittedBy.toption[@ocaml.doc"The email address of the account that submitted the case."];timeCreated:TimeCreated.toption[@ocaml.doc"The time that the case was created in the Amazon Web Services Support Center."];recentCommunications:RecentCaseCommunications.toption[@ocaml.doc"The five most recent communications between you and Amazon Web Services Support Center, including the IDs of any attachments to the communications. Also includes a nextToken that you can use to retrieve earlier communications."];ccEmailAddresses:CcEmailAddressList.toption[@ocaml.doc"The email addresses that receive copies of communication about the case."];language:Language.toption[@ocaml.doc"The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (\226\128\156zh\226\128\157), English (\"en\"), Japanese (\"ja\") and Korean (\226\128\156ko\226\128\157). You must specify the ISO 639-1 code for the language parameter if you want support in that language."]}letmake?caseId=fun?displayId->fun?subject->fun?status->fun?serviceCode->fun?categoryCode->fun?severityCode->fun?submittedBy->fun?timeCreated->fun?recentCommunications->fun?ccEmailAddresses->fun?language->fun()->{caseId;displayId;subject;status;serviceCode;categoryCode;severityCode;submittedBy;timeCreated;recentCommunications;ccEmailAddresses;language}letto_valuex=structure_to_value[("caseId",(Option.mapx.caseId~f:CaseId.to_value));("displayId",(Option.mapx.displayId~f:DisplayId.to_value));("subject",(Option.mapx.subject~f:Subject.to_value));("status",(Option.mapx.status~f:Status.to_value));("serviceCode",(Option.mapx.serviceCode~f:ServiceCode.to_value));("categoryCode",(Option.mapx.categoryCode~f:CategoryCode.to_value));("severityCode",(Option.mapx.severityCode~f:SeverityCode.to_value));("submittedBy",(Option.mapx.submittedBy~f:SubmittedBy.to_value));("timeCreated",(Option.mapx.timeCreated~f:TimeCreated.to_value));("recentCommunications",(Option.mapx.recentCommunications~f:RecentCaseCommunications.to_value));("ccEmailAddresses",(Option.mapx.ccEmailAddresses~f:CcEmailAddressList.to_value));("language",(Option.mapx.language~f:Language.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlanguage=(Option.map~f:Language.of_xml)(Xml.childxml_arg0"language")inletccEmailAddresses=(Option.map~f:CcEmailAddressList.of_xml)(Xml.childxml_arg0"ccEmailAddresses")inletrecentCommunications=(Option.map~f:RecentCaseCommunications.of_xml)(Xml.childxml_arg0"recentCommunications")inlettimeCreated=(Option.map~f:TimeCreated.of_xml)(Xml.childxml_arg0"timeCreated")inletsubmittedBy=(Option.map~f:SubmittedBy.of_xml)(Xml.childxml_arg0"submittedBy")inletseverityCode=(Option.map~f:SeverityCode.of_xml)(Xml.childxml_arg0"severityCode")inletcategoryCode=(Option.map~f:CategoryCode.of_xml)(Xml.childxml_arg0"categoryCode")inletserviceCode=(Option.map~f:ServiceCode.of_xml)(Xml.childxml_arg0"serviceCode")inletstatus=(Option.map~f:Status.of_xml)(Xml.childxml_arg0"status")inletsubject=(Option.map~f:Subject.of_xml)(Xml.childxml_arg0"subject")inletdisplayId=(Option.map~f:DisplayId.of_xml)(Xml.childxml_arg0"displayId")inletcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inmake?language?ccEmailAddresses?recentCommunications?timeCreated?submittedBy?severityCode?categoryCode?serviceCode?status?subject?displayId?caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlanguage=field_mapjson__"language"Language.of_jsoninletccEmailAddresses=field_mapjson__"ccEmailAddresses"CcEmailAddressList.of_jsoninletrecentCommunications=field_mapjson__"recentCommunications"RecentCaseCommunications.of_jsoninlettimeCreated=field_mapjson__"timeCreated"TimeCreated.of_jsoninletsubmittedBy=field_mapjson__"submittedBy"SubmittedBy.of_jsoninletseverityCode=field_mapjson__"severityCode"SeverityCode.of_jsoninletcategoryCode=field_mapjson__"categoryCode"CategoryCode.of_jsoninletserviceCode=field_mapjson__"serviceCode"ServiceCode.of_jsoninletstatus=field_mapjson__"status"Status.of_jsoninletsubject=field_mapjson__"subject"Subject.of_jsoninletdisplayId=field_mapjson__"displayId"DisplayId.of_jsoninletcaseId=field_mapjson__"caseId"CaseId.of_jsoninmake?language?ccEmailAddresses?recentCommunications?timeCreated?submittedBy?severityCode?categoryCode?serviceCode?status?subject?displayId?caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A JSON-formatted object that contains the metadata for a support case. It is contained in the response from a DescribeCases request. CaseDetails contains the following fields: caseId - The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47. categoryCode - The category of problem for the support case. Corresponds to the CategoryCode values returned by a call to DescribeServices. displayId - The identifier for the case on pages in the Amazon Web Services Support Center. language - The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (\226\128\156zh\226\128\157), English (\"en\"), Japanese (\"ja\") and Korean (\226\128\156ko\226\128\157). You must specify the ISO 639-1 code for the language parameter if you want support in that language. nextToken - A resumption point for pagination. recentCommunications - One or more Communication objects. Fields of these objects are attachments, body, caseId, submittedBy, and timeCreated. serviceCode - The identifier for the Amazon Web Services service that corresponds to the service code defined in the call to DescribeServices. severityCode - The severity code assigned to the case. Contains one of the values returned by the call to DescribeSeverityLevels. The possible values are: low, normal, high, urgent, and critical. status - The status of the case in the Amazon Web Services Support Center. Valid values: all-open customer-action-completed opened pending-customer-action reopened resolved unassigned work-in-progress subject - The subject line of the case. submittedBy - The email address of the account that submitted the case. timeCreated - The time the case was created, in ISO-8601 format."]moduleAttachment=structtypenonrect={fileName:FileName.toption[@ocaml.doc"The name of the attachment file."];data:Data.toption[@ocaml.doc"The content of the attachment file."]}letmake?fileName=fun?data->fun()->{fileName;data}letto_valuex=structure_to_value[("fileName",(Option.mapx.fileName~f:FileName.to_value));("data",(Option.mapx.data~f:Data.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdata=(Option.map~f:Data.of_xml)(Xml.childxml_arg0"data")inletfileName=(Option.map~f:FileName.of_xml)(Xml.childxml_arg0"fileName")inmake?data?fileName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdata=field_mapjson__"data"Data.of_jsoninletfileName=field_mapjson__"fileName"FileName.of_jsoninmake?data?fileName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An attachment to a case communication. The attachment consists of the file name and the content of the file. Each attachment file size should not exceed 5 MB. File types that are supported include the following: pdf, jpeg,.doc, .log, .text"]moduleCaseIdNotFound=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"The requested CaseId could not be located."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested caseId couldn't be located."]moduleCaseStatus=structtypenonrect=stringletcontext_="CaseStatus"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CaseStatus"jletto_json=simple_to_jsonto_valueendmoduleInternalServerError=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"An internal server error occurred."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An internal server error occurred."]moduleThrottlingException=structtypenonrect={message:AvailabilityErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:AvailabilityErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:AvailabilityErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"AvailabilityErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations."]moduleTrustedAdvisorCheckList=structtypenonrect=TrustedAdvisorCheckDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TrustedAdvisorCheckDescription.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:TrustedAdvisorCheckDescription.of_xml)letof_jsonj=list_of_json~kind:"TrustedAdvisorCheckList"~of_json:TrustedAdvisorCheckDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTrustedAdvisorCheckSummaryList=structtypenonrect=TrustedAdvisorCheckSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TrustedAdvisorCheckSummary.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:TrustedAdvisorCheckSummary.of_xml)letof_jsonj=list_of_json~kind:"TrustedAdvisorCheckSummaryList"~of_json:TrustedAdvisorCheckSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTrustedAdvisorCheckResult=structtypenonrect={checkId:String_.toption[@ocaml.doc"The unique identifier for the Trusted Advisor check."];timestamp:String_.toption[@ocaml.doc"The time of the last refresh of the check."];status:String_.toption[@ocaml.doc"The alert status of the check: \"ok\" (green), \"warning\" (yellow), \"error\" (red), or \"not_available\"."];resourcesSummary:TrustedAdvisorResourcesSummary.toption;categorySpecificSummary:TrustedAdvisorCategorySpecificSummary.toption[@ocaml.doc"Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported."];flaggedResources:TrustedAdvisorResourceDetailList.toption[@ocaml.doc"The details about each resource listed in the check result."]}letmake?checkId=fun?timestamp->fun?status->fun?resourcesSummary->fun?categorySpecificSummary->fun?flaggedResources->fun()->{checkId;timestamp;status;resourcesSummary;categorySpecificSummary;flaggedResources}letto_valuex=structure_to_value[("checkId",(Option.mapx.checkId~f:String_.to_value));("timestamp",(Option.mapx.timestamp~f:String_.to_value));("status",(Option.mapx.status~f:String_.to_value));("resourcesSummary",(Option.mapx.resourcesSummary~f:TrustedAdvisorResourcesSummary.to_value));("categorySpecificSummary",(Option.mapx.categorySpecificSummary~f:TrustedAdvisorCategorySpecificSummary.to_value));("flaggedResources",(Option.mapx.flaggedResources~f:TrustedAdvisorResourceDetailList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letflaggedResources=(Option.map~f:TrustedAdvisorResourceDetailList.of_xml)(Xml.childxml_arg0"flaggedResources")inletcategorySpecificSummary=(Option.map~f:TrustedAdvisorCategorySpecificSummary.of_xml)(Xml.childxml_arg0"categorySpecificSummary")inletresourcesSummary=(Option.map~f:TrustedAdvisorResourcesSummary.of_xml)(Xml.childxml_arg0"resourcesSummary")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inlettimestamp=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"timestamp")inletcheckId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"checkId")inmake?flaggedResources?categorySpecificSummary?resourcesSummary?status?timestamp?checkId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letflaggedResources=field_mapjson__"flaggedResources"TrustedAdvisorResourceDetailList.of_jsoninletcategorySpecificSummary=field_mapjson__"categorySpecificSummary"TrustedAdvisorCategorySpecificSummary.of_jsoninletresourcesSummary=field_mapjson__"resourcesSummary"TrustedAdvisorResourcesSummary.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninlettimestamp=field_mapjson__"timestamp"String_.of_jsoninletcheckId=field_mapjson__"checkId"String_.of_jsoninmake?flaggedResources?categorySpecificSummary?resourcesSummary?status?timestamp?checkId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The results of a Trusted Advisor check returned by DescribeTrustedAdvisorCheckResult."]moduleTrustedAdvisorCheckRefreshStatusList=structtypenonrect=TrustedAdvisorCheckRefreshStatus.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TrustedAdvisorCheckRefreshStatus.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:TrustedAdvisorCheckRefreshStatus.of_xml)letof_jsonj=list_of_json~kind:"TrustedAdvisorCheckRefreshStatusList"~of_json:TrustedAdvisorCheckRefreshStatus.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSupportedLanguagesList=structtypenonrect=SupportedLanguage.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(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:SupportedLanguage.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:SupportedLanguage.of_xml)letof_jsonj=list_of_json~kind:"SupportedLanguagesList"~of_json:SupportedLanguage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidatedCategoryCode=structtypenonrect=stringletcontext_="ValidatedCategoryCode"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"ValidatedCategoryCode"jletto_json=simple_to_jsonto_valueendmoduleValidatedIssueTypeString=structtypenonrect=stringletcontext_="ValidatedIssueTypeString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:22)>>=(fun()->check_string_mini~min: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:"ValidatedIssueTypeString"jletto_json=simple_to_jsonto_valueendmoduleValidatedServiceCode=structtypenonrect=stringletcontext_="ValidatedServiceCode"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"ValidatedServiceCode"jletto_json=simple_to_jsonto_valueendmoduleSeverityLevelsList=structtypenonrect=SeverityLevel.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SeverityLevel.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:SeverityLevel.of_xml)letof_jsonj=list_of_json~kind:"SeverityLevelsList"~of_json:SeverityLevel.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceList=structtypenonrect=Service.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Service.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:Service.of_xml)letof_jsonj=list_of_json~kind:"ServiceList"~of_json:Service.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceCodeList=structtypenonrect=ServiceCode.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(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:ServiceCode.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:ServiceCode.of_xml)letof_jsonj=list_of_json~kind:"ServiceCodeList"~of_json:ServiceCode.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCommunicationTypeOptionsList=structtypenonrect=CommunicationTypeOptions.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CommunicationTypeOptions.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:CommunicationTypeOptions.of_xml)letof_jsonj=list_of_json~kind:"CommunicationTypeOptionsList"~of_json:CommunicationTypeOptions.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidatedLanguageAvailability=structtypenonrect=stringletcontext_="ValidatedLanguageAvailability"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"ValidatedLanguageAvailability"jletto_json=simple_to_jsonto_valueendmoduleIssueType=structtypenonrect=stringletcontext_="IssueType"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IssueType"jletto_json=simple_to_jsonto_valueendmoduleAfterTime=structtypenonrect=stringletcontext_="AfterTime"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AfterTime"jletto_json=simple_to_jsonto_valueendmoduleBeforeTime=structtypenonrect=stringletcontext_="BeforeTime"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BeforeTime"jletto_json=simple_to_jsonto_valueendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:10));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_valueendmoduleCaseList=structtypenonrect=CaseDetails.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CaseDetails.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:CaseDetails.of_xml)letof_jsonj=list_of_json~kind:"CaseList"~of_json:CaseDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCaseIdList=structtypenonrect=CaseId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(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:CaseId.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:CaseId.of_xml)letof_jsonj=list_of_json~kind:"CaseIdList"~of_json:CaseId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIncludeCommunications=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleIncludeResolvedCases=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleAttachmentIdNotFound=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"An attachment with the specified ID could not be found."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An attachment with the specified ID could not be found."]moduleDescribeAttachmentLimitExceeded=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"The limit for the number of DescribeAttachment requests in a short period of time has been exceeded."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The limit for the number of DescribeAttachment requests in a short period of time has been exceeded."]moduleAttachmentSetExpired=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"The expiration time of the attachment set has passed. The set expires one hour after it is created."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The expiration time of the attachment set has passed. The set expires 1 hour after it is created."]moduleAttachmentSetIdNotFound=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"An attachment set with the specified ID could not be found."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An attachment set with the specified ID could not be found."]moduleCaseCreationLimitExceeded=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"An error message that indicates that you have exceeded the number of cases you can have open."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The case creation limit for the account has been exceeded."]moduleAttachmentSetId=structtypenonrect=stringletcontext_="AttachmentSetId"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AttachmentSetId"jletto_json=simple_to_jsonto_valueendmoduleCommunicationBody=structtypenonrect=stringletcontext_="CommunicationBody"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:8000)>>=(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:"CommunicationBody"jletto_json=simple_to_jsonto_valueendmoduleResult_=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleAttachmentLimitExceeded=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"The limit for the number of attachment sets created in a short period of time has been exceeded."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The limit for the number of attachment sets created in a short period of time has been exceeded."]moduleAttachmentSetSizeLimitExceeded=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A limit for the size of an attachment set has been exceeded. The limits are three attachments and 5 MB per attachment."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A limit for the size of an attachment set has been exceeded. The limits are three attachments and 5 MB per attachment."]moduleExpiryTime=structtypenonrect=stringletcontext_="ExpiryTime"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ExpiryTime"jletto_json=simple_to_jsonto_valueendmoduleAttachments=structtypenonrect=Attachment.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Attachment.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:Attachment.of_xml)letof_jsonj=list_of_json~kind:"Attachments"~of_json:Attachment.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResolveCaseResponse=structtypenonrect={initialCaseStatus:CaseStatus.toption[@ocaml.doc"The status of the case when the ResolveCase request was sent."];finalCaseStatus:CaseStatus.toption[@ocaml.doc"The status of the case after the ResolveCase request was processed."]}typenonrecerror=[`CaseIdNotFoundofCaseIdNotFound.t|`InternalServerErrorofInternalServerError.t|`Unknown_operation_errorof(string*stringoption)]letmake?initialCaseStatus=fun?finalCaseStatus->fun()->{initialCaseStatus;finalCaseStatus}leterror_of_jsonnamejson=matchnamewith|"CaseIdNotFound"->`CaseIdNotFound(CaseIdNotFound.of_jsonjson)|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CaseIdNotFound"->`CaseIdNotFound(CaseIdNotFound.of_xmlxml)|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CaseIdNotFounde->`Assoc[("error",(`String"CaseIdNotFound"));("details",(CaseIdNotFound.to_jsone))]|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("initialCaseStatus",(Option.mapx.initialCaseStatus~f:CaseStatus.to_value));("finalCaseStatus",(Option.mapx.finalCaseStatus~f:CaseStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfinalCaseStatus=(Option.map~f:CaseStatus.of_xml)(Xml.childxml_arg0"finalCaseStatus")inletinitialCaseStatus=(Option.map~f:CaseStatus.of_xml)(Xml.childxml_arg0"initialCaseStatus")inmake?finalCaseStatus?initialCaseStatus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfinalCaseStatus=field_mapjson__"finalCaseStatus"CaseStatus.of_jsoninletinitialCaseStatus=field_mapjson__"initialCaseStatus"CaseStatus.of_jsoninmake?finalCaseStatus?initialCaseStatus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The status of the case returned by the ResolveCase operation."]moduleResolveCaseRequest=structtypenonrect={caseId:CaseId.toption[@ocaml.doc"The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47"]}letmake?caseId=fun()->{caseId}letto_valuex=structure_to_value[("caseId",(Option.mapx.caseId~f:CaseId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inmake?caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseId=field_mapjson__"caseId"CaseId.of_jsoninmake?caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resolves a support case. This operation takes a caseId and returns the initial and final state of the case. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleRefreshTrustedAdvisorCheckResponse=structtypenonrect={status:TrustedAdvisorCheckRefreshStatus.toption[@ocaml.doc"The current refresh status for a check, including the amount of time until the check is eligible for refresh."]}typenonrecerror=[`InternalServerErrorofInternalServerError.t|`Unknown_operation_errorof(string*stringoption)]letmake?status=fun()->{status}leterror_of_jsonnamejson=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("status",(Option.mapx.status~f:TrustedAdvisorCheckRefreshStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:TrustedAdvisorCheckRefreshStatus.of_xml)(Xml.childxml_arg0"status")inmake?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"status"TrustedAdvisorCheckRefreshStatus.of_jsoninmake?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The current refresh status of a Trusted Advisor check."]moduleRefreshTrustedAdvisorCheckRequest=structtypenonrect={checkId:String_.t[@ocaml.doc"The unique identifier for the Trusted Advisor check to refresh. Specifying the check ID of a check that is automatically refreshed causes an InvalidParameterValue error."]}letcontext_="RefreshTrustedAdvisorCheckRequest"letmake~checkId=fun()->{checkId}letto_valuex=structure_to_value[("checkId",(Some(String_.to_valuex.checkId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcheckId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"checkId")inmake~checkId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcheckId=field_map_exnjson__"checkId"String_.of_jsoninmake~checkId()letto_jsonv=composed_to_jsonto_valuevendmoduleDescribeTrustedAdvisorChecksResponse=structtypenonrect={checks:TrustedAdvisorCheckList.toption[@ocaml.doc"Information about all available Trusted Advisor checks."]}typenonrecerror=[`InternalServerErrorofInternalServerError.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?checks=fun()->{checks}leterror_of_jsonnamejson=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("checks",(Option.mapx.checks~f:TrustedAdvisorCheckList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchecks=(Option.map~f:TrustedAdvisorCheckList.of_xml)(Xml.childxml_arg0"checks")inmake?checks()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchecks=field_mapjson__"checks"TrustedAdvisorCheckList.of_jsoninmake?checks()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the Trusted Advisor checks returned by the DescribeTrustedAdvisorChecks operation."]moduleDescribeTrustedAdvisorChecksRequest=structtypenonrect={language:String_.t[@ocaml.doc"The ISO 639-1 code for the language that you want your checks to appear in. The Amazon Web Services Support API currently supports the following languages for Trusted Advisor: Chinese, Simplified - zh Chinese, Traditional - zh_TW English - en French - fr German - de Indonesian - id Italian - it Japanese - ja Korean - ko Portuguese, Brazilian - pt_BR Spanish - es"]}letcontext_="DescribeTrustedAdvisorChecksRequest"letmake~language=fun()->{language}letto_valuex=structure_to_value[("language",(Some(String_.to_valuex.language)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlanguage=String_.of_xml(Xml.child_exn~context:context_xml_arg0"language")inmake~language()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlanguage=field_map_exnjson__"language"String_.of_jsoninmake~language()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about all available Trusted Advisor checks, including the name, ID, category, description, and metadata. You must specify a language code. The response contains a TrustedAdvisorCheckDescription object for each check. You must set the Amazon Web Services Region to us-east-1. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support. The names and descriptions for Trusted Advisor checks are subject to change. We recommend that you specify the check ID in your code to uniquely identify a check. To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the Amazon Web Services Support User Guide."]moduleDescribeTrustedAdvisorCheckSummariesResponse=structtypenonrect={summaries:TrustedAdvisorCheckSummaryList.toption[@ocaml.doc"The summary information for the requested Trusted Advisor checks."]}typenonrecerror=[`InternalServerErrorofInternalServerError.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?summaries=fun()->{summaries}leterror_of_jsonnamejson=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("summaries",(Option.mapx.summaries~f:TrustedAdvisorCheckSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsummaries=(Option.map~f:TrustedAdvisorCheckSummaryList.of_xml)(Xml.childxml_arg0"summaries")inmake?summaries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsummaries=field_mapjson__"summaries"TrustedAdvisorCheckSummaryList.of_jsoninmake?summaries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The summaries of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckSummaries operation."]moduleDescribeTrustedAdvisorCheckSummariesRequest=structtypenonrect={checkIds:StringList.t[@ocaml.doc"The IDs of the Trusted Advisor checks."]}letcontext_="DescribeTrustedAdvisorCheckSummariesRequest"letmake~checkIds=fun()->{checkIds}letto_valuex=structure_to_value[("checkIds",(Some(StringList.to_valuex.checkIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcheckIds=StringList.of_xml(Xml.child_exn~context:context_xml_arg0"checkIds")inmake~checkIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcheckIds=field_map_exnjson__"checkIds"StringList.of_jsoninmake~checkIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the results for the Trusted Advisor check summaries for the check IDs that you specified. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation. The response contains an array of TrustedAdvisorCheckSummary objects. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support. To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the Amazon Web Services Support User Guide."]moduleDescribeTrustedAdvisorCheckResultResponse=structtypenonrect={result:TrustedAdvisorCheckResult.toption[@ocaml.doc"The detailed results of the Trusted Advisor check."]}typenonrecerror=[`InternalServerErrorofInternalServerError.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?result=fun()->{result}leterror_of_jsonnamejson=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("result",(Option.mapx.result~f:TrustedAdvisorCheckResult.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresult=(Option.map~f:TrustedAdvisorCheckResult.of_xml)(Xml.childxml_arg0"result")inmake?result()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresult=field_mapjson__"result"TrustedAdvisorCheckResult.of_jsoninmake?result()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The result of the Trusted Advisor check returned by the DescribeTrustedAdvisorCheckResult operation."]moduleDescribeTrustedAdvisorCheckResultRequest=structtypenonrect={checkId:String_.t[@ocaml.doc"The unique identifier for the Trusted Advisor check."];language:String_.toption[@ocaml.doc"The ISO 639-1 code for the language that you want your check results to appear in. The Amazon Web Services Support API currently supports the following languages for Trusted Advisor: Chinese, Simplified - zh Chinese, Traditional - zh_TW English - en French - fr German - de Indonesian - id Italian - it Japanese - ja Korean - ko Portuguese, Brazilian - pt_BR Spanish - es"]}letcontext_="DescribeTrustedAdvisorCheckResultRequest"letmake?language=fun~checkId->fun()->{language;checkId}letto_valuex=structure_to_value[("checkId",(Some(String_.to_valuex.checkId)));("language",(Option.mapx.language~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlanguage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"language")inletcheckId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"checkId")inmake?language~checkId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlanguage=field_mapjson__"language"String_.of_jsoninletcheckId=field_map_exnjson__"checkId"String_.of_jsoninmake?language~checkId()letto_jsonv=composed_to_jsonto_valuevendmoduleDescribeTrustedAdvisorCheckRefreshStatusesResponse=structtypenonrect={statuses:TrustedAdvisorCheckRefreshStatusList.toption[@ocaml.doc"The refresh status of the specified Trusted Advisor checks."]}typenonrecerror=[`InternalServerErrorofInternalServerError.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?statuses=fun()->{statuses}leterror_of_jsonnamejson=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("statuses",(Option.mapx.statuses~f:TrustedAdvisorCheckRefreshStatusList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatuses=(Option.map~f:TrustedAdvisorCheckRefreshStatusList.of_xml)(Xml.childxml_arg0"statuses")inmake?statuses()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatuses=field_mapjson__"statuses"TrustedAdvisorCheckRefreshStatusList.of_jsoninmake?statuses()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The statuses of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckRefreshStatuses operation."]moduleDescribeTrustedAdvisorCheckRefreshStatusesRequest=structtypenonrect={checkIds:StringList.t[@ocaml.doc"The IDs of the Trusted Advisor checks to get the status. If you specify the check ID of a check that is automatically refreshed, you might see an InvalidParameterValue error."]}letcontext_="DescribeTrustedAdvisorCheckRefreshStatusesRequest"letmake~checkIds=fun()->{checkIds}letto_valuex=structure_to_value[("checkIds",(Some(StringList.to_valuex.checkIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcheckIds=StringList.of_xml(Xml.child_exn~context:context_xml_arg0"checkIds")inmake~checkIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcheckIds=field_map_exnjson__"checkIds"StringList.of_jsoninmake~checkIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the refresh status of the Trusted Advisor checks that have the specified check IDs. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation. Some checks are refreshed automatically, and you can't return their refresh statuses by using the DescribeTrustedAdvisorCheckRefreshStatuses operation. If you call this operation for these checks, you might see an InvalidParameterValue error. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support. To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the Amazon Web Services Support User Guide."]moduleDescribeSupportedLanguagesResponse=structtypenonrect={supportedLanguages:SupportedLanguagesList.toption[@ocaml.doc"A JSON-formatted array that contains the available ISO 639-1 language codes."]}typenonrecerror=[`InternalServerErrorofInternalServerError.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?supportedLanguages=fun()->{supportedLanguages}leterror_of_jsonnamejson=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("supportedLanguages",(Option.mapx.supportedLanguages~f:SupportedLanguagesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupportedLanguages=(Option.map~f:SupportedLanguagesList.of_xml)(Xml.childxml_arg0"supportedLanguages")inmake?supportedLanguages()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupportedLanguages=field_mapjson__"supportedLanguages"SupportedLanguagesList.of_jsoninmake?supportedLanguages()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of supported languages for a specified categoryCode, issueType and serviceCode. The returned supported languages will include a ISO 639-1 code for the language, and the language display name. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleDescribeSupportedLanguagesRequest=structtypenonrect={issueType:ValidatedIssueTypeString.t[@ocaml.doc"The type of issue for the case. You can specify customer-service or technical."];serviceCode:ValidatedServiceCode.t[@ocaml.doc"The code for the Amazon Web Services service. You can use the DescribeServices operation to get the possible serviceCode values."];categoryCode:ValidatedCategoryCode.t[@ocaml.doc"The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes."]}letcontext_="DescribeSupportedLanguagesRequest"letmake~issueType=fun~serviceCode->fun~categoryCode->fun()->{issueType;serviceCode;categoryCode}letto_valuex=structure_to_value[("issueType",(Some(ValidatedIssueTypeString.to_valuex.issueType)));("serviceCode",(Some(ValidatedServiceCode.to_valuex.serviceCode)));("categoryCode",(Some(ValidatedCategoryCode.to_valuex.categoryCode)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategoryCode=ValidatedCategoryCode.of_xml(Xml.child_exn~context:context_xml_arg0"categoryCode")inletserviceCode=ValidatedServiceCode.of_xml(Xml.child_exn~context:context_xml_arg0"serviceCode")inletissueType=ValidatedIssueTypeString.of_xml(Xml.child_exn~context:context_xml_arg0"issueType")inmake~categoryCode~serviceCode~issueType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategoryCode=field_map_exnjson__"categoryCode"ValidatedCategoryCode.of_jsoninletserviceCode=field_map_exnjson__"serviceCode"ValidatedServiceCode.of_jsoninletissueType=field_map_exnjson__"issueType"ValidatedIssueTypeString.of_jsoninmake~categoryCode~serviceCode~issueType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of supported languages for a specified categoryCode, issueType and serviceCode. The returned supported languages will include a ISO 639-1 code for the language, and the language display name. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleDescribeSeverityLevelsResponse=structtypenonrect={severityLevels:SeverityLevelsList.toption[@ocaml.doc"The available severity levels for the support case. Available severity levels are defined by your service level agreement with Amazon Web Services."]}typenonrecerror=[`InternalServerErrorofInternalServerError.t|`Unknown_operation_errorof(string*stringoption)]letmake?severityLevels=fun()->{severityLevels}leterror_of_jsonnamejson=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("severityLevels",(Option.mapx.severityLevels~f:SeverityLevelsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letseverityLevels=(Option.map~f:SeverityLevelsList.of_xml)(Xml.childxml_arg0"severityLevels")inmake?severityLevels()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letseverityLevels=field_mapjson__"severityLevels"SeverityLevelsList.of_jsoninmake?severityLevels()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The list of severity levels returned by the DescribeSeverityLevels operation."]moduleDescribeSeverityLevelsRequest=structtypenonrect={language:Language.toption[@ocaml.doc"The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (\226\128\156zh\226\128\157), English (\"en\"), Japanese (\"ja\") and Korean (\226\128\156ko\226\128\157). You must specify the ISO 639-1 code for the language parameter if you want support in that language."]}letmake?language=fun()->{language}letto_valuex=structure_to_value[("language",(Option.mapx.language~f:Language.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlanguage=(Option.map~f:Language.of_xml)(Xml.childxml_arg0"language")inmake?language()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlanguage=field_mapjson__"language"Language.of_jsoninmake?language()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the list of severity levels that you can assign to a support case. The severity level for a case is also a field in the CaseDetails data type that you include for a CreateCase request. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleDescribeServicesResponse=structtypenonrect={services:ServiceList.toption[@ocaml.doc"A JSON-formatted list of Amazon Web Services services."]}typenonrecerror=[`InternalServerErrorofInternalServerError.t|`Unknown_operation_errorof(string*stringoption)]letmake?services=fun()->{services}leterror_of_jsonnamejson=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("services",(Option.mapx.services~f:ServiceList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letservices=(Option.map~f:ServiceList.of_xml)(Xml.childxml_arg0"services")inmake?services()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letservices=field_mapjson__"services"ServiceList.of_jsoninmake?services()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The list of Amazon Web Services services returned by the DescribeServices operation."]moduleDescribeServicesRequest=structtypenonrect={serviceCodeList:ServiceCodeList.toption[@ocaml.doc"A JSON-formatted list of service codes available for Amazon Web Services services."];language:Language.toption[@ocaml.doc"The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (\226\128\156zh\226\128\157), English (\"en\"), Japanese (\"ja\") and Korean (\226\128\156ko\226\128\157). You must specify the ISO 639-1 code for the language parameter if you want support in that language."]}letmake?serviceCodeList=fun?language->fun()->{serviceCodeList;language}letto_valuex=structure_to_value[("serviceCodeList",(Option.mapx.serviceCodeList~f:ServiceCodeList.to_value));("language",(Option.mapx.language~f:Language.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlanguage=(Option.map~f:Language.of_xml)(Xml.childxml_arg0"language")inletserviceCodeList=(Option.map~f:ServiceCodeList.of_xml)(Xml.childxml_arg0"serviceCodeList")inmake?language?serviceCodeList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlanguage=field_mapjson__"language"Language.of_jsoninletserviceCodeList=field_mapjson__"serviceCodeList"ServiceCodeList.of_jsoninmake?language?serviceCodeList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the current list of Amazon Web Services services and a list of service categories for each service. You then use service names and categories in your CreateCase requests. Each Amazon Web Services service has its own set of categories. The service codes and category codes correspond to the values that appear in the Service and Category lists on the Amazon Web Services Support Center Create Case page. The values in those fields don't necessarily match the service codes and categories returned by the DescribeServices operation. Always use the service codes and categories that the DescribeServices operation returns, so that you have the most recent set of service and category codes. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleDescribeCreateCaseOptionsResponse=structtypenonrect={languageAvailability:ValidatedLanguageAvailability.toption[@ocaml.doc"Language availability can be any of the following: available best_effort unavailable"];communicationTypes:CommunicationTypeOptionsList.toption[@ocaml.doc"A JSON-formatted array that contains the available communication type options, along with the available support timeframes for the given inputs."]}typenonrecerror=[`InternalServerErrorofInternalServerError.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?languageAvailability=fun?communicationTypes->fun()->{languageAvailability;communicationTypes}leterror_of_jsonnamejson=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("languageAvailability",(Option.mapx.languageAvailability~f:ValidatedLanguageAvailability.to_value));("communicationTypes",(Option.mapx.communicationTypes~f:CommunicationTypeOptionsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcommunicationTypes=(Option.map~f:CommunicationTypeOptionsList.of_xml)(Xml.childxml_arg0"communicationTypes")inletlanguageAvailability=(Option.map~f:ValidatedLanguageAvailability.of_xml)(Xml.childxml_arg0"languageAvailability")inmake?communicationTypes?languageAvailability()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcommunicationTypes=field_mapjson__"communicationTypes"CommunicationTypeOptionsList.of_jsoninletlanguageAvailability=field_mapjson__"languageAvailability"ValidatedLanguageAvailability.of_jsoninmake?communicationTypes?languageAvailability()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of CreateCaseOption types along with the corresponding supported hours and language availability. You can specify the language categoryCode, issueType and serviceCode used to retrieve the CreateCaseOptions. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleDescribeCreateCaseOptionsRequest=structtypenonrect={issueType:IssueType.t[@ocaml.doc"The type of issue for the case. You can specify customer-service or technical. If you don't specify a value, the default is technical."];serviceCode:ServiceCode.t[@ocaml.doc"The code for the Amazon Web Services service. You can use the DescribeServices operation to get the possible serviceCode values."];language:Language.t[@ocaml.doc"The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (\226\128\156zh\226\128\157), English (\"en\"), Japanese (\"ja\") and Korean (\226\128\156ko\226\128\157). You must specify the ISO 639-1 code for the language parameter if you want support in that language."];categoryCode:CategoryCode.t[@ocaml.doc"The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes."]}letcontext_="DescribeCreateCaseOptionsRequest"letmake~issueType=fun~serviceCode->fun~language->fun~categoryCode->fun()->{issueType;serviceCode;language;categoryCode}letto_valuex=structure_to_value[("issueType",(Some(IssueType.to_valuex.issueType)));("serviceCode",(Some(ServiceCode.to_valuex.serviceCode)));("language",(Some(Language.to_valuex.language)));("categoryCode",(Some(CategoryCode.to_valuex.categoryCode)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategoryCode=CategoryCode.of_xml(Xml.child_exn~context:context_xml_arg0"categoryCode")inletlanguage=Language.of_xml(Xml.child_exn~context:context_xml_arg0"language")inletserviceCode=ServiceCode.of_xml(Xml.child_exn~context:context_xml_arg0"serviceCode")inletissueType=IssueType.of_xml(Xml.child_exn~context:context_xml_arg0"issueType")inmake~categoryCode~language~serviceCode~issueType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategoryCode=field_map_exnjson__"categoryCode"CategoryCode.of_jsoninletlanguage=field_map_exnjson__"language"Language.of_jsoninletserviceCode=field_map_exnjson__"serviceCode"ServiceCode.of_jsoninletissueType=field_map_exnjson__"issueType"IssueType.of_jsoninmake~categoryCode~language~serviceCode~issueType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of CreateCaseOption types along with the corresponding supported hours and language availability. You can specify the language categoryCode, issueType and serviceCode used to retrieve the CreateCaseOptions. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleDescribeCommunicationsResponse=structtypenonrect={communications:CommunicationList.toption[@ocaml.doc"The communications for the case."];nextToken:NextToken.toption[@ocaml.doc"A resumption point for pagination."]}typenonrecerror=[`CaseIdNotFoundofCaseIdNotFound.t|`InternalServerErrorofInternalServerError.t|`Unknown_operation_errorof(string*stringoption)]letmake?communications=fun?nextToken->fun()->{communications;nextToken}leterror_of_jsonnamejson=matchnamewith|"CaseIdNotFound"->`CaseIdNotFound(CaseIdNotFound.of_jsonjson)|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CaseIdNotFound"->`CaseIdNotFound(CaseIdNotFound.of_xmlxml)|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CaseIdNotFounde->`Assoc[("error",(`String"CaseIdNotFound"));("details",(CaseIdNotFound.to_jsone))]|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("communications",(Option.mapx.communications~f:CommunicationList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletcommunications=(Option.map~f:CommunicationList.of_xml)(Xml.childxml_arg0"communications")inmake?nextToken?communications()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletcommunications=field_mapjson__"communications"CommunicationList.of_jsoninmake?nextToken?communications()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The communications returned by the DescribeCommunications operation."]moduleDescribeCommunicationsRequest=structtypenonrect={caseId:CaseId.t[@ocaml.doc"The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47"];beforeTime:BeforeTime.toption[@ocaml.doc"The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation."];afterTime:AfterTime.toption[@ocaml.doc"The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation."];nextToken:NextToken.toption[@ocaml.doc"A resumption point for pagination."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return before paginating."]}letcontext_="DescribeCommunicationsRequest"letmake?beforeTime=fun?afterTime->fun?nextToken->fun?maxResults->fun~caseId->fun()->{beforeTime;afterTime;nextToken;maxResults;caseId}letto_valuex=structure_to_value[("caseId",(Some(CaseId.to_valuex.caseId)));("beforeTime",(Option.mapx.beforeTime~f:BeforeTime.to_value));("afterTime",(Option.mapx.afterTime~f:AfterTime.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.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:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletafterTime=(Option.map~f:AfterTime.of_xml)(Xml.childxml_arg0"afterTime")inletbeforeTime=(Option.map~f:BeforeTime.of_xml)(Xml.childxml_arg0"beforeTime")inletcaseId=CaseId.of_xml(Xml.child_exn~context:context_xml_arg0"caseId")inmake?maxResults?nextToken?afterTime?beforeTime~caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletafterTime=field_mapjson__"afterTime"AfterTime.of_jsoninletbeforeTime=field_mapjson__"beforeTime"BeforeTime.of_jsoninletcaseId=field_map_exnjson__"caseId"CaseId.of_jsoninmake?maxResults?nextToken?afterTime?beforeTime~caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns communications and attachments for one or more support cases. Use the afterTime and beforeTime parameters to filter by date. You can use the caseId parameter to restrict the results to a specific case. Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request for data might cause an error. You can use the maxResults and nextToken parameters to control the pagination of the results. Set maxResults to the number of cases that you want to display on each page, and use nextToken to specify the resumption of pagination. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleDescribeCasesResponse=structtypenonrect={cases:CaseList.toption[@ocaml.doc"The details for the cases that match the request."];nextToken:NextToken.toption[@ocaml.doc"A resumption point for pagination."]}typenonrecerror=[`CaseIdNotFoundofCaseIdNotFound.t|`InternalServerErrorofInternalServerError.t|`Unknown_operation_errorof(string*stringoption)]letmake?cases=fun?nextToken->fun()->{cases;nextToken}leterror_of_jsonnamejson=matchnamewith|"CaseIdNotFound"->`CaseIdNotFound(CaseIdNotFound.of_jsonjson)|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CaseIdNotFound"->`CaseIdNotFound(CaseIdNotFound.of_xmlxml)|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CaseIdNotFounde->`Assoc[("error",(`String"CaseIdNotFound"));("details",(CaseIdNotFound.to_jsone))]|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("cases",(Option.mapx.cases~f:CaseList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletcases=(Option.map~f:CaseList.of_xml)(Xml.childxml_arg0"cases")inmake?nextToken?cases()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletcases=field_mapjson__"cases"CaseList.of_jsoninmake?nextToken?cases()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns an array of CaseDetails objects and a nextToken that defines a point for pagination in the result set."]moduleDescribeCasesRequest=structtypenonrect={caseIdList:CaseIdList.toption[@ocaml.doc"A list of ID numbers of the support cases you want returned. The maximum number of cases is 100."];displayId:DisplayId.toption[@ocaml.doc"The ID displayed for a case in the Amazon Web Services Support Center user interface."];afterTime:AfterTime.toption[@ocaml.doc"The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation."];beforeTime:BeforeTime.toption[@ocaml.doc"The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation."];includeResolvedCases:IncludeResolvedCases.toption[@ocaml.doc"Specifies whether to include resolved support cases in the DescribeCases response. By default, resolved cases aren't included."];nextToken:NextToken.toption[@ocaml.doc"A resumption point for pagination."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return before paginating."];language:Language.toption[@ocaml.doc"The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (\226\128\156zh\226\128\157), English (\"en\"), Japanese (\"ja\") and Korean (\226\128\156ko\226\128\157). You must specify the ISO 639-1 code for the language parameter if you want support in that language."];includeCommunications:IncludeCommunications.toption[@ocaml.doc"Specifies whether to include communications in the DescribeCases response. By default, communications are included."]}letmake?caseIdList=fun?displayId->fun?afterTime->fun?beforeTime->fun?includeResolvedCases->fun?nextToken->fun?maxResults->fun?language->fun?includeCommunications->fun()->{caseIdList;displayId;afterTime;beforeTime;includeResolvedCases;nextToken;maxResults;language;includeCommunications}letto_valuex=structure_to_value[("caseIdList",(Option.mapx.caseIdList~f:CaseIdList.to_value));("displayId",(Option.mapx.displayId~f:DisplayId.to_value));("afterTime",(Option.mapx.afterTime~f:AfterTime.to_value));("beforeTime",(Option.mapx.beforeTime~f:BeforeTime.to_value));("includeResolvedCases",(Option.mapx.includeResolvedCases~f:IncludeResolvedCases.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("language",(Option.mapx.language~f:Language.to_value));("includeCommunications",(Option.mapx.includeCommunications~f:IncludeCommunications.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincludeCommunications=(Option.map~f:IncludeCommunications.of_xml)(Xml.childxml_arg0"includeCommunications")inletlanguage=(Option.map~f:Language.of_xml)(Xml.childxml_arg0"language")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletincludeResolvedCases=(Option.map~f:IncludeResolvedCases.of_xml)(Xml.childxml_arg0"includeResolvedCases")inletbeforeTime=(Option.map~f:BeforeTime.of_xml)(Xml.childxml_arg0"beforeTime")inletafterTime=(Option.map~f:AfterTime.of_xml)(Xml.childxml_arg0"afterTime")inletdisplayId=(Option.map~f:DisplayId.of_xml)(Xml.childxml_arg0"displayId")inletcaseIdList=(Option.map~f:CaseIdList.of_xml)(Xml.childxml_arg0"caseIdList")inmake?includeCommunications?language?maxResults?nextToken?includeResolvedCases?beforeTime?afterTime?displayId?caseIdList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincludeCommunications=field_mapjson__"includeCommunications"IncludeCommunications.of_jsoninletlanguage=field_mapjson__"language"Language.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletincludeResolvedCases=field_mapjson__"includeResolvedCases"IncludeResolvedCases.of_jsoninletbeforeTime=field_mapjson__"beforeTime"BeforeTime.of_jsoninletafterTime=field_mapjson__"afterTime"AfterTime.of_jsoninletdisplayId=field_mapjson__"displayId"DisplayId.of_jsoninletcaseIdList=field_mapjson__"caseIdList"CaseIdList.of_jsoninmake?includeCommunications?language?maxResults?nextToken?includeResolvedCases?beforeTime?afterTime?displayId?caseIdList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of cases that you specify by passing one or more case IDs. You can use the afterTime and beforeTime parameters to filter the cases by date. You can set values for the includeResolvedCases and includeCommunications parameters to specify how much information to return. The response returns the following in JSON format: One or more CaseDetails data types. One or more nextToken values, which specify where to paginate the returned records represented by the CaseDetails objects. Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request might return an error. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleDescribeAttachmentResponse=structtypenonrect={attachment:Attachment.toption[@ocaml.doc"This object includes the attachment content and file name. In the previous response syntax, the value for the data parameter appears as blob, which is represented as a base64-encoded string. The value for fileName is the name of the attachment, such as troubleshoot-screenshot.png."]}typenonrecerror=[`AttachmentIdNotFoundofAttachmentIdNotFound.t|`DescribeAttachmentLimitExceededofDescribeAttachmentLimitExceeded.t|`InternalServerErrorofInternalServerError.t|`Unknown_operation_errorof(string*stringoption)]letmake?attachment=fun()->{attachment}leterror_of_jsonnamejson=matchnamewith|"AttachmentIdNotFound"->`AttachmentIdNotFound(AttachmentIdNotFound.of_jsonjson)|"DescribeAttachmentLimitExceeded"->`DescribeAttachmentLimitExceeded(DescribeAttachmentLimitExceeded.of_jsonjson)|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AttachmentIdNotFound"->`AttachmentIdNotFound(AttachmentIdNotFound.of_xmlxml)|"DescribeAttachmentLimitExceeded"->`DescribeAttachmentLimitExceeded(DescribeAttachmentLimitExceeded.of_xmlxml)|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AttachmentIdNotFounde->`Assoc[("error",(`String"AttachmentIdNotFound"));("details",(AttachmentIdNotFound.to_jsone))]|`DescribeAttachmentLimitExceedede->`Assoc[("error",(`String"DescribeAttachmentLimitExceeded"));("details",(DescribeAttachmentLimitExceeded.to_jsone))]|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("attachment",(Option.mapx.attachment~f:Attachment.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattachment=(Option.map~f:Attachment.of_xml)(Xml.childxml_arg0"attachment")inmake?attachment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattachment=field_mapjson__"attachment"Attachment.of_jsoninmake?attachment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The content and file name of the attachment returned by the DescribeAttachment operation."]moduleDescribeAttachmentRequest=structtypenonrect={attachmentId:AttachmentId.t[@ocaml.doc"The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications operation."]}letcontext_="DescribeAttachmentRequest"letmake~attachmentId=fun()->{attachmentId}letto_valuex=structure_to_value[("attachmentId",(Some(AttachmentId.to_valuex.attachmentId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattachmentId=AttachmentId.of_xml(Xml.child_exn~context:context_xml_arg0"attachmentId")inmake~attachmentId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattachmentId=field_map_exnjson__"attachmentId"AttachmentId.of_jsoninmake~attachmentId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the attachment that has the specified ID. Attachments can include screenshots, error logs, or other files that describe your issue. Attachment IDs are generated by the case management system when you add an attachment to a case or case communication. Attachment IDs are returned in the AttachmentDetails objects that are returned by the DescribeCommunications operation. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleCreateCaseResponse=structtypenonrect={caseId:CaseId.toption[@ocaml.doc"The support case ID requested or returned in the call. The case ID is an alphanumeric string in the following format: case-12345678910-2013-c4c1d2bf33c5cf47"]}typenonrecerror=[`AttachmentSetExpiredofAttachmentSetExpired.t|`AttachmentSetIdNotFoundofAttachmentSetIdNotFound.t|`CaseCreationLimitExceededofCaseCreationLimitExceeded.t|`InternalServerErrorofInternalServerError.t|`Unknown_operation_errorof(string*stringoption)]letmake?caseId=fun()->{caseId}leterror_of_jsonnamejson=matchnamewith|"AttachmentSetExpired"->`AttachmentSetExpired(AttachmentSetExpired.of_jsonjson)|"AttachmentSetIdNotFound"->`AttachmentSetIdNotFound(AttachmentSetIdNotFound.of_jsonjson)|"CaseCreationLimitExceeded"->`CaseCreationLimitExceeded(CaseCreationLimitExceeded.of_jsonjson)|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AttachmentSetExpired"->`AttachmentSetExpired(AttachmentSetExpired.of_xmlxml)|"AttachmentSetIdNotFound"->`AttachmentSetIdNotFound(AttachmentSetIdNotFound.of_xmlxml)|"CaseCreationLimitExceeded"->`CaseCreationLimitExceeded(CaseCreationLimitExceeded.of_xmlxml)|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AttachmentSetExpirede->`Assoc[("error",(`String"AttachmentSetExpired"));("details",(AttachmentSetExpired.to_jsone))]|`AttachmentSetIdNotFounde->`Assoc[("error",(`String"AttachmentSetIdNotFound"));("details",(AttachmentSetIdNotFound.to_jsone))]|`CaseCreationLimitExceedede->`Assoc[("error",(`String"CaseCreationLimitExceeded"));("details",(CaseCreationLimitExceeded.to_jsone))]|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("caseId",(Option.mapx.caseId~f:CaseId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inmake?caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcaseId=field_mapjson__"caseId"CaseId.of_jsoninmake?caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The support case ID returned by a successful completion of the CreateCase operation."]moduleCreateCaseRequest=structtypenonrect={subject:Subject.t[@ocaml.doc"The title of the support case. The title appears in the Subject field on the Amazon Web Services Support Center Create Case page."];serviceCode:ServiceCode.toption[@ocaml.doc"The code for the Amazon Web Services service. You can use the DescribeServices operation to get the possible serviceCode values."];severityCode:SeverityCode.toption[@ocaml.doc"A value that indicates the urgency of the case. This value determines the response time according to your service level agreement with Amazon Web Services Support. You can use the DescribeSeverityLevels operation to get the possible values for severityCode. For more information, see SeverityLevel and Choosing a Severity in the Amazon Web Services Support User Guide. The availability of severity levels depends on the support plan for the Amazon Web Services account."];categoryCode:CategoryCode.toption[@ocaml.doc"The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes."];communicationBody:CommunicationBody.t[@ocaml.doc"The communication body text that describes the issue. This text appears in the Description field on the Amazon Web Services Support Center Create Case page."];ccEmailAddresses:CcEmailAddressList.toption[@ocaml.doc"A list of email addresses that Amazon Web Services Support copies on case correspondence. Amazon Web Services Support identifies the account that creates the case when you specify your Amazon Web Services credentials in an HTTP POST method or use the Amazon Web Services SDKs."];language:Language.toption[@ocaml.doc"The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (\226\128\156zh\226\128\157), English (\"en\"), Japanese (\"ja\") and Korean (\226\128\156ko\226\128\157). You must specify the ISO 639-1 code for the language parameter if you want support in that language."];issueType:IssueType.toption[@ocaml.doc"The type of issue for the case. You can specify customer-service or technical. If you don't specify a value, the default is technical."];attachmentSetId:AttachmentSetId.toption[@ocaml.doc"The ID of a set of one or more attachments for the case. Create the set by using the AddAttachmentsToSet operation."]}letcontext_="CreateCaseRequest"letmake?serviceCode=fun?severityCode->fun?categoryCode->fun?ccEmailAddresses->fun?language->fun?issueType->fun?attachmentSetId->fun~subject->fun~communicationBody->fun()->{serviceCode;severityCode;categoryCode;ccEmailAddresses;language;issueType;attachmentSetId;subject;communicationBody}letto_valuex=structure_to_value[("subject",(Some(Subject.to_valuex.subject)));("serviceCode",(Option.mapx.serviceCode~f:ServiceCode.to_value));("severityCode",(Option.mapx.severityCode~f:SeverityCode.to_value));("categoryCode",(Option.mapx.categoryCode~f:CategoryCode.to_value));("communicationBody",(Some(CommunicationBody.to_valuex.communicationBody)));("ccEmailAddresses",(Option.mapx.ccEmailAddresses~f:CcEmailAddressList.to_value));("language",(Option.mapx.language~f:Language.to_value));("issueType",(Option.mapx.issueType~f:IssueType.to_value));("attachmentSetId",(Option.mapx.attachmentSetId~f:AttachmentSetId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattachmentSetId=(Option.map~f:AttachmentSetId.of_xml)(Xml.childxml_arg0"attachmentSetId")inletissueType=(Option.map~f:IssueType.of_xml)(Xml.childxml_arg0"issueType")inletlanguage=(Option.map~f:Language.of_xml)(Xml.childxml_arg0"language")inletccEmailAddresses=(Option.map~f:CcEmailAddressList.of_xml)(Xml.childxml_arg0"ccEmailAddresses")inletcommunicationBody=CommunicationBody.of_xml(Xml.child_exn~context:context_xml_arg0"communicationBody")inletcategoryCode=(Option.map~f:CategoryCode.of_xml)(Xml.childxml_arg0"categoryCode")inletseverityCode=(Option.map~f:SeverityCode.of_xml)(Xml.childxml_arg0"severityCode")inletserviceCode=(Option.map~f:ServiceCode.of_xml)(Xml.childxml_arg0"serviceCode")inletsubject=Subject.of_xml(Xml.child_exn~context:context_xml_arg0"subject")inmake?attachmentSetId?issueType?language?ccEmailAddresses~communicationBody?categoryCode?severityCode?serviceCode~subject()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattachmentSetId=field_mapjson__"attachmentSetId"AttachmentSetId.of_jsoninletissueType=field_mapjson__"issueType"IssueType.of_jsoninletlanguage=field_mapjson__"language"Language.of_jsoninletccEmailAddresses=field_mapjson__"ccEmailAddresses"CcEmailAddressList.of_jsoninletcommunicationBody=field_map_exnjson__"communicationBody"CommunicationBody.of_jsoninletcategoryCode=field_mapjson__"categoryCode"CategoryCode.of_jsoninletseverityCode=field_mapjson__"severityCode"SeverityCode.of_jsoninletserviceCode=field_mapjson__"serviceCode"ServiceCode.of_jsoninletsubject=field_map_exnjson__"subject"Subject.of_jsoninmake?attachmentSetId?issueType?language?ccEmailAddresses~communicationBody?categoryCode?severityCode?serviceCode~subject()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a case in the Amazon Web Services Support Center. This operation is similar to how you create a case in the Amazon Web Services Support Center Create Case page. The Amazon Web Services Support API doesn't support requesting service limit increases. You can submit a service limit increase in the following ways: Submit a request from the Amazon Web Services Support Center Create Case page. Use the Service Quotas RequestServiceQuotaIncrease operation. A successful CreateCase request returns an Amazon Web Services Support case number. You can use the DescribeCases operation and specify the case number to get existing Amazon Web Services Support cases. After you create a case, use the AddCommunicationToCase operation to add additional communication or attachments to an existing case. The caseId is separate from the displayId that appears in the Amazon Web Services Support Center. Use the DescribeCases operation to get the displayId. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleAddCommunicationToCaseResponse=structtypenonrect={result:Result_.toption[@ocaml.doc"True if AddCommunicationToCase succeeds. Otherwise, returns an error."]}typenonrecerror=[`AttachmentSetExpiredofAttachmentSetExpired.t|`AttachmentSetIdNotFoundofAttachmentSetIdNotFound.t|`CaseIdNotFoundofCaseIdNotFound.t|`InternalServerErrorofInternalServerError.t|`Unknown_operation_errorof(string*stringoption)]letmake?result=fun()->{result}leterror_of_jsonnamejson=matchnamewith|"AttachmentSetExpired"->`AttachmentSetExpired(AttachmentSetExpired.of_jsonjson)|"AttachmentSetIdNotFound"->`AttachmentSetIdNotFound(AttachmentSetIdNotFound.of_jsonjson)|"CaseIdNotFound"->`CaseIdNotFound(CaseIdNotFound.of_jsonjson)|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AttachmentSetExpired"->`AttachmentSetExpired(AttachmentSetExpired.of_xmlxml)|"AttachmentSetIdNotFound"->`AttachmentSetIdNotFound(AttachmentSetIdNotFound.of_xmlxml)|"CaseIdNotFound"->`CaseIdNotFound(CaseIdNotFound.of_xmlxml)|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AttachmentSetExpirede->`Assoc[("error",(`String"AttachmentSetExpired"));("details",(AttachmentSetExpired.to_jsone))]|`AttachmentSetIdNotFounde->`Assoc[("error",(`String"AttachmentSetIdNotFound"));("details",(AttachmentSetIdNotFound.to_jsone))]|`CaseIdNotFounde->`Assoc[("error",(`String"CaseIdNotFound"));("details",(CaseIdNotFound.to_jsone))]|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("result",(Option.mapx.result~f:Result_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresult=(Option.map~f:Result_.of_xml)(Xml.childxml_arg0"result")inmake?result()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresult=field_mapjson__"result"Result_.of_jsoninmake?result()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The result of the AddCommunicationToCase operation."]moduleAddCommunicationToCaseRequest=structtypenonrect={caseId:CaseId.toption[@ocaml.doc"The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47"];communicationBody:CommunicationBody.t[@ocaml.doc"The body of an email communication to add to the support case."];ccEmailAddresses:CcEmailAddressList.toption[@ocaml.doc"The email addresses in the CC line of an email to be added to the support case."];attachmentSetId:AttachmentSetId.toption[@ocaml.doc"The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling AddAttachmentsToSet"]}letcontext_="AddCommunicationToCaseRequest"letmake?caseId=fun?ccEmailAddresses->fun?attachmentSetId->fun~communicationBody->fun()->{caseId;ccEmailAddresses;attachmentSetId;communicationBody}letto_valuex=structure_to_value[("caseId",(Option.mapx.caseId~f:CaseId.to_value));("communicationBody",(Some(CommunicationBody.to_valuex.communicationBody)));("ccEmailAddresses",(Option.mapx.ccEmailAddresses~f:CcEmailAddressList.to_value));("attachmentSetId",(Option.mapx.attachmentSetId~f:AttachmentSetId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattachmentSetId=(Option.map~f:AttachmentSetId.of_xml)(Xml.childxml_arg0"attachmentSetId")inletccEmailAddresses=(Option.map~f:CcEmailAddressList.of_xml)(Xml.childxml_arg0"ccEmailAddresses")inletcommunicationBody=CommunicationBody.of_xml(Xml.child_exn~context:context_xml_arg0"communicationBody")inletcaseId=(Option.map~f:CaseId.of_xml)(Xml.childxml_arg0"caseId")inmake?attachmentSetId?ccEmailAddresses~communicationBody?caseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattachmentSetId=field_mapjson__"attachmentSetId"AttachmentSetId.of_jsoninletccEmailAddresses=field_mapjson__"ccEmailAddresses"CcEmailAddressList.of_jsoninletcommunicationBody=field_map_exnjson__"communicationBody"CommunicationBody.of_jsoninletcaseId=field_mapjson__"caseId"CaseId.of_jsoninmake?attachmentSetId?ccEmailAddresses~communicationBody?caseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds additional customer communication to an Amazon Web Services Support case. Use the caseId parameter to identify the case to which to add communication. You can list a set of email addresses to copy on the communication by using the ccEmailAddresses parameter. The communicationBody value contains the text of the communication. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]moduleAddAttachmentsToSetResponse=structtypenonrect={attachmentSetId:AttachmentSetId.toption[@ocaml.doc"The ID of the attachment set. If an attachmentSetId was not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId was specified, the attachments are added to the specified set, if it exists."];expiryTime:ExpiryTime.toption[@ocaml.doc"The time and date when the attachment set expires."]}typenonrecerror=[`AttachmentLimitExceededofAttachmentLimitExceeded.t|`AttachmentSetExpiredofAttachmentSetExpired.t|`AttachmentSetIdNotFoundofAttachmentSetIdNotFound.t|`AttachmentSetSizeLimitExceededofAttachmentSetSizeLimitExceeded.t|`InternalServerErrorofInternalServerError.t|`Unknown_operation_errorof(string*stringoption)]letmake?attachmentSetId=fun?expiryTime->fun()->{attachmentSetId;expiryTime}leterror_of_jsonnamejson=matchnamewith|"AttachmentLimitExceeded"->`AttachmentLimitExceeded(AttachmentLimitExceeded.of_jsonjson)|"AttachmentSetExpired"->`AttachmentSetExpired(AttachmentSetExpired.of_jsonjson)|"AttachmentSetIdNotFound"->`AttachmentSetIdNotFound(AttachmentSetIdNotFound.of_jsonjson)|"AttachmentSetSizeLimitExceeded"->`AttachmentSetSizeLimitExceeded(AttachmentSetSizeLimitExceeded.of_jsonjson)|"InternalServerError"->`InternalServerError(InternalServerError.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AttachmentLimitExceeded"->`AttachmentLimitExceeded(AttachmentLimitExceeded.of_xmlxml)|"AttachmentSetExpired"->`AttachmentSetExpired(AttachmentSetExpired.of_xmlxml)|"AttachmentSetIdNotFound"->`AttachmentSetIdNotFound(AttachmentSetIdNotFound.of_xmlxml)|"AttachmentSetSizeLimitExceeded"->`AttachmentSetSizeLimitExceeded(AttachmentSetSizeLimitExceeded.of_xmlxml)|"InternalServerError"->`InternalServerError(InternalServerError.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AttachmentLimitExceedede->`Assoc[("error",(`String"AttachmentLimitExceeded"));("details",(AttachmentLimitExceeded.to_jsone))]|`AttachmentSetExpirede->`Assoc[("error",(`String"AttachmentSetExpired"));("details",(AttachmentSetExpired.to_jsone))]|`AttachmentSetIdNotFounde->`Assoc[("error",(`String"AttachmentSetIdNotFound"));("details",(AttachmentSetIdNotFound.to_jsone))]|`AttachmentSetSizeLimitExceedede->`Assoc[("error",(`String"AttachmentSetSizeLimitExceeded"));("details",(AttachmentSetSizeLimitExceeded.to_jsone))]|`InternalServerErrore->`Assoc[("error",(`String"InternalServerError"));("details",(InternalServerError.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("attachmentSetId",(Option.mapx.attachmentSetId~f:AttachmentSetId.to_value));("expiryTime",(Option.mapx.expiryTime~f:ExpiryTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexpiryTime=(Option.map~f:ExpiryTime.of_xml)(Xml.childxml_arg0"expiryTime")inletattachmentSetId=(Option.map~f:AttachmentSetId.of_xml)(Xml.childxml_arg0"attachmentSetId")inmake?expiryTime?attachmentSetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexpiryTime=field_mapjson__"expiryTime"ExpiryTime.of_jsoninletattachmentSetId=field_mapjson__"attachmentSetId"AttachmentSetId.of_jsoninmake?expiryTime?attachmentSetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The ID and expiry time of the attachment set returned by the AddAttachmentsToSet operation."]moduleAddAttachmentsToSetRequest=structtypenonrect={attachmentSetId:AttachmentSetId.toption[@ocaml.doc"The ID of the attachment set. If an attachmentSetId is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId is specified, the attachments are added to the specified set, if it exists."];attachments:Attachments.t[@ocaml.doc"One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment. In the Attachment object, use the data parameter to specify the contents of the attachment file. In the previous request syntax, the value for data appear as blob, which is represented as a base64-encoded string. The value for fileName is the name of the attachment, such as troubleshoot-screenshot.png."]}letcontext_="AddAttachmentsToSetRequest"letmake?attachmentSetId=fun~attachments->fun()->{attachmentSetId;attachments}letto_valuex=structure_to_value[("attachmentSetId",(Option.mapx.attachmentSetId~f:AttachmentSetId.to_value));("attachments",(Some(Attachments.to_valuex.attachments)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattachments=Attachments.of_xml(Xml.child_exn~context:context_xml_arg0"attachments")inletattachmentSetId=(Option.map~f:AttachmentSetId.of_xml)(Xml.childxml_arg0"attachmentSetId")inmake~attachments?attachmentSetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattachments=field_map_exnjson__"attachments"Attachments.of_jsoninletattachmentSetId=field_mapjson__"attachmentSetId"AttachmentSetId.of_jsoninmake~attachments?attachmentSetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds one or more attachments to an attachment set. An attachment set is a temporary container for attachments that you add to a case or case communication. The set is available for 1 hour after it's created. The expiryTime returned in the response is when the set expires. You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API. If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support."]