1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173(* 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.bedrock_data_automation_runtimeletapiVersion="2024-06-13"letendpointPrefix="bedrock-data-automation-runtime"letserviceFullName="Runtime for Amazon Bedrock Data Automation"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"lettargetPrefix="AmazonBedrockKeystoneRuntimeService"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[]))])moduleTimestampSegmentEndTimeMillisLong=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:300000L);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_valueendmoduleTimestampSegmentStartTimeMillisLong=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:0L);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_valueendmoduleTimestampSegment=structtypenonrect={startTimeMillis:TimestampSegmentStartTimeMillisLong.t[@ocaml.doc"Start timestamp in milliseconds"];endTimeMillis:TimestampSegmentEndTimeMillisLong.t[@ocaml.doc"End timestamp in milliseconds"]}letcontext_="TimestampSegment"letmake~startTimeMillis=fun~endTimeMillis->fun()->{startTimeMillis;endTimeMillis}letto_valuex=structure_to_value[("startTimeMillis",(Some(TimestampSegmentStartTimeMillisLong.to_valuex.startTimeMillis)));("endTimeMillis",(Some(TimestampSegmentEndTimeMillisLong.to_valuex.endTimeMillis)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendTimeMillis=TimestampSegmentEndTimeMillisLong.of_xml(Xml.child_exn~context:context_xml_arg0"endTimeMillis")inletstartTimeMillis=TimestampSegmentStartTimeMillisLong.of_xml(Xml.child_exn~context:context_xml_arg0"startTimeMillis")inmake~endTimeMillis~startTimeMillis()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendTimeMillis=field_map_exnjson__"endTimeMillis"TimestampSegmentEndTimeMillisLong.of_jsoninletstartTimeMillis=field_map_exnjson__"startTimeMillis"TimestampSegmentStartTimeMillisLong.of_jsoninmake~endTimeMillis~startTimeMillis()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Timestamp segment"]moduleVideoSegmentConfiguration=structtypenonrect={timestampSegment:TimestampSegment.toption[@ocaml.doc"Timestamp segment"]}letmake?timestampSegment=fun()->{timestampSegment}letto_valuex=structure_to_value[("timestampSegment",(Option.mapx.timestampSegment~f:TimestampSegment.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimestampSegment=(Option.map~f:TimestampSegment.of_xml)(Xml.childxml_arg0"timestampSegment")inmake?timestampSegment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimestampSegment=field_mapjson__"timestampSegment"TimestampSegment.of_jsoninmake?timestampSegment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Delimits the segment of the input that will be processed"]moduleTagKey=structtypenonrect=string[@@ocaml.doc"Defines the context of the tag."]letcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"(?!aws:)[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Defines the context of the tag."]moduleTagValue=structtypenonrect=string[@@ocaml.doc"Defines the value within the context. e.g. <key=reason, value=training>."]letcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Defines the value within the context. e.g. <key=reason, value=training>."]moduleCustomOutputStatus=structtypenonrect=|MATCH|NO_MATCH|Non_static_idofstringletmakei=iletto_string=function|MATCH->"MATCH"|NO_MATCH->"NO_MATCH"|Non_static_ids->sletof_string=function|"MATCH"->MATCH|"NO_MATCH"->NO_MATCH|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 CustomOutputStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CustomOutputStatus"j)letto_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_valueendmoduleBlueprintArn=structtypenonrect=string[@@ocaml.doc"ARN of a Blueprint"]letcontext_="BlueprintArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws(|-cn|-iso|-iso-[a-z]|-us-gov):bedrock:[a-zA-Z0-9-]*:(aws|[0-9]{12}):blueprint/(bedrock-data-insights-public-[a-zA-Z0-9-_]{1,30}|bedrock-data-automation-public-[a-zA-Z0-9-_]{1,30}|[a-zA-Z0-9-]{12,36})")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BlueprintArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"ARN of a Blueprint"]moduleBlueprintStage=structtypenonrect=|DEVELOPMENT|LIVE|Non_static_idofstringletmakei=iletto_string=function|DEVELOPMENT->"DEVELOPMENT"|LIVE->"LIVE"|Non_static_ids->sletof_string=function|"DEVELOPMENT"->DEVELOPMENT|"LIVE"->LIVE|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 BlueprintStage"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"BlueprintStage"j)letto_json=simple_to_jsonto_valueendmoduleBlueprintVersion=structtypenonrect=string[@@ocaml.doc"Blueprint version."]letcontext_="BlueprintVersion"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(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:"BlueprintVersion"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Blueprint version."]moduleEncryptionContextKey=structtypenonrect=string[@@ocaml.doc"Excryption context key."]letcontext_="EncryptionContextKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2000)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EncryptionContextKey"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Excryption context key."]moduleEncryptionContextValue=structtypenonrect=string[@@ocaml.doc"Encryption context value."]letcontext_="EncryptionContextValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2000)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EncryptionContextValue"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Encryption context value."]moduleVideoAssetProcessingConfiguration=structtypenonrect={segmentConfiguration:VideoSegmentConfiguration.toption[@ocaml.doc"Delimits the segment of the input that will be processed"]}letmake?segmentConfiguration=fun()->{segmentConfiguration}letto_valuex=structure_to_value[("segmentConfiguration",(Option.mapx.segmentConfiguration~f:VideoSegmentConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsegmentConfiguration=(Option.map~f:VideoSegmentConfiguration.of_xml)(Xml.childxml_arg0"segmentConfiguration")inmake?segmentConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsegmentConfiguration=field_mapjson__"segmentConfiguration"VideoSegmentConfiguration.of_jsoninmake?segmentConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Video asset processing configuration"]moduleBoolean=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_valueendmoduleNonBlankString=structtypenonrect=stringletcontext_="NonBlankString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[\\s\\S]*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NonBlankString"jletto_json=simple_to_jsonto_valueendmoduleTag=structtypenonrect={key:TagKey.t;value:TagValue.t}letcontext_="Tag"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("key",(Some(TagKey.to_valuex.key)));("value",(Some(TagValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=TagValue.of_xml(Xml.child_exn~context:context_xml_arg0"value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"key")inmake~value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"value"TagValue.of_jsoninletkey=field_map_exnjson__"key"TagKey.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Key value pair of a tag"]moduleS3Uri=structtypenonrect=string[@@ocaml.doc"A path in S3"]letcontext_="S3Uri"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"s3://[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9](/[^\\x00-\\x1F\\x7F\\{^}%`\\]\">\\[~<#|]*)?")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3Uri"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A path in S3"]moduleOutputSegment=structtypenonrect={customOutputStatus:CustomOutputStatus.toption[@ocaml.doc"Status of blueprint match"];customOutput:String_.toption[@ocaml.doc"Custom output response"];standardOutput:String_.toption[@ocaml.doc"Standard output response"]}letmake?customOutputStatus=fun?customOutput->fun?standardOutput->fun()->{customOutputStatus;customOutput;standardOutput}letto_valuex=structure_to_value[("customOutputStatus",(Option.mapx.customOutputStatus~f:CustomOutputStatus.to_value));("customOutput",(Option.mapx.customOutput~f:String_.to_value));("standardOutput",(Option.mapx.standardOutput~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstandardOutput=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"standardOutput")inletcustomOutput=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"customOutput")inletcustomOutputStatus=(Option.map~f:CustomOutputStatus.of_xml)(Xml.childxml_arg0"customOutputStatus")inmake?standardOutput?customOutput?customOutputStatus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstandardOutput=field_mapjson__"standardOutput"String_.of_jsoninletcustomOutput=field_mapjson__"customOutput"String_.of_jsoninletcustomOutputStatus=field_mapjson__"customOutputStatus"CustomOutputStatus.of_jsoninmake?standardOutput?customOutput?customOutputStatus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Results for an output segment"]moduleBlueprint=structtypenonrect={blueprintArn:BlueprintArn.t[@ocaml.doc"Arn of blueprint."];version:BlueprintVersion.toption[@ocaml.doc"Version of blueprint."];stage:BlueprintStage.toption[@ocaml.doc"Stage of blueprint."]}letcontext_="Blueprint"letmake?version=fun?stage->fun~blueprintArn->fun()->{version;stage;blueprintArn}letto_valuex=structure_to_value[("blueprintArn",(Some(BlueprintArn.to_valuex.blueprintArn)));("version",(Option.mapx.version~f:BlueprintVersion.to_value));("stage",(Option.mapx.stage~f:BlueprintStage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstage=(Option.map~f:BlueprintStage.of_xml)(Xml.childxml_arg0"stage")inletversion=(Option.map~f:BlueprintVersion.of_xml)(Xml.childxml_arg0"version")inletblueprintArn=BlueprintArn.of_xml(Xml.child_exn~context:context_xml_arg0"blueprintArn")inmake?stage?version~blueprintArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstage=field_mapjson__"stage"BlueprintStage.of_jsoninletversion=field_mapjson__"version"BlueprintVersion.of_jsoninletblueprintArn=field_map_exnjson__"blueprintArn"BlueprintArn.of_jsoninmake?stage?version~blueprintArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Structure for single blueprint entity."]moduleDataAutomationArn=structtypenonrect=string[@@ocaml.doc"Data automation arn."]letcontext_="DataAutomationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws(|-cn|-iso|-iso-[a-z]|-us-gov):bedrock:[a-zA-Z0-9-]*:(aws|[0-9]{12}):data-automation-project/[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:"DataAutomationArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Data automation arn."]moduleDataAutomationStage=structtypenonrect=|LIVE|DEVELOPMENT|Non_static_idofstringletmakei=iletto_string=function|LIVE->"LIVE"|DEVELOPMENT->"DEVELOPMENT"|Non_static_ids->sletof_string=function|"LIVE"->LIVE|"DEVELOPMENT"->DEVELOPMENT|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 DataAutomationStage"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DataAutomationStage"j)letto_json=simple_to_jsonto_valueendmoduleEncryptionContextMap=structtypenonrect=(EncryptionContextKey.t*EncryptionContextValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:1));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((EncryptionContextKey.of_stringchopped),(EncryptionContextValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(EncryptionContextKey.to_valuex)|>(funx->(EncryptionContextValue.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:EncryptionContextKey.of_string~of_json:EncryptionContextValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKMSKeyId=structtypenonrect=stringletcontext_="KMSKeyId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"[A-Za-z0-9][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:"KMSKeyId"jletto_json=simple_to_jsonto_valueendmoduleBlob=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_valueendmoduleAssetProcessingConfiguration=structtypenonrect={video:VideoAssetProcessingConfiguration.toption[@ocaml.doc"Video asset processing configuration"]}letmake?video=fun()->{video}letto_valuex=structure_to_value[("video",(Option.mapx.video~f:VideoAssetProcessingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvideo=(Option.map~f:VideoAssetProcessingConfiguration.of_xml)(Xml.childxml_arg0"video")inmake?video()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvideo=field_mapjson__"video"VideoAssetProcessingConfiguration.of_jsoninmake?video()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Config containing asset processing related knobs for all modalities"]moduleEventBridgeConfiguration=structtypenonrect={eventBridgeEnabled:Boolean.t[@ocaml.doc"Event bridge flag."]}letcontext_="EventBridgeConfiguration"letmake~eventBridgeEnabled=fun()->{eventBridgeEnabled}letto_valuex=structure_to_value[("eventBridgeEnabled",(Some(Boolean.to_valuex.eventBridgeEnabled)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventBridgeEnabled=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"eventBridgeEnabled")inmake~eventBridgeEnabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventBridgeEnabled=field_map_exnjson__"eventBridgeEnabled"Boolean.of_jsoninmake~eventBridgeEnabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Event bridge configuration."]moduleAccessDeniedException=structtypenonrect={message:NonBlankString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:NonBlankString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"NonBlankString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception will be thrown when customer does not have access to API."]moduleInternalServerException=structtypenonrect={message:NonBlankString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:NonBlankString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"NonBlankString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception is for any internal un-expected service errors."]moduleResourceNotFoundException=structtypenonrect={message:NonBlankString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:NonBlankString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"NonBlankString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception will be thrown when resource provided from customer not found."]moduleThrottlingException=structtypenonrect={message:NonBlankString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:NonBlankString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"NonBlankString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception will be thrown when customer reached API TPS limit."]moduleValidationException=structtypenonrect={message:NonBlankString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:NonBlankString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"NonBlankString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception will be thrown when customer provided invalid parameters."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTaggableResourceArn=structtypenonrect=string[@@ocaml.doc"ARN of a taggable resource"]letcontext_="TaggableResourceArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:1011)>>=(fun()->check_patterni~pattern:"arn:aws(|-cn|-iso|-iso-[a-z]|-us-gov):bedrock:[a-zA-Z0-9-]*:[0-9]{12}:data-automation-invocation/[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:"TaggableResourceArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"ARN of a taggable resource"]moduleServiceQuotaExceededException=structtypenonrect={message:NonBlankString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:NonBlankString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"NonBlankString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception will be thrown when service quota is exceeded."]moduleTagList=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.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:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOutputConfiguration=structtypenonrect={s3Uri:S3Uri.t[@ocaml.doc"S3 uri."]}letcontext_="OutputConfiguration"letmake~s3Uri=fun()->{s3Uri}letto_valuex=structure_to_value[("s3Uri",(Some(S3Uri.to_valuex.s3Uri)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3Uri=S3Uri.of_xml(Xml.child_exn~context:context_xml_arg0"s3Uri")inmake~s3Uri()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3Uri=field_map_exnjson__"s3Uri"S3Uri.of_jsoninmake~s3Uri()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output configuration."]moduleOutputSegmentList=structtypenonrect=OutputSegment.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:OutputSegment.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:OutputSegment.of_xml)letof_jsonj=list_of_json~kind:"OutputSegmentList"~of_json:OutputSegment.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSemanticModality=structtypenonrect=|DOCUMENT|IMAGE|AUDIO|VIDEO|Non_static_idofstringletmakei=iletto_string=function|DOCUMENT->"DOCUMENT"|IMAGE->"IMAGE"|AUDIO->"AUDIO"|VIDEO->"VIDEO"|Non_static_ids->sletof_string=function|"DOCUMENT"->DOCUMENT|"IMAGE"->IMAGE|"AUDIO"->AUDIO|"VIDEO"->VIDEO|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 SemanticModality"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SemanticModality"j)letto_json=simple_to_jsonto_valueendmoduleServiceUnavailableException=structtypenonrect={message:NonBlankString.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:NonBlankString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:NonBlankString.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"NonBlankString.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception will be thrown when service is temporarily unavailable."]moduleBlueprintList=structtypenonrect=Blueprint.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:40)>>=(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:Blueprint.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:Blueprint.of_xml)letof_jsonj=list_of_json~kind:"BlueprintList"~of_json:Blueprint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataAutomationConfiguration=structtypenonrect={dataAutomationProjectArn:DataAutomationArn.t[@ocaml.doc"Data automation project arn."];stage:DataAutomationStage.toption[@ocaml.doc"Data automation stage."]}letcontext_="DataAutomationConfiguration"letmake?stage=fun~dataAutomationProjectArn->fun()->{stage;dataAutomationProjectArn}letto_valuex=structure_to_value[("dataAutomationProjectArn",(Some(DataAutomationArn.to_valuex.dataAutomationProjectArn)));("stage",(Option.mapx.stage~f:DataAutomationStage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstage=(Option.map~f:DataAutomationStage.of_xml)(Xml.childxml_arg0"stage")inletdataAutomationProjectArn=DataAutomationArn.of_xml(Xml.child_exn~context:context_xml_arg0"dataAutomationProjectArn")inmake?stage~dataAutomationProjectArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstage=field_mapjson__"stage"DataAutomationStage.of_jsoninletdataAutomationProjectArn=field_map_exnjson__"dataAutomationProjectArn"DataAutomationArn.of_jsoninmake?stage~dataAutomationProjectArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Data automation configuration."]moduleDataAutomationProfileArn=structtypenonrect=string[@@ocaml.doc"Data automation profile arn."]letcontext_="DataAutomationProfileArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws(|-cn|-iso|-iso-[a-z]|-us-gov):bedrock:[a-zA-Z0-9-]*:(aws|[0-9]{12}):data-automation-profile/[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:"DataAutomationProfileArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Data automation profile arn."]moduleEncryptionConfiguration=structtypenonrect={kmsKeyId:KMSKeyId.t[@ocaml.doc"Customer KMS key used for encryption"];kmsEncryptionContext:EncryptionContextMap.toption[@ocaml.doc"KMS encryption context."]}letcontext_="EncryptionConfiguration"letmake?kmsEncryptionContext=fun~kmsKeyId->fun()->{kmsEncryptionContext;kmsKeyId}letto_valuex=structure_to_value[("kmsKeyId",(Some(KMSKeyId.to_valuex.kmsKeyId)));("kmsEncryptionContext",(Option.mapx.kmsEncryptionContext~f:EncryptionContextMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsEncryptionContext=(Option.map~f:EncryptionContextMap.of_xml)(Xml.childxml_arg0"kmsEncryptionContext")inletkmsKeyId=KMSKeyId.of_xml(Xml.child_exn~context:context_xml_arg0"kmsKeyId")inmake?kmsEncryptionContext~kmsKeyId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsEncryptionContext=field_mapjson__"kmsEncryptionContext"EncryptionContextMap.of_jsoninletkmsKeyId=field_map_exnjson__"kmsKeyId"KMSKeyId.of_jsoninmake?kmsEncryptionContext~kmsKeyId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Encryption configuration."]moduleSyncInputConfiguration=structtypenonrect={bytes:Blob.toption[@ocaml.doc"Input data as bytes"];s3Uri:S3Uri.toption[@ocaml.doc"S3 URI of the input data"]}letmake?bytes=fun?s3Uri->fun()->{bytes;s3Uri}letto_valuex=structure_to_value[("bytes",(Option.mapx.bytes~f:Blob.to_value));("s3Uri",(Option.mapx.s3Uri~f:S3Uri.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3Uri=(Option.map~f:S3Uri.of_xml)(Xml.childxml_arg0"s3Uri")inletbytes=(Option.map~f:Blob.of_xml)(Xml.childxml_arg0"bytes")inmake?s3Uri?bytes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3Uri=field_mapjson__"s3Uri"S3Uri.of_jsoninletbytes=field_mapjson__"bytes"Blob.of_jsoninmake?s3Uri?bytes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input configuration for synchronous API"]moduleInvocationArn=structtypenonrect=string[@@ocaml.doc"Invocation arn."]letcontext_="InvocationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws(|-cn|-iso|-iso-[a-z]|-us-gov):bedrock:[a-zA-Z0-9-]*:[0-9]{12}:data-automation-invocation/[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:"InvocationArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Invocation arn."]moduleIdempotencyToken=structtypenonrect=string[@@ocaml.doc"Client specified token used for idempotency checks"]letcontext_="IdempotencyToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9](-*[a-zA-Z0-9]){1,256}")));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_valueend[@@ocaml.doc"Client specified token used for idempotency checks"]moduleInputConfiguration=structtypenonrect={s3Uri:S3Uri.t[@ocaml.doc"S3 uri."];assetProcessingConfiguration:AssetProcessingConfiguration.toption[@ocaml.doc"Asset processing configuration"]}letcontext_="InputConfiguration"letmake?assetProcessingConfiguration=fun~s3Uri->fun()->{assetProcessingConfiguration;s3Uri}letto_valuex=structure_to_value[("s3Uri",(Some(S3Uri.to_valuex.s3Uri)));("assetProcessingConfiguration",(Option.mapx.assetProcessingConfiguration~f:AssetProcessingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassetProcessingConfiguration=(Option.map~f:AssetProcessingConfiguration.of_xml)(Xml.childxml_arg0"assetProcessingConfiguration")inlets3Uri=S3Uri.of_xml(Xml.child_exn~context:context_xml_arg0"s3Uri")inmake?assetProcessingConfiguration~s3Uri()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassetProcessingConfiguration=field_mapjson__"assetProcessingConfiguration"AssetProcessingConfiguration.of_jsoninlets3Uri=field_map_exnjson__"s3Uri"S3Uri.of_jsoninmake?assetProcessingConfiguration~s3Uri()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input configuration."]moduleNotificationConfiguration=structtypenonrect={eventBridgeConfiguration:EventBridgeConfiguration.t[@ocaml.doc"Event bridge configuration."]}letcontext_="NotificationConfiguration"letmake~eventBridgeConfiguration=fun()->{eventBridgeConfiguration}letto_valuex=structure_to_value[("eventBridgeConfiguration",(Some(EventBridgeConfiguration.to_valuex.eventBridgeConfiguration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventBridgeConfiguration=EventBridgeConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"eventBridgeConfiguration")inmake~eventBridgeConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventBridgeConfiguration=field_map_exnjson__"eventBridgeConfiguration"EventBridgeConfiguration.of_jsoninmake~eventBridgeConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Notification configuration."]moduleAutomationJobStatus=structtypenonrect=|Created|InProgress|Success|ServiceError|ClientError|Non_static_idofstringletmakei=iletto_string=function|Created->"Created"|InProgress->"InProgress"|Success->"Success"|ServiceError->"ServiceError"|ClientError->"ClientError"|Non_static_ids->sletof_string=function|"Created"->Created|"InProgress"->InProgress|"Success"->Success|"ServiceError"->ServiceError|"ClientError"->ClientError|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 AutomationJobStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AutomationJobStatus"j)letto_json=simple_to_jsonto_valueendmoduleInteger=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_valueendmoduleSyntheticTimestamp_date_time=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Untag an Amazon Bedrock Data Automation resource"]moduleUntagResourceRequest=structtypenonrect={resourceARN:TaggableResourceArn.t;tagKeys:TagKeyList.t}letcontext_="UntagResourceRequest"letmake~resourceARN=fun~tagKeys->fun()->{resourceARN;tagKeys}letto_valuex=structure_to_value[("resourceARN",(Some(TaggableResourceArn.to_valuex.resourceARN)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceARN=TaggableResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceARN")inmake~tagKeys~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"TagKeyList.of_jsoninletresourceARN=field_map_exnjson__"resourceARN"TaggableResourceArn.of_jsoninmake~tagKeys~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Untag an Amazon Bedrock Data Automation resource"]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"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))])))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"Tag an Amazon Bedrock Data Automation resource"]moduleTagResourceRequest=structtypenonrect={resourceARN:TaggableResourceArn.t;tags:TagList.t}letcontext_="TagResourceRequest"letmake~resourceARN=fun~tags->fun()->{resourceARN;tags}letto_valuex=structure_to_value[("resourceARN",(Some(TaggableResourceArn.to_valuex.resourceARN)));("tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceARN=TaggableResourceArn.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"TagList.of_jsoninletresourceARN=field_map_exnjson__"resourceARN"TaggableResourceArn.of_jsoninmake~tags~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Tag an Amazon Bedrock Data Automation resource"]moduleListTagsForResourceResponse=structtypenonrect={tags:TagList.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{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[("tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagList.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List tags for an Amazon Bedrock Data Automation resource"]moduleListTagsForResourceRequest=structtypenonrect={resourceARN:TaggableResourceArn.t}letcontext_="ListTagsForResourceRequest"letmake~resourceARN=fun()->{resourceARN}letto_valuex=structure_to_value[("resourceARN",(Some(TaggableResourceArn.to_valuex.resourceARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceARN=TaggableResourceArn.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"TaggableResourceArn.of_jsoninmake~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List tags for an Amazon Bedrock Data Automation resource"]moduleInvokeDataAutomationResponse=structtypenonrect={outputConfiguration:OutputConfiguration.toption[@ocaml.doc"Output configuration"];semanticModality:SemanticModality.toption[@ocaml.doc"Detected semantic modality"];outputSegments:OutputSegmentList.toption[@ocaml.doc"List of outputs for each logical sub-doc"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?outputConfiguration=fun?semanticModality->fun?outputSegments->fun()->{outputConfiguration;semanticModality;outputSegments}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.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)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.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))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.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[("outputConfiguration",(Option.mapx.outputConfiguration~f:OutputConfiguration.to_value));("semanticModality",(Option.mapx.semanticModality~f:SemanticModality.to_value));("outputSegments",(Option.mapx.outputSegments~f:OutputSegmentList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputSegments=(Option.map~f:OutputSegmentList.of_xml)(Xml.childxml_arg0"outputSegments")inletsemanticModality=(Option.map~f:SemanticModality.of_xml)(Xml.childxml_arg0"semanticModality")inletoutputConfiguration=(Option.map~f:OutputConfiguration.of_xml)(Xml.childxml_arg0"outputConfiguration")inmake?outputSegments?semanticModality?outputConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputSegments=field_mapjson__"outputSegments"OutputSegmentList.of_jsoninletsemanticModality=field_mapjson__"semanticModality"SemanticModality.of_jsoninletoutputConfiguration=field_mapjson__"outputConfiguration"OutputConfiguration.of_jsoninmake?outputSegments?semanticModality?outputConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Invoke Data Automation Response"]moduleInvokeDataAutomationRequest=structtypenonrect={inputConfiguration:SyncInputConfiguration.t[@ocaml.doc"Input configuration."];dataAutomationConfiguration:DataAutomationConfiguration.toption[@ocaml.doc"Data automation configuration."];blueprints:BlueprintList.toption[@ocaml.doc"Blueprint list."];dataAutomationProfileArn:DataAutomationProfileArn.t[@ocaml.doc"Data automation profile ARN"];encryptionConfiguration:EncryptionConfiguration.toption[@ocaml.doc"Encryption configuration."];outputConfiguration:OutputConfiguration.toption[@ocaml.doc"Output configuration."]}letcontext_="InvokeDataAutomationRequest"letmake?dataAutomationConfiguration=fun?blueprints->fun?encryptionConfiguration->fun?outputConfiguration->fun~inputConfiguration->fun~dataAutomationProfileArn->fun()->{dataAutomationConfiguration;blueprints;encryptionConfiguration;outputConfiguration;inputConfiguration;dataAutomationProfileArn}letto_valuex=structure_to_value[("inputConfiguration",(Some(SyncInputConfiguration.to_valuex.inputConfiguration)));("dataAutomationConfiguration",(Option.mapx.dataAutomationConfiguration~f:DataAutomationConfiguration.to_value));("blueprints",(Option.mapx.blueprints~f:BlueprintList.to_value));("dataAutomationProfileArn",(Some(DataAutomationProfileArn.to_valuex.dataAutomationProfileArn)));("encryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value));("outputConfiguration",(Option.mapx.outputConfiguration~f:OutputConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputConfiguration=(Option.map~f:OutputConfiguration.of_xml)(Xml.childxml_arg0"outputConfiguration")inletencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"encryptionConfiguration")inletdataAutomationProfileArn=DataAutomationProfileArn.of_xml(Xml.child_exn~context:context_xml_arg0"dataAutomationProfileArn")inletblueprints=(Option.map~f:BlueprintList.of_xml)(Xml.childxml_arg0"blueprints")inletdataAutomationConfiguration=(Option.map~f:DataAutomationConfiguration.of_xml)(Xml.childxml_arg0"dataAutomationConfiguration")inletinputConfiguration=SyncInputConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"inputConfiguration")inmake?outputConfiguration?encryptionConfiguration~dataAutomationProfileArn?blueprints?dataAutomationConfiguration~inputConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputConfiguration=field_mapjson__"outputConfiguration"OutputConfiguration.of_jsoninletencryptionConfiguration=field_mapjson__"encryptionConfiguration"EncryptionConfiguration.of_jsoninletdataAutomationProfileArn=field_map_exnjson__"dataAutomationProfileArn"DataAutomationProfileArn.of_jsoninletblueprints=field_mapjson__"blueprints"BlueprintList.of_jsoninletdataAutomationConfiguration=field_mapjson__"dataAutomationConfiguration"DataAutomationConfiguration.of_jsoninletinputConfiguration=field_map_exnjson__"inputConfiguration"SyncInputConfiguration.of_jsoninmake?outputConfiguration?encryptionConfiguration~dataAutomationProfileArn?blueprints?dataAutomationConfiguration~inputConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Invoke Data Automation Request"]moduleInvokeDataAutomationAsyncResponse=structtypenonrect={invocationArn:InvocationArn.toption[@ocaml.doc"ARN of the automation job"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?invocationArn=fun()->{invocationArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("invocationArn",(Option.mapx.invocationArn~f:InvocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinvocationArn=(Option.map~f:InvocationArn.of_xml)(Xml.childxml_arg0"invocationArn")inmake?invocationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinvocationArn=field_mapjson__"invocationArn"InvocationArn.of_jsoninmake?invocationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Invoke Data Automation Async Response"]moduleInvokeDataAutomationAsyncRequest=structtypenonrect={clientToken:IdempotencyToken.toption[@ocaml.doc"Idempotency token."];inputConfiguration:InputConfiguration.t[@ocaml.doc"Input configuration."];outputConfiguration:OutputConfiguration.t[@ocaml.doc"Output configuration."];dataAutomationConfiguration:DataAutomationConfiguration.toption[@ocaml.doc"Data automation configuration."];encryptionConfiguration:EncryptionConfiguration.toption[@ocaml.doc"Encryption configuration."];notificationConfiguration:NotificationConfiguration.toption[@ocaml.doc"Notification configuration."];blueprints:BlueprintList.toption[@ocaml.doc"Blueprint list."];dataAutomationProfileArn:DataAutomationProfileArn.t[@ocaml.doc"Data automation profile ARN"];tags:TagList.toption[@ocaml.doc"List of tags."]}letcontext_="InvokeDataAutomationAsyncRequest"letmake?clientToken=fun?dataAutomationConfiguration->fun?encryptionConfiguration->fun?notificationConfiguration->fun?blueprints->fun?tags->fun~inputConfiguration->fun~outputConfiguration->fun~dataAutomationProfileArn->fun()->{clientToken;dataAutomationConfiguration;encryptionConfiguration;notificationConfiguration;blueprints;tags;inputConfiguration;outputConfiguration;dataAutomationProfileArn}letto_valuex=structure_to_value[("clientToken",(Option.mapx.clientToken~f:IdempotencyToken.to_value));("inputConfiguration",(Some(InputConfiguration.to_valuex.inputConfiguration)));("outputConfiguration",(Some(OutputConfiguration.to_valuex.outputConfiguration)));("dataAutomationConfiguration",(Option.mapx.dataAutomationConfiguration~f:DataAutomationConfiguration.to_value));("encryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value));("notificationConfiguration",(Option.mapx.notificationConfiguration~f:NotificationConfiguration.to_value));("blueprints",(Option.mapx.blueprints~f:BlueprintList.to_value));("dataAutomationProfileArn",(Some(DataAutomationProfileArn.to_valuex.dataAutomationProfileArn)));("tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletdataAutomationProfileArn=DataAutomationProfileArn.of_xml(Xml.child_exn~context:context_xml_arg0"dataAutomationProfileArn")inletblueprints=(Option.map~f:BlueprintList.of_xml)(Xml.childxml_arg0"blueprints")inletnotificationConfiguration=(Option.map~f:NotificationConfiguration.of_xml)(Xml.childxml_arg0"notificationConfiguration")inletencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"encryptionConfiguration")inletdataAutomationConfiguration=(Option.map~f:DataAutomationConfiguration.of_xml)(Xml.childxml_arg0"dataAutomationConfiguration")inletoutputConfiguration=OutputConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"outputConfiguration")inletinputConfiguration=InputConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"inputConfiguration")inletclientToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"clientToken")inmake?tags~dataAutomationProfileArn?blueprints?notificationConfiguration?encryptionConfiguration?dataAutomationConfiguration~outputConfiguration~inputConfiguration?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagList.of_jsoninletdataAutomationProfileArn=field_map_exnjson__"dataAutomationProfileArn"DataAutomationProfileArn.of_jsoninletblueprints=field_mapjson__"blueprints"BlueprintList.of_jsoninletnotificationConfiguration=field_mapjson__"notificationConfiguration"NotificationConfiguration.of_jsoninletencryptionConfiguration=field_mapjson__"encryptionConfiguration"EncryptionConfiguration.of_jsoninletdataAutomationConfiguration=field_mapjson__"dataAutomationConfiguration"DataAutomationConfiguration.of_jsoninletoutputConfiguration=field_map_exnjson__"outputConfiguration"OutputConfiguration.of_jsoninletinputConfiguration=field_map_exnjson__"inputConfiguration"InputConfiguration.of_jsoninletclientToken=field_mapjson__"clientToken"IdempotencyToken.of_jsoninmake?tags~dataAutomationProfileArn?blueprints?notificationConfiguration?encryptionConfiguration?dataAutomationConfiguration~outputConfiguration~inputConfiguration?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Invoke Data Automation Async Request"]moduleGetDataAutomationStatusResponse=structtypenonrect={status:AutomationJobStatus.toption[@ocaml.doc"Job Status."];errorType:String_.toption[@ocaml.doc"Error Type."];errorMessage:String_.toption[@ocaml.doc"Error Message."];outputConfiguration:OutputConfiguration.toption[@ocaml.doc"Output configuration."];jobSubmissionTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"Job Submission time."];jobCompletionTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"Job completion time."];jobDurationInSeconds:Integer.toption[@ocaml.doc"Job duration in seconds."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?status=fun?errorType->fun?errorMessage->fun?outputConfiguration->fun?jobSubmissionTime->fun?jobCompletionTime->fun?jobDurationInSeconds->fun()->{status;errorType;errorMessage;outputConfiguration;jobSubmissionTime;jobCompletionTime;jobDurationInSeconds}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[("status",(Option.mapx.status~f:AutomationJobStatus.to_value));("errorType",(Option.mapx.errorType~f:String_.to_value));("errorMessage",(Option.mapx.errorMessage~f:String_.to_value));("outputConfiguration",(Option.mapx.outputConfiguration~f:OutputConfiguration.to_value));("jobSubmissionTime",(Option.mapx.jobSubmissionTime~f:SyntheticTimestamp_date_time.to_value));("jobCompletionTime",(Option.mapx.jobCompletionTime~f:SyntheticTimestamp_date_time.to_value));("jobDurationInSeconds",(Option.mapx.jobDurationInSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobDurationInSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"jobDurationInSeconds")inletjobCompletionTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"jobCompletionTime")inletjobSubmissionTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"jobSubmissionTime")inletoutputConfiguration=(Option.map~f:OutputConfiguration.of_xml)(Xml.childxml_arg0"outputConfiguration")inleterrorMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"errorMessage")inleterrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"errorType")inletstatus=(Option.map~f:AutomationJobStatus.of_xml)(Xml.childxml_arg0"status")inmake?jobDurationInSeconds?jobCompletionTime?jobSubmissionTime?outputConfiguration?errorMessage?errorType?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobDurationInSeconds=field_mapjson__"jobDurationInSeconds"Integer.of_jsoninletjobCompletionTime=field_mapjson__"jobCompletionTime"SyntheticTimestamp_date_time.of_jsoninletjobSubmissionTime=field_mapjson__"jobSubmissionTime"SyntheticTimestamp_date_time.of_jsoninletoutputConfiguration=field_mapjson__"outputConfiguration"OutputConfiguration.of_jsoninleterrorMessage=field_mapjson__"errorMessage"String_.of_jsoninleterrorType=field_mapjson__"errorType"String_.of_jsoninletstatus=field_mapjson__"status"AutomationJobStatus.of_jsoninmake?jobDurationInSeconds?jobCompletionTime?jobSubmissionTime?outputConfiguration?errorMessage?errorType?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response of GetDataAutomationStatus API."]moduleGetDataAutomationStatusRequest=structtypenonrect={invocationArn:InvocationArn.t[@ocaml.doc"Invocation arn."]}letcontext_="GetDataAutomationStatusRequest"letmake~invocationArn=fun()->{invocationArn}letto_valuex=structure_to_value[("invocationArn",(Some(InvocationArn.to_valuex.invocationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinvocationArn=InvocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"invocationArn")inmake~invocationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinvocationArn=field_map_exnjson__"invocationArn"InvocationArn.of_jsoninmake~invocationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Structure for request of GetDataAutomationStatus API."]