12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033(* 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.iot_jobs_dataletapiVersion="2017-09-29"letendpointPrefix="data.jobs.iot"letserviceFullName="AWS IoT Jobs Data Plane"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[]))])moduleDetailsKey=structtypenonrect=stringletcontext_="DetailsKey"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:"DetailsKey"jletto_json=simple_to_jsonto_valueendmoduleDetailsValue=structtypenonrect=stringletcontext_="DetailsValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->check_patterni~pattern:"[^\\p{C}]+"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DetailsValue"jletto_json=simple_to_jsonto_valueendmoduleBinaryParameterValue=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleBooleanParameterValue=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_valueendmoduleDoubleParameterValue=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleIntegerParameterValue=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 IntegerParameterValue"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleLongParameterValue=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_valueendmoduleStringParameterValue=structtypenonrect=stringletcontext_="StringParameterValue"letmakei=letopenResultinok_or_failwith(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:"StringParameterValue"jletto_json=simple_to_jsonto_valueendmoduleUnsignedLongParameterValue=structtypenonrect=stringletcontext_="UnsignedLongParameterValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:20)>>=(fun()->check_patterni~pattern:"^[0-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:"UnsignedLongParameterValue"jletto_json=simple_to_jsonto_valueendmoduleExecutionNumber=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_valueendmoduleJobId=structtypenonrect=stringletcontext_="JobId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"JobId"jletto_json=simple_to_jsonto_valueendmoduleLastUpdatedAt=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_valueendmoduleQueuedAt=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_valueendmoduleStartedAt=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_valueendmoduleVersionNumber=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_valueendmoduleErrorMessage=structtypenonrect=stringletcontext_="errorMessage"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"errorMessage"jletto_json=simple_to_jsonto_valueendmoduleDetailsMap=structtypenonrect=(DetailsKey.t*DetailsValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((DetailsKey.of_stringchopped),(DetailsValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(DetailsKey.to_valuex)|>(funx->(DetailsValue.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:DetailsKey.of_string~of_json:DetailsValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJobExecutionStatus=structtypenonrect=|QUEUED|IN_PROGRESS|SUCCEEDED|FAILED|TIMED_OUT|REJECTED|REMOVED|CANCELED|Non_static_idofstringletmakei=iletto_string=function|QUEUED->"QUEUED"|IN_PROGRESS->"IN_PROGRESS"|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|TIMED_OUT->"TIMED_OUT"|REJECTED->"REJECTED"|REMOVED->"REMOVED"|CANCELED->"CANCELED"|Non_static_ids->sletof_string=function|"QUEUED"->QUEUED|"IN_PROGRESS"->IN_PROGRESS|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|"TIMED_OUT"->TIMED_OUT|"REJECTED"->REJECTED|"REMOVED"->REMOVED|"CANCELED"->CANCELED|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 JobExecutionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"JobExecutionStatus"j)letto_json=simple_to_jsonto_valueendmoduleBinaryBlob=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleApproximateSecondsBeforeTimedOut=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_valueendmoduleJobDocument=structtypenonrect=stringletcontext_="JobDocument"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:32768);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"JobDocument"jletto_json=simple_to_jsonto_valueendmoduleThingName=structtypenonrect=stringletcontext_="ThingName"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:"ThingName"jletto_json=simple_to_jsonto_valueendmoduleResourceId=structtypenonrect=stringletcontext_="resourceId"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:"resourceId"jletto_json=simple_to_jsonto_valueendmoduleCommandParameterName=structtypenonrect=stringletcontext_="CommandParameterName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:192)>>=(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:"CommandParameterName"jletto_json=simple_to_jsonto_valueendmoduleCommandParameterValue=structtypenonrect={s:StringParameterValue.toption[@ocaml.doc"An attribute of type String. For example: \"S\": \"Hello\""];b:BooleanParameterValue.toption[@ocaml.doc"An attribute of type Boolean. For example: \"BOOL\": true"];i:IntegerParameterValue.toption[@ocaml.doc"An attribute of type Integer (Thirty-Two Bits)."];l:LongParameterValue.toption[@ocaml.doc"An attribute of type Long."];d:DoubleParameterValue.toption[@ocaml.doc"An attribute of type Double (Sixty-Four Bits)."];bIN:BinaryParameterValue.toption[@ocaml.doc"An attribute of type Binary."];uL:UnsignedLongParameterValue.toption[@ocaml.doc"An attribute of type Unsigned Long."]}letmake?s=fun?b->fun?i->fun?l->fun?d->fun?bIN->fun?uL->fun()->{s;b;i;l;d;bIN;uL}letto_valuex=structure_to_value[("S",(Option.mapx.s~f:StringParameterValue.to_value));("B",(Option.mapx.b~f:BooleanParameterValue.to_value));("I",(Option.mapx.i~f:IntegerParameterValue.to_value));("L",(Option.mapx.l~f:LongParameterValue.to_value));("D",(Option.mapx.d~f:DoubleParameterValue.to_value));("BIN",(Option.mapx.bIN~f:BinaryParameterValue.to_value));("UL",(Option.mapx.uL~f:UnsignedLongParameterValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuL=(Option.map~f:UnsignedLongParameterValue.of_xml)(Xml.childxml_arg0"UL")inletbIN=(Option.map~f:BinaryParameterValue.of_xml)(Xml.childxml_arg0"BIN")inletd=(Option.map~f:DoubleParameterValue.of_xml)(Xml.childxml_arg0"D")inletl=(Option.map~f:LongParameterValue.of_xml)(Xml.childxml_arg0"L")inleti=(Option.map~f:IntegerParameterValue.of_xml)(Xml.childxml_arg0"I")inletb=(Option.map~f:BooleanParameterValue.of_xml)(Xml.childxml_arg0"B")inlets=(Option.map~f:StringParameterValue.of_xml)(Xml.childxml_arg0"S")inmake?uL?bIN?d?l?i?b?s()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuL=field_mapjson__"UL"UnsignedLongParameterValue.of_jsoninletbIN=field_mapjson__"BIN"BinaryParameterValue.of_jsoninletd=field_mapjson__"D"DoubleParameterValue.of_jsoninletl=field_mapjson__"L"LongParameterValue.of_jsoninleti=field_mapjson__"I"IntegerParameterValue.of_jsoninletb=field_mapjson__"B"BooleanParameterValue.of_jsoninlets=field_mapjson__"S"StringParameterValue.of_jsoninmake?uL?bIN?d?l?i?b?s()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The list of values used to describe a specific command parameter."]moduleJobExecutionSummary=structtypenonrect={jobId:JobId.toption[@ocaml.doc"The unique identifier you assigned to this job when it was created."];queuedAt:QueuedAt.toption[@ocaml.doc"The time, in seconds since the epoch, when the job execution was enqueued."];startedAt:StartedAt.toption[@ocaml.doc"The time, in seconds since the epoch, when the job execution started."];lastUpdatedAt:LastUpdatedAt.toption[@ocaml.doc"The time, in seconds since the epoch, when the job execution was last updated."];versionNumber:VersionNumber.toption[@ocaml.doc"The version of the job execution. Job execution versions are incremented each time IoT Jobs receives an update from a device."];executionNumber:ExecutionNumber.toption[@ocaml.doc"A number that identifies a particular job execution on a particular device."]}letmake?jobId=fun?queuedAt->fun?startedAt->fun?lastUpdatedAt->fun?versionNumber->fun?executionNumber->fun()->{jobId;queuedAt;startedAt;lastUpdatedAt;versionNumber;executionNumber}letto_valuex=structure_to_value[("jobId",(Option.mapx.jobId~f:JobId.to_value));("queuedAt",(Option.mapx.queuedAt~f:QueuedAt.to_value));("startedAt",(Option.mapx.startedAt~f:StartedAt.to_value));("lastUpdatedAt",(Option.mapx.lastUpdatedAt~f:LastUpdatedAt.to_value));("versionNumber",(Option.mapx.versionNumber~f:VersionNumber.to_value));("executionNumber",(Option.mapx.executionNumber~f:ExecutionNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionNumber=(Option.map~f:ExecutionNumber.of_xml)(Xml.childxml_arg0"executionNumber")inletversionNumber=(Option.map~f:VersionNumber.of_xml)(Xml.childxml_arg0"versionNumber")inletlastUpdatedAt=(Option.map~f:LastUpdatedAt.of_xml)(Xml.childxml_arg0"lastUpdatedAt")inletstartedAt=(Option.map~f:StartedAt.of_xml)(Xml.childxml_arg0"startedAt")inletqueuedAt=(Option.map~f:QueuedAt.of_xml)(Xml.childxml_arg0"queuedAt")inletjobId=(Option.map~f:JobId.of_xml)(Xml.childxml_arg0"jobId")inmake?executionNumber?versionNumber?lastUpdatedAt?startedAt?queuedAt?jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionNumber=field_mapjson__"executionNumber"ExecutionNumber.of_jsoninletversionNumber=field_mapjson__"versionNumber"VersionNumber.of_jsoninletlastUpdatedAt=field_mapjson__"lastUpdatedAt"LastUpdatedAt.of_jsoninletstartedAt=field_mapjson__"startedAt"StartedAt.of_jsoninletqueuedAt=field_mapjson__"queuedAt"QueuedAt.of_jsoninletjobId=field_mapjson__"jobId"JobId.of_jsoninmake?executionNumber?versionNumber?lastUpdatedAt?startedAt?queuedAt?jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains a subset of information about a job execution."]moduleCertificateValidationException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"Additional information about the exception."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The certificate is invalid."]moduleInvalidRequestException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"The message for the exception."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The contents of the request were invalid."]moduleInvalidStateTransitionException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An update attempted to change the job execution to a state that is invalid because of the job execution's current state (for example, an attempt to change a request in state SUCCESS to state IN_PROGRESS). In this case, the body of the error message also contains the executionState field."]moduleJobExecutionState=structtypenonrect={status:JobExecutionStatus.toption[@ocaml.doc"The status of the job execution. Can be one of: \"QUEUED\", \"IN_PROGRESS\", \"FAILED\", \"SUCCESS\", \"CANCELED\", \"TIMED_OUT\", \"REJECTED\", or \"REMOVED\"."];statusDetails:DetailsMap.toption[@ocaml.doc"A collection of name/value pairs that describe the status of the job execution. The maximum length of the value in the name/value pair is 1,024 characters."];versionNumber:VersionNumber.toption[@ocaml.doc"The version of the job execution. Job execution versions are incremented each time they are updated by a device."]}letmake?status=fun?statusDetails->fun?versionNumber->fun()->{status;statusDetails;versionNumber}letto_valuex=structure_to_value[("status",(Option.mapx.status~f:JobExecutionStatus.to_value));("statusDetails",(Option.mapx.statusDetails~f:DetailsMap.to_value));("versionNumber",(Option.mapx.versionNumber~f:VersionNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letversionNumber=(Option.map~f:VersionNumber.of_xml)(Xml.childxml_arg0"versionNumber")inletstatusDetails=(Option.map~f:DetailsMap.of_xml)(Xml.childxml_arg0"statusDetails")inletstatus=(Option.map~f:JobExecutionStatus.of_xml)(Xml.childxml_arg0"status")inmake?versionNumber?statusDetails?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letversionNumber=field_mapjson__"versionNumber"VersionNumber.of_jsoninletstatusDetails=field_mapjson__"statusDetails"DetailsMap.of_jsoninletstatus=field_mapjson__"status"JobExecutionStatus.of_jsoninmake?versionNumber?statusDetails?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains data about the state of a job execution."]moduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"The message for the exception."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified resource does not exist."]moduleServiceUnavailableException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"The message for the exception."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The service is temporarily unavailable."]moduleThrottlingException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"The message associated with the exception."];payload:BinaryBlob.toption[@ocaml.doc"The payload associated with the exception."]}letmake?message=fun?payload->fun()->{message;payload}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("payload",(Option.mapx.payload~f:BinaryBlob.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpayload=(Option.map~f:BinaryBlob.of_xml)(Xml.childxml_arg0"payload")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?payload?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpayload=field_mapjson__"payload"BinaryBlob.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?payload?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The rate exceeds the limit."]moduleExpectedVersion=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_valueendmoduleIncludeExecutionState=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_valueendmoduleIncludeJobDocument=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_valueendmoduleStepTimeoutInMinutes=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_valueendmoduleJobExecution=structtypenonrect={jobId:JobId.toption[@ocaml.doc"The unique identifier you assigned to this job when it was created."];thingName:ThingName.toption[@ocaml.doc"The name of the thing that is executing the job."];status:JobExecutionStatus.toption[@ocaml.doc"The status of the job execution. Can be one of: \"QUEUED\", \"IN_PROGRESS\", \"FAILED\", \"SUCCESS\", \"CANCELED\", \"TIMED_OUT\", \"REJECTED\", or \"REMOVED\"."];statusDetails:DetailsMap.toption[@ocaml.doc"A collection of name/value pairs that describe the status of the job execution. The maximum length of the value in the name/value pair is 1,024 characters."];queuedAt:QueuedAt.toption[@ocaml.doc"The time, in seconds since the epoch, when the job execution was enqueued."];startedAt:StartedAt.toption[@ocaml.doc"The time, in seconds since the epoch, when the job execution was started."];lastUpdatedAt:LastUpdatedAt.toption[@ocaml.doc"The time, in seconds since the epoch, when the job execution was last updated."];approximateSecondsBeforeTimedOut:ApproximateSecondsBeforeTimedOut.toption[@ocaml.doc"The estimated number of seconds that remain before the job execution status will be changed to TIMED_OUT. The actual job execution timeout can occur up to 60 seconds later than the estimated duration."];versionNumber:VersionNumber.toption[@ocaml.doc"The version of the job execution. Job execution versions are incremented each time they are updated by a device."];executionNumber:ExecutionNumber.toption[@ocaml.doc"A number that identifies a particular job execution on a particular device. It can be used later in commands that return or update job execution information."];jobDocument:JobDocument.toption[@ocaml.doc"The content of the job document."]}letmake?jobId=fun?thingName->fun?status->fun?statusDetails->fun?queuedAt->fun?startedAt->fun?lastUpdatedAt->fun?approximateSecondsBeforeTimedOut->fun?versionNumber->fun?executionNumber->fun?jobDocument->fun()->{jobId;thingName;status;statusDetails;queuedAt;startedAt;lastUpdatedAt;approximateSecondsBeforeTimedOut;versionNumber;executionNumber;jobDocument}letto_valuex=structure_to_value[("jobId",(Option.mapx.jobId~f:JobId.to_value));("thingName",(Option.mapx.thingName~f:ThingName.to_value));("status",(Option.mapx.status~f:JobExecutionStatus.to_value));("statusDetails",(Option.mapx.statusDetails~f:DetailsMap.to_value));("queuedAt",(Option.mapx.queuedAt~f:QueuedAt.to_value));("startedAt",(Option.mapx.startedAt~f:StartedAt.to_value));("lastUpdatedAt",(Option.mapx.lastUpdatedAt~f:LastUpdatedAt.to_value));("approximateSecondsBeforeTimedOut",(Option.mapx.approximateSecondsBeforeTimedOut~f:ApproximateSecondsBeforeTimedOut.to_value));("versionNumber",(Option.mapx.versionNumber~f:VersionNumber.to_value));("executionNumber",(Option.mapx.executionNumber~f:ExecutionNumber.to_value));("jobDocument",(Option.mapx.jobDocument~f:JobDocument.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobDocument=(Option.map~f:JobDocument.of_xml)(Xml.childxml_arg0"jobDocument")inletexecutionNumber=(Option.map~f:ExecutionNumber.of_xml)(Xml.childxml_arg0"executionNumber")inletversionNumber=(Option.map~f:VersionNumber.of_xml)(Xml.childxml_arg0"versionNumber")inletapproximateSecondsBeforeTimedOut=(Option.map~f:ApproximateSecondsBeforeTimedOut.of_xml)(Xml.childxml_arg0"approximateSecondsBeforeTimedOut")inletlastUpdatedAt=(Option.map~f:LastUpdatedAt.of_xml)(Xml.childxml_arg0"lastUpdatedAt")inletstartedAt=(Option.map~f:StartedAt.of_xml)(Xml.childxml_arg0"startedAt")inletqueuedAt=(Option.map~f:QueuedAt.of_xml)(Xml.childxml_arg0"queuedAt")inletstatusDetails=(Option.map~f:DetailsMap.of_xml)(Xml.childxml_arg0"statusDetails")inletstatus=(Option.map~f:JobExecutionStatus.of_xml)(Xml.childxml_arg0"status")inletthingName=(Option.map~f:ThingName.of_xml)(Xml.childxml_arg0"thingName")inletjobId=(Option.map~f:JobId.of_xml)(Xml.childxml_arg0"jobId")inmake?jobDocument?executionNumber?versionNumber?approximateSecondsBeforeTimedOut?lastUpdatedAt?startedAt?queuedAt?statusDetails?status?thingName?jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobDocument=field_mapjson__"jobDocument"JobDocument.of_jsoninletexecutionNumber=field_mapjson__"executionNumber"ExecutionNumber.of_jsoninletversionNumber=field_mapjson__"versionNumber"VersionNumber.of_jsoninletapproximateSecondsBeforeTimedOut=field_mapjson__"approximateSecondsBeforeTimedOut"ApproximateSecondsBeforeTimedOut.of_jsoninletlastUpdatedAt=field_mapjson__"lastUpdatedAt"LastUpdatedAt.of_jsoninletstartedAt=field_mapjson__"startedAt"StartedAt.of_jsoninletqueuedAt=field_mapjson__"queuedAt"QueuedAt.of_jsoninletstatusDetails=field_mapjson__"statusDetails"DetailsMap.of_jsoninletstatus=field_mapjson__"status"JobExecutionStatus.of_jsoninletthingName=field_mapjson__"thingName"ThingName.of_jsoninletjobId=field_mapjson__"jobId"JobId.of_jsoninmake?jobDocument?executionNumber?versionNumber?approximateSecondsBeforeTimedOut?lastUpdatedAt?startedAt?queuedAt?statusDetails?status?thingName?jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains data about a job execution."]moduleCommandExecutionId=structtypenonrect=stringletcontext_="CommandExecutionId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CommandExecutionId"jletto_json=simple_to_jsonto_valueendmoduleConflictException=structtypenonrect={message:ErrorMessage.toption;resourceId:ResourceId.toption[@ocaml.doc"A conflict occurred while performing the API request on the resource ID."]}letmake?message=fun?resourceId->fun()->{message;resourceId}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("resourceId",(Option.mapx.resourceId~f:ResourceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceId=field_mapjson__"resourceId"ResourceId.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A conflict has occurred when performing the API request."]moduleInternalServerException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An internal server error occurred when performing the API request."]moduleServiceQuotaExceededException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The service quota has been exceeded for this request."]moduleValidationException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A validation error occurred when performing the API request."]moduleClientRequestTokenV2=structtypenonrect=stringletcontext_="ClientRequestTokenV2"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"^[\\x21-\\x7E]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientRequestTokenV2"jletto_json=simple_to_jsonto_valueendmoduleCommandArn=structtypenonrect=stringletcontext_="CommandArn"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:"CommandArn"jletto_json=simple_to_jsonto_valueendmoduleCommandExecutionParameterMap=structtypenonrect=(CommandParameterName.t*CommandParameterValue.t)listletmakei=letopenResultinok_or_failwith(check_list_mini~min:1);iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types CommandParameterName CommandParameterValue"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(CommandParameterName.to_valuex)|>(funx->(CommandParameterValue.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:CommandParameterName.of_string~of_json:CommandParameterValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCommandExecutionTimeoutInSeconds=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:1L);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_valueendmoduleTargetArn=structtypenonrect=stringletcontext_="TargetArn"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:2048);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TargetArn"jletto_json=simple_to_jsonto_valueendmoduleJobExecutionSummaryList=structtypenonrect=JobExecutionSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:JobExecutionSummary.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:JobExecutionSummary.of_xml)letof_jsonj=list_of_json~kind:"JobExecutionSummaryList"~of_json:JobExecutionSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTerminalStateException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The job is in a terminal state."]moduleDescribeJobExecutionJobId=structtypenonrect=stringletcontext_="DescribeJobExecutionJobId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9_-]+|^\\$next");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DescribeJobExecutionJobId"jletto_json=simple_to_jsonto_valueendmoduleUpdateJobExecutionResponse=structtypenonrect={executionState:JobExecutionState.toption[@ocaml.doc"A JobExecutionState object."];jobDocument:JobDocument.toption[@ocaml.doc"The contents of the Job Documents."]}typenonrecerror=[`CertificateValidationExceptionofCertificateValidationException.t|`InvalidRequestExceptionofInvalidRequestException.t|`InvalidStateTransitionExceptionofInvalidStateTransitionException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executionState=fun?jobDocument->fun()->{executionState;jobDocument}leterror_of_jsonnamejson=matchnamewith|"CertificateValidationException"->`CertificateValidationException(CertificateValidationException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"InvalidStateTransitionException"->`InvalidStateTransitionException(InvalidStateTransitionException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CertificateValidationException"->`CertificateValidationException(CertificateValidationException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"InvalidStateTransitionException"->`InvalidStateTransitionException(InvalidStateTransitionException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CertificateValidationExceptione->`Assoc[("error",(`String"CertificateValidationException"));("details",(CertificateValidationException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`InvalidStateTransitionExceptione->`Assoc[("error",(`String"InvalidStateTransitionException"));("details",(InvalidStateTransitionException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("executionState",(Option.mapx.executionState~f:JobExecutionState.to_value));("jobDocument",(Option.mapx.jobDocument~f:JobDocument.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobDocument=(Option.map~f:JobDocument.of_xml)(Xml.childxml_arg0"jobDocument")inletexecutionState=(Option.map~f:JobExecutionState.of_xml)(Xml.childxml_arg0"executionState")inmake?jobDocument?executionState()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobDocument=field_mapjson__"jobDocument"JobDocument.of_jsoninletexecutionState=field_mapjson__"executionState"JobExecutionState.of_jsoninmake?jobDocument?executionState()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the status of a job execution. Requires permission to access the UpdateJobExecution action."]moduleUpdateJobExecutionRequest=structtypenonrect={jobId:JobId.t[@ocaml.doc"The unique identifier assigned to this job when it was created."];thingName:ThingName.t[@ocaml.doc"The name of the thing associated with the device."];status:JobExecutionStatus.t[@ocaml.doc"The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update."];statusDetails:DetailsMap.toption[@ocaml.doc"Optional. A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged. The maximum length of the value in the name/value pair is 1,024 characters."];stepTimeoutInMinutes:StepTimeoutInMinutes.toption[@ocaml.doc"Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by again calling UpdateJobExecution, setting the status to IN_PROGRESS, and specifying a new timeout value in this field) the job execution status will be automatically set to TIMED_OUT. Note that setting or resetting the step timeout has no effect on the in progress timeout that may have been specified when the job was created (CreateJob using field timeoutConfig). Valid values for this parameter range from 1 to 10080 (1 minute to 7 days). A value of -1 is also valid and will cancel the current step timer (created by an earlier use of UpdateJobExecutionRequest)."];expectedVersion:ExpectedVersion.toption[@ocaml.doc"Optional. The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)"];includeJobExecutionState:IncludeExecutionState.toption[@ocaml.doc"Optional. When included and set to true, the response contains the JobExecutionState data. The default is false."];includeJobDocument:IncludeJobDocument.toption[@ocaml.doc"Optional. When set to true, the response contains the job document. The default is false."];executionNumber:ExecutionNumber.toption[@ocaml.doc"Optional. A number that identifies a particular job execution on a particular device."]}letcontext_="UpdateJobExecutionRequest"letmake?statusDetails=fun?stepTimeoutInMinutes->fun?expectedVersion->fun?includeJobExecutionState->fun?includeJobDocument->fun?executionNumber->fun~jobId->fun~thingName->fun~status->fun()->{statusDetails;stepTimeoutInMinutes;expectedVersion;includeJobExecutionState;includeJobDocument;executionNumber;jobId;thingName;status}letto_valuex=structure_to_value[("jobId",(Some(JobId.to_valuex.jobId)));("thingName",(Some(ThingName.to_valuex.thingName)));("status",(Some(JobExecutionStatus.to_valuex.status)));("statusDetails",(Option.mapx.statusDetails~f:DetailsMap.to_value));("stepTimeoutInMinutes",(Option.mapx.stepTimeoutInMinutes~f:StepTimeoutInMinutes.to_value));("expectedVersion",(Option.mapx.expectedVersion~f:ExpectedVersion.to_value));("includeJobExecutionState",(Option.mapx.includeJobExecutionState~f:IncludeExecutionState.to_value));("includeJobDocument",(Option.mapx.includeJobDocument~f:IncludeJobDocument.to_value));("executionNumber",(Option.mapx.executionNumber~f:ExecutionNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionNumber=(Option.map~f:ExecutionNumber.of_xml)(Xml.childxml_arg0"executionNumber")inletincludeJobDocument=(Option.map~f:IncludeJobDocument.of_xml)(Xml.childxml_arg0"includeJobDocument")inletincludeJobExecutionState=(Option.map~f:IncludeExecutionState.of_xml)(Xml.childxml_arg0"includeJobExecutionState")inletexpectedVersion=(Option.map~f:ExpectedVersion.of_xml)(Xml.childxml_arg0"expectedVersion")inletstepTimeoutInMinutes=(Option.map~f:StepTimeoutInMinutes.of_xml)(Xml.childxml_arg0"stepTimeoutInMinutes")inletstatusDetails=(Option.map~f:DetailsMap.of_xml)(Xml.childxml_arg0"statusDetails")inletstatus=JobExecutionStatus.of_xml(Xml.child_exn~context:context_xml_arg0"status")inletthingName=ThingName.of_xml(Xml.child_exn~context:context_xml_arg0"thingName")inletjobId=JobId.of_xml(Xml.child_exn~context:context_xml_arg0"jobId")inmake?executionNumber?includeJobDocument?includeJobExecutionState?expectedVersion?stepTimeoutInMinutes?statusDetails~status~thingName~jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionNumber=field_mapjson__"executionNumber"ExecutionNumber.of_jsoninletincludeJobDocument=field_mapjson__"includeJobDocument"IncludeJobDocument.of_jsoninletincludeJobExecutionState=field_mapjson__"includeJobExecutionState"IncludeExecutionState.of_jsoninletexpectedVersion=field_mapjson__"expectedVersion"ExpectedVersion.of_jsoninletstepTimeoutInMinutes=field_mapjson__"stepTimeoutInMinutes"StepTimeoutInMinutes.of_jsoninletstatusDetails=field_mapjson__"statusDetails"DetailsMap.of_jsoninletstatus=field_map_exnjson__"status"JobExecutionStatus.of_jsoninletthingName=field_map_exnjson__"thingName"ThingName.of_jsoninletjobId=field_map_exnjson__"jobId"JobId.of_jsoninmake?executionNumber?includeJobDocument?includeJobExecutionState?expectedVersion?stepTimeoutInMinutes?statusDetails~status~thingName~jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the status of a job execution. Requires permission to access the UpdateJobExecution action."]moduleStartNextPendingJobExecutionResponse=structtypenonrect={execution:JobExecution.toption[@ocaml.doc"A JobExecution object."]}typenonrecerror=[`CertificateValidationExceptionofCertificateValidationException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?execution=fun()->{execution}leterror_of_jsonnamejson=matchnamewith|"CertificateValidationException"->`CertificateValidationException(CertificateValidationException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CertificateValidationException"->`CertificateValidationException(CertificateValidationException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CertificateValidationExceptione->`Assoc[("error",(`String"CertificateValidationException"));("details",(CertificateValidationException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("execution",(Option.mapx.execution~f:JobExecution.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecution=(Option.map~f:JobExecution.of_xml)(Xml.childxml_arg0"execution")inmake?execution()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecution=field_mapjson__"execution"JobExecution.of_jsoninmake?execution()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing. Requires permission to access the StartNextPendingJobExecution action."]moduleStartNextPendingJobExecutionRequest=structtypenonrect={thingName:ThingName.t[@ocaml.doc"The name of the thing associated with the device."];statusDetails:DetailsMap.toption[@ocaml.doc"A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged. The maximum length of the value in the name/value pair is 1,024 characters."];stepTimeoutInMinutes:StepTimeoutInMinutes.toption[@ocaml.doc"Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling UpdateJobExecution, setting the status to IN_PROGRESS, and specifying a new timeout value in field stepTimeoutInMinutes) the job execution status will be automatically set to TIMED_OUT. Note that setting the step timeout has no effect on the in progress timeout that may have been specified when the job was created (CreateJob using field timeoutConfig). Valid values for this parameter range from 1 to 10080 (1 minute to 7 days)."]}letcontext_="StartNextPendingJobExecutionRequest"letmake?statusDetails=fun?stepTimeoutInMinutes->fun~thingName->fun()->{statusDetails;stepTimeoutInMinutes;thingName}letto_valuex=structure_to_value[("thingName",(Some(ThingName.to_valuex.thingName)));("statusDetails",(Option.mapx.statusDetails~f:DetailsMap.to_value));("stepTimeoutInMinutes",(Option.mapx.stepTimeoutInMinutes~f:StepTimeoutInMinutes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstepTimeoutInMinutes=(Option.map~f:StepTimeoutInMinutes.of_xml)(Xml.childxml_arg0"stepTimeoutInMinutes")inletstatusDetails=(Option.map~f:DetailsMap.of_xml)(Xml.childxml_arg0"statusDetails")inletthingName=ThingName.of_xml(Xml.child_exn~context:context_xml_arg0"thingName")inmake?stepTimeoutInMinutes?statusDetails~thingName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstepTimeoutInMinutes=field_mapjson__"stepTimeoutInMinutes"StepTimeoutInMinutes.of_jsoninletstatusDetails=field_mapjson__"statusDetails"DetailsMap.of_jsoninletthingName=field_map_exnjson__"thingName"ThingName.of_jsoninmake?stepTimeoutInMinutes?statusDetails~thingName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing. Requires permission to access the StartNextPendingJobExecution action."]moduleStartCommandExecutionResponse=structtypenonrect={executionId:CommandExecutionId.toption[@ocaml.doc"A unique identifier for the command execution."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executionId=fun()->{executionId}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.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|"ConflictException"->`ConflictException(ConflictException.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|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`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[("executionId",(Option.mapx.executionId~f:CommandExecutionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionId=(Option.map~f:CommandExecutionId.of_xml)(Xml.childxml_arg0"executionId")inmake?executionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionId=field_mapjson__"executionId"CommandExecutionId.of_jsoninmake?executionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Using the command created with the CreateCommand API, start a command execution on a specific device."]moduleStartCommandExecutionRequest=structtypenonrect={targetArn:TargetArn.t[@ocaml.doc"The Amazon Resource Number (ARN) of the device where the command execution is occurring."];commandArn:CommandArn.t[@ocaml.doc"The Amazon Resource Number (ARN) of the command. For example, arn:aws:iot:<region>:<accountid>:command/<commandName>"];parameters:CommandExecutionParameterMap.toption[@ocaml.doc"A list of parameters that are required by the StartCommandExecution API when performing the command on a device."];executionTimeoutSeconds:CommandExecutionTimeoutInSeconds.toption[@ocaml.doc"Specifies the amount of time in second the device has to finish the command execution. A timer is started as soon as the command execution is created. If the command execution status is not set to another terminal state before the timer expires, it will automatically update to TIMED_OUT."];clientToken:ClientRequestTokenV2.toption[@ocaml.doc"The client token is used to implement idempotency. It ensures that the request completes no more than one time. If you retry a request with the same token and the same parameters, the request will complete successfully. However, if you retry the request using the same token but different parameters, an HTTP 409 conflict occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request."]}letcontext_="StartCommandExecutionRequest"letmake?parameters=fun?executionTimeoutSeconds->fun?clientToken->fun~targetArn->fun~commandArn->fun()->{parameters;executionTimeoutSeconds;clientToken;targetArn;commandArn}letto_valuex=structure_to_value[("targetArn",(Some(TargetArn.to_valuex.targetArn)));("commandArn",(Some(CommandArn.to_valuex.commandArn)));("parameters",(Option.mapx.parameters~f:CommandExecutionParameterMap.to_value));("executionTimeoutSeconds",(Option.mapx.executionTimeoutSeconds~f:CommandExecutionTimeoutInSeconds.to_value));("clientToken",(Option.mapx.clientToken~f:ClientRequestTokenV2.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:ClientRequestTokenV2.of_xml)(Xml.childxml_arg0"clientToken")inletexecutionTimeoutSeconds=(Option.map~f:CommandExecutionTimeoutInSeconds.of_xml)(Xml.childxml_arg0"executionTimeoutSeconds")inletparameters=(Option.map~f:CommandExecutionParameterMap.of_xml)(Xml.childxml_arg0"parameters")inletcommandArn=CommandArn.of_xml(Xml.child_exn~context:context_xml_arg0"commandArn")inlettargetArn=TargetArn.of_xml(Xml.child_exn~context:context_xml_arg0"targetArn")inmake?clientToken?executionTimeoutSeconds?parameters~commandArn~targetArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientRequestTokenV2.of_jsoninletexecutionTimeoutSeconds=field_mapjson__"executionTimeoutSeconds"CommandExecutionTimeoutInSeconds.of_jsoninletparameters=field_mapjson__"parameters"CommandExecutionParameterMap.of_jsoninletcommandArn=field_map_exnjson__"commandArn"CommandArn.of_jsoninlettargetArn=field_map_exnjson__"targetArn"TargetArn.of_jsoninmake?clientToken?executionTimeoutSeconds?parameters~commandArn~targetArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Using the command created with the CreateCommand API, start a command execution on a specific device."]moduleGetPendingJobExecutionsResponse=structtypenonrect={inProgressJobs:JobExecutionSummaryList.toption[@ocaml.doc"A list of JobExecutionSummary objects with status IN_PROGRESS."];queuedJobs:JobExecutionSummaryList.toption[@ocaml.doc"A list of JobExecutionSummary objects with status QUEUED."]}typenonrecerror=[`CertificateValidationExceptionofCertificateValidationException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?inProgressJobs=fun?queuedJobs->fun()->{inProgressJobs;queuedJobs}leterror_of_jsonnamejson=matchnamewith|"CertificateValidationException"->`CertificateValidationException(CertificateValidationException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CertificateValidationException"->`CertificateValidationException(CertificateValidationException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CertificateValidationExceptione->`Assoc[("error",(`String"CertificateValidationException"));("details",(CertificateValidationException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("inProgressJobs",(Option.mapx.inProgressJobs~f:JobExecutionSummaryList.to_value));("queuedJobs",(Option.mapx.queuedJobs~f:JobExecutionSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueuedJobs=(Option.map~f:JobExecutionSummaryList.of_xml)(Xml.childxml_arg0"queuedJobs")inletinProgressJobs=(Option.map~f:JobExecutionSummaryList.of_xml)(Xml.childxml_arg0"inProgressJobs")inmake?queuedJobs?inProgressJobs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueuedJobs=field_mapjson__"queuedJobs"JobExecutionSummaryList.of_jsoninletinProgressJobs=field_mapjson__"inProgressJobs"JobExecutionSummaryList.of_jsoninmake?queuedJobs?inProgressJobs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the list of all jobs for a thing that are not in a terminal status. Requires permission to access the GetPendingJobExecutions action."]moduleGetPendingJobExecutionsRequest=structtypenonrect={thingName:ThingName.t[@ocaml.doc"The name of the thing that is executing the job."]}letcontext_="GetPendingJobExecutionsRequest"letmake~thingName=fun()->{thingName}letto_valuex=structure_to_value[("thingName",(Some(ThingName.to_valuex.thingName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letthingName=ThingName.of_xml(Xml.child_exn~context:context_xml_arg0"thingName")inmake~thingName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letthingName=field_map_exnjson__"thingName"ThingName.of_jsoninmake~thingName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the list of all jobs for a thing that are not in a terminal status. Requires permission to access the GetPendingJobExecutions action."]moduleDescribeJobExecutionResponse=structtypenonrect={execution:JobExecution.toption[@ocaml.doc"Contains data about a job execution."]}typenonrecerror=[`CertificateValidationExceptionofCertificateValidationException.t|`InvalidRequestExceptionofInvalidRequestException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TerminalStateExceptionofTerminalStateException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?execution=fun()->{execution}leterror_of_jsonnamejson=matchnamewith|"CertificateValidationException"->`CertificateValidationException(CertificateValidationException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TerminalStateException"->`TerminalStateException(TerminalStateException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CertificateValidationException"->`CertificateValidationException(CertificateValidationException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TerminalStateException"->`TerminalStateException(TerminalStateException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CertificateValidationExceptione->`Assoc[("error",(`String"CertificateValidationException"));("details",(CertificateValidationException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TerminalStateExceptione->`Assoc[("error",(`String"TerminalStateException"));("details",(TerminalStateException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("execution",(Option.mapx.execution~f:JobExecution.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecution=(Option.map~f:JobExecution.of_xml)(Xml.childxml_arg0"execution")inmake?execution()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecution=field_mapjson__"execution"JobExecution.of_jsoninmake?execution()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets details of a job execution. Requires permission to access the DescribeJobExecution action."]moduleDescribeJobExecutionRequest=structtypenonrect={jobId:DescribeJobExecutionJobId.t[@ocaml.doc"The unique identifier assigned to this job when it was created."];thingName:ThingName.t[@ocaml.doc"The thing name associated with the device the job execution is running on."];includeJobDocument:IncludeJobDocument.toption[@ocaml.doc"Optional. Unless set to false, the response contains the job document. The default is true."];executionNumber:ExecutionNumber.toption[@ocaml.doc"Optional. A number that identifies a particular job execution on a particular device. If not specified, the latest job execution is returned."]}letcontext_="DescribeJobExecutionRequest"letmake?includeJobDocument=fun?executionNumber->fun~jobId->fun~thingName->fun()->{includeJobDocument;executionNumber;jobId;thingName}letto_valuex=structure_to_value[("jobId",(Some(DescribeJobExecutionJobId.to_valuex.jobId)));("thingName",(Some(ThingName.to_valuex.thingName)));("includeJobDocument",(Option.mapx.includeJobDocument~f:IncludeJobDocument.to_value));("executionNumber",(Option.mapx.executionNumber~f:ExecutionNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionNumber=(Option.map~f:ExecutionNumber.of_xml)(Xml.childxml_arg0"executionNumber")inletincludeJobDocument=(Option.map~f:IncludeJobDocument.of_xml)(Xml.childxml_arg0"includeJobDocument")inletthingName=ThingName.of_xml(Xml.child_exn~context:context_xml_arg0"thingName")inletjobId=DescribeJobExecutionJobId.of_xml(Xml.child_exn~context:context_xml_arg0"jobId")inmake?executionNumber?includeJobDocument~thingName~jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionNumber=field_mapjson__"executionNumber"ExecutionNumber.of_jsoninletincludeJobDocument=field_mapjson__"includeJobDocument"IncludeJobDocument.of_jsoninletthingName=field_map_exnjson__"thingName"ThingName.of_jsoninletjobId=field_map_exnjson__"jobId"DescribeJobExecutionJobId.of_jsoninmake?executionNumber?includeJobDocument~thingName~jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets details of a job execution. Requires permission to access the DescribeJobExecution action."]