1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370(* 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.snow_device_managementletapiVersion="2021-08-04"letendpointPrefix="snow-device-management"letserviceFullName="AWS Snow Device Management"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[]))])moduleAttachmentStatus=structtypenonrect=|ATTACHING|ATTACHED|DETACHING|DETACHED|Non_static_idofstringletmakei=iletto_string=function|ATTACHING->"ATTACHING"|ATTACHED->"ATTACHED"|DETACHING->"DETACHING"|DETACHED->"DETACHED"|Non_static_ids->sletof_string=function|"ATTACHING"->ATTACHING|"ATTACHED"->ATTACHED|"DETACHING"->DETACHING|"DETACHED"->DETACHED|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 AttachmentStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AttachmentStatus"j)letto_json=simple_to_jsonto_valueendmoduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_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_valueendmoduleEbsInstanceBlockDevice=structtypenonrect={attachTime:Timestamp.toption[@ocaml.doc"When the attachment was initiated."];deleteOnTermination:Boolean.toption[@ocaml.doc"A value that indicates whether the volume is deleted on instance termination."];status:AttachmentStatus.toption[@ocaml.doc"The attachment state."];volumeId:String_.toption[@ocaml.doc"The ID of the Amazon EBS volume."]}letmake?attachTime=fun?deleteOnTermination->fun?status->fun?volumeId->fun()->{attachTime;deleteOnTermination;status;volumeId}letto_valuex=structure_to_value[("attachTime",(Option.mapx.attachTime~f:Timestamp.to_value));("deleteOnTermination",(Option.mapx.deleteOnTermination~f:Boolean.to_value));("status",(Option.mapx.status~f:AttachmentStatus.to_value));("volumeId",(Option.mapx.volumeId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvolumeId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"volumeId")inletstatus=(Option.map~f:AttachmentStatus.of_xml)(Xml.childxml_arg0"status")inletdeleteOnTermination=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"deleteOnTermination")inletattachTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"attachTime")inmake?volumeId?status?deleteOnTermination?attachTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvolumeId=field_mapjson__"volumeId"String_.of_jsoninletstatus=field_mapjson__"status"AttachmentStatus.of_jsoninletdeleteOnTermination=field_mapjson__"deleteOnTermination"Boolean.of_jsoninletattachTime=field_mapjson__"attachTime"Timestamp.of_jsoninmake?volumeId?status?deleteOnTermination?attachTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a parameter used to set up an Amazon Elastic Block Store (Amazon EBS) volume in a block device mapping."]moduleInteger=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleInstanceBlockDeviceMapping=structtypenonrect={deviceName:String_.toption[@ocaml.doc"The block device name."];ebs:EbsInstanceBlockDevice.toption[@ocaml.doc"The parameters used to automatically set up Amazon Elastic Block Store (Amazon EBS) volumes when the instance is launched."]}letmake?deviceName=fun?ebs->fun()->{deviceName;ebs}letto_valuex=structure_to_value[("deviceName",(Option.mapx.deviceName~f:String_.to_value));("ebs",(Option.mapx.ebs~f:EbsInstanceBlockDevice.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letebs=(Option.map~f:EbsInstanceBlockDevice.of_xml)(Xml.childxml_arg0"ebs")inletdeviceName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"deviceName")inmake?ebs?deviceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letebs=field_mapjson__"ebs"EbsInstanceBlockDevice.of_jsoninletdeviceName=field_mapjson__"deviceName"String_.of_jsoninmake?ebs?deviceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The description of a block device mapping."]moduleInstanceStateName=structtypenonrect=|PENDING|RUNNING|SHUTTING_DOWN|TERMINATED|STOPPING|STOPPED|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|RUNNING->"RUNNING"|SHUTTING_DOWN->"SHUTTING_DOWN"|TERMINATED->"TERMINATED"|STOPPING->"STOPPING"|STOPPED->"STOPPED"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"RUNNING"->RUNNING|"SHUTTING_DOWN"->SHUTTING_DOWN|"TERMINATED"->TERMINATED|"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 InstanceStateName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"InstanceStateName"j)letto_json=simple_to_jsonto_valueendmoduleSecurityGroupIdentifier=structtypenonrect={groupId:String_.toption[@ocaml.doc"The security group ID."];groupName:String_.toption[@ocaml.doc"The security group name."]}letmake?groupId=fun?groupName->fun()->{groupId;groupName}letto_valuex=structure_to_value[("groupId",(Option.mapx.groupId~f:String_.to_value));("groupName",(Option.mapx.groupName~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"groupName")inletgroupId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"groupId")inmake?groupName?groupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupName=field_mapjson__"groupName"String_.of_jsoninletgroupId=field_mapjson__"groupId"String_.of_jsoninmake?groupName?groupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the device's security group."]moduleCpuOptions=structtypenonrect={coreCount:Integer.toption[@ocaml.doc"The number of cores that the CPU can use."];threadsPerCore:Integer.toption[@ocaml.doc"The number of threads per core in the CPU."]}letmake?coreCount=fun?threadsPerCore->fun()->{coreCount;threadsPerCore}letto_valuex=structure_to_value[("coreCount",(Option.mapx.coreCount~f:Integer.to_value));("threadsPerCore",(Option.mapx.threadsPerCore~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letthreadsPerCore=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"threadsPerCore")inletcoreCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"coreCount")inmake?threadsPerCore?coreCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letthreadsPerCore=field_mapjson__"threadsPerCore"Integer.of_jsoninletcoreCount=field_mapjson__"coreCount"Integer.of_jsoninmake?threadsPerCore?coreCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The options for how a device's CPU is configured."]moduleInstanceBlockDeviceMappingList=structtypenonrect=InstanceBlockDeviceMapping.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:InstanceBlockDeviceMapping.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:InstanceBlockDeviceMapping.of_xml)letof_jsonj=list_of_json~kind:"InstanceBlockDeviceMappingList"~of_json:InstanceBlockDeviceMapping.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInstanceState=structtypenonrect={code:Integer.toption[@ocaml.doc"The state of the instance as a 16-bit unsigned integer. The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored. The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255. The valid values for the instance state code are all in the range of the low byte. These values are: 0 : pending 16 : running 32 : shutting-down 48 : terminated 64 : stopping 80 : stopped You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal."];name:InstanceStateName.toption[@ocaml.doc"The current state of the instance."]}letmake?code=fun?name->fun()->{code;name}letto_valuex=structure_to_value[("code",(Option.mapx.code~f:Integer.to_value));("name",(Option.mapx.name~f:InstanceStateName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:InstanceStateName.of_xml)(Xml.childxml_arg0"name")inletcode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"code")inmake?name?code()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"InstanceStateName.of_jsoninletcode=field_mapjson__"code"Integer.of_jsoninmake?name?code()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The description of the current state of an instance."]moduleSecurityGroupIdentifierList=structtypenonrect=SecurityGroupIdentifier.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SecurityGroupIdentifier.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:SecurityGroupIdentifier.of_xml)letof_jsonj=list_of_json~kind:"SecurityGroupIdentifierList"~of_json:SecurityGroupIdentifier.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagMap=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTaskId=structtypenonrect=stringletcontext_="TaskId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(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:"TaskId"jletto_json=simple_to_jsonto_valueendmoduleTaskState=structtypenonrect=|IN_PROGRESS|CANCELED|COMPLETED|Non_static_idofstringletmakei=iletto_string=function|IN_PROGRESS->"IN_PROGRESS"|CANCELED->"CANCELED"|COMPLETED->"COMPLETED"|Non_static_ids->sletof_string=function|"IN_PROGRESS"->IN_PROGRESS|"CANCELED"->CANCELED|"COMPLETED"->COMPLETED|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 TaskState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TaskState"j)letto_json=simple_to_jsonto_valueendmoduleExecutionId=structtypenonrect=stringletcontext_="ExecutionId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(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:"ExecutionId"jletto_json=simple_to_jsonto_valueendmoduleExecutionState=structtypenonrect=|QUEUED|IN_PROGRESS|CANCELED|FAILED|SUCCEEDED|REJECTED|TIMED_OUT|Non_static_idofstringletmakei=iletto_string=function|QUEUED->"QUEUED"|IN_PROGRESS->"IN_PROGRESS"|CANCELED->"CANCELED"|FAILED->"FAILED"|SUCCEEDED->"SUCCEEDED"|REJECTED->"REJECTED"|TIMED_OUT->"TIMED_OUT"|Non_static_ids->sletof_string=function|"QUEUED"->QUEUED|"IN_PROGRESS"->IN_PROGRESS|"CANCELED"->CANCELED|"FAILED"->FAILED|"SUCCEEDED"->SUCCEEDED|"REJECTED"->REJECTED|"TIMED_OUT"->TIMED_OUT|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 ExecutionState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionState"j)letto_json=simple_to_jsonto_valueendmoduleManagedDeviceId=structtypenonrect=stringletcontext_="ManagedDeviceId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(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:"ManagedDeviceId"jletto_json=simple_to_jsonto_valueendmoduleCapacityNameString=structtypenonrect=stringletcontext_="CapacityNameString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CapacityNameString"jletto_json=simple_to_jsonto_valueendmoduleCapacityUnitString=structtypenonrect=stringletcontext_="CapacityUnitString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:20)>>=(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:"CapacityUnitString"jletto_json=simple_to_jsonto_valueendmoduleLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleIpAddressAssignment=structtypenonrect=|DHCP|STATIC|Non_static_idofstringletmakei=iletto_string=function|DHCP->"DHCP"|STATIC->"STATIC"|Non_static_ids->sletof_string=function|"DHCP"->DHCP|"STATIC"->STATIC|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 IpAddressAssignment"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"IpAddressAssignment"j)letto_json=simple_to_jsonto_valueendmodulePhysicalConnectorType=structtypenonrect=|RJ45|SFP_PLUS|QSFP|RJ45_2|WIFI|Non_static_idofstringletmakei=iletto_string=function|RJ45->"RJ45"|SFP_PLUS->"SFP_PLUS"|QSFP->"QSFP"|RJ45_2->"RJ45_2"|WIFI->"WIFI"|Non_static_ids->sletof_string=function|"RJ45"->RJ45|"SFP_PLUS"->SFP_PLUS|"QSFP"->QSFP|"RJ45_2"->RJ45_2|"WIFI"->WIFI|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 PhysicalConnectorType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PhysicalConnectorType"j)letto_json=simple_to_jsonto_valueendmoduleInstance=structtypenonrect={amiLaunchIndex:Integer.toption[@ocaml.doc"The Amazon Machine Image (AMI) launch index, which you can use to find this instance in the launch group."];blockDeviceMappings:InstanceBlockDeviceMappingList.toption[@ocaml.doc"Any block device mapping entries for the instance."];cpuOptions:CpuOptions.toption[@ocaml.doc"The CPU options for the instance."];createdAt:Timestamp.toption[@ocaml.doc"When the instance was created."];imageId:String_.toption[@ocaml.doc"The ID of the AMI used to launch the instance."];instanceId:String_.toption[@ocaml.doc"The ID of the instance."];instanceType:String_.toption[@ocaml.doc"The instance type."];privateIpAddress:String_.toption[@ocaml.doc"The private IPv4 address assigned to the instance."];publicIpAddress:String_.toption[@ocaml.doc"The public IPv4 address assigned to the instance."];rootDeviceName:String_.toption[@ocaml.doc"The device name of the root device volume (for example, /dev/sda1)."];securityGroups:SecurityGroupIdentifierList.toption[@ocaml.doc"The security groups for the instance."];state:InstanceState.toption;updatedAt:Timestamp.toption[@ocaml.doc"When the instance was last updated."]}letmake?amiLaunchIndex=fun?blockDeviceMappings->fun?cpuOptions->fun?createdAt->fun?imageId->fun?instanceId->fun?instanceType->fun?privateIpAddress->fun?publicIpAddress->fun?rootDeviceName->fun?securityGroups->fun?state->fun?updatedAt->fun()->{amiLaunchIndex;blockDeviceMappings;cpuOptions;createdAt;imageId;instanceId;instanceType;privateIpAddress;publicIpAddress;rootDeviceName;securityGroups;state;updatedAt}letto_valuex=structure_to_value[("amiLaunchIndex",(Option.mapx.amiLaunchIndex~f:Integer.to_value));("blockDeviceMappings",(Option.mapx.blockDeviceMappings~f:InstanceBlockDeviceMappingList.to_value));("cpuOptions",(Option.mapx.cpuOptions~f:CpuOptions.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("imageId",(Option.mapx.imageId~f:String_.to_value));("instanceId",(Option.mapx.instanceId~f:String_.to_value));("instanceType",(Option.mapx.instanceType~f:String_.to_value));("privateIpAddress",(Option.mapx.privateIpAddress~f:String_.to_value));("publicIpAddress",(Option.mapx.publicIpAddress~f:String_.to_value));("rootDeviceName",(Option.mapx.rootDeviceName~f:String_.to_value));("securityGroups",(Option.mapx.securityGroups~f:SecurityGroupIdentifierList.to_value));("state",(Option.mapx.state~f:InstanceState.to_value));("updatedAt",(Option.mapx.updatedAt~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletstate=(Option.map~f:InstanceState.of_xml)(Xml.childxml_arg0"state")inletsecurityGroups=(Option.map~f:SecurityGroupIdentifierList.of_xml)(Xml.childxml_arg0"securityGroups")inletrootDeviceName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"rootDeviceName")inletpublicIpAddress=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"publicIpAddress")inletprivateIpAddress=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"privateIpAddress")inletinstanceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"instanceType")inletinstanceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"instanceId")inletimageId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"imageId")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletcpuOptions=(Option.map~f:CpuOptions.of_xml)(Xml.childxml_arg0"cpuOptions")inletblockDeviceMappings=(Option.map~f:InstanceBlockDeviceMappingList.of_xml)(Xml.childxml_arg0"blockDeviceMappings")inletamiLaunchIndex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"amiLaunchIndex")inmake?updatedAt?state?securityGroups?rootDeviceName?publicIpAddress?privateIpAddress?instanceType?instanceId?imageId?createdAt?cpuOptions?blockDeviceMappings?amiLaunchIndex()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedAt=field_mapjson__"updatedAt"Timestamp.of_jsoninletstate=field_mapjson__"state"InstanceState.of_jsoninletsecurityGroups=field_mapjson__"securityGroups"SecurityGroupIdentifierList.of_jsoninletrootDeviceName=field_mapjson__"rootDeviceName"String_.of_jsoninletpublicIpAddress=field_mapjson__"publicIpAddress"String_.of_jsoninletprivateIpAddress=field_mapjson__"privateIpAddress"String_.of_jsoninletinstanceType=field_mapjson__"instanceType"String_.of_jsoninletinstanceId=field_mapjson__"instanceId"String_.of_jsoninletimageId=field_mapjson__"imageId"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletcpuOptions=field_mapjson__"cpuOptions"CpuOptions.of_jsoninletblockDeviceMappings=field_mapjson__"blockDeviceMappings"InstanceBlockDeviceMappingList.of_jsoninletamiLaunchIndex=field_mapjson__"amiLaunchIndex"Integer.of_jsoninmake?updatedAt?state?securityGroups?rootDeviceName?publicIpAddress?privateIpAddress?instanceType?instanceId?imageId?createdAt?cpuOptions?blockDeviceMappings?amiLaunchIndex()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The description of an instance. Currently, Amazon EC2 instances are the only supported instance type."]moduleTaskSummary=structtypenonrect={state:TaskState.toption[@ocaml.doc"The state of the task assigned to one or many devices."];tags:TagMap.toption[@ocaml.doc"Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment."];taskArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the task."];taskId:TaskId.toption[@ocaml.doc"The task ID."]}letmake?state=fun?tags->fun?taskArn->fun?taskId->fun()->{state;tags;taskArn;taskId}letto_valuex=structure_to_value[("state",(Option.mapx.state~f:TaskState.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value));("taskArn",(Option.mapx.taskArn~f:String_.to_value));("taskId",(Option.mapx.taskId~f:TaskId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=(Option.map~f:TaskId.of_xml)(Xml.childxml_arg0"taskId")inlettaskArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskArn")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletstate=(Option.map~f:TaskState.of_xml)(Xml.childxml_arg0"state")inmake?taskId?taskArn?tags?state()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_mapjson__"taskId"TaskId.of_jsoninlettaskArn=field_mapjson__"taskArn"String_.of_jsoninlettags=field_mapjson__"tags"TagMap.of_jsoninletstate=field_mapjson__"state"TaskState.of_jsoninmake?taskId?taskArn?tags?state()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the task assigned to one or many devices."]moduleExecutionSummary=structtypenonrect={executionId:ExecutionId.toption[@ocaml.doc"The ID of the execution."];managedDeviceId:ManagedDeviceId.toption[@ocaml.doc"The ID of the managed device that the task is being executed on."];state:ExecutionState.toption[@ocaml.doc"The state of the execution."];taskId:TaskId.toption[@ocaml.doc"The ID of the task."]}letmake?executionId=fun?managedDeviceId->fun?state->fun?taskId->fun()->{executionId;managedDeviceId;state;taskId}letto_valuex=structure_to_value[("executionId",(Option.mapx.executionId~f:ExecutionId.to_value));("managedDeviceId",(Option.mapx.managedDeviceId~f:ManagedDeviceId.to_value));("state",(Option.mapx.state~f:ExecutionState.to_value));("taskId",(Option.mapx.taskId~f:TaskId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=(Option.map~f:TaskId.of_xml)(Xml.childxml_arg0"taskId")inletstate=(Option.map~f:ExecutionState.of_xml)(Xml.childxml_arg0"state")inletmanagedDeviceId=(Option.map~f:ManagedDeviceId.of_xml)(Xml.childxml_arg0"managedDeviceId")inletexecutionId=(Option.map~f:ExecutionId.of_xml)(Xml.childxml_arg0"executionId")inmake?taskId?state?managedDeviceId?executionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_mapjson__"taskId"TaskId.of_jsoninletstate=field_mapjson__"state"ExecutionState.of_jsoninletmanagedDeviceId=field_mapjson__"managedDeviceId"ManagedDeviceId.of_jsoninletexecutionId=field_mapjson__"executionId"ExecutionId.of_jsoninmake?taskId?state?managedDeviceId?executionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The summary of a task execution on a specified device."]moduleDeviceSummary=structtypenonrect={associatedWithJob:String_.toption[@ocaml.doc"The ID of the job used to order the device."];managedDeviceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the device."];managedDeviceId:ManagedDeviceId.toption[@ocaml.doc"The ID of the device."];tags:TagMap.toption[@ocaml.doc"Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment."]}letmake?associatedWithJob=fun?managedDeviceArn->fun?managedDeviceId->fun?tags->fun()->{associatedWithJob;managedDeviceArn;managedDeviceId;tags}letto_valuex=structure_to_value[("associatedWithJob",(Option.mapx.associatedWithJob~f:String_.to_value));("managedDeviceArn",(Option.mapx.managedDeviceArn~f:String_.to_value));("managedDeviceId",(Option.mapx.managedDeviceId~f:ManagedDeviceId.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")inletmanagedDeviceId=(Option.map~f:ManagedDeviceId.of_xml)(Xml.childxml_arg0"managedDeviceId")inletmanagedDeviceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"managedDeviceArn")inletassociatedWithJob=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"associatedWithJob")inmake?tags?managedDeviceId?managedDeviceArn?associatedWithJob()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninletmanagedDeviceId=field_mapjson__"managedDeviceId"ManagedDeviceId.of_jsoninletmanagedDeviceArn=field_mapjson__"managedDeviceArn"String_.of_jsoninletassociatedWithJob=field_mapjson__"associatedWithJob"String_.of_jsoninmake?tags?managedDeviceId?managedDeviceArn?associatedWithJob()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Identifying information about the device."]moduleResourceSummary=structtypenonrect={arn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the resource."];id:String_.toption[@ocaml.doc"The ID of the resource."];resourceType:String_.toption[@ocaml.doc"The resource type."]}letmake?arn=fun?id->fun?resourceType->fun()->{arn;id;resourceType}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:String_.to_value));("id",(Option.mapx.id~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"arn")inmake?resourceType?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletid=field_mapjson__"id"String_.of_jsoninletarn=field_mapjson__"arn"String_.of_jsoninmake?resourceType?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A summary of a resource available on the device."]moduleCapacity=structtypenonrect={available:Long.toption[@ocaml.doc"The amount of capacity available for use on the device."];name:CapacityNameString.toption[@ocaml.doc"The name of the type of capacity, such as memory."];total:Long.toption[@ocaml.doc"The total capacity on the device."];unit:CapacityUnitString.toption[@ocaml.doc"The unit of measure for the type of capacity."];used:Long.toption[@ocaml.doc"The amount of capacity used on the device."]}letmake?available=fun?name->fun?total->fun?unit->fun?used->fun()->{available;name;total;unit;used}letto_valuex=structure_to_value[("available",(Option.mapx.available~f:Long.to_value));("name",(Option.mapx.name~f:CapacityNameString.to_value));("total",(Option.mapx.total~f:Long.to_value));("unit",(Option.mapx.unit~f:CapacityUnitString.to_value));("used",(Option.mapx.used~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letused=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"used")inletunit=(Option.map~f:CapacityUnitString.of_xml)(Xml.childxml_arg0"unit")inlettotal=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"total")inletname=(Option.map~f:CapacityNameString.of_xml)(Xml.childxml_arg0"name")inletavailable=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"available")inmake?used?unit?total?name?available()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letused=field_mapjson__"used"Long.of_jsoninletunit=field_mapjson__"unit"CapacityUnitString.of_jsoninlettotal=field_mapjson__"total"Long.of_jsoninletname=field_mapjson__"name"CapacityNameString.of_jsoninletavailable=field_mapjson__"available"Long.of_jsoninmake?used?unit?total?name?available()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The physical capacity of the Amazon Web Services Snow Family device."]modulePhysicalNetworkInterface=structtypenonrect={defaultGateway:String_.toption[@ocaml.doc"The default gateway of the device."];ipAddress:String_.toption[@ocaml.doc"The IP address of the device."];ipAddressAssignment:IpAddressAssignment.toption[@ocaml.doc"A value that describes whether the IP address is dynamic or persistent."];macAddress:String_.toption[@ocaml.doc"The MAC address of the device."];netmask:String_.toption[@ocaml.doc"The netmask used to divide the IP address into subnets."];physicalConnectorType:PhysicalConnectorType.toption[@ocaml.doc"The physical connector type."];physicalNetworkInterfaceId:String_.toption[@ocaml.doc"The physical network interface ID."]}letmake?defaultGateway=fun?ipAddress->fun?ipAddressAssignment->fun?macAddress->fun?netmask->fun?physicalConnectorType->fun?physicalNetworkInterfaceId->fun()->{defaultGateway;ipAddress;ipAddressAssignment;macAddress;netmask;physicalConnectorType;physicalNetworkInterfaceId}letto_valuex=structure_to_value[("defaultGateway",(Option.mapx.defaultGateway~f:String_.to_value));("ipAddress",(Option.mapx.ipAddress~f:String_.to_value));("ipAddressAssignment",(Option.mapx.ipAddressAssignment~f:IpAddressAssignment.to_value));("macAddress",(Option.mapx.macAddress~f:String_.to_value));("netmask",(Option.mapx.netmask~f:String_.to_value));("physicalConnectorType",(Option.mapx.physicalConnectorType~f:PhysicalConnectorType.to_value));("physicalNetworkInterfaceId",(Option.mapx.physicalNetworkInterfaceId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphysicalNetworkInterfaceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"physicalNetworkInterfaceId")inletphysicalConnectorType=(Option.map~f:PhysicalConnectorType.of_xml)(Xml.childxml_arg0"physicalConnectorType")inletnetmask=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"netmask")inletmacAddress=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"macAddress")inletipAddressAssignment=(Option.map~f:IpAddressAssignment.of_xml)(Xml.childxml_arg0"ipAddressAssignment")inletipAddress=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ipAddress")inletdefaultGateway=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"defaultGateway")inmake?physicalNetworkInterfaceId?physicalConnectorType?netmask?macAddress?ipAddressAssignment?ipAddress?defaultGateway()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphysicalNetworkInterfaceId=field_mapjson__"physicalNetworkInterfaceId"String_.of_jsoninletphysicalConnectorType=field_mapjson__"physicalConnectorType"PhysicalConnectorType.of_jsoninletnetmask=field_mapjson__"netmask"String_.of_jsoninletmacAddress=field_mapjson__"macAddress"String_.of_jsoninletipAddressAssignment=field_mapjson__"ipAddressAssignment"IpAddressAssignment.of_jsoninletipAddress=field_mapjson__"ipAddress"String_.of_jsoninletdefaultGateway=field_mapjson__"defaultGateway"String_.of_jsoninmake?physicalNetworkInterfaceId?physicalConnectorType?netmask?macAddress?ipAddressAssignment?ipAddress?defaultGateway()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details about the physical network interface for the device."]moduleInstanceSummary=structtypenonrect={instance:Instance.toption[@ocaml.doc"A structure containing details about the instance."];lastUpdatedAt:Timestamp.toption[@ocaml.doc"When the instance summary was last updated."]}letmake?instance=fun?lastUpdatedAt->fun()->{instance;lastUpdatedAt}letto_valuex=structure_to_value[("instance",(Option.mapx.instance~f:Instance.to_value));("lastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastUpdatedAt")inletinstance=(Option.map~f:Instance.of_xml)(Xml.childxml_arg0"instance")inmake?lastUpdatedAt?instance()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdatedAt=field_mapjson__"lastUpdatedAt"Timestamp.of_jsoninletinstance=field_mapjson__"instance"Instance.of_jsoninmake?lastUpdatedAt?instance()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details about the instance."]moduleReboot=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure used to reboot the device."]moduleUnlock=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure used to unlock a device."]moduleTagKeys=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"TagKeys"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessDeniedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You don't have sufficient access to perform this action."]moduleInternalServerException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An unexpected error occurred while processing the request."]moduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(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:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleTaskSummaryList=structtypenonrect=TaskSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskSummary.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:TaskSummary.of_xml)letof_jsonj=list_of_json~kind:"TaskSummaryList"~of_json:TaskSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleThrottlingException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to request throttling."]moduleValidationException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input fails to satisfy the constraints specified by an Amazon Web Services service."]moduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleResourceNotFoundException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request references a resource that doesn't exist."]moduleExecutionSummaryList=structtypenonrect=ExecutionSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ExecutionSummary.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:ExecutionSummary.of_xml)letof_jsonj=list_of_json~kind:"ExecutionSummaryList"~of_json:ExecutionSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDeviceSummaryList=structtypenonrect=DeviceSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DeviceSummary.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:DeviceSummary.of_xml)letof_jsonj=list_of_json~kind:"DeviceSummaryList"~of_json:DeviceSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJobId=structtypenonrect=stringletcontext_="JobId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(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:"JobId"jletto_json=simple_to_jsonto_valueendmoduleResourceSummaryList=structtypenonrect=ResourceSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourceSummary.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:ResourceSummary.of_xml)letof_jsonj=list_of_json~kind:"ResourceSummaryList"~of_json:ResourceSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListDeviceResourcesInputTypeString=structtypenonrect=stringletcontext_="ListDeviceResourcesInputTypeString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:50)>>=(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:"ListDeviceResourcesInputTypeString"jletto_json=simple_to_jsonto_valueendmoduleTargetList=structtypenonrect=String_.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"TargetList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTaskDescriptionString=structtypenonrect=stringletcontext_="TaskDescriptionString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(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:"TaskDescriptionString"jletto_json=simple_to_jsonto_valueendmoduleCapacityList=structtypenonrect=Capacity.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Capacity.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:Capacity.of_xml)letof_jsonj=list_of_json~kind:"CapacityList"~of_json:Capacity.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePhysicalNetworkInterfaceList=structtypenonrect=PhysicalNetworkInterface.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PhysicalNetworkInterface.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:PhysicalNetworkInterface.of_xml)letof_jsonj=list_of_json~kind:"PhysicalNetworkInterfaceList"~of_json:PhysicalNetworkInterface.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSoftwareInformation=structtypenonrect={installState:String_.toption[@ocaml.doc"The state of the software that is installed or that is being installed on the device."];installedVersion:String_.toption[@ocaml.doc"The version of the software currently installed on the device."];installingVersion:String_.toption[@ocaml.doc"The version of the software being installed on the device."]}letmake?installState=fun?installedVersion->fun?installingVersion->fun()->{installState;installedVersion;installingVersion}letto_valuex=structure_to_value[("installState",(Option.mapx.installState~f:String_.to_value));("installedVersion",(Option.mapx.installedVersion~f:String_.to_value));("installingVersion",(Option.mapx.installingVersion~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstallingVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"installingVersion")inletinstalledVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"installedVersion")inletinstallState=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"installState")inmake?installingVersion?installedVersion?installState()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstallingVersion=field_mapjson__"installingVersion"String_.of_jsoninletinstalledVersion=field_mapjson__"installedVersion"String_.of_jsoninletinstallState=field_mapjson__"installState"String_.of_jsoninmake?installingVersion?installedVersion?installState()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the software on the device."]moduleUnlockState=structtypenonrect=|UNLOCKED|LOCKED|UNLOCKING|Non_static_idofstringletmakei=iletto_string=function|UNLOCKED->"UNLOCKED"|LOCKED->"LOCKED"|UNLOCKING->"UNLOCKING"|Non_static_ids->sletof_string=function|"UNLOCKED"->UNLOCKED|"LOCKED"->LOCKED|"UNLOCKING"->UNLOCKING|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 UnlockState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UnlockState"j)letto_json=simple_to_jsonto_valueendmoduleInstanceSummaryList=structtypenonrect=InstanceSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:InstanceSummary.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:InstanceSummary.of_xml)letof_jsonj=list_of_json~kind:"InstanceSummaryList"~of_json:InstanceSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInstanceIdsList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"InstanceIdsList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceQuotaExceededException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request would cause a service quota to be exceeded."]moduleCommand=structtypenonrect={reboot:Reboot.toption[@ocaml.doc"Reboots the device."];unlock:Unlock.toption[@ocaml.doc"Unlocks the device."]}letmake?reboot=fun?unlock->fun()->{reboot;unlock}letto_valuex=structure_to_value[("reboot",(Option.mapx.reboot~f:Reboot.to_value));("unlock",(Option.mapx.unlock~f:Unlock.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunlock=(Option.map~f:Unlock.of_xml)(Xml.childxml_arg0"unlock")inletreboot=(Option.map~f:Reboot.of_xml)(Xml.childxml_arg0"reboot")inmake?unlock?reboot()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunlock=field_mapjson__"unlock"Unlock.of_jsoninletreboot=field_mapjson__"reboot"Reboot.of_jsoninmake?unlock?reboot()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The command given to the device to execute."]moduleIdempotencyToken=structtypenonrect=stringletcontext_="IdempotencyToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[!-~]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdempotencyToken"jletto_json=simple_to_jsonto_valueendmoduleUntagResourceInput=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the device or task."];tagKeys:TagKeys.t[@ocaml.doc"Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment."]}letcontext_="UntagResourceInput"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(String_.to_valuex.resourceArn)));("tagKeys",(Some(TagKeys.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeys.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=String_.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"TagKeys.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"String_.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes a tag from a device or task."]moduleTagResourceInput=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the device or task."];tags:TagMap.t[@ocaml.doc"Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment."]}letcontext_="TagResourceInput"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(String_.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=String_.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"String_.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or replaces tags on a device or task."]moduleListTasksOutput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"A pagination token to continue to the next page of tasks."];tasks:TaskSummaryList.toption[@ocaml.doc"A list of task structures containing details about each task."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?tasks->fun()->{nextToken;tasks}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("tasks",(Option.mapx.tasks~f:TaskSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettasks=(Option.map~f:TaskSummaryList.of_xml)(Xml.childxml_arg0"tasks")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?tasks?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettasks=field_mapjson__"tasks"TaskSummaryList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?tasks?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of tasks that can be filtered by state."]moduleListTasksInput=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"The maximum number of tasks per page."];nextToken:NextToken.toption[@ocaml.doc"A pagination token to continue to the next page of tasks."];state:TaskState.toption[@ocaml.doc"A structure used to filter the list of tasks."]}letmake?maxResults=fun?nextToken->fun?state->fun()->{maxResults;nextToken;state}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("state",(Option.mapx.state~f:TaskState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:TaskState.of_xml)(Xml.childxml_arg0"state")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake?state?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"state"TaskState.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninmake?state?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of tasks that can be filtered by state."]moduleListTagsForResourceOutput=structtypenonrect={tags:TagMap.toption[@ocaml.doc"The list of tags for the device or task."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("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"Returns a list of tags for a managed device or task."]moduleListTagsForResourceInput=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the device or task."]}letcontext_="ListTagsForResourceInput"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(String_.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=String_.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"String_.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of tags for a managed device or task."]moduleListExecutionsOutput=structtypenonrect={executions:ExecutionSummaryList.toption[@ocaml.doc"A list of executions. Each execution contains the task ID, the device that the task is executing on, the execution ID, and the status of the execution."];nextToken:NextToken.toption[@ocaml.doc"A pagination token to continue to the next page of executions."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executions=fun?nextToken->fun()->{executions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("executions",(Option.mapx.executions~f:ExecutionSummaryList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletexecutions=(Option.map~f:ExecutionSummaryList.of_xml)(Xml.childxml_arg0"executions")inmake?nextToken?executions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletexecutions=field_mapjson__"executions"ExecutionSummaryList.of_jsoninmake?nextToken?executions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the status of tasks for one or more target devices."]moduleListExecutionsInput=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"The maximum number of tasks to list per page."];nextToken:NextToken.toption[@ocaml.doc"A pagination token to continue to the next page of tasks."];state:ExecutionState.toption[@ocaml.doc"A structure used to filter the tasks by their current state."];taskId:TaskId.t[@ocaml.doc"The ID of the task."]}letcontext_="ListExecutionsInput"letmake?maxResults=fun?nextToken->fun?state->fun~taskId->fun()->{maxResults;nextToken;state;taskId}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("state",(Option.mapx.state~f:ExecutionState.to_value));("taskId",(Some(TaskId.to_valuex.taskId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=TaskId.of_xml(Xml.child_exn~context:context_xml_arg0"taskId")inletstate=(Option.map~f:ExecutionState.of_xml)(Xml.childxml_arg0"state")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake~taskId?state?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_map_exnjson__"taskId"TaskId.of_jsoninletstate=field_mapjson__"state"ExecutionState.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninmake~taskId?state?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the status of tasks for one or more target devices."]moduleListDevicesOutput=structtypenonrect={devices:DeviceSummaryList.toption[@ocaml.doc"A list of device structures that contain information about the device."];nextToken:NextToken.toption[@ocaml.doc"A pagination token to continue to the next page of devices."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?devices=fun?nextToken->fun()->{devices;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("devices",(Option.mapx.devices~f:DeviceSummaryList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletdevices=(Option.map~f:DeviceSummaryList.of_xml)(Xml.childxml_arg0"devices")inmake?nextToken?devices()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletdevices=field_mapjson__"devices"DeviceSummaryList.of_jsoninmake?nextToken?devices()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of all devices on your Amazon Web Services account that have Amazon Web Services Snow Device Management enabled in the Amazon Web Services Region where the command is run."]moduleListDevicesInput=structtypenonrect={jobId:JobId.toption[@ocaml.doc"The ID of the job used to order the device."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of devices to list per page."];nextToken:NextToken.toption[@ocaml.doc"A pagination token to continue to the next page of results."]}letmake?jobId=fun?maxResults->fun?nextToken->fun()->{jobId;maxResults;nextToken}letto_valuex=structure_to_value[("jobId",(Option.mapx.jobId~f:JobId.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletjobId=(Option.map~f:JobId.of_xml)(Xml.childxml_arg0"jobId")inmake?nextToken?maxResults?jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletjobId=field_mapjson__"jobId"JobId.of_jsoninmake?nextToken?maxResults?jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of all devices on your Amazon Web Services account that have Amazon Web Services Snow Device Management enabled in the Amazon Web Services Region where the command is run."]moduleListDeviceResourcesOutput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"A pagination token to continue to the next page of results."];resources:ResourceSummaryList.toption[@ocaml.doc"A structure defining the resource's type, Amazon Resource Name (ARN), and ID."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?resources->fun()->{nextToken;resources}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("resources",(Option.mapx.resources~f:ResourceSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresources=(Option.map~f:ResourceSummaryList.of_xml)(Xml.childxml_arg0"resources")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?resources?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresources=field_mapjson__"resources"ResourceSummaryList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?resources?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type."]moduleListDeviceResourcesInput=structtypenonrect={managedDeviceId:ManagedDeviceId.t[@ocaml.doc"The ID of the managed device that you are listing the resources of."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of resources per page."];nextToken:NextToken.toption[@ocaml.doc"A pagination token to continue to the next page of results."];type_:ListDeviceResourcesInputTypeString.toption[@ocaml.doc"A structure used to filter the results by type of resource."]}letcontext_="ListDeviceResourcesInput"letmake?maxResults=fun?nextToken->fun?type_->fun~managedDeviceId->fun()->{maxResults;nextToken;type_;managedDeviceId}letto_valuex=structure_to_value[("managedDeviceId",(Some(ManagedDeviceId.to_valuex.managedDeviceId)));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("type",(Option.mapx.type_~f:ListDeviceResourcesInputTypeString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:ListDeviceResourcesInputTypeString.of_xml)(Xml.childxml_arg0"type")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletmanagedDeviceId=ManagedDeviceId.of_xml(Xml.child_exn~context:context_xml_arg0"managedDeviceId")inmake?type_?nextToken?maxResults~managedDeviceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"type"ListDeviceResourcesInputTypeString.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletmanagedDeviceId=field_map_exnjson__"managedDeviceId"ManagedDeviceId.of_jsoninmake?type_?nextToken?maxResults~managedDeviceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type."]moduleDescribeTaskOutput=structtypenonrect={completedAt:Timestamp.toption[@ocaml.doc"When the task was completed."];createdAt:Timestamp.toption[@ocaml.doc"When the CreateTask operation was called."];description:TaskDescriptionString.toption[@ocaml.doc"The description provided of the task and managed devices."];lastUpdatedAt:Timestamp.toption[@ocaml.doc"When the state of the task was last updated."];state:TaskState.toption[@ocaml.doc"The current state of the task."];tags:TagMap.toption[@ocaml.doc"Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment."];targets:TargetList.toption[@ocaml.doc"The managed devices that the task was sent to."];taskArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the task."];taskId:String_.toption[@ocaml.doc"The ID of the task."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?completedAt=fun?createdAt->fun?description->fun?lastUpdatedAt->fun?state->fun?tags->fun?targets->fun?taskArn->fun?taskId->fun()->{completedAt;createdAt;description;lastUpdatedAt;state;tags;targets;taskArn;taskId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("completedAt",(Option.mapx.completedAt~f:Timestamp.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("description",(Option.mapx.description~f:TaskDescriptionString.to_value));("lastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Timestamp.to_value));("state",(Option.mapx.state~f:TaskState.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value));("targets",(Option.mapx.targets~f:TargetList.to_value));("taskArn",(Option.mapx.taskArn~f:String_.to_value));("taskId",(Option.mapx.taskId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskId")inlettaskArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskArn")inlettargets=(Option.map~f:TargetList.of_xml)(Xml.childxml_arg0"targets")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletstate=(Option.map~f:TaskState.of_xml)(Xml.childxml_arg0"state")inletlastUpdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastUpdatedAt")inletdescription=(Option.map~f:TaskDescriptionString.of_xml)(Xml.childxml_arg0"description")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletcompletedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"completedAt")inmake?taskId?taskArn?targets?tags?state?lastUpdatedAt?description?createdAt?completedAt()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_mapjson__"taskId"String_.of_jsoninlettaskArn=field_mapjson__"taskArn"String_.of_jsoninlettargets=field_mapjson__"targets"TargetList.of_jsoninlettags=field_mapjson__"tags"TagMap.of_jsoninletstate=field_mapjson__"state"TaskState.of_jsoninletlastUpdatedAt=field_mapjson__"lastUpdatedAt"Timestamp.of_jsoninletdescription=field_mapjson__"description"TaskDescriptionString.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletcompletedAt=field_mapjson__"completedAt"Timestamp.of_jsoninmake?taskId?taskArn?targets?tags?state?lastUpdatedAt?description?createdAt?completedAt()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks the metadata for a given task on a device."]moduleDescribeTaskInput=structtypenonrect={taskId:TaskId.t[@ocaml.doc"The ID of the task to be described."]}letcontext_="DescribeTaskInput"letmake~taskId=fun()->{taskId}letto_valuex=structure_to_value[("taskId",(Some(TaskId.to_valuex.taskId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=TaskId.of_xml(Xml.child_exn~context:context_xml_arg0"taskId")inmake~taskId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_map_exnjson__"taskId"TaskId.of_jsoninmake~taskId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks the metadata for a given task on a device."]moduleDescribeExecutionOutput=structtypenonrect={executionId:ExecutionId.toption[@ocaml.doc"The ID of the execution."];lastUpdatedAt:Timestamp.toption[@ocaml.doc"When the status of the execution was last updated."];managedDeviceId:ManagedDeviceId.toption[@ocaml.doc"The ID of the managed device that the task is being executed on."];startedAt:Timestamp.toption[@ocaml.doc"When the execution began."];state:ExecutionState.toption[@ocaml.doc"The current state of the execution."];taskId:TaskId.toption[@ocaml.doc"The ID of the task being executed on the device."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executionId=fun?lastUpdatedAt->fun?managedDeviceId->fun?startedAt->fun?state->fun?taskId->fun()->{executionId;lastUpdatedAt;managedDeviceId;startedAt;state;taskId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("executionId",(Option.mapx.executionId~f:ExecutionId.to_value));("lastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Timestamp.to_value));("managedDeviceId",(Option.mapx.managedDeviceId~f:ManagedDeviceId.to_value));("startedAt",(Option.mapx.startedAt~f:Timestamp.to_value));("state",(Option.mapx.state~f:ExecutionState.to_value));("taskId",(Option.mapx.taskId~f:TaskId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=(Option.map~f:TaskId.of_xml)(Xml.childxml_arg0"taskId")inletstate=(Option.map~f:ExecutionState.of_xml)(Xml.childxml_arg0"state")inletstartedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startedAt")inletmanagedDeviceId=(Option.map~f:ManagedDeviceId.of_xml)(Xml.childxml_arg0"managedDeviceId")inletlastUpdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastUpdatedAt")inletexecutionId=(Option.map~f:ExecutionId.of_xml)(Xml.childxml_arg0"executionId")inmake?taskId?state?startedAt?managedDeviceId?lastUpdatedAt?executionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_mapjson__"taskId"TaskId.of_jsoninletstate=field_mapjson__"state"ExecutionState.of_jsoninletstartedAt=field_mapjson__"startedAt"Timestamp.of_jsoninletmanagedDeviceId=field_mapjson__"managedDeviceId"ManagedDeviceId.of_jsoninletlastUpdatedAt=field_mapjson__"lastUpdatedAt"Timestamp.of_jsoninletexecutionId=field_mapjson__"executionId"ExecutionId.of_jsoninmake?taskId?state?startedAt?managedDeviceId?lastUpdatedAt?executionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks the status of a remote task running on one or more target devices."]moduleDescribeExecutionInput=structtypenonrect={managedDeviceId:ManagedDeviceId.t[@ocaml.doc"The ID of the managed device."];taskId:TaskId.t[@ocaml.doc"The ID of the task that the action is describing."]}letcontext_="DescribeExecutionInput"letmake~managedDeviceId=fun~taskId->fun()->{managedDeviceId;taskId}letto_valuex=structure_to_value[("managedDeviceId",(Some(ManagedDeviceId.to_valuex.managedDeviceId)));("taskId",(Some(TaskId.to_valuex.taskId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=TaskId.of_xml(Xml.child_exn~context:context_xml_arg0"taskId")inletmanagedDeviceId=ManagedDeviceId.of_xml(Xml.child_exn~context:context_xml_arg0"managedDeviceId")inmake~taskId~managedDeviceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_map_exnjson__"taskId"TaskId.of_jsoninletmanagedDeviceId=field_map_exnjson__"managedDeviceId"ManagedDeviceId.of_jsoninmake~taskId~managedDeviceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks the status of a remote task running on one or more target devices."]moduleDescribeDeviceOutput=structtypenonrect={associatedWithJob:String_.toption[@ocaml.doc"The ID of the job used when ordering the device."];deviceCapacities:CapacityList.toption[@ocaml.doc"The hardware specifications of the device."];deviceState:UnlockState.toption[@ocaml.doc"The current state of the device."];deviceType:String_.toption[@ocaml.doc"The type of Amazon Web Services Snow Family device."];lastReachedOutAt:Timestamp.toption[@ocaml.doc"When the device last contacted the Amazon Web Services Cloud. Indicates that the device is online."];lastUpdatedAt:Timestamp.toption[@ocaml.doc"When the device last pushed an update to the Amazon Web Services Cloud. Indicates when the device cache was refreshed."];managedDeviceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the device."];managedDeviceId:ManagedDeviceId.toption[@ocaml.doc"The ID of the device that you checked the information for."];physicalNetworkInterfaces:PhysicalNetworkInterfaceList.toption[@ocaml.doc"The network interfaces available on the device."];software:SoftwareInformation.toption[@ocaml.doc"The software installed on the device."];tags:TagMap.toption[@ocaml.doc"Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?associatedWithJob=fun?deviceCapacities->fun?deviceState->fun?deviceType->fun?lastReachedOutAt->fun?lastUpdatedAt->fun?managedDeviceArn->fun?managedDeviceId->fun?physicalNetworkInterfaces->fun?software->fun?tags->fun()->{associatedWithJob;deviceCapacities;deviceState;deviceType;lastReachedOutAt;lastUpdatedAt;managedDeviceArn;managedDeviceId;physicalNetworkInterfaces;software;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("associatedWithJob",(Option.mapx.associatedWithJob~f:String_.to_value));("deviceCapacities",(Option.mapx.deviceCapacities~f:CapacityList.to_value));("deviceState",(Option.mapx.deviceState~f:UnlockState.to_value));("deviceType",(Option.mapx.deviceType~f:String_.to_value));("lastReachedOutAt",(Option.mapx.lastReachedOutAt~f:Timestamp.to_value));("lastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Timestamp.to_value));("managedDeviceArn",(Option.mapx.managedDeviceArn~f:String_.to_value));("managedDeviceId",(Option.mapx.managedDeviceId~f:ManagedDeviceId.to_value));("physicalNetworkInterfaces",(Option.mapx.physicalNetworkInterfaces~f:PhysicalNetworkInterfaceList.to_value));("software",(Option.mapx.software~f:SoftwareInformation.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")inletsoftware=(Option.map~f:SoftwareInformation.of_xml)(Xml.childxml_arg0"software")inletphysicalNetworkInterfaces=(Option.map~f:PhysicalNetworkInterfaceList.of_xml)(Xml.childxml_arg0"physicalNetworkInterfaces")inletmanagedDeviceId=(Option.map~f:ManagedDeviceId.of_xml)(Xml.childxml_arg0"managedDeviceId")inletmanagedDeviceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"managedDeviceArn")inletlastUpdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastUpdatedAt")inletlastReachedOutAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"lastReachedOutAt")inletdeviceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"deviceType")inletdeviceState=(Option.map~f:UnlockState.of_xml)(Xml.childxml_arg0"deviceState")inletdeviceCapacities=(Option.map~f:CapacityList.of_xml)(Xml.childxml_arg0"deviceCapacities")inletassociatedWithJob=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"associatedWithJob")inmake?tags?software?physicalNetworkInterfaces?managedDeviceId?managedDeviceArn?lastUpdatedAt?lastReachedOutAt?deviceType?deviceState?deviceCapacities?associatedWithJob()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninletsoftware=field_mapjson__"software"SoftwareInformation.of_jsoninletphysicalNetworkInterfaces=field_mapjson__"physicalNetworkInterfaces"PhysicalNetworkInterfaceList.of_jsoninletmanagedDeviceId=field_mapjson__"managedDeviceId"ManagedDeviceId.of_jsoninletmanagedDeviceArn=field_mapjson__"managedDeviceArn"String_.of_jsoninletlastUpdatedAt=field_mapjson__"lastUpdatedAt"Timestamp.of_jsoninletlastReachedOutAt=field_mapjson__"lastReachedOutAt"Timestamp.of_jsoninletdeviceType=field_mapjson__"deviceType"String_.of_jsoninletdeviceState=field_mapjson__"deviceState"UnlockState.of_jsoninletdeviceCapacities=field_mapjson__"deviceCapacities"CapacityList.of_jsoninletassociatedWithJob=field_mapjson__"associatedWithJob"String_.of_jsoninmake?tags?software?physicalNetworkInterfaces?managedDeviceId?managedDeviceArn?lastUpdatedAt?lastReachedOutAt?deviceType?deviceState?deviceCapacities?associatedWithJob()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks device-specific information, such as the device type, software version, IP addresses, and lock status."]moduleDescribeDeviceInput=structtypenonrect={managedDeviceId:ManagedDeviceId.t[@ocaml.doc"The ID of the device that you are checking the information of."]}letcontext_="DescribeDeviceInput"letmake~managedDeviceId=fun()->{managedDeviceId}letto_valuex=structure_to_value[("managedDeviceId",(Some(ManagedDeviceId.to_valuex.managedDeviceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmanagedDeviceId=ManagedDeviceId.of_xml(Xml.child_exn~context:context_xml_arg0"managedDeviceId")inmake~managedDeviceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmanagedDeviceId=field_map_exnjson__"managedDeviceId"ManagedDeviceId.of_jsoninmake~managedDeviceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks device-specific information, such as the device type, software version, IP addresses, and lock status."]moduleDescribeDeviceEc2Output=structtypenonrect={instances:InstanceSummaryList.toption[@ocaml.doc"A list of structures containing information about each instance."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?instances=fun()->{instances}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("instances",(Option.mapx.instances~f:InstanceSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstances=(Option.map~f:InstanceSummaryList.of_xml)(Xml.childxml_arg0"instances")inmake?instances()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstances=field_mapjson__"instances"InstanceSummaryList.of_jsoninmake?instances()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks the current state of the Amazon EC2 instances. The output is similar to describeDevice, but the results are sourced from the device cache in the Amazon Web Services Cloud and include a subset of the available fields."]moduleDescribeDeviceEc2Input=structtypenonrect={instanceIds:InstanceIdsList.t[@ocaml.doc"A list of instance IDs associated with the managed device."];managedDeviceId:ManagedDeviceId.t[@ocaml.doc"The ID of the managed device."]}letcontext_="DescribeDeviceEc2Input"letmake~instanceIds=fun~managedDeviceId->fun()->{instanceIds;managedDeviceId}letto_valuex=structure_to_value[("instanceIds",(Some(InstanceIdsList.to_valuex.instanceIds)));("managedDeviceId",(Some(ManagedDeviceId.to_valuex.managedDeviceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmanagedDeviceId=ManagedDeviceId.of_xml(Xml.child_exn~context:context_xml_arg0"managedDeviceId")inletinstanceIds=InstanceIdsList.of_xml(Xml.child_exn~context:context_xml_arg0"instanceIds")inmake~managedDeviceId~instanceIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmanagedDeviceId=field_map_exnjson__"managedDeviceId"ManagedDeviceId.of_jsoninletinstanceIds=field_map_exnjson__"instanceIds"InstanceIdsList.of_jsoninmake~managedDeviceId~instanceIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Checks the current state of the Amazon EC2 instances. The output is similar to describeDevice, but the results are sourced from the device cache in the Amazon Web Services Cloud and include a subset of the available fields."]moduleCreateTaskOutput=structtypenonrect={taskArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the task that you created."];taskId:String_.toption[@ocaml.doc"The ID of the task that you created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskArn=fun?taskId->fun()->{taskArn;taskId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("taskArn",(Option.mapx.taskArn~f:String_.to_value));("taskId",(Option.mapx.taskId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskId")inlettaskArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskArn")inmake?taskId?taskArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_mapjson__"taskId"String_.of_jsoninlettaskArn=field_mapjson__"taskArn"String_.of_jsoninmake?taskId?taskArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Instructs one or more devices to start a task, such as unlocking or rebooting."]moduleCreateTaskInput=structtypenonrect={clientToken:IdempotencyToken.toption[@ocaml.doc"A token ensuring that the action is called only once with the specified details."];command:Command.t[@ocaml.doc"The task to be performed. Only one task is executed on a device at a time."];description:TaskDescriptionString.toption[@ocaml.doc"A description of the task and its targets."];tags:TagMap.toption[@ocaml.doc"Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment."];targets:TargetList.t[@ocaml.doc"A list of managed device IDs."]}letcontext_="CreateTaskInput"letmake?clientToken=fun?description->fun?tags->fun~command->fun~targets->fun()->{clientToken;description;tags;command;targets}letto_valuex=structure_to_value[("clientToken",(Option.mapx.clientToken~f:IdempotencyToken.to_value));("command",(Some(Command.to_valuex.command)));("description",(Option.mapx.description~f:TaskDescriptionString.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value));("targets",(Some(TargetList.to_valuex.targets)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargets=TargetList.of_xml(Xml.child_exn~context:context_xml_arg0"targets")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletdescription=(Option.map~f:TaskDescriptionString.of_xml)(Xml.childxml_arg0"description")inletcommand=Command.of_xml(Xml.child_exn~context:context_xml_arg0"command")inletclientToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"clientToken")inmake~targets?tags?description~command?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargets=field_map_exnjson__"targets"TargetList.of_jsoninlettags=field_mapjson__"tags"TagMap.of_jsoninletdescription=field_mapjson__"description"TaskDescriptionString.of_jsoninletcommand=field_map_exnjson__"command"Command.of_jsoninletclientToken=field_mapjson__"clientToken"IdempotencyToken.of_jsoninmake~targets?tags?description~command?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Instructs one or more devices to start a task, such as unlocking or rebooting."]moduleCancelTaskOutput=structtypenonrect={taskId:String_.toption[@ocaml.doc"The ID of the task that you are attempting to cancel."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskId=fun()->{taskId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("taskId",(Option.mapx.taskId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskId")inmake?taskId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_mapjson__"taskId"String_.of_jsoninmake?taskId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends a cancel request for a specified task. You can cancel a task only if it's still in a QUEUED state. Tasks that are already running can't be cancelled. A task might still run if it's processed from the queue before the CancelTask operation changes the task's state."]moduleCancelTaskInput=structtypenonrect={taskId:TaskId.t[@ocaml.doc"The ID of the task that you are attempting to cancel. You can retrieve a task ID by using the ListTasks operation."]}letcontext_="CancelTaskInput"letmake~taskId=fun()->{taskId}letto_valuex=structure_to_value[("taskId",(Some(TaskId.to_valuex.taskId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=TaskId.of_xml(Xml.child_exn~context:context_xml_arg0"taskId")inmake~taskId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_map_exnjson__"taskId"TaskId.of_jsoninmake~taskId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends a cancel request for a specified task. You can cancel a task only if it's still in a QUEUED state. Tasks that are already running can't be cancelled. A task might still run if it's processed from the queue before the CancelTask operation changes the task's state."]