12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551(* 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.simspaceweaverletapiVersion="2022-10-28"letendpointPrefix="simspaceweaver"letserviceFullName="AWS SimSpace Weaver"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"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[]))])moduleLogGroupArn=structtypenonrect=stringletcontext_="LogGroupArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:1600)>>=(fun()->check_patterni~pattern:"^arn:(?:aws|aws-cn|aws-us-gov):log-group:([a-z]{2}-[a-z]+-\\d{1}):(\\d{12})?:role\\/(.+)$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LogGroupArn"jletto_json=simple_to_jsonto_valueendmoduleLifecycleManagementStrategy=structtypenonrect=|Unknown|PerWorker|BySpatialSubdivision|ByRequest|Non_static_idofstringletmakei=iletto_string=function|Unknown->"Unknown"|PerWorker->"PerWorker"|BySpatialSubdivision->"BySpatialSubdivision"|ByRequest->"ByRequest"|Non_static_ids->sletof_string=function|"Unknown"->Unknown|"PerWorker"->PerWorker|"BySpatialSubdivision"->BySpatialSubdivision|"ByRequest"->ByRequest|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration LifecycleManagementStrategy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LifecycleManagementStrategy"j)letto_json=simple_to_jsonto_valueendmoduleSimSpaceWeaverResourceName=structtypenonrect=stringletcontext_="SimSpaceWeaverResourceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_.-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SimSpaceWeaverResourceName"jletto_json=simple_to_jsonto_valueendmoduleClockStatus=structtypenonrect=|UNKNOWN|STARTING|STARTED|STOPPING|STOPPED|Non_static_idofstringletmakei=iletto_string=function|UNKNOWN->"UNKNOWN"|STARTING->"STARTING"|STARTED->"STARTED"|STOPPING->"STOPPING"|STOPPED->"STOPPED"|Non_static_ids->sletof_string=function|"UNKNOWN"->UNKNOWN|"STARTING"->STARTING|"STARTED"->STARTED|"STOPPING"->STOPPING|"STOPPED"->STOPPED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ClockStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ClockStatus"j)letto_json=simple_to_jsonto_valueendmoduleClockTargetStatus=structtypenonrect=|UNKNOWN|STARTED|STOPPED|Non_static_idofstringletmakei=iletto_string=function|UNKNOWN->"UNKNOWN"|STARTED->"STARTED"|STOPPED->"STOPPED"|Non_static_ids->sletof_string=function|"UNKNOWN"->UNKNOWN|"STARTED"->STARTED|"STOPPED"->STOPPED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ClockTargetStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ClockTargetStatus"j)letto_json=simple_to_jsonto_valueendmoduleCloudWatchLogsLogGroup=structtypenonrect={logGroupArn:LogGroupArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log group for the simulation. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. For more information about log groups, see Working with log groups and log streams in the Amazon CloudWatch Logs User Guide."]}letmake?logGroupArn=fun()->{logGroupArn}letto_valuex=structure_to_value[("LogGroupArn",(Option.mapx.logGroupArn~f:LogGroupArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogGroupArn=(Option.map~f:LogGroupArn.of_xml)(Xml.childxml_arg0"LogGroupArn")inmake?logGroupArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogGroupArn=field_mapjson__"LogGroupArn"LogGroupArn.of_jsoninmake?logGroupArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Amazon CloudWatch Logs log group for the simulation. For more information about log groups, see Working with log groups and log streams in the Amazon CloudWatch Logs User Guide."]modulePortNumber=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:65535)>>=(fun()->check_int_mini~min:0));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 PortNumber"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleNonEmptyString=structtypenonrect=stringletcontext_="NonEmptyString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1600)>>=(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:"NonEmptyString"jletto_json=simple_to_jsonto_valueendmoduleSimSpaceWeaverArn=structtypenonrect=stringletcontext_="SimSpaceWeaverArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:1600)>>=(fun()->check_patterni~pattern:"^arn:(?:aws|aws-cn|aws-us-gov):simspaceweaver:([a-z]{2}-[a-z]+-\\d{1}):(\\d{12})?:([a-z]+)\\/(.+)$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SimSpaceWeaverArn"jletto_json=simple_to_jsonto_valueendmoduleSimulationStatus=structtypenonrect=|UNKNOWN|STARTING|STARTED|STOPPING|STOPPED|FAILED|DELETING|DELETED|SNAPSHOT_IN_PROGRESS|Non_static_idofstringletmakei=iletto_string=function|UNKNOWN->"UNKNOWN"|STARTING->"STARTING"|STARTED->"STARTED"|STOPPING->"STOPPING"|STOPPED->"STOPPED"|FAILED->"FAILED"|DELETING->"DELETING"|DELETED->"DELETED"|SNAPSHOT_IN_PROGRESS->"SNAPSHOT_IN_PROGRESS"|Non_static_ids->sletof_string=function|"UNKNOWN"->UNKNOWN|"STARTING"->STARTING|"STARTED"->STARTED|"STOPPING"->STOPPING|"STOPPED"->STOPPED|"FAILED"->FAILED|"DELETING"->DELETING|"DELETED"->DELETED|"SNAPSHOT_IN_PROGRESS"->SNAPSHOT_IN_PROGRESS|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SimulationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SimulationStatus"j)letto_json=simple_to_jsonto_valueendmoduleSimulationTargetStatus=structtypenonrect=|UNKNOWN|STARTED|STOPPED|DELETED|Non_static_idofstringletmakei=iletto_string=function|UNKNOWN->"UNKNOWN"|STARTED->"STARTED"|STOPPED->"STOPPED"|DELETED->"DELETED"|Non_static_ids->sletof_string=function|"UNKNOWN"->UNKNOWN|"STARTED"->STARTED|"STOPPED"->STOPPED|"DELETED"->DELETED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SimulationTargetStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SimulationTargetStatus"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleSimSpaceWeaverLongResourceName=structtypenonrect=stringletcontext_="SimSpaceWeaverLongResourceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_.-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SimSpaceWeaverLongResourceName"jletto_json=simple_to_jsonto_valueendmoduleSimulationAppStatus=structtypenonrect=|STARTING|STARTED|STOPPING|STOPPED|ERROR|UNKNOWN|Non_static_idofstringletmakei=iletto_string=function|STARTING->"STARTING"|STARTED->"STARTED"|STOPPING->"STOPPING"|STOPPED->"STOPPED"|ERROR->"ERROR"|UNKNOWN->"UNKNOWN"|Non_static_ids->sletof_string=function|"STARTING"->STARTING|"STARTED"->STARTED|"STOPPING"->STOPPING|"STOPPED"->STOPPED|"ERROR"->ERROR|"UNKNOWN"->UNKNOWN|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SimulationAppStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SimulationAppStatus"j)letto_json=simple_to_jsonto_valueendmoduleSimulationAppTargetStatus=structtypenonrect=|UNKNOWN|STARTED|STOPPED|Non_static_idofstringletmakei=iletto_string=function|UNKNOWN->"UNKNOWN"|STARTED->"STARTED"|STOPPED->"STOPPED"|Non_static_ids->sletof_string=function|"UNKNOWN"->UNKNOWN|"STARTED"->STARTED|"STOPPED"->STOPPED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SimulationAppTargetStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SimulationAppTargetStatus"j)letto_json=simple_to_jsonto_valueendmoduleDomain=structtypenonrect={lifecycle:LifecycleManagementStrategy.toption[@ocaml.doc"The type of lifecycle management for apps in the domain. Indicates whether apps in this domain are managed (SimSpace Weaver starts and stops the apps) or unmanaged (you must start and stop the apps). Lifecycle types PerWorker \226\128\147 Managed: SimSpace Weaver starts one app on each worker. BySpatialSubdivision \226\128\147 Managed: SimSpace Weaver starts one app for each spatial partition. ByRequest \226\128\147 Unmanaged: You use the StartApp API to start the apps and use the StopApp API to stop the apps."];name:SimSpaceWeaverResourceName.toption[@ocaml.doc"The name of the domain."]}letmake?lifecycle=fun?name->fun()->{lifecycle;name}letto_valuex=structure_to_value[("Lifecycle",(Option.mapx.lifecycle~f:LifecycleManagementStrategy.to_value));("Name",(Option.mapx.name~f:SimSpaceWeaverResourceName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"Name")inletlifecycle=(Option.map~f:LifecycleManagementStrategy.of_xml)(Xml.childxml_arg0"Lifecycle")inmake?name?lifecycle()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"Name"SimSpaceWeaverResourceName.of_jsoninletlifecycle=field_mapjson__"Lifecycle"LifecycleManagementStrategy.of_jsoninmake?name?lifecycle()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of app instances that run the same executable app code and have the same launch options and commands. For more information about domains, see Key concepts: Domains in the SimSpace Weaver User Guide."]moduleSimulationClock=structtypenonrect={status:ClockStatus.toption[@ocaml.doc"The current status of the simulation clock."];targetStatus:ClockTargetStatus.toption[@ocaml.doc"The desired status of the simulation clock."]}letmake?status=fun?targetStatus->fun()->{status;targetStatus}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:ClockStatus.to_value));("TargetStatus",(Option.mapx.targetStatus~f:ClockTargetStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetStatus=(Option.map~f:ClockTargetStatus.of_xml)(Xml.childxml_arg0"TargetStatus")inletstatus=(Option.map~f:ClockStatus.of_xml)(Xml.childxml_arg0"Status")inmake?targetStatus?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetStatus=field_mapjson__"TargetStatus"ClockTargetStatus.of_jsoninletstatus=field_mapjson__"Status"ClockStatus.of_jsoninmake?targetStatus?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Status information about the simulation clock."]moduleLogDestination=structtypenonrect={cloudWatchLogsLogGroup:CloudWatchLogsLogGroup.toption[@ocaml.doc"An Amazon CloudWatch Logs log group that stores simulation log data. For more information about log groups, see Working with log groups and log streams in the Amazon CloudWatch Logs User Guide."]}letmake?cloudWatchLogsLogGroup=fun()->{cloudWatchLogsLogGroup}letto_valuex=structure_to_value[("CloudWatchLogsLogGroup",(Option.mapx.cloudWatchLogsLogGroup~f:CloudWatchLogsLogGroup.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcloudWatchLogsLogGroup=(Option.map~f:CloudWatchLogsLogGroup.of_xml)(Xml.childxml_arg0"CloudWatchLogsLogGroup")inmake?cloudWatchLogsLogGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcloudWatchLogsLogGroup=field_mapjson__"CloudWatchLogsLogGroup"CloudWatchLogsLogGroup.of_jsoninmake?cloudWatchLogsLogGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The location where SimSpace Weaver sends simulation log data."]moduleSimulationAppPortMapping=structtypenonrect={actual:PortNumber.toption[@ocaml.doc"The TCP/UDP port number of the running app. SimSpace Weaver dynamically assigns this port number when the app starts. SimSpace Weaver maps the Declared port to the Actual port. Clients connect to the app using the app's IP address and the Actual port number."];declared:PortNumber.toption[@ocaml.doc"The TCP/UDP port number of the app, declared in the simulation schema. SimSpace Weaver maps the Declared port to the Actual port. The source code for the app should bind to the Declared port."]}letmake?actual=fun?declared->fun()->{actual;declared}letto_valuex=structure_to_value[("Actual",(Option.mapx.actual~f:PortNumber.to_value));("Declared",(Option.mapx.declared~f:PortNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeclared=(Option.map~f:PortNumber.of_xml)(Xml.childxml_arg0"Declared")inletactual=(Option.map~f:PortNumber.of_xml)(Xml.childxml_arg0"Actual")inmake?declared?actual()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeclared=field_mapjson__"Declared"PortNumber.of_jsoninletactual=field_mapjson__"Actual"PortNumber.of_jsoninmake?declared?actual()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of TCP/UDP ports for a custom or service app."]moduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleBucketName=structtypenonrect=stringletcontext_="BucketName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:63)>>=(fun()->check_string_mini~min:3));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BucketName"jletto_json=simple_to_jsonto_valueendmoduleObjectKey=structtypenonrect=stringletcontext_="ObjectKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(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:"ObjectKey"jletto_json=simple_to_jsonto_valueendmoduleLaunchCommandList=structtypenonrect=NonEmptyString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NonEmptyString.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:NonEmptyString.of_xml)letof_jsonj=list_of_json~kind:"LaunchCommandList"~of_json:NonEmptyString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSimulationMetadata=structtypenonrect={arn:SimSpaceWeaverArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the simulation. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference."];creationTime:Timestamp.toption[@ocaml.doc"The time when the simulation was created, expressed as the number of seconds and milliseconds in UTC since the Unix epoch (0:0:0.000, January 1, 1970)."];name:SimSpaceWeaverResourceName.toption[@ocaml.doc"The name of the simulation."];status:SimulationStatus.toption[@ocaml.doc"The current status of the simulation."];targetStatus:SimulationTargetStatus.toption[@ocaml.doc"The desired status of the simulation."]}letmake?arn=fun?creationTime->fun?name->fun?status->fun?targetStatus->fun()->{arn;creationTime;name;status;targetStatus}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:SimSpaceWeaverArn.to_value));("CreationTime",(Option.mapx.creationTime~f:Timestamp.to_value));("Name",(Option.mapx.name~f:SimSpaceWeaverResourceName.to_value));("Status",(Option.mapx.status~f:SimulationStatus.to_value));("TargetStatus",(Option.mapx.targetStatus~f:SimulationTargetStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetStatus=(Option.map~f:SimulationTargetStatus.of_xml)(Xml.childxml_arg0"TargetStatus")inletstatus=(Option.map~f:SimulationStatus.of_xml)(Xml.childxml_arg0"Status")inletname=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"Name")inletcreationTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreationTime")inletarn=(Option.map~f:SimSpaceWeaverArn.of_xml)(Xml.childxml_arg0"Arn")inmake?targetStatus?status?name?creationTime?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetStatus=field_mapjson__"TargetStatus"SimulationTargetStatus.of_jsoninletstatus=field_mapjson__"Status"SimulationStatus.of_jsoninletname=field_mapjson__"Name"SimSpaceWeaverResourceName.of_jsoninletcreationTime=field_mapjson__"CreationTime"Timestamp.of_jsoninletarn=field_mapjson__"Arn"SimSpaceWeaverArn.of_jsoninmake?targetStatus?status?name?creationTime?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of data about the simulation."]moduleSimulationAppMetadata=structtypenonrect={domain:SimSpaceWeaverResourceName.toption[@ocaml.doc"The domain of the app. For more information about domains, see Key concepts: Domains in the SimSpace Weaver User Guide."];name:SimSpaceWeaverLongResourceName.toption[@ocaml.doc"The name of the app."];simulation:SimSpaceWeaverResourceName.toption[@ocaml.doc"The name of the simulation of the app."];status:SimulationAppStatus.toption[@ocaml.doc"The current status of the app."];targetStatus:SimulationAppTargetStatus.toption[@ocaml.doc"The desired status of the app."]}letmake?domain=fun?name->fun?simulation->fun?status->fun?targetStatus->fun()->{domain;name;simulation;status;targetStatus}letto_valuex=structure_to_value[("Domain",(Option.mapx.domain~f:SimSpaceWeaverResourceName.to_value));("Name",(Option.mapx.name~f:SimSpaceWeaverLongResourceName.to_value));("Simulation",(Option.mapx.simulation~f:SimSpaceWeaverResourceName.to_value));("Status",(Option.mapx.status~f:SimulationAppStatus.to_value));("TargetStatus",(Option.mapx.targetStatus~f:SimulationAppTargetStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetStatus=(Option.map~f:SimulationAppTargetStatus.of_xml)(Xml.childxml_arg0"TargetStatus")inletstatus=(Option.map~f:SimulationAppStatus.of_xml)(Xml.childxml_arg0"Status")inletsimulation=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"Simulation")inletname=(Option.map~f:SimSpaceWeaverLongResourceName.of_xml)(Xml.childxml_arg0"Name")inletdomain=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"Domain")inmake?targetStatus?status?simulation?name?domain()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetStatus=field_mapjson__"TargetStatus"SimulationAppTargetStatus.of_jsoninletstatus=field_mapjson__"Status"SimulationAppStatus.of_jsoninletsimulation=field_mapjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninletname=field_mapjson__"Name"SimSpaceWeaverLongResourceName.of_jsoninletdomain=field_mapjson__"Domain"SimSpaceWeaverResourceName.of_jsoninmake?targetStatus?status?simulation?name?domain()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of metadata about the app."]moduleDomainList=structtypenonrect=Domain.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Domain.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:Domain.of_xml)letof_jsonj=list_of_json~kind:"DomainList"~of_json:Domain.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSimulationClockList=structtypenonrect=SimulationClock.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SimulationClock.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:SimulationClock.of_xml)letof_jsonj=list_of_json~kind:"SimulationClockList"~of_json:SimulationClock.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLogDestinations=structtypenonrect=LogDestination.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LogDestination.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:LogDestination.of_xml)letof_jsonj=list_of_json~kind:"LogDestinations"~of_json:LogDestination.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAppPortMappings=structtypenonrect=SimulationAppPortMapping.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SimulationAppPortMapping.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:SimulationAppPortMapping.of_xml)letof_jsonj=list_of_json~kind:"AppPortMappings"~of_json:SimulationAppPortMapping.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleObjectKeyPrefix=structtypenonrect=stringletcontext_="ObjectKeyPrefix"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(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:"ObjectKeyPrefix"jletto_json=simple_to_jsonto_valueendmoduleResourceNotFoundException=structtypenonrect={message:NonEmptyString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"NonEmptyString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmoduleValidationException=structtypenonrect={message:NonEmptyString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"NonEmptyString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTooManyTagsException=structtypenonrect={message:NonEmptyString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"NonEmptyString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmoduleTagMap=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessDeniedException=structtypenonrect={message:NonEmptyString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"NonEmptyString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmoduleConflictException=structtypenonrect={message:NonEmptyString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"NonEmptyString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmoduleInternalServerException=structtypenonrect={message:NonEmptyString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"NonEmptyString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmoduleServiceQuotaExceededException=structtypenonrect={message:NonEmptyString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"NonEmptyString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmoduleUUID=structtypenonrect=stringletcontext_="UUID"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->check_patterni~pattern:"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UUID"jletto_json=simple_to_jsonto_valueendmoduleClientToken=structtypenonrect=stringletcontext_="ClientToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:32)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientToken"jletto_json=simple_to_jsonto_valueendmoduleDescription=structtypenonrect=stringletcontext_="Description"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(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:"Description"jletto_json=simple_to_jsonto_valueendmoduleRoleArn=structtypenonrect=stringletcontext_="RoleArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:1600)>>=(fun()->check_patterni~pattern:"^arn:(?:aws|aws-cn|aws-us-gov):iam::(\\d{12})?:role\\/(.+)$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoleArn"jletto_json=simple_to_jsonto_valueendmoduleS3Location=structtypenonrect={bucketName:BucketName.t[@ocaml.doc"The name of an Amazon S3 bucket. For more information about buckets, see Creating, configuring, and working with Amazon S3 buckets in the Amazon Simple Storage Service User Guide."];objectKey:ObjectKey.t[@ocaml.doc"The key name of an object in Amazon S3. For more information about Amazon S3 objects and object keys, see Uploading, downloading, and working with objects in Amazon S3 in the Amazon Simple Storage Service User Guide."]}letcontext_="S3Location"letmake~bucketName=fun~objectKey->fun()->{bucketName;objectKey}letto_valuex=structure_to_value[("BucketName",(Some(BucketName.to_valuex.bucketName)));("ObjectKey",(Some(ObjectKey.to_valuex.objectKey)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letobjectKey=ObjectKey.of_xml(Xml.child_exn~context:context_xml_arg0"ObjectKey")inletbucketName=BucketName.of_xml(Xml.child_exn~context:context_xml_arg0"BucketName")inmake~objectKey~bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letobjectKey=field_map_exnjson__"ObjectKey"ObjectKey.of_jsoninletbucketName=field_map_exnjson__"BucketName"BucketName.of_jsoninmake~objectKey~bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A location in Amazon Simple Storage Service (Amazon S3) where SimSpace Weaver stores simulation data, such as your app .zip files and schema file. For more information about Amazon S3, see the Amazon Simple Storage Service User Guide ."]moduleTimeToLiveString=structtypenonrect=stringletcontext_="TimeToLiveString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:6)>>=(fun()->check_patterni~pattern:"^\\d{1,5}[mhdMHD]$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TimeToLiveString"jletto_json=simple_to_jsonto_valueendmoduleLaunchOverrides=structtypenonrect={launchCommands:LaunchCommandList.toption[@ocaml.doc"App launch commands and command line parameters that override the launch command configured in the simulation schema."]}letmake?launchCommands=fun()->{launchCommands}letto_valuex=structure_to_value[("LaunchCommands",(Option.mapx.launchCommands~f:LaunchCommandList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlaunchCommands=(Option.map~f:LaunchCommandList.of_xml)(Xml.childxml_arg0"LaunchCommands")inmake?launchCommands()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlaunchCommands=field_mapjson__"LaunchCommands"LaunchCommandList.of_jsoninmake?launchCommands()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Options that apply when the app starts. These options override default behavior."]moduleOptionalString=structtypenonrect=stringletcontext_="OptionalString"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:"OptionalString"jletto_json=simple_to_jsonto_valueendmoduleSimulationList=structtypenonrect=SimulationMetadata.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SimulationMetadata.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:SimulationMetadata.of_xml)letof_jsonj=list_of_json~kind:"SimulationList"~of_json:SimulationMetadata.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePositiveInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:1);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for PositiveInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSimulationAppList=structtypenonrect=SimulationAppMetadata.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SimulationAppMetadata.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:SimulationAppMetadata.of_xml)letof_jsonj=list_of_json~kind:"SimulationAppList"~of_json:SimulationAppMetadata.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLiveSimulationState=structtypenonrect={clocks:SimulationClockList.toption[@ocaml.doc"A list of simulation clocks. At this time, a simulation has only one clock."];domains:DomainList.toption[@ocaml.doc"A list of domains for the simulation. For more information about domains, see Key concepts: Domains in the SimSpace Weaver User Guide."]}letmake?clocks=fun?domains->fun()->{clocks;domains}letto_valuex=structure_to_value[("Clocks",(Option.mapx.clocks~f:SimulationClockList.to_value));("Domains",(Option.mapx.domains~f:DomainList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdomains=(Option.map~f:DomainList.of_xml)(Xml.childxml_arg0"Domains")inletclocks=(Option.map~f:SimulationClockList.of_xml)(Xml.childxml_arg0"Clocks")inmake?domains?clocks()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdomains=field_mapjson__"Domains"DomainList.of_jsoninletclocks=field_mapjson__"Clocks"SimulationClockList.of_jsoninmake?domains?clocks()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of additional state information, such as domain and clock configuration."]moduleLoggingConfiguration=structtypenonrect={destinations:LogDestinations.toption[@ocaml.doc"A list of the locations where SimSpace Weaver sends simulation log data."]}letmake?destinations=fun()->{destinations}letto_valuex=structure_to_value[("Destinations",(Option.mapx.destinations~f:LogDestinations.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdestinations=(Option.map~f:LogDestinations.of_xml)(Xml.childxml_arg0"Destinations")inmake?destinations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdestinations=field_mapjson__"Destinations"LogDestinations.of_jsoninmake?destinations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The logging configuration for a simulation."]moduleSimulationAppEndpointInfo=structtypenonrect={address:NonEmptyString.toption[@ocaml.doc"The IP address of the app. SimSpace Weaver dynamically assigns this IP address when the app starts."];ingressPortMappings:AppPortMappings.toption[@ocaml.doc"The inbound TCP/UDP port numbers of the app. The combination of an IP address and a port number form a network endpoint."]}letmake?address=fun?ingressPortMappings->fun()->{address;ingressPortMappings}letto_valuex=structure_to_value[("Address",(Option.mapx.address~f:NonEmptyString.to_value));("IngressPortMappings",(Option.mapx.ingressPortMappings~f:AppPortMappings.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letingressPortMappings=(Option.map~f:AppPortMappings.of_xml)(Xml.childxml_arg0"IngressPortMappings")inletaddress=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Address")inmake?ingressPortMappings?address()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letingressPortMappings=field_mapjson__"IngressPortMappings"AppPortMappings.of_jsoninletaddress=field_mapjson__"Address"NonEmptyString.of_jsoninmake?ingressPortMappings?address()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the network endpoint that you can use to connect to your custom or service app. For more information about SimSpace Weaver apps, see Key concepts: Apps in the SimSpace Weaver User Guide.."]moduleS3Destination=structtypenonrect={bucketName:BucketName.t[@ocaml.doc"The name of an Amazon S3 bucket. For more information about buckets, see Creating, configuring, and working with Amazon S3 buckets in the Amazon Simple Storage Service User Guide."];objectKeyPrefix:ObjectKeyPrefix.toption[@ocaml.doc"A string prefix for an Amazon S3 object key. It's usually a folder name. For more information about folders in Amazon S3, see Organizing objects in the Amazon S3 console using folders in the Amazon Simple Storage Service User Guide."]}letcontext_="S3Destination"letmake?objectKeyPrefix=fun~bucketName->fun()->{objectKeyPrefix;bucketName}letto_valuex=structure_to_value[("BucketName",(Some(BucketName.to_valuex.bucketName)));("ObjectKeyPrefix",(Option.mapx.objectKeyPrefix~f:ObjectKeyPrefix.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letobjectKeyPrefix=(Option.map~f:ObjectKeyPrefix.of_xml)(Xml.childxml_arg0"ObjectKeyPrefix")inletbucketName=BucketName.of_xml(Xml.child_exn~context:context_xml_arg0"BucketName")inmake?objectKeyPrefix~bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letobjectKeyPrefix=field_mapjson__"ObjectKeyPrefix"ObjectKeyPrefix.of_jsoninletbucketName=field_map_exnjson__"BucketName"BucketName.of_jsoninmake?objectKeyPrefix~bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An Amazon S3 bucket and optional folder (object key prefix) where SimSpace Weaver creates a file."]moduleUntagResourceOutput=structtypenonrect=unittypenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from a SimSpace Weaver resource. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference."]moduleUntagResourceInput=structtypenonrect={resourceArn:SimSpaceWeaverArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource that you want to remove tags from. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference."];tagKeys:TagKeyList.t[@ocaml.doc"A list of tag keys to remove from the resource."]}letcontext_="UntagResourceInput"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("ResourceArn",(Some(SimSpaceWeaverArn.to_valuex.resourceArn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=SimSpaceWeaverArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"SimSpaceWeaverArn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from a SimSpace Weaver resource. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference."]moduleTagResourceOutput=structtypenonrect=unittypenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyTagsExceptionofTooManyTagsException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyTagsExceptione->`Assoc[("error",(`String"TooManyTagsException"));("details",(TooManyTagsException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds tags to a SimSpace Weaver resource. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference."]moduleTagResourceInput=structtypenonrect={resourceArn:SimSpaceWeaverArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource that you want to add tags to. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference."];tags:TagMap.t[@ocaml.doc"A list of tags to apply to the resource."]}letcontext_="TagResourceInput"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("ResourceArn",(Some(SimSpaceWeaverArn.to_valuex.resourceArn)));("Tags",(Some(TagMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceArn=SimSpaceWeaverArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagMap.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"SimSpaceWeaverArn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds tags to a SimSpace Weaver resource. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference."]moduleStopSimulationOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the given simulation. You can't restart a simulation after you stop it. If you want to restart a simulation, then you must stop it, delete it, and start a new instance of it."]moduleStopSimulationInput=structtypenonrect={simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation."]}letcontext_="StopSimulationInput"letmake~simulation=fun()->{simulation}letto_valuex=structure_to_value[("Simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"Simulation")inmake~simulation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninmake~simulation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the given simulation. You can't restart a simulation after you stop it. If you want to restart a simulation, then you must stop it, delete it, and start a new instance of it."]moduleStopClockOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the simulation clock."]moduleStopClockInput=structtypenonrect={simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation."]}letcontext_="StopClockInput"letmake~simulation=fun()->{simulation}letto_valuex=structure_to_value[("Simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"Simulation")inmake~simulation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninmake~simulation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the simulation clock."]moduleStopAppOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the given custom app and shuts down all of its allocated compute resources."]moduleStopAppInput=structtypenonrect={app:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the app."];domain:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the domain of the app."];simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation of the app."]}letcontext_="StopAppInput"letmake~app=fun~domain->fun~simulation->fun()->{app;domain;simulation}letto_valuex=structure_to_value[("App",(Some(SimSpaceWeaverResourceName.to_valuex.app)));("Domain",(Some(SimSpaceWeaverResourceName.to_valuex.domain)));("Simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"Simulation")inletdomain=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"Domain")inletapp=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"App")inmake~simulation~domain~app()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninletdomain=field_map_exnjson__"Domain"SimSpaceWeaverResourceName.of_jsoninletapp=field_map_exnjson__"App"SimSpaceWeaverResourceName.of_jsoninmake~simulation~domain~app()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the given custom app and shuts down all of its allocated compute resources."]moduleStartSimulationOutput=structtypenonrect={arn:SimSpaceWeaverArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the simulation. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference."];creationTime:Timestamp.toption[@ocaml.doc"The time when the simulation was created, expressed as the number of seconds and milliseconds in UTC since the Unix epoch (0:0:0.000, January 1, 1970)."];executionId:UUID.toption[@ocaml.doc"A universally unique identifier (UUID) for this simulation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?creationTime->fun?executionId->fun()->{arn;creationTime;executionId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:SimSpaceWeaverArn.to_value));("CreationTime",(Option.mapx.creationTime~f:Timestamp.to_value));("ExecutionId",(Option.mapx.executionId~f:UUID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"ExecutionId")inletcreationTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreationTime")inletarn=(Option.map~f:SimSpaceWeaverArn.of_xml)(Xml.childxml_arg0"Arn")inmake?executionId?creationTime?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionId=field_mapjson__"ExecutionId"UUID.of_jsoninletcreationTime=field_mapjson__"CreationTime"Timestamp.of_jsoninletarn=field_mapjson__"Arn"SimSpaceWeaverArn.of_jsoninmake?executionId?creationTime?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a simulation with the given name. You must choose to start your simulation from a schema or from a snapshot. For more information about the schema, see the schema reference in the SimSpace Weaver User Guide. For more information about snapshots, see Snapshots in the SimSpace Weaver User Guide."]moduleStartSimulationInput=structtypenonrect={clientToken:ClientToken.toption[@ocaml.doc"A value that you provide to ensure that repeated calls to this API operation using the same parameters complete only once. A ClientToken is also known as an idempotency token. A ClientToken expires after 24 hours."];description:Description.toption[@ocaml.doc"The description of the simulation."];maximumDuration:TimeToLiveString.toption[@ocaml.doc"The maximum running time of the simulation, specified as a number of minutes (m or M), hours (h or H), or days (d or D). The simulation stops when it reaches this limit. The maximum value is 14D, or its equivalent in the other units. The default value is 14D. A value equivalent to 0 makes the simulation immediately transition to Stopping as soon as it reaches Started."];name:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation."];roleArn:RoleArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation assumes to perform actions. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see IAM roles in the Identity and Access Management User Guide."];schemaS3Location:S3Location.toption[@ocaml.doc"The location of the simulation schema in Amazon Simple Storage Service (Amazon S3). For more information about Amazon S3, see the Amazon Simple Storage Service User Guide . Provide a SchemaS3Location to start your simulation from a schema. If you provide a SchemaS3Location then you can't provide a SnapshotS3Location."];snapshotS3Location:S3Location.toption[@ocaml.doc"The location of the snapshot .zip file in Amazon Simple Storage Service (Amazon S3). For more information about Amazon S3, see the Amazon Simple Storage Service User Guide . Provide a SnapshotS3Location to start your simulation from a snapshot. The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation. If you provide a SnapshotS3Location then you can't provide a SchemaS3Location."];tags:TagMap.toption[@ocaml.doc"A list of tags for the simulation. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference."]}letcontext_="StartSimulationInput"letmake?clientToken=fun?description->fun?maximumDuration->fun?schemaS3Location->fun?snapshotS3Location->fun?tags->fun~name->fun~roleArn->fun()->{clientToken;description;maximumDuration;schemaS3Location;snapshotS3Location;tags;name;roleArn}letto_valuex=structure_to_value[("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("Description",(Option.mapx.description~f:Description.to_value));("MaximumDuration",(Option.mapx.maximumDuration~f:TimeToLiveString.to_value));("Name",(Some(SimSpaceWeaverResourceName.to_valuex.name)));("RoleArn",(Some(RoleArn.to_valuex.roleArn)));("SchemaS3Location",(Option.mapx.schemaS3Location~f:S3Location.to_value));("SnapshotS3Location",(Option.mapx.snapshotS3Location~f:S3Location.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletsnapshotS3Location=(Option.map~f:S3Location.of_xml)(Xml.childxml_arg0"SnapshotS3Location")inletschemaS3Location=(Option.map~f:S3Location.of_xml)(Xml.childxml_arg0"SchemaS3Location")inletroleArn=RoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"RoleArn")inletname=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inletmaximumDuration=(Option.map~f:TimeToLiveString.of_xml)(Xml.childxml_arg0"MaximumDuration")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inmake?tags?snapshotS3Location?schemaS3Location~roleArn~name?maximumDuration?description?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninletsnapshotS3Location=field_mapjson__"SnapshotS3Location"S3Location.of_jsoninletschemaS3Location=field_mapjson__"SchemaS3Location"S3Location.of_jsoninletroleArn=field_map_exnjson__"RoleArn"RoleArn.of_jsoninletname=field_map_exnjson__"Name"SimSpaceWeaverResourceName.of_jsoninletmaximumDuration=field_mapjson__"MaximumDuration"TimeToLiveString.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninmake?tags?snapshotS3Location?schemaS3Location~roleArn~name?maximumDuration?description?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a simulation with the given name. You must choose to start your simulation from a schema or from a snapshot. For more information about the schema, see the schema reference in the SimSpace Weaver User Guide. For more information about snapshots, see Snapshots in the SimSpace Weaver User Guide."]moduleStartClockOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts the simulation clock."]moduleStartClockInput=structtypenonrect={simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation."]}letcontext_="StartClockInput"letmake~simulation=fun()->{simulation}letto_valuex=structure_to_value[("Simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"Simulation")inmake~simulation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninmake~simulation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts the simulation clock."]moduleStartAppOutput=structtypenonrect={domain:SimSpaceWeaverResourceName.toption[@ocaml.doc"The name of the domain of the app."];name:SimSpaceWeaverResourceName.toption[@ocaml.doc"The name of the app."];simulation:SimSpaceWeaverResourceName.toption[@ocaml.doc"The name of the simulation of the app."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?domain=fun?name->fun?simulation->fun()->{domain;name;simulation}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Domain",(Option.mapx.domain~f:SimSpaceWeaverResourceName.to_value));("Name",(Option.mapx.name~f:SimSpaceWeaverResourceName.to_value));("Simulation",(Option.mapx.simulation~f:SimSpaceWeaverResourceName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"Simulation")inletname=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"Name")inletdomain=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"Domain")inmake?simulation?name?domain()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_mapjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninletname=field_mapjson__"Name"SimSpaceWeaverResourceName.of_jsoninletdomain=field_mapjson__"Domain"SimSpaceWeaverResourceName.of_jsoninmake?simulation?name?domain()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a custom app with the configuration specified in the simulation schema."]moduleStartAppInput=structtypenonrect={clientToken:ClientToken.toption[@ocaml.doc"A value that you provide to ensure that repeated calls to this API operation using the same parameters complete only once. A ClientToken is also known as an idempotency token. A ClientToken expires after 24 hours."];description:Description.toption[@ocaml.doc"The description of the app."];domain:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the domain of the app."];launchOverrides:LaunchOverrides.toption;name:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the app."];simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation of the app."]}letcontext_="StartAppInput"letmake?clientToken=fun?description->fun?launchOverrides->fun~domain->fun~name->fun~simulation->fun()->{clientToken;description;launchOverrides;domain;name;simulation}letto_valuex=structure_to_value[("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("Description",(Option.mapx.description~f:Description.to_value));("Domain",(Some(SimSpaceWeaverResourceName.to_valuex.domain)));("LaunchOverrides",(Option.mapx.launchOverrides~f:LaunchOverrides.to_value));("Name",(Some(SimSpaceWeaverResourceName.to_valuex.name)));("Simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"Simulation")inletname=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inletlaunchOverrides=(Option.map~f:LaunchOverrides.of_xml)(Xml.childxml_arg0"LaunchOverrides")inletdomain=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"Domain")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inmake~simulation~name?launchOverrides~domain?description?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninletname=field_map_exnjson__"Name"SimSpaceWeaverResourceName.of_jsoninletlaunchOverrides=field_mapjson__"LaunchOverrides"LaunchOverrides.of_jsoninletdomain=field_map_exnjson__"Domain"SimSpaceWeaverResourceName.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninmake~simulation~name?launchOverrides~domain?description?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a custom app with the configuration specified in the simulation schema."]moduleListTagsForResourceOutput=structtypenonrect={tags:TagMap.toption[@ocaml.doc"The list of tags for the resource."]}typenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all tags on a SimSpace Weaver resource."]moduleListTagsForResourceInput=structtypenonrect={resourceArn:SimSpaceWeaverArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference."]}letcontext_="ListTagsForResourceInput"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(SimSpaceWeaverArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=SimSpaceWeaverArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"SimSpaceWeaverArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all tags on a SimSpace Weaver resource."]moduleListSimulationsOutput=structtypenonrect={nextToken:OptionalString.toption[@ocaml.doc"If SimSpace Weaver returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error."];simulations:SimulationList.toption[@ocaml.doc"The list of simulations."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?simulations->fun()->{nextToken;simulations}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:OptionalString.to_value));("Simulations",(Option.mapx.simulations~f:SimulationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulations=(Option.map~f:SimulationList.of_xml)(Xml.childxml_arg0"Simulations")inletnextToken=(Option.map~f:OptionalString.of_xml)(Xml.childxml_arg0"NextToken")inmake?simulations?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulations=field_mapjson__"Simulations"SimulationList.of_jsoninletnextToken=field_mapjson__"NextToken"OptionalString.of_jsoninmake?simulations?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the SimSpace Weaver simulations in the Amazon Web Services account used to make the API call."]moduleListSimulationsInput=structtypenonrect={maxResults:PositiveInteger.toption[@ocaml.doc"The maximum number of simulations to list."];nextToken:OptionalString.toption[@ocaml.doc"If SimSpace Weaver returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:PositiveInteger.to_value));("nextToken",(Option.mapx.nextToken~f:OptionalString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:OptionalString.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:PositiveInteger.of_xml)(Xml.childxml_arg0"maxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"OptionalString.of_jsoninletmaxResults=field_mapjson__"MaxResults"PositiveInteger.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the SimSpace Weaver simulations in the Amazon Web Services account used to make the API call."]moduleListAppsOutput=structtypenonrect={apps:SimulationAppList.toption[@ocaml.doc"The list of apps for the given simulation and domain."];nextToken:OptionalString.toption[@ocaml.doc"If SimSpace Weaver returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?apps=fun?nextToken->fun()->{apps;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Apps",(Option.mapx.apps~f:SimulationAppList.to_value));("NextToken",(Option.mapx.nextToken~f:OptionalString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:OptionalString.of_xml)(Xml.childxml_arg0"NextToken")inletapps=(Option.map~f:SimulationAppList.of_xml)(Xml.childxml_arg0"Apps")inmake?nextToken?apps()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"OptionalString.of_jsoninletapps=field_mapjson__"Apps"SimulationAppList.of_jsoninmake?nextToken?apps()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all custom apps or service apps for the given simulation and domain."]moduleListAppsInput=structtypenonrect={domain:SimSpaceWeaverResourceName.toption[@ocaml.doc"The name of the domain that you want to list apps for."];maxResults:PositiveInteger.toption[@ocaml.doc"The maximum number of apps to list."];nextToken:OptionalString.toption[@ocaml.doc"If SimSpace Weaver returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error."];simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation that you want to list apps for."]}letcontext_="ListAppsInput"letmake?domain=fun?maxResults->fun?nextToken->fun~simulation->fun()->{domain;maxResults;nextToken;simulation}letto_valuex=structure_to_value[("domain",(Option.mapx.domain~f:SimSpaceWeaverResourceName.to_value));("maxResults",(Option.mapx.maxResults~f:PositiveInteger.to_value));("nextToken",(Option.mapx.nextToken~f:OptionalString.to_value));("simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"simulation")inletnextToken=(Option.map~f:OptionalString.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:PositiveInteger.of_xml)(Xml.childxml_arg0"maxResults")inletdomain=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"domain")inmake~simulation?nextToken?maxResults?domain()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninletnextToken=field_mapjson__"NextToken"OptionalString.of_jsoninletmaxResults=field_mapjson__"MaxResults"PositiveInteger.of_jsoninletdomain=field_mapjson__"Domain"SimSpaceWeaverResourceName.of_jsoninmake~simulation?nextToken?maxResults?domain()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all custom apps or service apps for the given simulation and domain."]moduleDescribeSimulationOutput=structtypenonrect={arn:SimSpaceWeaverArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the simulation. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference."];creationTime:Timestamp.toption[@ocaml.doc"The time when the simulation was created, expressed as the number of seconds and milliseconds in UTC since the Unix epoch (0:0:0.000, January 1, 1970)."];description:Description.toption[@ocaml.doc"The description of the simulation."];executionId:UUID.toption[@ocaml.doc"A universally unique identifier (UUID) for this simulation."];liveSimulationState:LiveSimulationState.toption[@ocaml.doc"A collection of additional state information, such as domain and clock configuration."];loggingConfiguration:LoggingConfiguration.toption[@ocaml.doc"Settings that control how SimSpace Weaver handles your simulation log data."];maximumDuration:TimeToLiveString.toption[@ocaml.doc"The maximum running time of the simulation, specified as a number of minutes (m or M), hours (h or H), or days (d or D). The simulation stops when it reaches this limit. The maximum value is 14D, or its equivalent in the other units. The default value is 14D. A value equivalent to 0 makes the simulation immediately transition to Stopping as soon as it reaches Started."];name:SimSpaceWeaverResourceName.toption[@ocaml.doc"The name of the simulation."];roleArn:RoleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation assumes to perform actions. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see IAM roles in the Identity and Access Management User Guide."];schemaError:OptionalString.toption[@ocaml.doc"An error message that SimSpace Weaver returns only if there is a problem with the simulation schema."];schemaS3Location:S3Location.toption[@ocaml.doc"The location of the simulation schema in Amazon Simple Storage Service (Amazon S3). For more information about Amazon S3, see the Amazon Simple Storage Service User Guide ."];snapshotS3Location:S3Location.toption;startError:OptionalString.toption[@ocaml.doc"An error message that SimSpace Weaver returns only if a problem occurs when the simulation is in the STARTING state."];status:SimulationStatus.toption[@ocaml.doc"The current lifecycle state of the simulation."];targetStatus:SimulationTargetStatus.toption[@ocaml.doc"The desired lifecycle state of the simulation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?creationTime->fun?description->fun?executionId->fun?liveSimulationState->fun?loggingConfiguration->fun?maximumDuration->fun?name->fun?roleArn->fun?schemaError->fun?schemaS3Location->fun?snapshotS3Location->fun?startError->fun?status->fun?targetStatus->fun()->{arn;creationTime;description;executionId;liveSimulationState;loggingConfiguration;maximumDuration;name;roleArn;schemaError;schemaS3Location;snapshotS3Location;startError;status;targetStatus}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:SimSpaceWeaverArn.to_value));("CreationTime",(Option.mapx.creationTime~f:Timestamp.to_value));("Description",(Option.mapx.description~f:Description.to_value));("ExecutionId",(Option.mapx.executionId~f:UUID.to_value));("LiveSimulationState",(Option.mapx.liveSimulationState~f:LiveSimulationState.to_value));("LoggingConfiguration",(Option.mapx.loggingConfiguration~f:LoggingConfiguration.to_value));("MaximumDuration",(Option.mapx.maximumDuration~f:TimeToLiveString.to_value));("Name",(Option.mapx.name~f:SimSpaceWeaverResourceName.to_value));("RoleArn",(Option.mapx.roleArn~f:RoleArn.to_value));("SchemaError",(Option.mapx.schemaError~f:OptionalString.to_value));("SchemaS3Location",(Option.mapx.schemaS3Location~f:S3Location.to_value));("SnapshotS3Location",(Option.mapx.snapshotS3Location~f:S3Location.to_value));("StartError",(Option.mapx.startError~f:OptionalString.to_value));("Status",(Option.mapx.status~f:SimulationStatus.to_value));("TargetStatus",(Option.mapx.targetStatus~f:SimulationTargetStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetStatus=(Option.map~f:SimulationTargetStatus.of_xml)(Xml.childxml_arg0"TargetStatus")inletstatus=(Option.map~f:SimulationStatus.of_xml)(Xml.childxml_arg0"Status")inletstartError=(Option.map~f:OptionalString.of_xml)(Xml.childxml_arg0"StartError")inletsnapshotS3Location=(Option.map~f:S3Location.of_xml)(Xml.childxml_arg0"SnapshotS3Location")inletschemaS3Location=(Option.map~f:S3Location.of_xml)(Xml.childxml_arg0"SchemaS3Location")inletschemaError=(Option.map~f:OptionalString.of_xml)(Xml.childxml_arg0"SchemaError")inletroleArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"RoleArn")inletname=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"Name")inletmaximumDuration=(Option.map~f:TimeToLiveString.of_xml)(Xml.childxml_arg0"MaximumDuration")inletloggingConfiguration=(Option.map~f:LoggingConfiguration.of_xml)(Xml.childxml_arg0"LoggingConfiguration")inletliveSimulationState=(Option.map~f:LiveSimulationState.of_xml)(Xml.childxml_arg0"LiveSimulationState")inletexecutionId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"ExecutionId")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inletcreationTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreationTime")inletarn=(Option.map~f:SimSpaceWeaverArn.of_xml)(Xml.childxml_arg0"Arn")inmake?targetStatus?status?startError?snapshotS3Location?schemaS3Location?schemaError?roleArn?name?maximumDuration?loggingConfiguration?liveSimulationState?executionId?description?creationTime?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetStatus=field_mapjson__"TargetStatus"SimulationTargetStatus.of_jsoninletstatus=field_mapjson__"Status"SimulationStatus.of_jsoninletstartError=field_mapjson__"StartError"OptionalString.of_jsoninletsnapshotS3Location=field_mapjson__"SnapshotS3Location"S3Location.of_jsoninletschemaS3Location=field_mapjson__"SchemaS3Location"S3Location.of_jsoninletschemaError=field_mapjson__"SchemaError"OptionalString.of_jsoninletroleArn=field_mapjson__"RoleArn"RoleArn.of_jsoninletname=field_mapjson__"Name"SimSpaceWeaverResourceName.of_jsoninletmaximumDuration=field_mapjson__"MaximumDuration"TimeToLiveString.of_jsoninletloggingConfiguration=field_mapjson__"LoggingConfiguration"LoggingConfiguration.of_jsoninletliveSimulationState=field_mapjson__"LiveSimulationState"LiveSimulationState.of_jsoninletexecutionId=field_mapjson__"ExecutionId"UUID.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninletcreationTime=field_mapjson__"CreationTime"Timestamp.of_jsoninletarn=field_mapjson__"Arn"SimSpaceWeaverArn.of_jsoninmake?targetStatus?status?startError?snapshotS3Location?schemaS3Location?schemaError?roleArn?name?maximumDuration?loggingConfiguration?liveSimulationState?executionId?description?creationTime?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the current state of the given simulation."]moduleDescribeSimulationInput=structtypenonrect={simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation."]}letcontext_="DescribeSimulationInput"letmake~simulation=fun()->{simulation}letto_valuex=structure_to_value[("simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"simulation")inmake~simulation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninmake~simulation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the current state of the given simulation."]moduleDescribeAppOutput=structtypenonrect={description:Description.toption[@ocaml.doc"The description of the app."];domain:SimSpaceWeaverResourceName.toption[@ocaml.doc"The name of the domain of the app."];endpointInfo:SimulationAppEndpointInfo.toption[@ocaml.doc"Information about the network endpoint for the custom app. You can use the endpoint to connect to the custom app."];launchOverrides:LaunchOverrides.toption;name:SimSpaceWeaverLongResourceName.toption[@ocaml.doc"The name of the app."];simulation:SimSpaceWeaverResourceName.toption[@ocaml.doc"The name of the simulation of the app."];status:SimulationAppStatus.toption[@ocaml.doc"The current lifecycle state of the custom app."];targetStatus:SimulationAppTargetStatus.toption[@ocaml.doc"The desired lifecycle state of the custom app."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?description=fun?domain->fun?endpointInfo->fun?launchOverrides->fun?name->fun?simulation->fun?status->fun?targetStatus->fun()->{description;domain;endpointInfo;launchOverrides;name;simulation;status;targetStatus}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Description",(Option.mapx.description~f:Description.to_value));("Domain",(Option.mapx.domain~f:SimSpaceWeaverResourceName.to_value));("EndpointInfo",(Option.mapx.endpointInfo~f:SimulationAppEndpointInfo.to_value));("LaunchOverrides",(Option.mapx.launchOverrides~f:LaunchOverrides.to_value));("Name",(Option.mapx.name~f:SimSpaceWeaverLongResourceName.to_value));("Simulation",(Option.mapx.simulation~f:SimSpaceWeaverResourceName.to_value));("Status",(Option.mapx.status~f:SimulationAppStatus.to_value));("TargetStatus",(Option.mapx.targetStatus~f:SimulationAppTargetStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetStatus=(Option.map~f:SimulationAppTargetStatus.of_xml)(Xml.childxml_arg0"TargetStatus")inletstatus=(Option.map~f:SimulationAppStatus.of_xml)(Xml.childxml_arg0"Status")inletsimulation=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"Simulation")inletname=(Option.map~f:SimSpaceWeaverLongResourceName.of_xml)(Xml.childxml_arg0"Name")inletlaunchOverrides=(Option.map~f:LaunchOverrides.of_xml)(Xml.childxml_arg0"LaunchOverrides")inletendpointInfo=(Option.map~f:SimulationAppEndpointInfo.of_xml)(Xml.childxml_arg0"EndpointInfo")inletdomain=(Option.map~f:SimSpaceWeaverResourceName.of_xml)(Xml.childxml_arg0"Domain")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"Description")inmake?targetStatus?status?simulation?name?launchOverrides?endpointInfo?domain?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetStatus=field_mapjson__"TargetStatus"SimulationAppTargetStatus.of_jsoninletstatus=field_mapjson__"Status"SimulationAppStatus.of_jsoninletsimulation=field_mapjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninletname=field_mapjson__"Name"SimSpaceWeaverLongResourceName.of_jsoninletlaunchOverrides=field_mapjson__"LaunchOverrides"LaunchOverrides.of_jsoninletendpointInfo=field_mapjson__"EndpointInfo"SimulationAppEndpointInfo.of_jsoninletdomain=field_mapjson__"Domain"SimSpaceWeaverResourceName.of_jsoninletdescription=field_mapjson__"Description"Description.of_jsoninmake?targetStatus?status?simulation?name?launchOverrides?endpointInfo?domain?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the state of the given custom app."]moduleDescribeAppInput=structtypenonrect={app:SimSpaceWeaverLongResourceName.t[@ocaml.doc"The name of the app."];domain:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the domain of the app."];simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation of the app."]}letcontext_="DescribeAppInput"letmake~app=fun~domain->fun~simulation->fun()->{app;domain;simulation}letto_valuex=structure_to_value[("app",(Some(SimSpaceWeaverLongResourceName.to_valuex.app)));("domain",(Some(SimSpaceWeaverResourceName.to_valuex.domain)));("simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"simulation")inletdomain=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"domain")inletapp=SimSpaceWeaverLongResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"app")inmake~simulation~domain~app()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninletdomain=field_map_exnjson__"Domain"SimSpaceWeaverResourceName.of_jsoninletapp=field_map_exnjson__"App"SimSpaceWeaverLongResourceName.of_jsoninmake~simulation~domain~app()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the state of the given custom app."]moduleDeleteSimulationOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes all SimSpace Weaver resources assigned to the given simulation. Your simulation uses resources in other Amazon Web Services. This API operation doesn't delete resources in other Amazon Web Services."]moduleDeleteSimulationInput=structtypenonrect={simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation."]}letcontext_="DeleteSimulationInput"letmake~simulation=fun()->{simulation}letto_valuex=structure_to_value[("simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"simulation")inmake~simulation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninmake~simulation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes all SimSpace Weaver resources assigned to the given simulation. Your simulation uses resources in other Amazon Web Services. This API operation doesn't delete resources in other Amazon Web Services."]moduleDeleteAppOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the instance of the given custom app."]moduleDeleteAppInput=structtypenonrect={app:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the app."];domain:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the domain of the app."];simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation of the app."]}letcontext_="DeleteAppInput"letmake~app=fun~domain->fun~simulation->fun()->{app;domain;simulation}letto_valuex=structure_to_value[("app",(Some(SimSpaceWeaverResourceName.to_valuex.app)));("domain",(Some(SimSpaceWeaverResourceName.to_valuex.domain)));("simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"simulation")inletdomain=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"domain")inletapp=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"app")inmake~simulation~domain~app()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninletdomain=field_map_exnjson__"Domain"SimSpaceWeaverResourceName.of_jsoninletapp=field_map_exnjson__"App"SimSpaceWeaverResourceName.of_jsoninmake~simulation~domain~app()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the instance of the given custom app."]moduleCreateSnapshotOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a snapshot of the specified simulation. A snapshot is a file that contains simulation state data at a specific time. The state data saved in a snapshot includes entity data from the State Fabric, the simulation configuration specified in the schema, and the clock tick number. You can use the snapshot to initialize a new simulation. For more information about snapshots, see Snapshots in the SimSpace Weaver User Guide. You specify a Destination when you create a snapshot. The Destination is the name of an Amazon S3 bucket and an optional ObjectKeyPrefix. The ObjectKeyPrefix is usually the name of a folder in the bucket. SimSpace Weaver creates a snapshot folder inside the Destination and places the snapshot file there. The snapshot file is an Amazon S3 object. It has an object key with the form: object-key-prefix/snapshot/simulation-name-YYMMdd-HHmm-ss.zip, where: YY is the 2-digit year MM is the 2-digit month dd is the 2-digit day of the month HH is the 2-digit hour (24-hour clock) mm is the 2-digit minutes ss is the 2-digit seconds"]moduleCreateSnapshotInput=structtypenonrect={destination:S3Destination.t[@ocaml.doc"The Amazon S3 bucket and optional folder (object key prefix) where SimSpace Weaver creates the snapshot file. The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation."];simulation:SimSpaceWeaverResourceName.t[@ocaml.doc"The name of the simulation."]}letcontext_="CreateSnapshotInput"letmake~destination=fun~simulation->fun()->{destination;simulation}letto_valuex=structure_to_value[("Destination",(Some(S3Destination.to_valuex.destination)));("Simulation",(Some(SimSpaceWeaverResourceName.to_valuex.simulation)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimulation=SimSpaceWeaverResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"Simulation")inletdestination=S3Destination.of_xml(Xml.child_exn~context:context_xml_arg0"Destination")inmake~simulation~destination()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimulation=field_map_exnjson__"Simulation"SimSpaceWeaverResourceName.of_jsoninletdestination=field_map_exnjson__"Destination"S3Destination.of_jsoninmake~simulation~destination()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a snapshot of the specified simulation. A snapshot is a file that contains simulation state data at a specific time. The state data saved in a snapshot includes entity data from the State Fabric, the simulation configuration specified in the schema, and the clock tick number. You can use the snapshot to initialize a new simulation. For more information about snapshots, see Snapshots in the SimSpace Weaver User Guide. You specify a Destination when you create a snapshot. The Destination is the name of an Amazon S3 bucket and an optional ObjectKeyPrefix. The ObjectKeyPrefix is usually the name of a folder in the bucket. SimSpace Weaver creates a snapshot folder inside the Destination and places the snapshot file there. The snapshot file is an Amazon S3 object. It has an object key with the form: object-key-prefix/snapshot/simulation-name-YYMMdd-HHmm-ss.zip, where: YY is the 2-digit year MM is the 2-digit month dd is the 2-digit day of the month HH is the 2-digit hour (24-hour clock) mm is the 2-digit minutes ss is the 2-digit seconds"]