1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106(* 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.datasyncletapiVersion="2018-11-09"letendpointPrefix="datasync"letserviceFullName="AWS DataSync"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="DataSync"lettargetPrefix="FmrsService"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[]))])moduleIamRoleArn=structtypenonrect=stringletcontext_="IamRoleArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):iam::[0-9]{12}:role/.*$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IamRoleArn"jletto_json=simple_to_jsonto_valueendmoduleS3BucketArn=structtypenonrect=stringletcontext_="S3BucketArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:268)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):s3:[a-z\\-0-9]*:[0-9]{12}:accesspoint[/:][a-zA-Z0-9\\-.]{1,63}$|^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):s3-outposts:[a-z\\-0-9]+:[0-9]{12}:outpost[/:][a-zA-Z0-9\\-]{1,63}[/:]accesspoint[/:][a-zA-Z0-9\\-]{1,63}$|^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):s3:::[a-zA-Z0-9.\\-_]{1,255}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3BucketArn"jletto_json=simple_to_jsonto_valueendmoduleS3ObjectVersionId=structtypenonrect=stringletcontext_="S3ObjectVersionId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"^.+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3ObjectVersionId"jletto_json=simple_to_jsonto_valueendmoduleS3Subdirectory=structtypenonrect=stringletcontext_="S3Subdirectory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\p{Zs}]*$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3Subdirectory"jletto_json=simple_to_jsonto_valueendmoduleReportLevel=structtypenonrect=|ERRORS_ONLY|SUCCESSES_AND_ERRORS|Non_static_idofstringletmakei=iletto_string=function|ERRORS_ONLY->"ERRORS_ONLY"|SUCCESSES_AND_ERRORS->"SUCCESSES_AND_ERRORS"|Non_static_ids->sletof_string=function|"ERRORS_ONLY"->ERRORS_ONLY|"SUCCESSES_AND_ERRORS"->SUCCESSES_AND_ERRORS|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 ReportLevel"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ReportLevel"j)letto_json=simple_to_jsonto_valueendmoduleNfsVersion=structtypenonrect=|AUTOMATIC|NFS3|NFS4_0|NFS4_1|Non_static_idofstringletmakei=iletto_string=function|AUTOMATIC->"AUTOMATIC"|NFS3->"NFS3"|NFS4_0->"NFS4_0"|NFS4_1->"NFS4_1"|Non_static_ids->sletof_string=function|"AUTOMATIC"->AUTOMATIC|"NFS3"->NFS3|"NFS4_0"->NFS4_0|"NFS4_1"->NFS4_1|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 NfsVersion"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"NfsVersion"j)letto_json=simple_to_jsonto_valueendmoduleKmsKeyArn=structtypenonrect=stringletcontext_="KmsKeyArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^(arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):kms:[a-z\\-0-9]+:[0-9]{12}:key/.*|)$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KmsKeyArn"jletto_json=simple_to_jsonto_valueendmoduleSecretArn=structtypenonrect=stringletcontext_="SecretArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^(arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):secretsmanager:[a-z\\-0-9]+:[0-9]{12}:secret:.*|)$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SecretArn"jletto_json=simple_to_jsonto_valueendmoduleIamRoleArnOrEmptyString=structtypenonrect=stringletcontext_="IamRoleArnOrEmptyString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^(arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):iam::[0-9]{12}:role/[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:"IamRoleArnOrEmptyString"jletto_json=simple_to_jsonto_valueendmoduleSmbVersion=structtypenonrect=|AUTOMATIC|SMB2|SMB3|SMB1|SMB2_0|Non_static_idofstringletmakei=iletto_string=function|AUTOMATIC->"AUTOMATIC"|SMB2->"SMB2"|SMB3->"SMB3"|SMB1->"SMB1"|SMB2_0->"SMB2_0"|Non_static_ids->sletof_string=function|"AUTOMATIC"->AUTOMATIC|"SMB2"->SMB2|"SMB3"->SMB3|"SMB1"->SMB1|"SMB2_0"->SMB2_0|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 SmbVersion"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SmbVersion"j)letto_json=simple_to_jsonto_valueendmoduleFilterAttributeValue=structtypenonrect=stringletcontext_="FilterAttributeValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[0-9a-zA-Z_\\ \\-\\:\\*\\.\\\\/\\?-]*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FilterAttributeValue"jletto_json=simple_to_jsonto_valueendmoduleAgentVersion=structtypenonrect=stringletcontext_="AgentVersion"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\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:"AgentVersion"jletto_json=simple_to_jsonto_valueendmoduleFilterType=structtypenonrect=|SIMPLE_PATTERN|Non_static_idofstringletmakei=iletto_string=function|SIMPLE_PATTERN->"SIMPLE_PATTERN"|Non_static_ids->sletof_string=function|"SIMPLE_PATTERN"->SIMPLE_PATTERN|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 FilterType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FilterType"j)letto_json=simple_to_jsonto_valueendmoduleFilterValue=structtypenonrect=stringletcontext_="FilterValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:102400)>>=(fun()->check_patterni~pattern:"^[^\\x00]+$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FilterValue"jletto_json=simple_to_jsonto_valueendmoduleS3ManifestConfig=structtypenonrect={manifestObjectPath:S3Subdirectory.t[@ocaml.doc"Specifies the Amazon S3 object key of your manifest. This can include a prefix (for example, prefix/my-manifest.csv)."];bucketAccessRoleArn:IamRoleArn.t[@ocaml.doc"Specifies the Identity and Access Management (IAM) role that allows DataSync to access your manifest. For more information, see Providing DataSync access to your manifest."];s3BucketArn:S3BucketArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the S3 bucket where you're hosting your manifest."];manifestObjectVersionId:S3ObjectVersionId.toption[@ocaml.doc"Specifies the object version ID of the manifest that you want DataSync to use. If you don't set this, DataSync uses the latest version of the object."]}letcontext_="S3ManifestConfig"letmake?manifestObjectVersionId=fun~manifestObjectPath->fun~bucketAccessRoleArn->fun~s3BucketArn->fun()->{manifestObjectVersionId;manifestObjectPath;bucketAccessRoleArn;s3BucketArn}letto_valuex=structure_to_value[("ManifestObjectPath",(Some(S3Subdirectory.to_valuex.manifestObjectPath)));("BucketAccessRoleArn",(Some(IamRoleArn.to_valuex.bucketAccessRoleArn)));("S3BucketArn",(Some(S3BucketArn.to_valuex.s3BucketArn)));("ManifestObjectVersionId",(Option.mapx.manifestObjectVersionId~f:S3ObjectVersionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmanifestObjectVersionId=(Option.map~f:S3ObjectVersionId.of_xml)(Xml.childxml_arg0"ManifestObjectVersionId")inlets3BucketArn=S3BucketArn.of_xml(Xml.child_exn~context:context_xml_arg0"S3BucketArn")inletbucketAccessRoleArn=IamRoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"BucketAccessRoleArn")inletmanifestObjectPath=S3Subdirectory.of_xml(Xml.child_exn~context:context_xml_arg0"ManifestObjectPath")inmake?manifestObjectVersionId~s3BucketArn~bucketAccessRoleArn~manifestObjectPath()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmanifestObjectVersionId=field_mapjson__"ManifestObjectVersionId"S3ObjectVersionId.of_jsoninlets3BucketArn=field_map_exnjson__"S3BucketArn"S3BucketArn.of_jsoninletbucketAccessRoleArn=field_map_exnjson__"BucketAccessRoleArn"IamRoleArn.of_jsoninletmanifestObjectPath=field_map_exnjson__"ManifestObjectPath"S3Subdirectory.of_jsoninmake?manifestObjectVersionId~s3BucketArn~bucketAccessRoleArn~manifestObjectPath()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the S3 bucket where you're hosting the manifest that you want DataSync to use. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest."]moduleReportDestinationS3=structtypenonrect={subdirectory:S3Subdirectory.toption[@ocaml.doc"Specifies a bucket prefix for your report."];s3BucketArn:S3BucketArn.t[@ocaml.doc"Specifies the ARN of the S3 bucket where DataSync uploads your report."];bucketAccessRoleArn:IamRoleArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket. For more information, see Allowing DataSync to upload a task report to an Amazon S3 bucket."]}letcontext_="ReportDestinationS3"letmake?subdirectory=fun~s3BucketArn->fun~bucketAccessRoleArn->fun()->{subdirectory;s3BucketArn;bucketAccessRoleArn}letto_valuex=structure_to_value[("Subdirectory",(Option.mapx.subdirectory~f:S3Subdirectory.to_value));("S3BucketArn",(Some(S3BucketArn.to_valuex.s3BucketArn)));("BucketAccessRoleArn",(Some(IamRoleArn.to_valuex.bucketAccessRoleArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbucketAccessRoleArn=IamRoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"BucketAccessRoleArn")inlets3BucketArn=S3BucketArn.of_xml(Xml.child_exn~context:context_xml_arg0"S3BucketArn")inletsubdirectory=(Option.map~f:S3Subdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inmake~bucketAccessRoleArn~s3BucketArn?subdirectory()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbucketAccessRoleArn=field_map_exnjson__"BucketAccessRoleArn"IamRoleArn.of_jsoninlets3BucketArn=field_map_exnjson__"S3BucketArn"S3BucketArn.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"S3Subdirectory.of_jsoninmake~bucketAccessRoleArn~s3BucketArn?subdirectory()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the Amazon S3 bucket where DataSync uploads your task report."]moduleReportOverride=structtypenonrect={reportLevel:ReportLevel.toption[@ocaml.doc"Specifies whether your task report includes errors only or successes and errors. For example, your report might mostly include only what didn't go well in your transfer (ERRORS_ONLY). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS)."]}letmake?reportLevel=fun()->{reportLevel}letto_valuex=structure_to_value[("ReportLevel",(Option.mapx.reportLevel~f:ReportLevel.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreportLevel=(Option.map~f:ReportLevel.of_xml)(Xml.childxml_arg0"ReportLevel")inmake?reportLevel()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreportLevel=field_mapjson__"ReportLevel"ReportLevel.of_jsoninmake?reportLevel()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the level of detail for a particular aspect of your DataSync task report."]moduleAgentArn=structtypenonrect=stringletcontext_="AgentArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):datasync:[a-z\\-0-9]+:[0-9]{12}:agent/agent-[0-9a-z]{17}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AgentArn"jletto_json=simple_to_jsonto_valueendmoduleHdfsServerHostname=structtypenonrect=stringletcontext_="HdfsServerHostname"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^(([a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([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:"HdfsServerHostname"jletto_json=simple_to_jsonto_valueendmoduleHdfsServerPort=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:65536)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for HdfsServerPort"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleNfsMountOptions=structtypenonrect={version:NfsVersion.toption[@ocaml.doc"Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails. You can specify the following options: AUTOMATIC (default): DataSync chooses NFS version 4.1. NFS3: Stateless protocol version that allows for asynchronous writes on the server. NFSv4_0: Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems. NFSv4_1: Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0. DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations."]}letmake?version=fun()->{version}letto_valuex=structure_to_value[("Version",(Option.mapx.version~f:NfsVersion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letversion=(Option.map~f:NfsVersion.of_xml)(Xml.childxml_arg0"Version")inmake?version()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letversion=field_mapjson__"Version"NfsVersion.of_jsoninmake?version()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies how DataSync can access a location using the NFS protocol."]moduleCmkSecretConfig=structtypenonrect={secretArn:SecretArn.toption[@ocaml.doc"Specifies the ARN for the DataSync-managed Secrets Manager secret that that is used to access a specific storage location. This property is generated by DataSync and is read-only. DataSync encrypts this secret with the KMS key that you specify for KmsKeyArn."];kmsKeyArn:KmsKeyArn.toption[@ocaml.doc"Specifies the ARN for the customer-managed KMS key that DataSync uses to encrypt the DataSync-managed secret stored for SecretArn. DataSync provides this key to Secrets Manager."]}letmake?secretArn=fun?kmsKeyArn->fun()->{secretArn;kmsKeyArn}letto_valuex=structure_to_value[("SecretArn",(Option.mapx.secretArn~f:SecretArn.to_value));("KmsKeyArn",(Option.mapx.kmsKeyArn~f:KmsKeyArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkmsKeyArn=(Option.map~f:KmsKeyArn.of_xml)(Xml.childxml_arg0"KmsKeyArn")inletsecretArn=(Option.map~f:SecretArn.of_xml)(Xml.childxml_arg0"SecretArn")inmake?kmsKeyArn?secretArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKeyArn=field_mapjson__"KmsKeyArn"KmsKeyArn.of_jsoninletsecretArn=field_mapjson__"SecretArn"SecretArn.of_jsoninmake?kmsKeyArn?secretArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies configuration information for a DataSync-managed secret, such as an authentication token, secret key, password, or Kerberos keytab that DataSync uses to access a specific storage location, with a customer-managed KMS key. You can use either CmkSecretConfig or CustomSecretConfig to provide credentials for a CreateLocation request. Do not provide both parameters for the same request."]moduleCustomSecretConfig=structtypenonrect={secretArn:SecretArn.toption[@ocaml.doc"Specifies the ARN for an Secrets Manager secret."];secretAccessRoleArn:IamRoleArnOrEmptyString.toption[@ocaml.doc"Specifies the ARN for the Identity and Access Management role that DataSync uses to access the secret specified for SecretArn."]}letmake?secretArn=fun?secretAccessRoleArn->fun()->{secretArn;secretAccessRoleArn}letto_valuex=structure_to_value[("SecretArn",(Option.mapx.secretArn~f:SecretArn.to_value));("SecretAccessRoleArn",(Option.mapx.secretAccessRoleArn~f:IamRoleArnOrEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecretAccessRoleArn=(Option.map~f:IamRoleArnOrEmptyString.of_xml)(Xml.childxml_arg0"SecretAccessRoleArn")inletsecretArn=(Option.map~f:SecretArn.of_xml)(Xml.childxml_arg0"SecretArn")inmake?secretAccessRoleArn?secretArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecretAccessRoleArn=field_mapjson__"SecretAccessRoleArn"IamRoleArnOrEmptyString.of_jsoninletsecretArn=field_mapjson__"SecretArn"SecretArn.of_jsoninmake?secretAccessRoleArn?secretArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies configuration information for a customer-managed Secrets Manager secret where a storage location credentials is stored in Secrets Manager as plain text (for authentication token, secret key, or password) or as binary (for Kerberos keytab). This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. You can use either CmkSecretConfig or CustomSecretConfig to provide credentials for a CreateLocation request. Do not provide both parameters for the same request."]moduleManagedSecretConfig=structtypenonrect={secretArn:SecretArn.toption[@ocaml.doc"Specifies the ARN for an Secrets Manager secret."]}letmake?secretArn=fun()->{secretArn}letto_valuex=structure_to_value[("SecretArn",(Option.mapx.secretArn~f:SecretArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecretArn=(Option.map~f:SecretArn.of_xml)(Xml.childxml_arg0"SecretArn")inmake?secretArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecretArn=field_mapjson__"SecretArn"SecretArn.of_jsoninmake?secretArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager."]moduleSmbDomain=structtypenonrect=stringletcontext_="SmbDomain"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:253)>>=(fun()->check_patterni~pattern:"^[A-Za-z0-9]((\\.|-+)?[A-Za-z0-9]){0,252}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SmbDomain"jletto_json=simple_to_jsonto_valueendmoduleSmbMountOptions=structtypenonrect={version:SmbVersion.toption[@ocaml.doc"By default, DataSync automatically chooses an SMB protocol version based on negotiation with your SMB file server. You also can configure DataSync to use a specific SMB version, but we recommend doing this only if DataSync has trouble negotiating with the SMB file server automatically. These are the following options for configuring the SMB version: AUTOMATIC (default): DataSync and the SMB file server negotiate the highest version of SMB that they mutually support between 2.1 and 3.1.1. This is the recommended option. If you instead choose a specific version that your file server doesn't support, you may get an Operation Not Supported error. SMB3: Restricts the protocol negotiation to only SMB version 3.0.2. SMB2: Restricts the protocol negotiation to only SMB version 2.1. SMB2_0: Restricts the protocol negotiation to only SMB version 2.0. SMB1: Restricts the protocol negotiation to only SMB version 1.0. The SMB1 option isn't available when creating an Amazon FSx for NetApp ONTAP location."]}letmake?version=fun()->{version}letto_valuex=structure_to_value[("Version",(Option.mapx.version~f:SmbVersion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letversion=(Option.map~f:SmbVersion.of_xml)(Xml.childxml_arg0"Version")inmake?version()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letversion=field_mapjson__"Version"SmbVersion.of_jsoninmake?version()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server."]moduleSmbPassword=structtypenonrect=stringletcontext_="SmbPassword"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:104)>>=(fun()->check_patterni~pattern:"^.{0,104}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SmbPassword"jletto_json=simple_to_jsonto_valueendmoduleSmbUser=structtypenonrect=stringletcontext_="SmbUser"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:104)>>=(fun()->check_patterni~pattern:"^[^\\x22\\x5B\\x5D/\\\\:;|=,+*?\\x3C\\x3E]{1,104}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SmbUser"jletto_json=simple_to_jsonto_valueendmoduleUpdateSmbDomain=structtypenonrect=stringletcontext_="UpdateSmbDomain"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:253)>>=(fun()->check_patterni~pattern:"^([A-Za-z0-9]((\\.|-+)?[A-Za-z0-9]){0,252})?$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UpdateSmbDomain"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\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:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\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:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleTaskArn=structtypenonrect=stringletcontext_="TaskArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):datasync:[a-z\\-0-9]+:[0-9]{12}:task/task-[0-9a-f]{17}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TaskArn"jletto_json=simple_to_jsonto_valueendmoduleTaskMode=structtypenonrect=|BASIC|ENHANCED|Non_static_idofstringletmakei=iletto_string=function|BASIC->"BASIC"|ENHANCED->"ENHANCED"|Non_static_ids->sletof_string=function|"BASIC"->BASIC|"ENHANCED"->ENHANCED|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 TaskMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TaskMode"j)letto_json=simple_to_jsonto_valueendmoduleTaskStatus=structtypenonrect=|AVAILABLE|CREATING|QUEUED|RUNNING|UNAVAILABLE|Non_static_idofstringletmakei=iletto_string=function|AVAILABLE->"AVAILABLE"|CREATING->"CREATING"|QUEUED->"QUEUED"|RUNNING->"RUNNING"|UNAVAILABLE->"UNAVAILABLE"|Non_static_ids->sletof_string=function|"AVAILABLE"->AVAILABLE|"CREATING"->CREATING|"QUEUED"->QUEUED|"RUNNING"->RUNNING|"UNAVAILABLE"->UNAVAILABLE|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 TaskStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TaskStatus"j)letto_json=simple_to_jsonto_valueendmoduleFilterValues=structtypenonrect=FilterAttributeValue.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FilterAttributeValue.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:FilterAttributeValue.of_xml)letof_jsonj=list_of_json~kind:"FilterValues"~of_json:FilterAttributeValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOperator=structtypenonrect=|Equals|NotEquals|In|LessThanOrEqual|LessThan|GreaterThanOrEqual|GreaterThan|Contains|NotContains|BeginsWith|Non_static_idofstringletmakei=iletto_string=function|Equals->"Equals"|NotEquals->"NotEquals"|In->"In"|LessThanOrEqual->"LessThanOrEqual"|LessThan->"LessThan"|GreaterThanOrEqual->"GreaterThanOrEqual"|GreaterThan->"GreaterThan"|Contains->"Contains"|NotContains->"NotContains"|BeginsWith->"BeginsWith"|Non_static_ids->sletof_string=function|"Equals"->Equals|"NotEquals"->NotEquals|"In"->In|"LessThanOrEqual"->LessThanOrEqual|"LessThan"->LessThan|"GreaterThanOrEqual"->GreaterThanOrEqual|"GreaterThan"->GreaterThan|"Contains"->Contains|"NotContains"->NotContains|"BeginsWith"->BeginsWith|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 Operator"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Operator"j)letto_json=simple_to_jsonto_valueendmoduleTaskFilterName=structtypenonrect=|LocationId|CreationTime|Non_static_idofstringletmakei=iletto_string=function|LocationId->"LocationId"|CreationTime->"CreationTime"|Non_static_ids->sletof_string=function|"LocationId"->LocationId|"CreationTime"->CreationTime|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 TaskFilterName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TaskFilterName"j)letto_json=simple_to_jsonto_valueendmoduleTaskExecutionArn=structtypenonrect=stringletcontext_="TaskExecutionArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):datasync:[a-z\\-0-9]+:[0-9]{12}:task/task-[0-9a-f]{17}/execution/exec-[0-9a-f]{17}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TaskExecutionArn"jletto_json=simple_to_jsonto_valueendmoduleTaskExecutionStatus=structtypenonrect=|QUEUED|CANCELLING|LAUNCHING|PREPARING|TRANSFERRING|VERIFYING|SUCCESS|ERROR|Non_static_idofstringletmakei=iletto_string=function|QUEUED->"QUEUED"|CANCELLING->"CANCELLING"|LAUNCHING->"LAUNCHING"|PREPARING->"PREPARING"|TRANSFERRING->"TRANSFERRING"|VERIFYING->"VERIFYING"|SUCCESS->"SUCCESS"|ERROR->"ERROR"|Non_static_ids->sletof_string=function|"QUEUED"->QUEUED|"CANCELLING"->CANCELLING|"LAUNCHING"->LAUNCHING|"PREPARING"->PREPARING|"TRANSFERRING"->TRANSFERRING|"VERIFYING"->VERIFYING|"SUCCESS"->SUCCESS|"ERROR"->ERROR|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 TaskExecutionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TaskExecutionStatus"j)letto_json=simple_to_jsonto_valueendmoduleLocationArn=structtypenonrect=stringletcontext_="LocationArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):datasync:[a-z\\-0-9]+:[0-9]{12}:location/loc-[0-9a-z]{17}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LocationArn"jletto_json=simple_to_jsonto_valueendmoduleLocationUri=structtypenonrect=stringletcontext_="LocationUri"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4360)>>=(fun()->check_patterni~pattern:"^(efs|nfs|s3|smb|hdfs|fsx[a-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:"LocationUri"jletto_json=simple_to_jsonto_valueendmoduleLocationFilterName=structtypenonrect=|LocationUri|LocationType|CreationTime|Non_static_idofstringletmakei=iletto_string=function|LocationUri->"LocationUri"|LocationType->"LocationType"|CreationTime->"CreationTime"|Non_static_ids->sletof_string=function|"LocationUri"->LocationUri|"LocationType"->LocationType|"CreationTime"->CreationTime|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 LocationFilterName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LocationFilterName"j)letto_json=simple_to_jsonto_valueendmoduleAgentStatus=structtypenonrect=|ONLINE|OFFLINE|Non_static_idofstringletmakei=iletto_string=function|ONLINE->"ONLINE"|OFFLINE->"OFFLINE"|Non_static_ids->sletof_string=function|"ONLINE"->ONLINE|"OFFLINE"->OFFLINE|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 AgentStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AgentStatus"j)letto_json=simple_to_jsonto_valueendmodulePlatform=structtypenonrect={version:AgentVersion.toption[@ocaml.doc"The version of the DataSync agent."]}letmake?version=fun()->{version}letto_valuex=structure_to_value[("Version",(Option.mapx.version~f:AgentVersion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letversion=(Option.map~f:AgentVersion.of_xml)(Xml.childxml_arg0"Version")inmake?version()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letversion=field_mapjson__"Version"AgentVersion.of_jsoninmake?version()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The platform-related details about the DataSync agent, such as the version number."]moduleEc2SecurityGroupArn=structtypenonrect=stringletcontext_="Ec2SecurityGroupArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):ec2:[a-z\\-0-9]*:[0-9]{12}:security-group/sg-[a-f0-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:"Ec2SecurityGroupArn"jletto_json=simple_to_jsonto_valueendmoduleEc2SubnetArn=structtypenonrect=stringletcontext_="Ec2SubnetArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):ec2:[a-z\\-0-9]*:[0-9]{12}:subnet/subnet-[a-f0-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:"Ec2SubnetArn"jletto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="string"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"string"jletto_json=simple_to_jsonto_valueendmoduleFilterRule=structtypenonrect={filterType:FilterType.toption[@ocaml.doc"The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type."];value:FilterValue.toption[@ocaml.doc"A single filter string that consists of the patterns to include or exclude. The patterns are delimited by \"|\" (that is, a pipe), for example: /folder1|/folder2"]}letmake?filterType=fun?value->fun()->{filterType;value}letto_valuex=structure_to_value[("FilterType",(Option.mapx.filterType~f:FilterType.to_value));("Value",(Option.mapx.value~f:FilterValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:FilterValue.of_xml)(Xml.childxml_arg0"Value")inletfilterType=(Option.map~f:FilterType.of_xml)(Xml.childxml_arg0"FilterType")inmake?value?filterType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"FilterValue.of_jsoninletfilterType=field_mapjson__"FilterType"FilterType.of_jsoninmake?value?filterType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies which files, folders, and objects to include or exclude when transferring files from source to destination."]moduleManifestAction=structtypenonrect=|TRANSFER|Non_static_idofstringletmakei=iletto_string=function|TRANSFER->"TRANSFER"|Non_static_ids->sletof_string=function|"TRANSFER"->TRANSFER|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 ManifestAction"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ManifestAction"j)letto_json=simple_to_jsonto_valueendmoduleManifestFormat=structtypenonrect=|CSV|Non_static_idofstringletmakei=iletto_string=function|CSV->"CSV"|Non_static_ids->sletof_string=function|"CSV"->CSV|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 ManifestFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ManifestFormat"j)letto_json=simple_to_jsonto_valueendmoduleSourceManifestConfig=structtypenonrect={s3:S3ManifestConfig.t[@ocaml.doc"Specifies the S3 bucket where you're hosting your manifest."]}letcontext_="SourceManifestConfig"letmake~s3=fun()->{s3}letto_valuex=structure_to_value[("S3",(Some(S3ManifestConfig.to_valuex.s3)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3=S3ManifestConfig.of_xml(Xml.child_exn~context:context_xml_arg0"S3")inmake~s3()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3=field_map_exnjson__"S3"S3ManifestConfig.of_jsoninmake~s3()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the manifest that you want DataSync to use and where it's hosted. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest."]moduleAtime=structtypenonrect=|NONE|BEST_EFFORT|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|BEST_EFFORT->"BEST_EFFORT"|Non_static_ids->sletof_string=function|"NONE"->NONE|"BEST_EFFORT"->BEST_EFFORT|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 Atime"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Atime"j)letto_json=simple_to_jsonto_valueendmoduleBytesPerSecond=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_valueendmoduleGid=structtypenonrect=|NONE|INT_VALUE|NAME|BOTH|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|INT_VALUE->"INT_VALUE"|NAME->"NAME"|BOTH->"BOTH"|Non_static_ids->sletof_string=function|"NONE"->NONE|"INT_VALUE"->INT_VALUE|"NAME"->NAME|"BOTH"->BOTH|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 Gid"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Gid"j)letto_json=simple_to_jsonto_valueendmoduleLogLevel=structtypenonrect=|OFF|BASIC|TRANSFER|Non_static_idofstringletmakei=iletto_string=function|OFF->"OFF"|BASIC->"BASIC"|TRANSFER->"TRANSFER"|Non_static_ids->sletof_string=function|"OFF"->OFF|"BASIC"->BASIC|"TRANSFER"->TRANSFER|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 LogLevel"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LogLevel"j)letto_json=simple_to_jsonto_valueendmoduleMtime=structtypenonrect=|NONE|PRESERVE|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|PRESERVE->"PRESERVE"|Non_static_ids->sletof_string=function|"NONE"->NONE|"PRESERVE"->PRESERVE|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 Mtime"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Mtime"j)letto_json=simple_to_jsonto_valueendmoduleObjectTags=structtypenonrect=|PRESERVE|NONE|Non_static_idofstringletmakei=iletto_string=function|PRESERVE->"PRESERVE"|NONE->"NONE"|Non_static_ids->sletof_string=function|"PRESERVE"->PRESERVE|"NONE"->NONE|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 ObjectTags"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ObjectTags"j)letto_json=simple_to_jsonto_valueendmoduleOverwriteMode=structtypenonrect=|ALWAYS|NEVER|Non_static_idofstringletmakei=iletto_string=function|ALWAYS->"ALWAYS"|NEVER->"NEVER"|Non_static_ids->sletof_string=function|"ALWAYS"->ALWAYS|"NEVER"->NEVER|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 OverwriteMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OverwriteMode"j)letto_json=simple_to_jsonto_valueendmodulePosixPermissions=structtypenonrect=|NONE|PRESERVE|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|PRESERVE->"PRESERVE"|Non_static_ids->sletof_string=function|"NONE"->NONE|"PRESERVE"->PRESERVE|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 PosixPermissions"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PosixPermissions"j)letto_json=simple_to_jsonto_valueendmodulePreserveDeletedFiles=structtypenonrect=|PRESERVE|REMOVE|Non_static_idofstringletmakei=iletto_string=function|PRESERVE->"PRESERVE"|REMOVE->"REMOVE"|Non_static_ids->sletof_string=function|"PRESERVE"->PRESERVE|"REMOVE"->REMOVE|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 PreserveDeletedFiles"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PreserveDeletedFiles"j)letto_json=simple_to_jsonto_valueendmodulePreserveDevices=structtypenonrect=|NONE|PRESERVE|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|PRESERVE->"PRESERVE"|Non_static_ids->sletof_string=function|"NONE"->NONE|"PRESERVE"->PRESERVE|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 PreserveDevices"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PreserveDevices"j)letto_json=simple_to_jsonto_valueendmoduleSmbSecurityDescriptorCopyFlags=structtypenonrect=|NONE|OWNER_DACL|OWNER_DACL_SACL|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|OWNER_DACL->"OWNER_DACL"|OWNER_DACL_SACL->"OWNER_DACL_SACL"|Non_static_ids->sletof_string=function|"NONE"->NONE|"OWNER_DACL"->OWNER_DACL|"OWNER_DACL_SACL"->OWNER_DACL_SACL|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 SmbSecurityDescriptorCopyFlags"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SmbSecurityDescriptorCopyFlags"j)letto_json=simple_to_jsonto_valueendmoduleTaskQueueing=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|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 TaskQueueing"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TaskQueueing"j)letto_json=simple_to_jsonto_valueendmoduleTransferMode=structtypenonrect=|CHANGED|ALL|Non_static_idofstringletmakei=iletto_string=function|CHANGED->"CHANGED"|ALL->"ALL"|Non_static_ids->sletof_string=function|"CHANGED"->CHANGED|"ALL"->ALL|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 TransferMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TransferMode"j)letto_json=simple_to_jsonto_valueendmoduleUid=structtypenonrect=|NONE|INT_VALUE|NAME|BOTH|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|INT_VALUE->"INT_VALUE"|NAME->"NAME"|BOTH->"BOTH"|Non_static_ids->sletof_string=function|"NONE"->NONE|"INT_VALUE"->INT_VALUE|"NAME"->NAME|"BOTH"->BOTH|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 Uid"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Uid"j)letto_json=simple_to_jsonto_valueendmoduleVerifyMode=structtypenonrect=|POINT_IN_TIME_CONSISTENT|ONLY_FILES_TRANSFERRED|NONE|Non_static_idofstringletmakei=iletto_string=function|POINT_IN_TIME_CONSISTENT->"POINT_IN_TIME_CONSISTENT"|ONLY_FILES_TRANSFERRED->"ONLY_FILES_TRANSFERRED"|NONE->"NONE"|Non_static_ids->sletof_string=function|"POINT_IN_TIME_CONSISTENT"->POINT_IN_TIME_CONSISTENT|"ONLY_FILES_TRANSFERRED"->ONLY_FILES_TRANSFERRED|"NONE"->NONE|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 VerifyMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"VerifyMode"j)letto_json=simple_to_jsonto_valueendmoduleObjectVersionIds=structtypenonrect=|INCLUDE|NONE|Non_static_idofstringletmakei=iletto_string=function|INCLUDE->"INCLUDE"|NONE->"NONE"|Non_static_ids->sletof_string=function|"INCLUDE"->INCLUDE|"NONE"->NONE|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 ObjectVersionIds"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ObjectVersionIds"j)letto_json=simple_to_jsonto_valueendmoduleReportDestination=structtypenonrect={s3:ReportDestinationS3.toption[@ocaml.doc"Specifies the Amazon S3 bucket where DataSync uploads your task report."]}letmake?s3=fun()->{s3}letto_valuex=structure_to_value[("S3",(Option.mapx.s3~f:ReportDestinationS3.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3=(Option.map~f:ReportDestinationS3.of_xml)(Xml.childxml_arg0"S3")inmake?s3()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3=field_mapjson__"S3"ReportDestinationS3.of_jsoninmake?s3()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies where DataSync uploads your task report."]moduleReportOutputType=structtypenonrect=|SUMMARY_ONLY|STANDARD|Non_static_idofstringletmakei=iletto_string=function|SUMMARY_ONLY->"SUMMARY_ONLY"|STANDARD->"STANDARD"|Non_static_ids->sletof_string=function|"SUMMARY_ONLY"->SUMMARY_ONLY|"STANDARD"->STANDARD|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 ReportOutputType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ReportOutputType"j)letto_json=simple_to_jsonto_valueendmoduleReportOverrides=structtypenonrect={transferred:ReportOverride.toption[@ocaml.doc"Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer."];verified:ReportOverride.toption[@ocaml.doc"Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer."];deleted:ReportOverride.toption[@ocaml.doc"Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you configure your task to delete data in the destination that isn't in the source."];skipped:ReportOverride.toption[@ocaml.doc"Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer."]}letmake?transferred=fun?verified->fun?deleted->fun?skipped->fun()->{transferred;verified;deleted;skipped}letto_valuex=structure_to_value[("Transferred",(Option.mapx.transferred~f:ReportOverride.to_value));("Verified",(Option.mapx.verified~f:ReportOverride.to_value));("Deleted",(Option.mapx.deleted~f:ReportOverride.to_value));("Skipped",(Option.mapx.skipped~f:ReportOverride.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letskipped=(Option.map~f:ReportOverride.of_xml)(Xml.childxml_arg0"Skipped")inletdeleted=(Option.map~f:ReportOverride.of_xml)(Xml.childxml_arg0"Deleted")inletverified=(Option.map~f:ReportOverride.of_xml)(Xml.childxml_arg0"Verified")inlettransferred=(Option.map~f:ReportOverride.of_xml)(Xml.childxml_arg0"Transferred")inmake?skipped?deleted?verified?transferred()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letskipped=field_mapjson__"Skipped"ReportOverride.of_jsoninletdeleted=field_mapjson__"Deleted"ReportOverride.of_jsoninletverified=field_mapjson__"Verified"ReportOverride.of_jsoninlettransferred=field_mapjson__"Transferred"ReportOverride.of_jsoninmake?skipped?deleted?verified?transferred()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The level of detail included in each aspect of your DataSync task report."]moduleScheduleExpressionCron=structtypenonrect=stringletcontext_="ScheduleExpressionCron"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9\\ \\_\\*\\?\\,\\|\\^\\-\\/\\#\\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:"ScheduleExpressionCron"jletto_json=simple_to_jsonto_valueendmoduleScheduleStatus=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|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 ScheduleStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ScheduleStatus"j)letto_json=simple_to_jsonto_valueendmoduleServerIpAddress=structtypenonrect=stringletcontext_="ServerIpAddress"letmakei=letopenResultinok_or_failwith((check_string_mini~min:7)>>=(fun()->(check_string_maxi~max:39)>>=(fun()->check_patterni~pattern:"\\A((25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6}))\\z")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServerIpAddress"jletto_json=simple_to_jsonto_valueendmoduleAgentArnList=structtypenonrect=AgentArn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:8)>>=(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:AgentArn.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:AgentArn.of_xml)letof_jsonj=list_of_json~kind:"AgentArnList"~of_json:AgentArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleHdfsNameNode=structtypenonrect={hostname:HdfsServerHostname.t[@ocaml.doc"The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network."];port:HdfsServerPort.t[@ocaml.doc"The port that the NameNode uses to listen to client requests."]}letcontext_="HdfsNameNode"letmake~hostname=fun~port->fun()->{hostname;port}letto_valuex=structure_to_value[("Hostname",(Some(HdfsServerHostname.to_valuex.hostname)));("Port",(Some(HdfsServerPort.to_valuex.port)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letport=HdfsServerPort.of_xml(Xml.child_exn~context:context_xml_arg0"Port")inlethostname=HdfsServerHostname.of_xml(Xml.child_exn~context:context_xml_arg0"Hostname")inmake~port~hostname()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letport=field_map_exnjson__"Port"HdfsServerPort.of_jsoninlethostname=field_map_exnjson__"Hostname"HdfsServerHostname.of_jsoninmake~port~hostname()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The NameNode of the Hadoop Distributed File System (HDFS). The NameNode manages the file system's namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes."]moduleHdfsDataTransferProtection=structtypenonrect=|DISABLED|AUTHENTICATION|INTEGRITY|PRIVACY|Non_static_idofstringletmakei=iletto_string=function|DISABLED->"DISABLED"|AUTHENTICATION->"AUTHENTICATION"|INTEGRITY->"INTEGRITY"|PRIVACY->"PRIVACY"|Non_static_ids->sletof_string=function|"DISABLED"->DISABLED|"AUTHENTICATION"->AUTHENTICATION|"INTEGRITY"->INTEGRITY|"PRIVACY"->PRIVACY|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 HdfsDataTransferProtection"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"HdfsDataTransferProtection"j)letto_json=simple_to_jsonto_valueendmoduleHdfsRpcProtection=structtypenonrect=|DISABLED|AUTHENTICATION|INTEGRITY|PRIVACY|Non_static_idofstringletmakei=iletto_string=function|DISABLED->"DISABLED"|AUTHENTICATION->"AUTHENTICATION"|INTEGRITY->"INTEGRITY"|PRIVACY->"PRIVACY"|Non_static_ids->sletof_string=function|"DISABLED"->DISABLED|"AUTHENTICATION"->AUTHENTICATION|"INTEGRITY"->INTEGRITY|"PRIVACY"->PRIVACY|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 HdfsRpcProtection"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"HdfsRpcProtection"j)letto_json=simple_to_jsonto_valueendmoduleFsxProtocolNfs=structtypenonrect={mountOptions:NfsMountOptions.toption}letmake?mountOptions=fun()->{mountOptions}letto_valuex=structure_to_value[("MountOptions",(Option.mapx.mountOptions~f:NfsMountOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmountOptions=(Option.map~f:NfsMountOptions.of_xml)(Xml.childxml_arg0"MountOptions")inmake?mountOptions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmountOptions=field_mapjson__"MountOptions"NfsMountOptions.of_jsoninmake?mountOptions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the Network File System (NFS) protocol configuration that DataSync uses to access your FSx for OpenZFS file system or FSx for ONTAP file system's storage virtual machine (SVM)."]moduleFsxProtocolSmb=structtypenonrect={domain:SmbDomain.toption[@ocaml.doc"Specifies the name of the Windows domain that your storage virtual machine (SVM) belongs to. If you have multiple domains in your environment, configuring this setting makes sure that DataSync connects to the right SVM. If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right SVM."];mountOptions:SmbMountOptions.toption;password:SmbPassword.toption[@ocaml.doc"Specifies the password of a user who has permission to access your SVM."];user:SmbUser.t[@ocaml.doc"Specifies a user that can mount and access the files, folders, and metadata in your SVM. For information about choosing a user with the right level of access for your transfer, see Using the SMB protocol."];managedSecretConfig:ManagedSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as a Password that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager. Do not provide this for a CreateLocation request. ManagedSecretConfig is a ReadOnly property and is only be populated in the DescribeLocation response."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, which includes the password that DataSync uses to access a specific FSx for ONTAP storage location (using SMB), with a customer-managed KMS key. When you include this parameter as part of a CreateLocationFsxOntap request, you provide only the KMS key ARN. DataSync uses this KMS key together with the Password you specify for to create a DataSync-managed secret to store the location access credentials. Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key. You can use either CmkSecretConfig (with Password) or CustomSecretConfig (without Password) to provide credentials for a CreateLocationFsxOntap request. Do not provide both parameters for the same request."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed Secrets Manager secret where the password for an FSx for ONTAP storage location (using SMB) is stored in plain text, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage. You can use either CmkSecretConfig (with Password) or CustomSecretConfig (without Password) to provide credentials for a CreateLocationFsxOntap request. Do not provide both parameters for the same request."]}letcontext_="FsxProtocolSmb"letmake?domain=fun?mountOptions->fun?password->fun?managedSecretConfig->fun?cmkSecretConfig->fun?customSecretConfig->fun~user->fun()->{domain;mountOptions;password;managedSecretConfig;cmkSecretConfig;customSecretConfig;user}letto_valuex=structure_to_value[("Domain",(Option.mapx.domain~f:SmbDomain.to_value));("MountOptions",(Option.mapx.mountOptions~f:SmbMountOptions.to_value));("Password",(Option.mapx.password~f:SmbPassword.to_value));("User",(Some(SmbUser.to_valuex.user)));("ManagedSecretConfig",(Option.mapx.managedSecretConfig~f:ManagedSecretConfig.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletmanagedSecretConfig=(Option.map~f:ManagedSecretConfig.of_xml)(Xml.childxml_arg0"ManagedSecretConfig")inletuser=SmbUser.of_xml(Xml.child_exn~context:context_xml_arg0"User")inletpassword=(Option.map~f:SmbPassword.of_xml)(Xml.childxml_arg0"Password")inletmountOptions=(Option.map~f:SmbMountOptions.of_xml)(Xml.childxml_arg0"MountOptions")inletdomain=(Option.map~f:SmbDomain.of_xml)(Xml.childxml_arg0"Domain")inmake?customSecretConfig?cmkSecretConfig?managedSecretConfig~user?password?mountOptions?domain()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletmanagedSecretConfig=field_mapjson__"ManagedSecretConfig"ManagedSecretConfig.of_jsoninletuser=field_map_exnjson__"User"SmbUser.of_jsoninletpassword=field_mapjson__"Password"SmbPassword.of_jsoninletmountOptions=field_mapjson__"MountOptions"SmbMountOptions.of_jsoninletdomain=field_mapjson__"Domain"SmbDomain.of_jsoninmake?customSecretConfig?cmkSecretConfig?managedSecretConfig~user?password?mountOptions?domain()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system's storage virtual machine (SVM). For more information, see Providing DataSync access to FSx for ONTAP file systems."]moduleFsxUpdateProtocolSmb=structtypenonrect={domain:UpdateSmbDomain.toption[@ocaml.doc"Specifies the name of the Windows domain that your storage virtual machine (SVM) belongs to. If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right SVM."];mountOptions:SmbMountOptions.toption;password:SmbPassword.toption[@ocaml.doc"Specifies the password of a user who has permission to access your SVM."];user:SmbUser.toption[@ocaml.doc"Specifies a user that can mount and access the files, folders, and metadata in your SVM. For information about choosing a user with the right level of access for your transfer, see Using the SMB protocol."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, such as a Password or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed secret, such as a Password or set of credentials that DataSync uses to access a specific transfer location. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret."]}letmake?domain=fun?mountOptions->fun?password->fun?user->fun?cmkSecretConfig->fun?customSecretConfig->fun()->{domain;mountOptions;password;user;cmkSecretConfig;customSecretConfig}letto_valuex=structure_to_value[("Domain",(Option.mapx.domain~f:UpdateSmbDomain.to_value));("MountOptions",(Option.mapx.mountOptions~f:SmbMountOptions.to_value));("Password",(Option.mapx.password~f:SmbPassword.to_value));("User",(Option.mapx.user~f:SmbUser.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletuser=(Option.map~f:SmbUser.of_xml)(Xml.childxml_arg0"User")inletpassword=(Option.map~f:SmbPassword.of_xml)(Xml.childxml_arg0"Password")inletmountOptions=(Option.map~f:SmbMountOptions.of_xml)(Xml.childxml_arg0"MountOptions")inletdomain=(Option.map~f:UpdateSmbDomain.of_xml)(Xml.childxml_arg0"Domain")inmake?customSecretConfig?cmkSecretConfig?user?password?mountOptions?domain()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletuser=field_mapjson__"User"SmbUser.of_jsoninletpassword=field_mapjson__"Password"SmbPassword.of_jsoninletmountOptions=field_mapjson__"MountOptions"SmbMountOptions.of_jsoninletdomain=field_mapjson__"Domain"UpdateSmbDomain.of_jsoninmake?customSecretConfig?cmkSecretConfig?user?password?mountOptions?domain()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system's storage virtual machine (SVM). For more information, see Providing DataSync access to FSx for ONTAP file systems."]moduleAzureBlobSasToken=structtypenonrect=stringletcontext_="AzureBlobSasToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^.+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AzureBlobSasToken"jletto_json=simple_to_jsonto_valueendmoduleTagListEntry=structtypenonrect={key:TagKey.t[@ocaml.doc"The key for an Amazon Web Services resource tag."];value:TagValue.toption[@ocaml.doc"The value for an Amazon Web Services resource tag."]}letcontext_="TagListEntry"letmake?value=fun~key->fun()->{value;key}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Option.mapx.value~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValue.of_xml)(Xml.childxml_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_mapjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake?value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A key-value pair representing a single tag that's been applied to an Amazon Web Services resource."]moduleTaskListEntry=structtypenonrect={taskArn:TaskArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the task."];status:TaskStatus.toption[@ocaml.doc"The status of the task."];name:TagValue.toption[@ocaml.doc"The name of the task."];taskMode:TaskMode.toption[@ocaml.doc"The task mode that you're using. For more information, see Choosing a task mode for your data transfer."]}letmake?taskArn=fun?status->fun?name->fun?taskMode->fun()->{taskArn;status;name;taskMode}letto_valuex=structure_to_value[("TaskArn",(Option.mapx.taskArn~f:TaskArn.to_value));("Status",(Option.mapx.status~f:TaskStatus.to_value));("Name",(Option.mapx.name~f:TagValue.to_value));("TaskMode",(Option.mapx.taskMode~f:TaskMode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskMode=(Option.map~f:TaskMode.of_xml)(Xml.childxml_arg0"TaskMode")inletname=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Name")inletstatus=(Option.map~f:TaskStatus.of_xml)(Xml.childxml_arg0"Status")inlettaskArn=(Option.map~f:TaskArn.of_xml)(Xml.childxml_arg0"TaskArn")inmake?taskMode?name?status?taskArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskMode=field_mapjson__"TaskMode"TaskMode.of_jsoninletname=field_mapjson__"Name"TagValue.of_jsoninletstatus=field_mapjson__"Status"TaskStatus.of_jsoninlettaskArn=field_mapjson__"TaskArn"TaskArn.of_jsoninmake?taskMode?name?status?taskArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a single entry in a list of tasks. TaskListEntry returns an array that contains a list of tasks when the ListTasks operation is called. A task includes the source and destination file systems to sync and the options to use for the tasks."]moduleTaskFilter=structtypenonrect={name:TaskFilterName.t[@ocaml.doc"The name of the filter being used. Each API call supports a list of filters that are available for it. For example, LocationId for ListTasks."];values:FilterValues.t[@ocaml.doc"The values that you want to filter for. For example, you might want to display only tasks for a specific destination location."];operator:Operator.t[@ocaml.doc"The operator that is used to compare filter values (for example, Equals or Contains)."]}letcontext_="TaskFilter"letmake~name=fun~values->fun~operator->fun()->{name;values;operator}letto_valuex=structure_to_value[("Name",(Some(TaskFilterName.to_valuex.name)));("Values",(Some(FilterValues.to_valuex.values)));("Operator",(Some(Operator.to_valuex.operator)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoperator=Operator.of_xml(Xml.child_exn~context:context_xml_arg0"Operator")inletvalues=FilterValues.of_xml(Xml.child_exn~context:context_xml_arg0"Values")inletname=TaskFilterName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~operator~values~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoperator=field_map_exnjson__"Operator"Operator.of_jsoninletvalues=field_map_exnjson__"Values"FilterValues.of_jsoninletname=field_map_exnjson__"Name"TaskFilterName.of_jsoninmake~operator~values~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You can use API filters to narrow down the list of resources returned by ListTasks. For example, to retrieve all tasks on a source location, you can use ListTasks with filter name LocationId and Operator Equals with the ARN for the location. For more information, see filtering DataSync resources."]moduleTaskExecutionListEntry=structtypenonrect={taskExecutionArn:TaskExecutionArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of a task execution."];status:TaskExecutionStatus.toption[@ocaml.doc"The status of a task execution. For more information, see Task execution statuses."];taskMode:TaskMode.toption[@ocaml.doc"The task mode that you're using. For more information, see Choosing a task mode for your data transfer."]}letmake?taskExecutionArn=fun?status->fun?taskMode->fun()->{taskExecutionArn;status;taskMode}letto_valuex=structure_to_value[("TaskExecutionArn",(Option.mapx.taskExecutionArn~f:TaskExecutionArn.to_value));("Status",(Option.mapx.status~f:TaskExecutionStatus.to_value));("TaskMode",(Option.mapx.taskMode~f:TaskMode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskMode=(Option.map~f:TaskMode.of_xml)(Xml.childxml_arg0"TaskMode")inletstatus=(Option.map~f:TaskExecutionStatus.of_xml)(Xml.childxml_arg0"Status")inlettaskExecutionArn=(Option.map~f:TaskExecutionArn.of_xml)(Xml.childxml_arg0"TaskExecutionArn")inmake?taskMode?status?taskExecutionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskMode=field_mapjson__"TaskMode"TaskMode.of_jsoninletstatus=field_mapjson__"Status"TaskExecutionStatus.of_jsoninlettaskExecutionArn=field_mapjson__"TaskExecutionArn"TaskExecutionArn.of_jsoninmake?taskMode?status?taskExecutionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a single entry in a list of DataSync task executions that's returned with the ListTaskExecutions operation."]moduleLocationListEntry=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the location. For Network File System (NFS) or Amazon EFS, the location is the export path. For Amazon S3, the location is the prefix path that you want to mount and use as the root of the location."];locationUri:LocationUri.toption[@ocaml.doc"Represents a list of URIs of a location. LocationUri returns an array that contains a list of locations when the ListLocations operation is called. Format: TYPE://GLOBAL_ID/SUBDIR. TYPE designates the type of location (for example, nfs or s3). GLOBAL_ID is the globally unique identifier of the resource that backs the location. An example for EFS is us-east-2.fs-abcd1234. An example for Amazon S3 is the bucket name, such as myBucket. An example for NFS is a valid IPv4 or IPv6 address or a hostname that is compliant with DNS. SUBDIR is a valid file system path, delimited by forward slashes as is the *nix convention. For NFS and Amazon EFS, it's the export path to mount the location. For Amazon S3, it's the prefix path that you mount to and treat as the root of the location."]}letmake?locationArn=fun?locationUri->fun()->{locationArn;locationUri}letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a single entry in a list of locations. LocationListEntry returns an array that contains a list of locations when the ListLocations operation is called."]moduleLocationFilter=structtypenonrect={name:LocationFilterName.t[@ocaml.doc"The name of the filter being used. Each API call supports a list of filters that are available for it (for example, LocationType for ListLocations)."];values:FilterValues.t[@ocaml.doc"The values that you want to filter for. For example, you might want to display only Amazon S3 locations."];operator:Operator.t[@ocaml.doc"The operator that is used to compare filter values (for example, Equals or Contains)."]}letcontext_="LocationFilter"letmake~name=fun~values->fun~operator->fun()->{name;values;operator}letto_valuex=structure_to_value[("Name",(Some(LocationFilterName.to_valuex.name)));("Values",(Some(FilterValues.to_valuex.values)));("Operator",(Some(Operator.to_valuex.operator)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoperator=Operator.of_xml(Xml.child_exn~context:context_xml_arg0"Operator")inletvalues=FilterValues.of_xml(Xml.child_exn~context:context_xml_arg0"Values")inletname=LocationFilterName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~operator~values~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoperator=field_map_exnjson__"Operator"Operator.of_jsoninletvalues=field_map_exnjson__"Values"FilterValues.of_jsoninletname=field_map_exnjson__"Name"LocationFilterName.of_jsoninmake~operator~values~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Narrow down the list of resources returned by ListLocations. For example, to see all your Amazon S3 locations, create a filter using \"Name\": \"LocationType\", \"Operator\": \"Equals\", and \"Values\": \"S3\". For more information, see filtering resources."]moduleAgentListEntry=structtypenonrect={agentArn:AgentArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of a DataSync agent."];name:TagValue.toption[@ocaml.doc"The name of an agent."];status:AgentStatus.toption[@ocaml.doc"The status of an agent. If the status is ONLINE, the agent is configured properly and ready to use. If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline?"];platform:Platform.toption[@ocaml.doc"The platform-related details about the agent, such as the version number."]}letmake?agentArn=fun?name->fun?status->fun?platform->fun()->{agentArn;name;status;platform}letto_valuex=structure_to_value[("AgentArn",(Option.mapx.agentArn~f:AgentArn.to_value));("Name",(Option.mapx.name~f:TagValue.to_value));("Status",(Option.mapx.status~f:AgentStatus.to_value));("Platform",(Option.mapx.platform~f:Platform.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplatform=(Option.map~f:Platform.of_xml)(Xml.childxml_arg0"Platform")inletstatus=(Option.map~f:AgentStatus.of_xml)(Xml.childxml_arg0"Status")inletname=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Name")inletagentArn=(Option.map~f:AgentArn.of_xml)(Xml.childxml_arg0"AgentArn")inmake?platform?status?name?agentArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplatform=field_mapjson__"Platform"Platform.of_jsoninletstatus=field_mapjson__"Status"AgentStatus.of_jsoninletname=field_mapjson__"Name"TagValue.of_jsoninletagentArn=field_mapjson__"AgentArn"AgentArn.of_jsoninmake?platform?status?name?agentArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a single entry in a list (or array) of DataSync agents when you call the ListAgents operation."]moduleNetworkInterfaceArn=structtypenonrect=stringletcontext_="NetworkInterfaceArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:aws[\\-a-z]{0,}:ec2:[a-z\\-0-9]*:[0-9]{12}:network-interface/eni-[0-9a-f]+$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NetworkInterfaceArn"jletto_json=simple_to_jsonto_valueendmoduleScheduleDisabledBy=structtypenonrect=|USER|SERVICE|Non_static_idofstringletmakei=iletto_string=function|USER->"USER"|SERVICE->"SERVICE"|Non_static_ids->sletof_string=function|"USER"->USER|"SERVICE"->SERVICE|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 ScheduleDisabledBy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ScheduleDisabledBy"j)letto_json=simple_to_jsonto_valueendmoduleScheduleDisabledReason=structtypenonrect=stringletcontext_="ScheduleDisabledReason"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:8192)>>=(fun()->check_patterni~pattern:"^[\\w\\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:"ScheduleDisabledReason"jletto_json=simple_to_jsonto_valueendmoduleTime=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_valueendmodulePhaseStatus=structtypenonrect=|PENDING|SUCCESS|ERROR|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|SUCCESS->"SUCCESS"|ERROR->"ERROR"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"SUCCESS"->SUCCESS|"ERROR"->ERROR|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 PhaseStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PhaseStatus"j)letto_json=simple_to_jsonto_valueendmoduleLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleDuration=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_valueendmoduleEc2SecurityGroupArnList=structtypenonrect=Ec2SecurityGroupArn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:5)>>=(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:Ec2SecurityGroupArn.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:Ec2SecurityGroupArn.of_xml)letof_jsonj=list_of_json~kind:"Ec2SecurityGroupArnList"~of_json:Ec2SecurityGroupArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEndpoint=structtypenonrect=stringletcontext_="Endpoint"letmakei=letopenResultinok_or_failwith((check_string_mini~min:7)>>=(fun()->(check_string_maxi~max:15)>>=(fun()->check_patterni~pattern:"\\A(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}\\z")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Endpoint"jletto_json=simple_to_jsonto_valueendmodulePLSecurityGroupArnList=structtypenonrect=Ec2SecurityGroupArn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(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:Ec2SecurityGroupArn.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:Ec2SecurityGroupArn.of_xml)letof_jsonj=list_of_json~kind:"PLSecurityGroupArnList"~of_json:Ec2SecurityGroupArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePLSubnetArnList=structtypenonrect=Ec2SubnetArn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(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:Ec2SubnetArn.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:Ec2SubnetArn.of_xml)letof_jsonj=list_of_json~kind:"PLSubnetArnList"~of_json:Ec2SubnetArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleVpcEndpointId=structtypenonrect=stringletcontext_="VpcEndpointId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^vpce-[0-9a-f]{17}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"VpcEndpointId"jletto_json=simple_to_jsonto_valueendmoduleInternalException=structtypenonrect={message:String_.toption;errorCode:String_.toption}letmake?message=fun?errorCode->fun()->{message;errorCode}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("errorCode",(Option.mapx.errorCode~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"errorCode")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?errorCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorCode=field_mapjson__"errorCode"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?errorCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception is thrown when an error occurs in the DataSync service."]moduleInvalidRequestException=structtypenonrect={message:String_.toption;errorCode:String_.toption;datasyncErrorCode:String_.toption}letmake?message=fun?errorCode->fun?datasyncErrorCode->fun()->{message;errorCode;datasyncErrorCode}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("errorCode",(Option.mapx.errorCode~f:String_.to_value));("datasyncErrorCode",(Option.mapx.datasyncErrorCode~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasyncErrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"datasyncErrorCode")inleterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"errorCode")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?datasyncErrorCode?errorCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasyncErrorCode=field_mapjson__"datasyncErrorCode"String_.of_jsoninleterrorCode=field_mapjson__"errorCode"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?datasyncErrorCode?errorCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception is thrown when the client submits a malformed request."]moduleFilterList=structtypenonrect=FilterRule.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(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:FilterRule.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:FilterRule.of_xml)letof_jsonj=list_of_json~kind:"FilterList"~of_json:FilterRule.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLogGroupArn=structtypenonrect=stringletcontext_="LogGroupArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:562)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):logs:[a-z\\-0-9]+:[0-9]{12}:log-group:([^:\\*]*)(:\\*)?$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LogGroupArn"jletto_json=simple_to_jsonto_valueendmoduleManifestConfig=structtypenonrect={action:ManifestAction.toption[@ocaml.doc"Specifies what DataSync uses the manifest for."];format:ManifestFormat.toption[@ocaml.doc"Specifies the file format of your manifest. For more information, see Creating a manifest."];source:SourceManifestConfig.toption[@ocaml.doc"Specifies the manifest that you want DataSync to use and where it's hosted. You must specify this parameter if you're configuring a new manifest on or after February 7, 2024. If you don't, you'll get a 400 status code and ValidationException error stating that you're missing the IAM role for DataSync to access the S3 bucket where you're hosting your manifest. For more information, see Providing DataSync access to your manifest."]}letmake?action=fun?format->fun?source->fun()->{action;format;source}letto_valuex=structure_to_value[("Action",(Option.mapx.action~f:ManifestAction.to_value));("Format",(Option.mapx.format~f:ManifestFormat.to_value));("Source",(Option.mapx.source~f:SourceManifestConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsource=(Option.map~f:SourceManifestConfig.of_xml)(Xml.childxml_arg0"Source")inletformat=(Option.map~f:ManifestFormat.of_xml)(Xml.childxml_arg0"Format")inletaction=(Option.map~f:ManifestAction.of_xml)(Xml.childxml_arg0"Action")inmake?source?format?action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsource=field_mapjson__"Source"SourceManifestConfig.of_jsoninletformat=field_mapjson__"Format"ManifestFormat.of_jsoninletaction=field_mapjson__"Action"ManifestAction.of_jsoninmake?source?format?action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest."]moduleOptions=structtypenonrect={verifyMode:VerifyMode.toption[@ocaml.doc"Specifies if and how DataSync checks the integrity of your data at the end of your transfer. ONLY_FILES_TRANSFERRED (recommended) - DataSync calculates the checksum of transferred data (including metadata) at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on that data at the destination. This is the default option for Enhanced mode tasks. We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations. POINT_IN_TIME_CONSISTENT - At the end of the transfer, DataSync checks the entire source and destination to verify that both locations are fully synchronized. The is the default option for Basic mode tasks and isn't currently supported with Enhanced mode tasks. If you use a manifest, DataSync only scans and verifies what's listed in the manifest. You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations. NONE - DataSync performs data integrity checks only during your transfer. Unlike other options, there's no additional verification at the end of your transfer."];overwriteMode:OverwriteMode.toption[@ocaml.doc"Specifies whether DataSync should modify or preserve data at the destination location. ALWAYS (default) - DataSync modifies data in the destination location when source data (including metadata) has changed. If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see Storage class considerations with Amazon S3 transfers. NEVER - DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination."];atime:Atime.toption[@ocaml.doc"Specifies whether to preserve metadata indicating the last time a file was read or written to. The behavior of Atime isn't fully standard across platforms, so DataSync can only do this on a best-effort basis. BEST_EFFORT (default) - DataSync attempts to preserve the original Atime attribute on all source files (that is, the version before the PREPARING steps of the task execution). This option is recommended. NONE - Ignores Atime. If Atime is set to BEST_EFFORT, Mtime must be set to PRESERVE. If Atime is set to NONE, Mtime must also be NONE."];mtime:Mtime.toption[@ocaml.doc"Specifies whether to preserve metadata indicating the last time that a file was written to before the PREPARING step of your task execution. This option is required when you need to run the a task more than once. PRESERVE (default) - Preserves original Mtime, which is recommended. NONE - Ignores Mtime. If Mtime is set to PRESERVE, Atime must be set to BEST_EFFORT. If Mtime is set to NONE, Atime must also be set to NONE."];uid:Uid.toption[@ocaml.doc"Specifies the POSIX user ID (UID) of the file's owner. INT_VALUE (default) - Preserves the integer value of UID and group ID (GID), which is recommended. NONE - Ignores UID and GID. For more information, see Metadata copied by DataSync."];gid:Gid.toption[@ocaml.doc"Specifies the POSIX group ID (GID) of the file's owners. INT_VALUE (default) - Preserves the integer value of user ID (UID) and GID, which is recommended. NONE - Ignores UID and GID. For more information, see Understanding how DataSync handles file and object metadata."];preserveDeletedFiles:PreserveDeletedFiles.toption[@ocaml.doc"Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync. PRESERVE (default) - Ignores such destination files, which is recommended. REMOVE - Deletes destination files that aren\226\128\153t present in the source. If you set this parameter to REMOVE, you can't set TransferMode to ALL. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete."];preserveDevices:PreserveDevices.toption[@ocaml.doc"Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices. DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker. NONE (default) - Ignores special devices (recommended). PRESERVE - Preserves character and block device metadata. This option currently isn't supported for Amazon EFS."];posixPermissions:PosixPermissions.toption[@ocaml.doc"Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. For more information, see Understanding how DataSync handles file and object metadata. PRESERVE (default) - Preserves POSIX-style permissions, which is recommended. NONE - Ignores POSIX-style permissions. DataSync can preserve extant permissions of a source location."];bytesPerSecond:BytesPerSecond.toption[@ocaml.doc"Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to 1048576 (=1024*1024)."];taskQueueing:TaskQueueing.toption[@ocaml.doc"Specifies whether your transfer tasks should be put into a queue during certain scenarios when running multiple tasks. This is ENABLED by default."];logLevel:LogLevel.toption[@ocaml.doc"Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see CloudWatchLogGroupArn. BASIC - Publishes logs with only basic information (such as transfer errors). TRANSFER - Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on. OFF - No logs are published."];transferMode:TransferMode.toption[@ocaml.doc"Specifies whether DataSync transfers only the data (including metadata) that differs between locations following an initial copy or transfers all data every time you run the task. If you're planning on recurring transfers, you might only want to transfer what's changed since your previous task execution. CHANGED (default) - After your initial full transfer, DataSync copies only the data and metadata that differs between the source and destination location. ALL - DataSync copies everything in the source to the destination without comparing differences between the locations."];securityDescriptorCopyFlags:SmbSecurityDescriptorCopyFlags.toption[@ocaml.doc"Specifies which components of the SMB security descriptor are copied from source to destination objects. This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see Understanding how DataSync handles file and object metadata. OWNER_DACL (default) - For each copied object, DataSync copies the following metadata: The object owner. NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object. DataSync won't copy NTFS system access control lists (SACLs) with this option. OWNER_DACL_SACL - For each copied object, DataSync copies the following metadata: The object owner. NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object. SACLs, which are used by administrators to log attempts to access a secured object. Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for SMB, FSx for Windows File Server, or FSx for ONTAP (depending on the type of location in your transfer). NONE - None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server\226\128\153s configuration."];objectTags:ObjectTags.toption[@ocaml.doc"Specifies whether you want DataSync to PRESERVE object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the NONE value."]}letmake?verifyMode=fun?overwriteMode->fun?atime->fun?mtime->fun?uid->fun?gid->fun?preserveDeletedFiles->fun?preserveDevices->fun?posixPermissions->fun?bytesPerSecond->fun?taskQueueing->fun?logLevel->fun?transferMode->fun?securityDescriptorCopyFlags->fun?objectTags->fun()->{verifyMode;overwriteMode;atime;mtime;uid;gid;preserveDeletedFiles;preserveDevices;posixPermissions;bytesPerSecond;taskQueueing;logLevel;transferMode;securityDescriptorCopyFlags;objectTags}letto_valuex=structure_to_value[("VerifyMode",(Option.mapx.verifyMode~f:VerifyMode.to_value));("OverwriteMode",(Option.mapx.overwriteMode~f:OverwriteMode.to_value));("Atime",(Option.mapx.atime~f:Atime.to_value));("Mtime",(Option.mapx.mtime~f:Mtime.to_value));("Uid",(Option.mapx.uid~f:Uid.to_value));("Gid",(Option.mapx.gid~f:Gid.to_value));("PreserveDeletedFiles",(Option.mapx.preserveDeletedFiles~f:PreserveDeletedFiles.to_value));("PreserveDevices",(Option.mapx.preserveDevices~f:PreserveDevices.to_value));("PosixPermissions",(Option.mapx.posixPermissions~f:PosixPermissions.to_value));("BytesPerSecond",(Option.mapx.bytesPerSecond~f:BytesPerSecond.to_value));("TaskQueueing",(Option.mapx.taskQueueing~f:TaskQueueing.to_value));("LogLevel",(Option.mapx.logLevel~f:LogLevel.to_value));("TransferMode",(Option.mapx.transferMode~f:TransferMode.to_value));("SecurityDescriptorCopyFlags",(Option.mapx.securityDescriptorCopyFlags~f:SmbSecurityDescriptorCopyFlags.to_value));("ObjectTags",(Option.mapx.objectTags~f:ObjectTags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letobjectTags=(Option.map~f:ObjectTags.of_xml)(Xml.childxml_arg0"ObjectTags")inletsecurityDescriptorCopyFlags=(Option.map~f:SmbSecurityDescriptorCopyFlags.of_xml)(Xml.childxml_arg0"SecurityDescriptorCopyFlags")inlettransferMode=(Option.map~f:TransferMode.of_xml)(Xml.childxml_arg0"TransferMode")inletlogLevel=(Option.map~f:LogLevel.of_xml)(Xml.childxml_arg0"LogLevel")inlettaskQueueing=(Option.map~f:TaskQueueing.of_xml)(Xml.childxml_arg0"TaskQueueing")inletbytesPerSecond=(Option.map~f:BytesPerSecond.of_xml)(Xml.childxml_arg0"BytesPerSecond")inletposixPermissions=(Option.map~f:PosixPermissions.of_xml)(Xml.childxml_arg0"PosixPermissions")inletpreserveDevices=(Option.map~f:PreserveDevices.of_xml)(Xml.childxml_arg0"PreserveDevices")inletpreserveDeletedFiles=(Option.map~f:PreserveDeletedFiles.of_xml)(Xml.childxml_arg0"PreserveDeletedFiles")inletgid=(Option.map~f:Gid.of_xml)(Xml.childxml_arg0"Gid")inletuid=(Option.map~f:Uid.of_xml)(Xml.childxml_arg0"Uid")inletmtime=(Option.map~f:Mtime.of_xml)(Xml.childxml_arg0"Mtime")inletatime=(Option.map~f:Atime.of_xml)(Xml.childxml_arg0"Atime")inletoverwriteMode=(Option.map~f:OverwriteMode.of_xml)(Xml.childxml_arg0"OverwriteMode")inletverifyMode=(Option.map~f:VerifyMode.of_xml)(Xml.childxml_arg0"VerifyMode")inmake?objectTags?securityDescriptorCopyFlags?transferMode?logLevel?taskQueueing?bytesPerSecond?posixPermissions?preserveDevices?preserveDeletedFiles?gid?uid?mtime?atime?overwriteMode?verifyMode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letobjectTags=field_mapjson__"ObjectTags"ObjectTags.of_jsoninletsecurityDescriptorCopyFlags=field_mapjson__"SecurityDescriptorCopyFlags"SmbSecurityDescriptorCopyFlags.of_jsoninlettransferMode=field_mapjson__"TransferMode"TransferMode.of_jsoninletlogLevel=field_mapjson__"LogLevel"LogLevel.of_jsoninlettaskQueueing=field_mapjson__"TaskQueueing"TaskQueueing.of_jsoninletbytesPerSecond=field_mapjson__"BytesPerSecond"BytesPerSecond.of_jsoninletposixPermissions=field_mapjson__"PosixPermissions"PosixPermissions.of_jsoninletpreserveDevices=field_mapjson__"PreserveDevices"PreserveDevices.of_jsoninletpreserveDeletedFiles=field_mapjson__"PreserveDeletedFiles"PreserveDeletedFiles.of_jsoninletgid=field_mapjson__"Gid"Gid.of_jsoninletuid=field_mapjson__"Uid"Uid.of_jsoninletmtime=field_mapjson__"Mtime"Mtime.of_jsoninletatime=field_mapjson__"Atime"Atime.of_jsoninletoverwriteMode=field_mapjson__"OverwriteMode"OverwriteMode.of_jsoninletverifyMode=field_mapjson__"VerifyMode"VerifyMode.of_jsoninmake?objectTags?securityDescriptorCopyFlags?transferMode?logLevel?taskQueueing?bytesPerSecond?posixPermissions?preserveDevices?preserveDeletedFiles?gid?uid?mtime?atime?overwriteMode?verifyMode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options. Each option has a default value. Unless you need to, you don't have to configure any option before calling StartTaskExecution. You also can override your task options for each task execution. For example, you might want to adjust the LogLevel for an individual execution."]moduleTaskReportConfig=structtypenonrect={destination:ReportDestination.toption[@ocaml.doc"Specifies the Amazon S3 bucket where DataSync uploads your task report. For more information, see Task reports."];outputType:ReportOutputType.toption[@ocaml.doc"Specifies the type of task report that you want: SUMMARY_ONLY: Provides necessary details about your task, including the number of files, objects, and directories transferred and transfer duration. STANDARD: Provides complete details about your task, including a full list of files, objects, and directories that were transferred, skipped, verified, and more."];reportLevel:ReportLevel.toption[@ocaml.doc"Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't. ERRORS_ONLY: A report shows what DataSync was unable to transfer, skip, verify, and delete. SUCCESSES_AND_ERRORS: A report shows what DataSync was able and unable to transfer, skip, verify, and delete."];objectVersionIds:ObjectVersionIds.toption[@ocaml.doc"Specifies whether your task report includes the new version of each object transferred into an S3 bucket. This only applies if you enable versioning on your bucket. Keep in mind that setting this to INCLUDE can increase the duration of your task execution."];overrides:ReportOverrides.toption[@ocaml.doc"Customizes the reporting level for aspects of your task report. For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that DataSync attempted to delete in your destination location."]}letmake?destination=fun?outputType->fun?reportLevel->fun?objectVersionIds->fun?overrides->fun()->{destination;outputType;reportLevel;objectVersionIds;overrides}letto_valuex=structure_to_value[("Destination",(Option.mapx.destination~f:ReportDestination.to_value));("OutputType",(Option.mapx.outputType~f:ReportOutputType.to_value));("ReportLevel",(Option.mapx.reportLevel~f:ReportLevel.to_value));("ObjectVersionIds",(Option.mapx.objectVersionIds~f:ObjectVersionIds.to_value));("Overrides",(Option.mapx.overrides~f:ReportOverrides.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoverrides=(Option.map~f:ReportOverrides.of_xml)(Xml.childxml_arg0"Overrides")inletobjectVersionIds=(Option.map~f:ObjectVersionIds.of_xml)(Xml.childxml_arg0"ObjectVersionIds")inletreportLevel=(Option.map~f:ReportLevel.of_xml)(Xml.childxml_arg0"ReportLevel")inletoutputType=(Option.map~f:ReportOutputType.of_xml)(Xml.childxml_arg0"OutputType")inletdestination=(Option.map~f:ReportDestination.of_xml)(Xml.childxml_arg0"Destination")inmake?overrides?objectVersionIds?reportLevel?outputType?destination()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoverrides=field_mapjson__"Overrides"ReportOverrides.of_jsoninletobjectVersionIds=field_mapjson__"ObjectVersionIds"ObjectVersionIds.of_jsoninletreportLevel=field_mapjson__"ReportLevel"ReportLevel.of_jsoninletoutputType=field_mapjson__"OutputType"ReportOutputType.of_jsoninletdestination=field_mapjson__"Destination"ReportDestination.of_jsoninmake?overrides?objectVersionIds?reportLevel?outputType?destination()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies how you want to configure a task report, which provides detailed information about for your DataSync transfer. For more information, see Task reports."]moduleTaskSchedule=structtypenonrect={scheduleExpression:ScheduleExpressionCron.t[@ocaml.doc"Specifies your task schedule by using a cron or rate expression. Use cron expressions for task schedules that run on a specific time and day. For example, the following cron expression creates a task schedule that runs at 8 AM on the first Wednesday of every month: cron(0 8 * * 3#1) Use rate expressions for task schedules that run on a regular interval. For example, the following rate expression creates a task schedule that runs every 12 hours: rate(12 hours) For information about cron and rate expression syntax, see the Amazon EventBridge User Guide ."];status:ScheduleStatus.toption[@ocaml.doc"Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system. DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails."]}letcontext_="TaskSchedule"letmake?status=fun~scheduleExpression->fun()->{status;scheduleExpression}letto_valuex=structure_to_value[("ScheduleExpression",(Some(ScheduleExpressionCron.to_valuex.scheduleExpression)));("Status",(Option.mapx.status~f:ScheduleStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:ScheduleStatus.of_xml)(Xml.childxml_arg0"Status")inletscheduleExpression=ScheduleExpressionCron.of_xml(Xml.child_exn~context:context_xml_arg0"ScheduleExpression")inmake?status~scheduleExpression()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"ScheduleStatus.of_jsoninletscheduleExpression=field_map_exnjson__"ScheduleExpression"ScheduleExpressionCron.of_jsoninmake?status~scheduleExpression()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configures your DataSync task to run on a schedule (at a minimum interval of 1 hour)."]moduleDnsIpList=structtypenonrect=ServerIpAddress.tlistletmakei=letopenResultinok_or_failwith(check_list_maxi~max:2);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServerIpAddress.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:ServerIpAddress.of_xml)letof_jsonj=list_of_json~kind:"DnsIpList"~of_json:ServerIpAddress.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKerberosKeytabFile=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_valueendmoduleKerberosKrb5ConfFile=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_valueendmoduleKerberosPrincipal=structtypenonrect=stringletcontext_="KerberosPrincipal"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^.+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KerberosPrincipal"jletto_json=simple_to_jsonto_valueendmoduleServerHostname=structtypenonrect=stringletcontext_="ServerHostname"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^(([a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([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:"ServerHostname"jletto_json=simple_to_jsonto_valueendmoduleSmbAuthenticationType=structtypenonrect=|NTLM|KERBEROS|Non_static_idofstringletmakei=iletto_string=function|NTLM->"NTLM"|KERBEROS->"KERBEROS"|Non_static_ids->sletof_string=function|"NTLM"->NTLM|"KERBEROS"->KERBEROS|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 SmbAuthenticationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SmbAuthenticationType"j)letto_json=simple_to_jsonto_valueendmoduleSmbSubdirectory=structtypenonrect=stringletcontext_="SmbSubdirectory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SmbSubdirectory"jletto_json=simple_to_jsonto_valueendmoduleS3Config=structtypenonrect={bucketAccessRoleArn:IamRoleArn.t[@ocaml.doc"Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket."]}letcontext_="S3Config"letmake~bucketAccessRoleArn=fun()->{bucketAccessRoleArn}letto_valuex=structure_to_value[("BucketAccessRoleArn",(Some(IamRoleArn.to_valuex.bucketAccessRoleArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbucketAccessRoleArn=IamRoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"BucketAccessRoleArn")inmake~bucketAccessRoleArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbucketAccessRoleArn=field_map_exnjson__"BucketAccessRoleArn"IamRoleArn.of_jsoninmake~bucketAccessRoleArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket. For more information, see Providing DataSync access to S3 buckets."]moduleS3StorageClass=structtypenonrect=|STANDARD|STANDARD_IA|ONEZONE_IA|INTELLIGENT_TIERING|GLACIER|DEEP_ARCHIVE|OUTPOSTS|GLACIER_INSTANT_RETRIEVAL|Non_static_idofstringletmakei=iletto_string=function|STANDARD->"STANDARD"|STANDARD_IA->"STANDARD_IA"|ONEZONE_IA->"ONEZONE_IA"|INTELLIGENT_TIERING->"INTELLIGENT_TIERING"|GLACIER->"GLACIER"|DEEP_ARCHIVE->"DEEP_ARCHIVE"|OUTPOSTS->"OUTPOSTS"|GLACIER_INSTANT_RETRIEVAL->"GLACIER_INSTANT_RETRIEVAL"|Non_static_ids->sletof_string=function|"STANDARD"->STANDARD|"STANDARD_IA"->STANDARD_IA|"ONEZONE_IA"->ONEZONE_IA|"INTELLIGENT_TIERING"->INTELLIGENT_TIERING|"GLACIER"->GLACIER|"DEEP_ARCHIVE"->DEEP_ARCHIVE|"OUTPOSTS"->OUTPOSTS|"GLACIER_INSTANT_RETRIEVAL"->GLACIER_INSTANT_RETRIEVAL|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 S3StorageClass"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"S3StorageClass"j)letto_json=simple_to_jsonto_valueendmoduleObjectStorageAccessKey=structtypenonrect=stringletcontext_="ObjectStorageAccessKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:200)>>=(fun()->check_patterni~pattern:"^.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ObjectStorageAccessKey"jletto_json=simple_to_jsonto_valueendmoduleObjectStorageCertificate=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_valueendmoduleObjectStorageSecretKey=structtypenonrect=stringletcontext_="ObjectStorageSecretKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:200)>>=(fun()->check_patterni~pattern:"^.*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ObjectStorageSecretKey"jletto_json=simple_to_jsonto_valueendmoduleObjectStorageServerPort=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:65536)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ObjectStorageServerPort"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleObjectStorageServerProtocol=structtypenonrect=|HTTPS|HTTP|Non_static_idofstringletmakei=iletto_string=function|HTTPS->"HTTPS"|HTTP->"HTTP"|Non_static_ids->sletof_string=function|"HTTPS"->HTTPS|"HTTP"->HTTP|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 ObjectStorageServerProtocol"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ObjectStorageServerProtocol"j)letto_json=simple_to_jsonto_valueendmoduleNfsSubdirectory=structtypenonrect=stringletcontext_="NfsSubdirectory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\p{Zs}]+$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NfsSubdirectory"jletto_json=simple_to_jsonto_valueendmoduleOnPremConfig=structtypenonrect={agentArns:AgentArnList.t[@ocaml.doc"The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your NFS file server. You can specify more than one agent. For more information, see Using multiple DataSync agents."]}letcontext_="OnPremConfig"letmake~agentArns=fun()->{agentArns}letto_valuex=structure_to_value[("AgentArns",(Some(AgentArnList.to_valuex.agentArns)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentArns=AgentArnList.of_xml(Xml.child_exn~context:context_xml_arg0"AgentArns")inmake~agentArns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentArns=field_map_exnjson__"AgentArns"AgentArnList.of_jsoninmake~agentArns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The DataSync agents that can connect to your Network File System (NFS) file server."]moduleHdfsAuthenticationType=structtypenonrect=|SIMPLE|KERBEROS|Non_static_idofstringletmakei=iletto_string=function|SIMPLE->"SIMPLE"|KERBEROS->"KERBEROS"|Non_static_ids->sletof_string=function|"SIMPLE"->SIMPLE|"KERBEROS"->KERBEROS|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 HdfsAuthenticationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"HdfsAuthenticationType"j)letto_json=simple_to_jsonto_valueendmoduleHdfsBlockSize=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1073741824)>>=(fun()->check_int_mini~min:1048576));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 HdfsBlockSize"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleHdfsNameNodeList=structtypenonrect=HdfsNameNode.tlistletmakei=letopenResultinok_or_failwith(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:HdfsNameNode.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:HdfsNameNode.of_xml)letof_jsonj=list_of_json~kind:"HdfsNameNodeList"~of_json:HdfsNameNode.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleHdfsReplicationFactor=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:512)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for HdfsReplicationFactor"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleHdfsSubdirectory=structtypenonrect=stringletcontext_="HdfsSubdirectory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"HdfsSubdirectory"jletto_json=simple_to_jsonto_valueendmoduleHdfsUser=structtypenonrect=stringletcontext_="HdfsUser"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]*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"HdfsUser"jletto_json=simple_to_jsonto_valueendmoduleKmsKeyProviderUri=structtypenonrect=stringletcontext_="KmsKeyProviderUri"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^kms:\\/\\/http[s]?@(([a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9\\-]*[A-Za-z0-9])(;(([a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9\\-]*[A-Za-z0-9]))*:[0-9]{1,5}\\/kms$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KmsKeyProviderUri"jletto_json=simple_to_jsonto_valueendmoduleQopConfiguration=structtypenonrect={rpcProtection:HdfsRpcProtection.toption[@ocaml.doc"The RPC protection setting configured on the HDFS cluster. This setting corresponds to your hadoop.rpc.protection setting in your core-site.xml file on your Hadoop cluster."];dataTransferProtection:HdfsDataTransferProtection.toption[@ocaml.doc"The data transfer protection setting configured on the HDFS cluster. This setting corresponds to your dfs.data.transfer.protection setting in the hdfs-site.xml file on your Hadoop cluster."]}letmake?rpcProtection=fun?dataTransferProtection->fun()->{rpcProtection;dataTransferProtection}letto_valuex=structure_to_value[("RpcProtection",(Option.mapx.rpcProtection~f:HdfsRpcProtection.to_value));("DataTransferProtection",(Option.mapx.dataTransferProtection~f:HdfsDataTransferProtection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataTransferProtection=(Option.map~f:HdfsDataTransferProtection.of_xml)(Xml.childxml_arg0"DataTransferProtection")inletrpcProtection=(Option.map~f:HdfsRpcProtection.of_xml)(Xml.childxml_arg0"RpcProtection")inmake?dataTransferProtection?rpcProtection()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataTransferProtection=field_mapjson__"DataTransferProtection"HdfsDataTransferProtection.of_jsoninletrpcProtection=field_mapjson__"RpcProtection"HdfsRpcProtection.of_jsoninmake?dataTransferProtection?rpcProtection()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer privacy settings configured on the Hadoop Distributed File System (HDFS) cluster."]moduleFsxWindowsSubdirectory=structtypenonrect=stringletcontext_="FsxWindowsSubdirectory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FsxWindowsSubdirectory"jletto_json=simple_to_jsonto_valueendmoduleFsxProtocol=structtypenonrect={nFS:FsxProtocolNfs.toption[@ocaml.doc"Specifies the Network File System (NFS) protocol configuration that DataSync uses to access your FSx for OpenZFS file system or FSx for ONTAP file system's storage virtual machine (SVM)."];sMB:FsxProtocolSmb.toption[@ocaml.doc"Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your FSx for ONTAP file system's SVM."]}letmake?nFS=fun?sMB->fun()->{nFS;sMB}letto_valuex=structure_to_value[("NFS",(Option.mapx.nFS~f:FsxProtocolNfs.to_value));("SMB",(Option.mapx.sMB~f:FsxProtocolSmb.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsMB=(Option.map~f:FsxProtocolSmb.of_xml)(Xml.childxml_arg0"SMB")inletnFS=(Option.map~f:FsxProtocolNfs.of_xml)(Xml.childxml_arg0"NFS")inmake?sMB?nFS()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsMB=field_mapjson__"SMB"FsxProtocolSmb.of_jsoninletnFS=field_mapjson__"NFS"FsxProtocolNfs.of_jsoninmake?sMB?nFS()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system."]moduleFsxOntapSubdirectory=structtypenonrect=stringletcontext_="FsxOntapSubdirectory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[^\\u0000\\u0085\\u2028\\u2029\\r\\n]{1,255}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FsxOntapSubdirectory"jletto_json=simple_to_jsonto_valueendmoduleFsxUpdateProtocol=structtypenonrect={nFS:FsxProtocolNfs.toption;sMB:FsxUpdateProtocolSmb.toption[@ocaml.doc"Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your FSx for ONTAP file system's storage virtual machine (SVM)."]}letmake?nFS=fun?sMB->fun()->{nFS;sMB}letto_valuex=structure_to_value[("NFS",(Option.mapx.nFS~f:FsxProtocolNfs.to_value));("SMB",(Option.mapx.sMB~f:FsxUpdateProtocolSmb.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsMB=(Option.map~f:FsxUpdateProtocolSmb.of_xml)(Xml.childxml_arg0"SMB")inletnFS=(Option.map~f:FsxProtocolNfs.of_xml)(Xml.childxml_arg0"NFS")inmake?sMB?nFS()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsMB=field_mapjson__"SMB"FsxUpdateProtocolSmb.of_jsoninletnFS=field_mapjson__"NFS"FsxProtocolNfs.of_jsoninmake?sMB?nFS()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system. You can't update the Network File System (NFS) protocol configuration for FSx for ONTAP locations. DataSync currently only supports NFS version 3 with this location type."]moduleEfsInTransitEncryption=structtypenonrect=|NONE|TLS1_2|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|TLS1_2->"TLS1_2"|Non_static_ids->sletof_string=function|"NONE"->NONE|"TLS1_2"->TLS1_2|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 EfsInTransitEncryption"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EfsInTransitEncryption"j)letto_json=simple_to_jsonto_valueendmoduleEfsSubdirectory=structtypenonrect=stringletcontext_="EfsSubdirectory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\p{Zs}]*$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EfsSubdirectory"jletto_json=simple_to_jsonto_valueendmoduleUpdatedEfsAccessPointArn=structtypenonrect=stringletcontext_="UpdatedEfsAccessPointArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"(^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):elasticfilesystem:[a-z\\-0-9]+:[0-9]{12}:access-point/fsap-[0-9a-f]{8,40}$)|(^$)"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UpdatedEfsAccessPointArn"jletto_json=simple_to_jsonto_valueendmoduleUpdatedEfsIamRoleArn=structtypenonrect=stringletcontext_="UpdatedEfsIamRoleArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"(^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):iam::[0-9]{12}:role/.*$)|(^$)"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UpdatedEfsIamRoleArn"jletto_json=simple_to_jsonto_valueendmoduleAzureAccessTier=structtypenonrect=|HOT|COOL|ARCHIVE|Non_static_idofstringletmakei=iletto_string=function|HOT->"HOT"|COOL->"COOL"|ARCHIVE->"ARCHIVE"|Non_static_ids->sletof_string=function|"HOT"->HOT|"COOL"->COOL|"ARCHIVE"->ARCHIVE|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 AzureAccessTier"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AzureAccessTier"j)letto_json=simple_to_jsonto_valueendmoduleAzureBlobAuthenticationType=structtypenonrect=|SAS|NONE|Non_static_idofstringletmakei=iletto_string=function|SAS->"SAS"|NONE->"NONE"|Non_static_ids->sletof_string=function|"SAS"->SAS|"NONE"->NONE|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 AzureBlobAuthenticationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AzureBlobAuthenticationType"j)letto_json=simple_to_jsonto_valueendmoduleAzureBlobSasConfiguration=structtypenonrect={token:AzureBlobSasToken.t[@ocaml.doc"Specifies a SAS token that provides permissions to access your Azure Blob Storage. The token is part of the SAS URI string that comes after the storage resource URI and a question mark. A token looks something like this: sp=r&st=2023-12-20T14:54:52Z&se=2023-12-20T22:54:52Z&spr=https&sv=2021-06-08&sr=c&sig=aBBKDWQvyuVcTPH9EBp%2FXTI9E%2F%2Fmq171%2BZU178wcwqU%3D"]}letcontext_="AzureBlobSasConfiguration"letmake~token=fun()->{token}letto_valuex=structure_to_value[("Token",(Some(AzureBlobSasToken.to_valuex.token)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettoken=AzureBlobSasToken.of_xml(Xml.child_exn~context:context_xml_arg0"Token")inmake~token()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettoken=field_map_exnjson__"Token"AzureBlobSasToken.of_jsoninmake~token()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The shared access signature (SAS) configuration that allows DataSync to access your Microsoft Azure Blob Storage. For more information, see SAS tokens for accessing your Azure Blob Storage."]moduleAzureBlobSubdirectory=structtypenonrect=stringletcontext_="AzureBlobSubdirectory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"^[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}\\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:"AzureBlobSubdirectory"jletto_json=simple_to_jsonto_valueendmoduleAzureBlobType=structtypenonrect=|BLOCK|Non_static_idofstringletmakei=iletto_string=function|BLOCK->"BLOCK"|Non_static_ids->sletof_string=function|"BLOCK"->BLOCK|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 AzureBlobType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AzureBlobType"j)letto_json=simple_to_jsonto_valueendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTaggableResourceArn=structtypenonrect=stringletcontext_="TaggableResourceArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):datasync:[a-z\\-0-9]+:[0-9]{12}:(((agent|task|location)/(agent|task|loc)-[a-z0-9]{17}(/execution/exec-[a-f0-9]{17})?)|(system/storage-system-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(/job/discovery-job-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})?))$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TaggableResourceArn"jletto_json=simple_to_jsonto_valueendmoduleInputTagList=structtypenonrect=TagListEntry.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:TagListEntry.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:TagListEntry.of_xml)letof_jsonj=list_of_json~kind:"InputTagList"~of_json:TagListEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:65535)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9=_-]+"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleTaskList=structtypenonrect=TaskListEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskListEntry.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:TaskListEntry.of_xml)letof_jsonj=list_of_json~kind:"TaskList"~of_json:TaskListEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTaskFilters=structtypenonrect=TaskFilter.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskFilter.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:TaskFilter.of_xml)letof_jsonj=list_of_json~kind:"TaskFilters"~of_json:TaskFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTaskExecutionList=structtypenonrect=TaskExecutionListEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskExecutionListEntry.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:TaskExecutionListEntry.of_xml)letof_jsonj=list_of_json~kind:"TaskExecutionList"~of_json:TaskExecutionListEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOutputTagList=structtypenonrect=TagListEntry.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:55)>>=(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:TagListEntry.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:TagListEntry.of_xml)letof_jsonj=list_of_json~kind:"OutputTagList"~of_json:TagListEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLocationList=structtypenonrect=LocationListEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LocationListEntry.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:LocationListEntry.of_xml)letof_jsonj=list_of_json~kind:"LocationList"~of_json:LocationListEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLocationFilters=structtypenonrect=LocationFilter.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LocationFilter.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:LocationFilter.of_xml)letof_jsonj=list_of_json~kind:"LocationFilters"~of_json:LocationFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAgentList=structtypenonrect=AgentListEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AgentListEntry.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:AgentListEntry.of_xml)letof_jsonj=list_of_json~kind:"AgentList"~of_json:AgentListEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDestinationNetworkInterfaceArns=structtypenonrect=NetworkInterfaceArn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NetworkInterfaceArn.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:NetworkInterfaceArn.of_xml)letof_jsonj=list_of_json~kind:"DestinationNetworkInterfaceArns"~of_json:NetworkInterfaceArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSourceNetworkInterfaceArns=structtypenonrect=NetworkInterfaceArn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NetworkInterfaceArn.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:NetworkInterfaceArn.of_xml)letof_jsonj=list_of_json~kind:"SourceNetworkInterfaceArns"~of_json:NetworkInterfaceArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTaskScheduleDetails=structtypenonrect={statusUpdateTime:Time.toption[@ocaml.doc"Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables your schedule because of a repeated error, you can see when the schedule was disabled."];disabledReason:ScheduleDisabledReason.toption[@ocaml.doc"Provides a reason if the task schedule is disabled. If your schedule is disabled by USER, you see a Manually disabled by user. message. If your schedule is disabled by SERVICE, you see an error message to help you understand why the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers."];disabledBy:ScheduleDisabledBy.toption[@ocaml.doc"Indicates how your task schedule was disabled. USER - Your schedule was manually disabled by using the UpdateTask operation or DataSync console. SERVICE - Your schedule was automatically disabled by DataSync because the task failed repeatedly with the same error."]}letmake?statusUpdateTime=fun?disabledReason->fun?disabledBy->fun()->{statusUpdateTime;disabledReason;disabledBy}letto_valuex=structure_to_value[("StatusUpdateTime",(Option.mapx.statusUpdateTime~f:Time.to_value));("DisabledReason",(Option.mapx.disabledReason~f:ScheduleDisabledReason.to_value));("DisabledBy",(Option.mapx.disabledBy~f:ScheduleDisabledBy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdisabledBy=(Option.map~f:ScheduleDisabledBy.of_xml)(Xml.childxml_arg0"DisabledBy")inletdisabledReason=(Option.map~f:ScheduleDisabledReason.of_xml)(Xml.childxml_arg0"DisabledReason")inletstatusUpdateTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"StatusUpdateTime")inmake?disabledBy?disabledReason?statusUpdateTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdisabledBy=field_mapjson__"DisabledBy"ScheduleDisabledBy.of_jsoninletdisabledReason=field_mapjson__"DisabledReason"ScheduleDisabledReason.of_jsoninletstatusUpdateTime=field_mapjson__"StatusUpdateTime"Time.of_jsoninmake?disabledBy?disabledReason?statusUpdateTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about your DataSync task schedule."]moduleItemCount=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_valueendmoduleReportResult=structtypenonrect={status:PhaseStatus.toption[@ocaml.doc"Indicates whether DataSync is still working on your report, created a report, or can't create a complete report."];errorCode:String_.toption[@ocaml.doc"Indicates the code associated with the error if DataSync can't create a complete report."];errorDetail:String_.toption[@ocaml.doc"Provides details about issues creating a report."]}letmake?status=fun?errorCode->fun?errorDetail->fun()->{status;errorCode;errorDetail}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:PhaseStatus.to_value));("ErrorCode",(Option.mapx.errorCode~f:String_.to_value));("ErrorDetail",(Option.mapx.errorDetail~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorDetail=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorDetail")inleterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorCode")inletstatus=(Option.map~f:PhaseStatus.of_xml)(Xml.childxml_arg0"Status")inmake?errorDetail?errorCode?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorDetail=field_mapjson__"ErrorDetail"String_.of_jsoninleterrorCode=field_mapjson__"ErrorCode"String_.of_jsoninletstatus=field_mapjson__"Status"PhaseStatus.of_jsoninmake?errorDetail?errorCode?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates whether DataSync created a complete task report for your transfer."]moduleTaskExecutionFilesFailedDetail=structtypenonrect={prepare:Long.toption[@ocaml.doc"The number of files or objects that DataSync fails to prepare during your task execution."];transfer:Long.toption[@ocaml.doc"The number of files or objects that DataSync fails to transfer during your task execution."];verify:Long.toption[@ocaml.doc"The number of files or objects that DataSync fails to verify during your task execution."];delete:Long.toption[@ocaml.doc"The number of files or objects that DataSync fails to delete during your task execution."]}letmake?prepare=fun?transfer->fun?verify->fun?delete->fun()->{prepare;transfer;verify;delete}letto_valuex=structure_to_value[("Prepare",(Option.mapx.prepare~f:Long.to_value));("Transfer",(Option.mapx.transfer~f:Long.to_value));("Verify",(Option.mapx.verify~f:Long.to_value));("Delete",(Option.mapx.delete~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdelete=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Delete")inletverify=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Verify")inlettransfer=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Transfer")inletprepare=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Prepare")inmake?delete?verify?transfer?prepare()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdelete=field_mapjson__"Delete"Long.of_jsoninletverify=field_mapjson__"Verify"Long.of_jsoninlettransfer=field_mapjson__"Transfer"Long.of_jsoninletprepare=field_mapjson__"Prepare"Long.of_jsoninmake?delete?verify?transfer?prepare()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The number of files or objects that DataSync fails to prepare, transfer, verify, and delete during your task execution. Applies only to Enhanced mode tasks."]moduleTaskExecutionFilesListedDetail=structtypenonrect={atSource:Long.toption[@ocaml.doc"The number of files or objects that DataSync finds at your source location. With a manifest, DataSync lists only what's in your manifest (and not everything at your source location). With an include filter, DataSync lists only what matches the filter at your source location. With an exclude filter, DataSync lists everything at your source location before applying the filter."];atDestinationForDelete:Long.toption[@ocaml.doc"The number of files or objects that DataSync finds at your destination location. This counter is only applicable if you configure your task to delete data in the destination that isn't in the source."]}letmake?atSource=fun?atDestinationForDelete->fun()->{atSource;atDestinationForDelete}letto_valuex=structure_to_value[("AtSource",(Option.mapx.atSource~f:Long.to_value));("AtDestinationForDelete",(Option.mapx.atDestinationForDelete~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letatDestinationForDelete=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"AtDestinationForDelete")inletatSource=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"AtSource")inmake?atDestinationForDelete?atSource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letatDestinationForDelete=field_mapjson__"AtDestinationForDelete"Long.of_jsoninletatSource=field_mapjson__"AtSource"Long.of_jsoninmake?atDestinationForDelete?atSource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The number of files or objects that DataSync finds at your locations. Applies only to Enhanced mode tasks."]moduleTaskExecutionFoldersFailedDetail=structtypenonrect={list:Long.toption[@ocaml.doc"The number of directories that DataSync fails to list during your task execution."];prepare:Long.toption[@ocaml.doc"The number of directories that DataSync fails to prepare during your task execution."];transfer:Long.toption[@ocaml.doc"The number of directories that DataSync fails to transfer during your task execution."];verify:Long.toption[@ocaml.doc"The number of directories that DataSync fails to verify during your task execution."];delete:Long.toption[@ocaml.doc"The number of directories that DataSync fails to delete during your task execution."]}letmake?list=fun?prepare->fun?transfer->fun?verify->fun?delete->fun()->{list;prepare;transfer;verify;delete}letto_valuex=structure_to_value[("List",(Option.mapx.list~f:Long.to_value));("Prepare",(Option.mapx.prepare~f:Long.to_value));("Transfer",(Option.mapx.transfer~f:Long.to_value));("Verify",(Option.mapx.verify~f:Long.to_value));("Delete",(Option.mapx.delete~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdelete=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Delete")inletverify=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Verify")inlettransfer=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Transfer")inletprepare=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Prepare")inletlist=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"List")inmake?delete?verify?transfer?prepare?list()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdelete=field_mapjson__"Delete"Long.of_jsoninletverify=field_mapjson__"Verify"Long.of_jsoninlettransfer=field_mapjson__"Transfer"Long.of_jsoninletprepare=field_mapjson__"Prepare"Long.of_jsoninletlist=field_mapjson__"List"Long.of_jsoninmake?delete?verify?transfer?prepare?list()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The number of directories that DataSync fails to list, prepare, transfer, verify, and delete during your task execution. Applies only to Enhanced mode tasks."]moduleTaskExecutionFoldersListedDetail=structtypenonrect={atSource:Long.toption[@ocaml.doc"The number of directories that DataSync finds at your source location. With a manifest, DataSync lists only what's in your manifest (and not everything at your source location). With an include filter, DataSync lists only what matches the filter at your source location. With an exclude filter, DataSync lists everything at your source location before applying the filter."];atDestinationForDelete:Long.toption[@ocaml.doc"The number of directories that DataSync finds at your destination location. This counter is only applicable if you configure your task to delete data in the destination that isn't in the source."]}letmake?atSource=fun?atDestinationForDelete->fun()->{atSource;atDestinationForDelete}letto_valuex=structure_to_value[("AtSource",(Option.mapx.atSource~f:Long.to_value));("AtDestinationForDelete",(Option.mapx.atDestinationForDelete~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letatDestinationForDelete=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"AtDestinationForDelete")inletatSource=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"AtSource")inmake?atDestinationForDelete?atSource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letatDestinationForDelete=field_mapjson__"AtDestinationForDelete"Long.of_jsoninletatSource=field_mapjson__"AtSource"Long.of_jsoninmake?atDestinationForDelete?atSource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The number of directories that DataSync finds at your locations. Applies only to Enhanced mode tasks."]moduleTaskExecutionResultDetail=structtypenonrect={prepareDuration:Duration.toption[@ocaml.doc"The time in milliseconds that your task execution was in the PREPARING step. For more information, see Task execution statuses. For Enhanced mode tasks, the value is always 0. For more information, see How DataSync prepares your data transfer."];prepareStatus:PhaseStatus.toption[@ocaml.doc"The status of the PREPARING step for your task execution. For more information, see Task execution statuses."];totalDuration:Duration.toption[@ocaml.doc"The time in milliseconds that your task execution ran."];transferDuration:Duration.toption[@ocaml.doc"The time in milliseconds that your task execution was in the TRANSFERRING step. For more information, see Task execution statuses. For Enhanced mode tasks, the value is always 0. For more information, see How DataSync transfers your data."];transferStatus:PhaseStatus.toption[@ocaml.doc"The status of the TRANSFERRING step for your task execution. For more information, see Task execution statuses."];verifyDuration:Duration.toption[@ocaml.doc"The time in milliseconds that your task execution was in the VERIFYING step. For more information, see Task execution statuses. For Enhanced mode tasks, the value is always 0. For more information, see How DataSync verifies your data's integrity."];verifyStatus:PhaseStatus.toption[@ocaml.doc"The status of the VERIFYING step for your task execution. For more information, see Task execution statuses."];errorCode:String_.toption[@ocaml.doc"An error that DataSync encountered during your task execution. You can use this information to help troubleshoot issues."];errorDetail:String_.toption[@ocaml.doc"The detailed description of an error that DataSync encountered during your task execution. You can use this information to help troubleshoot issues."]}letmake?prepareDuration=fun?prepareStatus->fun?totalDuration->fun?transferDuration->fun?transferStatus->fun?verifyDuration->fun?verifyStatus->fun?errorCode->fun?errorDetail->fun()->{prepareDuration;prepareStatus;totalDuration;transferDuration;transferStatus;verifyDuration;verifyStatus;errorCode;errorDetail}letto_valuex=structure_to_value[("PrepareDuration",(Option.mapx.prepareDuration~f:Duration.to_value));("PrepareStatus",(Option.mapx.prepareStatus~f:PhaseStatus.to_value));("TotalDuration",(Option.mapx.totalDuration~f:Duration.to_value));("TransferDuration",(Option.mapx.transferDuration~f:Duration.to_value));("TransferStatus",(Option.mapx.transferStatus~f:PhaseStatus.to_value));("VerifyDuration",(Option.mapx.verifyDuration~f:Duration.to_value));("VerifyStatus",(Option.mapx.verifyStatus~f:PhaseStatus.to_value));("ErrorCode",(Option.mapx.errorCode~f:String_.to_value));("ErrorDetail",(Option.mapx.errorDetail~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorDetail=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorDetail")inleterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorCode")inletverifyStatus=(Option.map~f:PhaseStatus.of_xml)(Xml.childxml_arg0"VerifyStatus")inletverifyDuration=(Option.map~f:Duration.of_xml)(Xml.childxml_arg0"VerifyDuration")inlettransferStatus=(Option.map~f:PhaseStatus.of_xml)(Xml.childxml_arg0"TransferStatus")inlettransferDuration=(Option.map~f:Duration.of_xml)(Xml.childxml_arg0"TransferDuration")inlettotalDuration=(Option.map~f:Duration.of_xml)(Xml.childxml_arg0"TotalDuration")inletprepareStatus=(Option.map~f:PhaseStatus.of_xml)(Xml.childxml_arg0"PrepareStatus")inletprepareDuration=(Option.map~f:Duration.of_xml)(Xml.childxml_arg0"PrepareDuration")inmake?errorDetail?errorCode?verifyStatus?verifyDuration?transferStatus?transferDuration?totalDuration?prepareStatus?prepareDuration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorDetail=field_mapjson__"ErrorDetail"String_.of_jsoninleterrorCode=field_mapjson__"ErrorCode"String_.of_jsoninletverifyStatus=field_mapjson__"VerifyStatus"PhaseStatus.of_jsoninletverifyDuration=field_mapjson__"VerifyDuration"Duration.of_jsoninlettransferStatus=field_mapjson__"TransferStatus"PhaseStatus.of_jsoninlettransferDuration=field_mapjson__"TransferDuration"Duration.of_jsoninlettotalDuration=field_mapjson__"TotalDuration"Duration.of_jsoninletprepareStatus=field_mapjson__"PrepareStatus"PhaseStatus.of_jsoninletprepareDuration=field_mapjson__"PrepareDuration"Duration.of_jsoninmake?errorDetail?errorCode?verifyStatus?verifyDuration?transferStatus?transferDuration?totalDuration?prepareStatus?prepareDuration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides detailed information about the result of your DataSync task execution."]moduleFsxFilesystemArn=structtypenonrect=stringletcontext_="FsxFilesystemArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):fsx:[a-z\\-0-9]+:[0-9]{12}:file-system/fs-[0-9a-f]+$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FsxFilesystemArn"jletto_json=simple_to_jsonto_valueendmoduleStorageVirtualMachineArn=structtypenonrect=stringletcontext_="StorageVirtualMachineArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:162)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):fsx:[a-z\\-0-9]+:[0-9]{12}:storage-virtual-machine/fs-[0-9a-f]+/svm-[0-9a-f]{17,}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StorageVirtualMachineArn"jletto_json=simple_to_jsonto_valueendmoduleEc2Config=structtypenonrect={subnetArn:Ec2SubnetArn.t[@ocaml.doc"Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer. The subnet must be located: In the same virtual private cloud (VPC) as the Amazon EFS file system. In the same Availability Zone as at least one mount target for the Amazon EFS file system. You don't need to specify a subnet that includes a file system mount target."];securityGroupArns:Ec2SecurityGroupArnList.t[@ocaml.doc"Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target."]}letcontext_="Ec2Config"letmake~subnetArn=fun~securityGroupArns->fun()->{subnetArn;securityGroupArns}letto_valuex=structure_to_value[("SubnetArn",(Some(Ec2SubnetArn.to_valuex.subnetArn)));("SecurityGroupArns",(Some(Ec2SecurityGroupArnList.to_valuex.securityGroupArns)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecurityGroupArns=Ec2SecurityGroupArnList.of_xml(Xml.child_exn~context:context_xml_arg0"SecurityGroupArns")inletsubnetArn=Ec2SubnetArn.of_xml(Xml.child_exn~context:context_xml_arg0"SubnetArn")inmake~securityGroupArns~subnetArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecurityGroupArns=field_map_exnjson__"SecurityGroupArns"Ec2SecurityGroupArnList.of_jsoninletsubnetArn=field_map_exnjson__"SubnetArn"Ec2SubnetArn.of_jsoninmake~securityGroupArns~subnetArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The subnet and security groups that DataSync uses to connect to one of your Amazon EFS file system's mount targets."]moduleEfsAccessPointArn=structtypenonrect=stringletcontext_="EfsAccessPointArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):elasticfilesystem:[a-z\\-0-9]+:[0-9]{12}:access-point/fsap-[0-9a-f]{8,40}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EfsAccessPointArn"jletto_json=simple_to_jsonto_valueendmoduleEndpointType=structtypenonrect=|PUBLIC|PRIVATE_LINK|FIPS|FIPS_PRIVATE_LINK|Non_static_idofstringletmakei=iletto_string=function|PUBLIC->"PUBLIC"|PRIVATE_LINK->"PRIVATE_LINK"|FIPS->"FIPS"|FIPS_PRIVATE_LINK->"FIPS_PRIVATE_LINK"|Non_static_ids->sletof_string=function|"PUBLIC"->PUBLIC|"PRIVATE_LINK"->PRIVATE_LINK|"FIPS"->FIPS|"FIPS_PRIVATE_LINK"->FIPS_PRIVATE_LINK|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 EndpointType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EndpointType"j)letto_json=simple_to_jsonto_valueendmodulePrivateLinkConfig=structtypenonrect={vpcEndpointId:VpcEndpointId.toption[@ocaml.doc"Specifies the ID of the VPC endpoint that your agent connects to."];privateLinkEndpoint:Endpoint.toption[@ocaml.doc"Specifies the VPC endpoint provided by Amazon Web Services PrivateLink that your agent connects to."];subnetArns:PLSubnetArnList.toption[@ocaml.doc"Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN."];securityGroupArns:PLSecurityGroupArnList.toption[@ocaml.doc"Specifies the Amazon Resource Names (ARN) of the security group that provides DataSync access to your VPC endpoint. You can only specify one ARN."]}letmake?vpcEndpointId=fun?privateLinkEndpoint->fun?subnetArns->fun?securityGroupArns->fun()->{vpcEndpointId;privateLinkEndpoint;subnetArns;securityGroupArns}letto_valuex=structure_to_value[("VpcEndpointId",(Option.mapx.vpcEndpointId~f:VpcEndpointId.to_value));("PrivateLinkEndpoint",(Option.mapx.privateLinkEndpoint~f:Endpoint.to_value));("SubnetArns",(Option.mapx.subnetArns~f:PLSubnetArnList.to_value));("SecurityGroupArns",(Option.mapx.securityGroupArns~f:PLSecurityGroupArnList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecurityGroupArns=(Option.map~f:PLSecurityGroupArnList.of_xml)(Xml.childxml_arg0"SecurityGroupArns")inletsubnetArns=(Option.map~f:PLSubnetArnList.of_xml)(Xml.childxml_arg0"SubnetArns")inletprivateLinkEndpoint=(Option.map~f:Endpoint.of_xml)(Xml.childxml_arg0"PrivateLinkEndpoint")inletvpcEndpointId=(Option.map~f:VpcEndpointId.of_xml)(Xml.childxml_arg0"VpcEndpointId")inmake?securityGroupArns?subnetArns?privateLinkEndpoint?vpcEndpointId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecurityGroupArns=field_mapjson__"SecurityGroupArns"PLSecurityGroupArnList.of_jsoninletsubnetArns=field_mapjson__"SubnetArns"PLSubnetArnList.of_jsoninletprivateLinkEndpoint=field_mapjson__"PrivateLinkEndpoint"Endpoint.of_jsoninletvpcEndpointId=field_mapjson__"VpcEndpointId"VpcEndpointId.of_jsoninmake?securityGroupArns?subnetArns?privateLinkEndpoint?vpcEndpointId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies how your DataSync agent connects to Amazon Web Services using a virtual private cloud (VPC) service endpoint. An agent that uses a VPC endpoint isn't accessible over the public internet."]moduleObjectStorageBucketName=structtypenonrect=stringletcontext_="ObjectStorageBucketName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_\\-\\+\\.\\(\\)\\$\\p{Zs}]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ObjectStorageBucketName"jletto_json=simple_to_jsonto_valueendmoduleFsxOpenZfsSubdirectory=structtypenonrect=stringletcontext_="FsxOpenZfsSubdirectory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"^[^\\u0000\\u0085\\u2028\\u2029\\r\\n]{1,4096}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FsxOpenZfsSubdirectory"jletto_json=simple_to_jsonto_valueendmoduleFsxLustreSubdirectory=structtypenonrect=stringletcontext_="FsxLustreSubdirectory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FsxLustreSubdirectory"jletto_json=simple_to_jsonto_valueendmoduleEfsFilesystemArn=structtypenonrect=stringletcontext_="EfsFilesystemArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):elasticfilesystem:[a-z\\-0-9]+:[0-9]{12}:file-system/fs-[0-9a-f]{8,40}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EfsFilesystemArn"jletto_json=simple_to_jsonto_valueendmoduleAzureBlobContainerUrl=structtypenonrect=stringletcontext_="AzureBlobContainerUrl"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:325)>>=(fun()->check_patterni~pattern:"^https:\\/\\/[A-Za-z0-9]((\\.|-+)?[A-Za-z0-9]){0,252}\\/[a-z0-9](-?[a-z0-9]){2,62}$"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AzureBlobContainerUrl"jletto_json=simple_to_jsonto_valueendmoduleActivationKey=structtypenonrect=stringletcontext_="ActivationKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:29)>>=(fun()->check_patterni~pattern:"[A-Z0-9]{5}(-[A-Z0-9]{5}){4}"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ActivationKey"jletto_json=simple_to_jsonto_valueendmoduleUpdateTaskResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Updates the configuration of a task, which defines where and how DataSync transfers your data."]moduleUpdateTaskRequest=structtypenonrect={taskArn:TaskArn.t[@ocaml.doc"Specifies the ARN of the task that you want to update."];options:Options.toption;excludes:FilterList.toption[@ocaml.doc"Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters."];schedule:TaskSchedule.toption[@ocaml.doc"Specifies a schedule for when you want your task to run. For more information, see Scheduling your task."];name:TagValue.toption[@ocaml.doc"Specifies the name of your task."];cloudWatchLogGroupArn:LogGroupArn.toption[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. For Enhanced mode tasks, you must use /aws/datasync as your log group name. For example: arn:aws:logs:us-east-1:111222333444:log-group:/aws/datasync:* For more information, see Monitoring data transfers with CloudWatch Logs."];includes:FilterList.toption[@ocaml.doc"Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters."];manifestConfig:ManifestConfig.toption[@ocaml.doc"Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest. When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission. To remove a manifest configuration, specify this parameter as empty."];taskReportConfig:TaskReportConfig.toption[@ocaml.doc"Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports. When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission. To remove a task report configuration, specify this parameter as empty."]}letcontext_="UpdateTaskRequest"letmake?options=fun?excludes->fun?schedule->fun?name->fun?cloudWatchLogGroupArn->fun?includes->fun?manifestConfig->fun?taskReportConfig->fun~taskArn->fun()->{options;excludes;schedule;name;cloudWatchLogGroupArn;includes;manifestConfig;taskReportConfig;taskArn}letto_valuex=structure_to_value[("TaskArn",(Some(TaskArn.to_valuex.taskArn)));("Options",(Option.mapx.options~f:Options.to_value));("Excludes",(Option.mapx.excludes~f:FilterList.to_value));("Schedule",(Option.mapx.schedule~f:TaskSchedule.to_value));("Name",(Option.mapx.name~f:TagValue.to_value));("CloudWatchLogGroupArn",(Option.mapx.cloudWatchLogGroupArn~f:LogGroupArn.to_value));("Includes",(Option.mapx.includes~f:FilterList.to_value));("ManifestConfig",(Option.mapx.manifestConfig~f:ManifestConfig.to_value));("TaskReportConfig",(Option.mapx.taskReportConfig~f:TaskReportConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskReportConfig=(Option.map~f:TaskReportConfig.of_xml)(Xml.childxml_arg0"TaskReportConfig")inletmanifestConfig=(Option.map~f:ManifestConfig.of_xml)(Xml.childxml_arg0"ManifestConfig")inletincludes=(Option.map~f:FilterList.of_xml)(Xml.childxml_arg0"Includes")inletcloudWatchLogGroupArn=(Option.map~f:LogGroupArn.of_xml)(Xml.childxml_arg0"CloudWatchLogGroupArn")inletname=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Name")inletschedule=(Option.map~f:TaskSchedule.of_xml)(Xml.childxml_arg0"Schedule")inletexcludes=(Option.map~f:FilterList.of_xml)(Xml.childxml_arg0"Excludes")inletoptions=(Option.map~f:Options.of_xml)(Xml.childxml_arg0"Options")inlettaskArn=TaskArn.of_xml(Xml.child_exn~context:context_xml_arg0"TaskArn")inmake?taskReportConfig?manifestConfig?includes?cloudWatchLogGroupArn?name?schedule?excludes?options~taskArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskReportConfig=field_mapjson__"TaskReportConfig"TaskReportConfig.of_jsoninletmanifestConfig=field_mapjson__"ManifestConfig"ManifestConfig.of_jsoninletincludes=field_mapjson__"Includes"FilterList.of_jsoninletcloudWatchLogGroupArn=field_mapjson__"CloudWatchLogGroupArn"LogGroupArn.of_jsoninletname=field_mapjson__"Name"TagValue.of_jsoninletschedule=field_mapjson__"Schedule"TaskSchedule.of_jsoninletexcludes=field_mapjson__"Excludes"FilterList.of_jsoninletoptions=field_mapjson__"Options"Options.of_jsoninlettaskArn=field_map_exnjson__"TaskArn"TaskArn.of_jsoninmake?taskReportConfig?manifestConfig?includes?cloudWatchLogGroupArn?name?schedule?excludes?options~taskArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"UpdateTaskResponse"]moduleUpdateTaskExecutionResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Updates the configuration of a running DataSync task execution. Currently, the only Option that you can modify with UpdateTaskExecution is BytesPerSecond , which throttles bandwidth for a running or queued task execution."]moduleUpdateTaskExecutionRequest=structtypenonrect={taskExecutionArn:TaskExecutionArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the task execution that you're updating."];options:Options.t}letcontext_="UpdateTaskExecutionRequest"letmake~taskExecutionArn=fun~options->fun()->{taskExecutionArn;options}letto_valuex=structure_to_value[("TaskExecutionArn",(Some(TaskExecutionArn.to_valuex.taskExecutionArn)));("Options",(Some(Options.to_valuex.options)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptions=Options.of_xml(Xml.child_exn~context:context_xml_arg0"Options")inlettaskExecutionArn=TaskExecutionArn.of_xml(Xml.child_exn~context:context_xml_arg0"TaskExecutionArn")inmake~options~taskExecutionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptions=field_map_exnjson__"Options"Options.of_jsoninlettaskExecutionArn=field_map_exnjson__"TaskExecutionArn"TaskExecutionArn.of_jsoninmake~options~taskExecutionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the configuration of a running DataSync task execution. Currently, the only Option that you can modify with UpdateTaskExecution is BytesPerSecond , which throttles bandwidth for a running or queued task execution."]moduleUpdateLocationSmbResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configuration parameters of the Server Message Block (SMB) transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with an SMB file server."]moduleUpdateLocationSmbRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the ARN of the SMB location that you want to update."];subdirectory:SmbSubdirectory.toption[@ocaml.doc"Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example, /path/to/subdirectory). Make sure that other SMB clients in your network can also mount this path. To copy all data in the specified subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see Providing DataSync access to SMB file servers."];serverHostname:ServerHostname.toption[@ocaml.doc"Specifies the domain name or IP address (IPv4 or IPv6) of the SMB file server that your DataSync agent connects to. If you're using Kerberos authentication, you must specify a domain name."];user:SmbUser.toption[@ocaml.doc"Specifies the user name that can mount your SMB file server and has permission to access the files and folders involved in your transfer. This parameter applies only if AuthenticationType is set to NTLM. For information about choosing a user with the right level of access for your transfer, see Providing DataSync access to SMB file servers."];domain:SmbDomain.toption[@ocaml.doc"Specifies the Windows domain name that your SMB file server belongs to. This parameter applies only if AuthenticationType is set to NTLM. If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server."];password:SmbPassword.toption[@ocaml.doc"Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer. This parameter applies only if AuthenticationType is set to NTLM."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, such as a Password or KerberosKeytab or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed secret, such as a Password or KerberosKeytab or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret."];agentArns:AgentArnList.toption[@ocaml.doc"Specifies the DataSync agent (or agents) that can connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN)."];mountOptions:SmbMountOptions.toption;authenticationType:SmbAuthenticationType.toption[@ocaml.doc"Specifies the authentication protocol that DataSync uses to connect to your SMB file server. DataSync supports NTLM (default) and KERBEROS authentication. For more information, see Providing DataSync access to SMB file servers."];dnsIpAddresses:DnsIpList.toption[@ocaml.doc"Specifies the IP addresses (IPv4 or IPv6) for the DNS servers that your SMB file server belongs to. This parameter applies only if AuthenticationType is set to KERBEROS. If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right SMB file server."];kerberosPrincipal:KerberosPrincipal.toption[@ocaml.doc"Specifies a Kerberos prinicpal, which is an identity in your Kerberos realm that has permission to access the files, folders, and file metadata in your SMB file server. A Kerberos principal might look like HOST/kerberosuser\\@MYDOMAIN.ORG. Principal names are case sensitive. Your DataSync task execution will fail if the principal that you specify for this parameter doesn\226\128\153t exactly match the principal that you use to create the keytab file."];kerberosKeytab:KerberosKeytabFile.toption[@ocaml.doc"Specifies your Kerberos key table (keytab) file, which includes mappings between your Kerberos principal and encryption keys. To avoid task execution errors, make sure that the Kerberos principal that you use to create the keytab file matches exactly what you specify for KerberosPrincipal."];kerberosKrb5Conf:KerberosKrb5ConfFile.toption[@ocaml.doc"Specifies a Kerberos configuration file (krb5.conf) that defines your Kerberos realm configuration. The file must be base64 encoded. If you're using the CLI, the encoding is done for you."]}letcontext_="UpdateLocationSmbRequest"letmake?subdirectory=fun?serverHostname->fun?user->fun?domain->fun?password->fun?cmkSecretConfig->fun?customSecretConfig->fun?agentArns->fun?mountOptions->fun?authenticationType->fun?dnsIpAddresses->fun?kerberosPrincipal->fun?kerberosKeytab->fun?kerberosKrb5Conf->fun~locationArn->fun()->{subdirectory;serverHostname;user;domain;password;cmkSecretConfig;customSecretConfig;agentArns;mountOptions;authenticationType;dnsIpAddresses;kerberosPrincipal;kerberosKeytab;kerberosKrb5Conf;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("Subdirectory",(Option.mapx.subdirectory~f:SmbSubdirectory.to_value));("ServerHostname",(Option.mapx.serverHostname~f:ServerHostname.to_value));("User",(Option.mapx.user~f:SmbUser.to_value));("Domain",(Option.mapx.domain~f:SmbDomain.to_value));("Password",(Option.mapx.password~f:SmbPassword.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("MountOptions",(Option.mapx.mountOptions~f:SmbMountOptions.to_value));("AuthenticationType",(Option.mapx.authenticationType~f:SmbAuthenticationType.to_value));("DnsIpAddresses",(Option.mapx.dnsIpAddresses~f:DnsIpList.to_value));("KerberosPrincipal",(Option.mapx.kerberosPrincipal~f:KerberosPrincipal.to_value));("KerberosKeytab",(Option.mapx.kerberosKeytab~f:KerberosKeytabFile.to_value));("KerberosKrb5Conf",(Option.mapx.kerberosKrb5Conf~f:KerberosKrb5ConfFile.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkerberosKrb5Conf=(Option.map~f:KerberosKrb5ConfFile.of_xml)(Xml.childxml_arg0"KerberosKrb5Conf")inletkerberosKeytab=(Option.map~f:KerberosKeytabFile.of_xml)(Xml.childxml_arg0"KerberosKeytab")inletkerberosPrincipal=(Option.map~f:KerberosPrincipal.of_xml)(Xml.childxml_arg0"KerberosPrincipal")inletdnsIpAddresses=(Option.map~f:DnsIpList.of_xml)(Xml.childxml_arg0"DnsIpAddresses")inletauthenticationType=(Option.map~f:SmbAuthenticationType.of_xml)(Xml.childxml_arg0"AuthenticationType")inletmountOptions=(Option.map~f:SmbMountOptions.of_xml)(Xml.childxml_arg0"MountOptions")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inletcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletpassword=(Option.map~f:SmbPassword.of_xml)(Xml.childxml_arg0"Password")inletdomain=(Option.map~f:SmbDomain.of_xml)(Xml.childxml_arg0"Domain")inletuser=(Option.map~f:SmbUser.of_xml)(Xml.childxml_arg0"User")inletserverHostname=(Option.map~f:ServerHostname.of_xml)(Xml.childxml_arg0"ServerHostname")inletsubdirectory=(Option.map~f:SmbSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?kerberosKrb5Conf?kerberosKeytab?kerberosPrincipal?dnsIpAddresses?authenticationType?mountOptions?agentArns?customSecretConfig?cmkSecretConfig?password?domain?user?serverHostname?subdirectory~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkerberosKrb5Conf=field_mapjson__"KerberosKrb5Conf"KerberosKrb5ConfFile.of_jsoninletkerberosKeytab=field_mapjson__"KerberosKeytab"KerberosKeytabFile.of_jsoninletkerberosPrincipal=field_mapjson__"KerberosPrincipal"KerberosPrincipal.of_jsoninletdnsIpAddresses=field_mapjson__"DnsIpAddresses"DnsIpList.of_jsoninletauthenticationType=field_mapjson__"AuthenticationType"SmbAuthenticationType.of_jsoninletmountOptions=field_mapjson__"MountOptions"SmbMountOptions.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninletcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletpassword=field_mapjson__"Password"SmbPassword.of_jsoninletdomain=field_mapjson__"Domain"SmbDomain.of_jsoninletuser=field_mapjson__"User"SmbUser.of_jsoninletserverHostname=field_mapjson__"ServerHostname"ServerHostname.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"SmbSubdirectory.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?kerberosKrb5Conf?kerberosKeytab?kerberosPrincipal?dnsIpAddresses?authenticationType?mountOptions?agentArns?customSecretConfig?cmkSecretConfig?password?domain?user?serverHostname?subdirectory~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configuration parameters of the Server Message Block (SMB) transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with an SMB file server."]moduleUpdateLocationS3Response=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configuration parameters of the Amazon S3 transfer location that you're using with DataSync. Before you begin, make sure that you read the following topics: Storage class considerations with Amazon S3 locations Evaluating S3 request costs when using DataSync"]moduleUpdateLocationS3Request=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the Amazon S3 transfer location that you're updating."];subdirectory:S3Subdirectory.toption[@ocaml.doc"Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location). DataSync can't transfer objects with a prefix that begins with a slash (/) or includes //, /./, or /../ patterns. For example: /photos photos//2006/January photos/./2006/February photos/../2006/March"];s3StorageClass:S3StorageClass.toption[@ocaml.doc"Specifies the storage class that you want your objects to use when Amazon S3 is a transfer destination. For buckets in Amazon Web Services Regions, the storage class defaults to STANDARD. For buckets on Outposts, the storage class defaults to OUTPOSTS. For more information, see Storage class considerations with Amazon S3 transfers."];s3Config:S3Config.toption}letcontext_="UpdateLocationS3Request"letmake?subdirectory=fun?s3StorageClass->fun?s3Config->fun~locationArn->fun()->{subdirectory;s3StorageClass;s3Config;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("Subdirectory",(Option.mapx.subdirectory~f:S3Subdirectory.to_value));("S3StorageClass",(Option.mapx.s3StorageClass~f:S3StorageClass.to_value));("S3Config",(Option.mapx.s3Config~f:S3Config.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3Config=(Option.map~f:S3Config.of_xml)(Xml.childxml_arg0"S3Config")inlets3StorageClass=(Option.map~f:S3StorageClass.of_xml)(Xml.childxml_arg0"S3StorageClass")inletsubdirectory=(Option.map~f:S3Subdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?s3Config?s3StorageClass?subdirectory~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3Config=field_mapjson__"S3Config"S3Config.of_jsoninlets3StorageClass=field_mapjson__"S3StorageClass"S3StorageClass.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"S3Subdirectory.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?s3Config?s3StorageClass?subdirectory~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configuration parameters of the Amazon S3 transfer location that you're using with DataSync. Before you begin, make sure that you read the following topics: Storage class considerations with Amazon S3 locations Evaluating S3 request costs when using DataSync"]moduleUpdateLocationObjectStorageResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configuration parameters of the object storage transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with an object storage system."]moduleUpdateLocationObjectStorageRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the ARN of the object storage system location that you're updating."];serverPort:ObjectStorageServerPort.toption[@ocaml.doc"Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443)."];serverProtocol:ObjectStorageServerProtocol.toption[@ocaml.doc"Specifies the protocol that your object storage server uses to communicate."];subdirectory:S3Subdirectory.toption[@ocaml.doc"Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix."];serverHostname:ServerHostname.toption[@ocaml.doc"Specifies the domain name or IP address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to."];accessKey:ObjectStorageAccessKey.toption[@ocaml.doc"Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server."];secretKey:ObjectStorageSecretKey.toption[@ocaml.doc"Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server. If you provide a secret using SecretKey, but do not provide secret configuration details using CmkSecretConfig or CustomSecretConfig, then DataSync stores the token using your Amazon Web Services account's Secrets Manager secret."];agentArns:AgentArnList.toption[@ocaml.doc"(Optional) Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter. You cannot add or remove agents from a storage location after you initially create it."];serverCertificate:ObjectStorageCertificate.toption[@ocaml.doc"Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single .pem file with a full certificate chain (for example, file:///home/user/.ssh/object_storage_certificates.pem). The certificate chain might include: The object storage system's certificate All intermediate certificates (if there are any) The root certificate of the signing CA You can concatenate your certificates into a .pem file (which can be up to 32768 bytes before base64 encoding). The following example cat command creates an object_storage_certificates.pem file that includes three certificates: cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem To use this parameter, configure ServerProtocol to HTTPS. Updating this parameter doesn't interfere with tasks that you have in progress."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret."]}letcontext_="UpdateLocationObjectStorageRequest"letmake?serverPort=fun?serverProtocol->fun?subdirectory->fun?serverHostname->fun?accessKey->fun?secretKey->fun?agentArns->fun?serverCertificate->fun?cmkSecretConfig->fun?customSecretConfig->fun~locationArn->fun()->{serverPort;serverProtocol;subdirectory;serverHostname;accessKey;secretKey;agentArns;serverCertificate;cmkSecretConfig;customSecretConfig;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("ServerPort",(Option.mapx.serverPort~f:ObjectStorageServerPort.to_value));("ServerProtocol",(Option.mapx.serverProtocol~f:ObjectStorageServerProtocol.to_value));("Subdirectory",(Option.mapx.subdirectory~f:S3Subdirectory.to_value));("ServerHostname",(Option.mapx.serverHostname~f:ServerHostname.to_value));("AccessKey",(Option.mapx.accessKey~f:ObjectStorageAccessKey.to_value));("SecretKey",(Option.mapx.secretKey~f:ObjectStorageSecretKey.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("ServerCertificate",(Option.mapx.serverCertificate~f:ObjectStorageCertificate.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletserverCertificate=(Option.map~f:ObjectStorageCertificate.of_xml)(Xml.childxml_arg0"ServerCertificate")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inletsecretKey=(Option.map~f:ObjectStorageSecretKey.of_xml)(Xml.childxml_arg0"SecretKey")inletaccessKey=(Option.map~f:ObjectStorageAccessKey.of_xml)(Xml.childxml_arg0"AccessKey")inletserverHostname=(Option.map~f:ServerHostname.of_xml)(Xml.childxml_arg0"ServerHostname")inletsubdirectory=(Option.map~f:S3Subdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletserverProtocol=(Option.map~f:ObjectStorageServerProtocol.of_xml)(Xml.childxml_arg0"ServerProtocol")inletserverPort=(Option.map~f:ObjectStorageServerPort.of_xml)(Xml.childxml_arg0"ServerPort")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?customSecretConfig?cmkSecretConfig?serverCertificate?agentArns?secretKey?accessKey?serverHostname?subdirectory?serverProtocol?serverPort~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletserverCertificate=field_mapjson__"ServerCertificate"ObjectStorageCertificate.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninletsecretKey=field_mapjson__"SecretKey"ObjectStorageSecretKey.of_jsoninletaccessKey=field_mapjson__"AccessKey"ObjectStorageAccessKey.of_jsoninletserverHostname=field_mapjson__"ServerHostname"ServerHostname.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"S3Subdirectory.of_jsoninletserverProtocol=field_mapjson__"ServerProtocol"ObjectStorageServerProtocol.of_jsoninletserverPort=field_mapjson__"ServerPort"ObjectStorageServerPort.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?customSecretConfig?cmkSecretConfig?serverCertificate?agentArns?secretKey?accessKey?serverHostname?subdirectory?serverProtocol?serverPort~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configuration parameters of the object storage transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with an object storage system."]moduleUpdateLocationNfsResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configuration parameters of the Network File System (NFS) transfer location that you're using with DataSync. For more information, see Configuring transfers with an NFS file server."]moduleUpdateLocationNfsRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the NFS transfer location that you want to update."];subdirectory:NfsSubdirectory.toption[@ocaml.doc"Specifies the export path in your NFS file server that you want DataSync to mount. This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers."];serverHostname:ServerHostname.toption[@ocaml.doc"Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to."];onPremConfig:OnPremConfig.toption;mountOptions:NfsMountOptions.toption}letcontext_="UpdateLocationNfsRequest"letmake?subdirectory=fun?serverHostname->fun?onPremConfig->fun?mountOptions->fun~locationArn->fun()->{subdirectory;serverHostname;onPremConfig;mountOptions;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("Subdirectory",(Option.mapx.subdirectory~f:NfsSubdirectory.to_value));("ServerHostname",(Option.mapx.serverHostname~f:ServerHostname.to_value));("OnPremConfig",(Option.mapx.onPremConfig~f:OnPremConfig.to_value));("MountOptions",(Option.mapx.mountOptions~f:NfsMountOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmountOptions=(Option.map~f:NfsMountOptions.of_xml)(Xml.childxml_arg0"MountOptions")inletonPremConfig=(Option.map~f:OnPremConfig.of_xml)(Xml.childxml_arg0"OnPremConfig")inletserverHostname=(Option.map~f:ServerHostname.of_xml)(Xml.childxml_arg0"ServerHostname")inletsubdirectory=(Option.map~f:NfsSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?mountOptions?onPremConfig?serverHostname?subdirectory~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmountOptions=field_mapjson__"MountOptions"NfsMountOptions.of_jsoninletonPremConfig=field_mapjson__"OnPremConfig"OnPremConfig.of_jsoninletserverHostname=field_mapjson__"ServerHostname"ServerHostname.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"NfsSubdirectory.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?mountOptions?onPremConfig?serverHostname?subdirectory~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configuration parameters of the Network File System (NFS) transfer location that you're using with DataSync. For more information, see Configuring transfers with an NFS file server."]moduleUpdateLocationHdfsResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configuration parameters of the Hadoop Distributed File System (HDFS) transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with an HDFS cluster."]moduleUpdateLocationHdfsRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the source HDFS cluster location."];subdirectory:HdfsSubdirectory.toption[@ocaml.doc"A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster."];nameNodes:HdfsNameNodeList.toption[@ocaml.doc"The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode."];blockSize:HdfsBlockSize.toption[@ocaml.doc"The size of the data blocks to write into the HDFS cluster."];replicationFactor:HdfsReplicationFactor.toption[@ocaml.doc"The number of DataNodes to replicate the data to when writing to the HDFS cluster."];kmsKeyProviderUri:KmsKeyProviderUri.toption[@ocaml.doc"The URI of the HDFS cluster's Key Management Server (KMS)."];qopConfiguration:QopConfiguration.toption[@ocaml.doc"The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer privacy settings configured on the Hadoop Distributed File System (HDFS) cluster."];authenticationType:HdfsAuthenticationType.toption[@ocaml.doc"The type of authentication used to determine the identity of the user."];simpleUser:HdfsUser.toption[@ocaml.doc"The user name used to identify the client on the host operating system."];kerberosPrincipal:KerberosPrincipal.toption[@ocaml.doc"The Kerberos principal with access to the files and folders on the HDFS cluster."];kerberosKeytab:KerberosKeytabFile.toption[@ocaml.doc"The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. You can load the keytab from a file by providing the file's address."];kerberosKrb5Conf:KerberosKrb5ConfFile.toption[@ocaml.doc"The krb5.conf file that contains the Kerberos configuration information. You can load the krb5.conf file by providing the file's address. If you're using the CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text."];agentArns:AgentArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, such as a KerberosKeytab or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed secret, such as a KerberosKeytab or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret."]}letcontext_="UpdateLocationHdfsRequest"letmake?subdirectory=fun?nameNodes->fun?blockSize->fun?replicationFactor->fun?kmsKeyProviderUri->fun?qopConfiguration->fun?authenticationType->fun?simpleUser->fun?kerberosPrincipal->fun?kerberosKeytab->fun?kerberosKrb5Conf->fun?agentArns->fun?cmkSecretConfig->fun?customSecretConfig->fun~locationArn->fun()->{subdirectory;nameNodes;blockSize;replicationFactor;kmsKeyProviderUri;qopConfiguration;authenticationType;simpleUser;kerberosPrincipal;kerberosKeytab;kerberosKrb5Conf;agentArns;cmkSecretConfig;customSecretConfig;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("Subdirectory",(Option.mapx.subdirectory~f:HdfsSubdirectory.to_value));("NameNodes",(Option.mapx.nameNodes~f:HdfsNameNodeList.to_value));("BlockSize",(Option.mapx.blockSize~f:HdfsBlockSize.to_value));("ReplicationFactor",(Option.mapx.replicationFactor~f:HdfsReplicationFactor.to_value));("KmsKeyProviderUri",(Option.mapx.kmsKeyProviderUri~f:KmsKeyProviderUri.to_value));("QopConfiguration",(Option.mapx.qopConfiguration~f:QopConfiguration.to_value));("AuthenticationType",(Option.mapx.authenticationType~f:HdfsAuthenticationType.to_value));("SimpleUser",(Option.mapx.simpleUser~f:HdfsUser.to_value));("KerberosPrincipal",(Option.mapx.kerberosPrincipal~f:KerberosPrincipal.to_value));("KerberosKeytab",(Option.mapx.kerberosKeytab~f:KerberosKeytabFile.to_value));("KerberosKrb5Conf",(Option.mapx.kerberosKrb5Conf~f:KerberosKrb5ConfFile.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inletkerberosKrb5Conf=(Option.map~f:KerberosKrb5ConfFile.of_xml)(Xml.childxml_arg0"KerberosKrb5Conf")inletkerberosKeytab=(Option.map~f:KerberosKeytabFile.of_xml)(Xml.childxml_arg0"KerberosKeytab")inletkerberosPrincipal=(Option.map~f:KerberosPrincipal.of_xml)(Xml.childxml_arg0"KerberosPrincipal")inletsimpleUser=(Option.map~f:HdfsUser.of_xml)(Xml.childxml_arg0"SimpleUser")inletauthenticationType=(Option.map~f:HdfsAuthenticationType.of_xml)(Xml.childxml_arg0"AuthenticationType")inletqopConfiguration=(Option.map~f:QopConfiguration.of_xml)(Xml.childxml_arg0"QopConfiguration")inletkmsKeyProviderUri=(Option.map~f:KmsKeyProviderUri.of_xml)(Xml.childxml_arg0"KmsKeyProviderUri")inletreplicationFactor=(Option.map~f:HdfsReplicationFactor.of_xml)(Xml.childxml_arg0"ReplicationFactor")inletblockSize=(Option.map~f:HdfsBlockSize.of_xml)(Xml.childxml_arg0"BlockSize")inletnameNodes=(Option.map~f:HdfsNameNodeList.of_xml)(Xml.childxml_arg0"NameNodes")inletsubdirectory=(Option.map~f:HdfsSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?customSecretConfig?cmkSecretConfig?agentArns?kerberosKrb5Conf?kerberosKeytab?kerberosPrincipal?simpleUser?authenticationType?qopConfiguration?kmsKeyProviderUri?replicationFactor?blockSize?nameNodes?subdirectory~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninletkerberosKrb5Conf=field_mapjson__"KerberosKrb5Conf"KerberosKrb5ConfFile.of_jsoninletkerberosKeytab=field_mapjson__"KerberosKeytab"KerberosKeytabFile.of_jsoninletkerberosPrincipal=field_mapjson__"KerberosPrincipal"KerberosPrincipal.of_jsoninletsimpleUser=field_mapjson__"SimpleUser"HdfsUser.of_jsoninletauthenticationType=field_mapjson__"AuthenticationType"HdfsAuthenticationType.of_jsoninletqopConfiguration=field_mapjson__"QopConfiguration"QopConfiguration.of_jsoninletkmsKeyProviderUri=field_mapjson__"KmsKeyProviderUri"KmsKeyProviderUri.of_jsoninletreplicationFactor=field_mapjson__"ReplicationFactor"HdfsReplicationFactor.of_jsoninletblockSize=field_mapjson__"BlockSize"HdfsBlockSize.of_jsoninletnameNodes=field_mapjson__"NameNodes"HdfsNameNodeList.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"HdfsSubdirectory.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?customSecretConfig?cmkSecretConfig?agentArns?kerberosKrb5Conf?kerberosKeytab?kerberosPrincipal?simpleUser?authenticationType?qopConfiguration?kmsKeyProviderUri?replicationFactor?blockSize?nameNodes?subdirectory~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configuration parameters of the Hadoop Distributed File System (HDFS) transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with an HDFS cluster."]moduleUpdateLocationFsxWindowsResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configuration parameters of the Amazon FSx for Windows File Server transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for Windows File Server."]moduleUpdateLocationFsxWindowsRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the ARN of the FSx for Windows File Server transfer location that you're updating."];subdirectory:FsxWindowsSubdirectory.toption[@ocaml.doc"Specifies a mount path for your file system using forward slashes. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location)."];domain:UpdateSmbDomain.toption[@ocaml.doc"Specifies the name of the Windows domain that your FSx for Windows File Server file system belongs to. If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system."];user:SmbUser.toption[@ocaml.doc"Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system. For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations."];password:SmbPassword.toption[@ocaml.doc"Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, such as a Password or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed secret, such as a Password or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret."]}letcontext_="UpdateLocationFsxWindowsRequest"letmake?subdirectory=fun?domain->fun?user->fun?password->fun?cmkSecretConfig->fun?customSecretConfig->fun~locationArn->fun()->{subdirectory;domain;user;password;cmkSecretConfig;customSecretConfig;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("Subdirectory",(Option.mapx.subdirectory~f:FsxWindowsSubdirectory.to_value));("Domain",(Option.mapx.domain~f:UpdateSmbDomain.to_value));("User",(Option.mapx.user~f:SmbUser.to_value));("Password",(Option.mapx.password~f:SmbPassword.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletpassword=(Option.map~f:SmbPassword.of_xml)(Xml.childxml_arg0"Password")inletuser=(Option.map~f:SmbUser.of_xml)(Xml.childxml_arg0"User")inletdomain=(Option.map~f:UpdateSmbDomain.of_xml)(Xml.childxml_arg0"Domain")inletsubdirectory=(Option.map~f:FsxWindowsSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?customSecretConfig?cmkSecretConfig?password?user?domain?subdirectory~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletpassword=field_mapjson__"Password"SmbPassword.of_jsoninletuser=field_mapjson__"User"SmbUser.of_jsoninletdomain=field_mapjson__"Domain"UpdateSmbDomain.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"FsxWindowsSubdirectory.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?customSecretConfig?cmkSecretConfig?password?user?domain?subdirectory~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configuration parameters of the Amazon FSx for Windows File Server transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for Windows File Server."]moduleUpdateLocationFsxOpenZfsResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configuration parameters of the Amazon FSx for OpenZFS transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for OpenZFS. Request parameters related to SMB aren't supported with the UpdateLocationFsxOpenZfs operation."]moduleUpdateLocationFsxOpenZfsRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the FSx for OpenZFS transfer location that you're updating."];protocol:FsxProtocol.toption;subdirectory:SmbSubdirectory.toption[@ocaml.doc"Specifies a subdirectory in the location's path that must begin with /fsx. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location)."]}letcontext_="UpdateLocationFsxOpenZfsRequest"letmake?protocol=fun?subdirectory->fun~locationArn->fun()->{protocol;subdirectory;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("Protocol",(Option.mapx.protocol~f:FsxProtocol.to_value));("Subdirectory",(Option.mapx.subdirectory~f:SmbSubdirectory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubdirectory=(Option.map~f:SmbSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletprotocol=(Option.map~f:FsxProtocol.of_xml)(Xml.childxml_arg0"Protocol")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?subdirectory?protocol~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubdirectory=field_mapjson__"Subdirectory"SmbSubdirectory.of_jsoninletprotocol=field_mapjson__"Protocol"FsxProtocol.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?subdirectory?protocol~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configuration parameters of the Amazon FSx for OpenZFS transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for OpenZFS. Request parameters related to SMB aren't supported with the UpdateLocationFsxOpenZfs operation."]moduleUpdateLocationFsxOntapResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configuration parameters of the Amazon FSx for NetApp ONTAP transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for ONTAP."]moduleUpdateLocationFsxOntapRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the FSx for ONTAP transfer location that you're updating."];protocol:FsxUpdateProtocol.toption[@ocaml.doc"Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system."];subdirectory:FsxOntapSubdirectory.toption[@ocaml.doc"Specifies a path to the file share in the storage virtual machine (SVM) where you want to transfer data to or from. You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be /vol1, /vol1/tree1, or /share1. Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide."]}letcontext_="UpdateLocationFsxOntapRequest"letmake?protocol=fun?subdirectory->fun~locationArn->fun()->{protocol;subdirectory;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("Protocol",(Option.mapx.protocol~f:FsxUpdateProtocol.to_value));("Subdirectory",(Option.mapx.subdirectory~f:FsxOntapSubdirectory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubdirectory=(Option.map~f:FsxOntapSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletprotocol=(Option.map~f:FsxUpdateProtocol.of_xml)(Xml.childxml_arg0"Protocol")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?subdirectory?protocol~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubdirectory=field_mapjson__"Subdirectory"FsxOntapSubdirectory.of_jsoninletprotocol=field_mapjson__"Protocol"FsxUpdateProtocol.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?subdirectory?protocol~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configuration parameters of the Amazon FSx for NetApp ONTAP transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for ONTAP."]moduleUpdateLocationFsxLustreResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configuration parameters of the Amazon FSx for Lustre transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for Lustre."]moduleUpdateLocationFsxLustreRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the FSx for Lustre transfer location that you're updating."];subdirectory:SmbSubdirectory.toption[@ocaml.doc"Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories. When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (/)."]}letcontext_="UpdateLocationFsxLustreRequest"letmake?subdirectory=fun~locationArn->fun()->{subdirectory;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("Subdirectory",(Option.mapx.subdirectory~f:SmbSubdirectory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubdirectory=(Option.map~f:SmbSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?subdirectory~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubdirectory=field_mapjson__"Subdirectory"SmbSubdirectory.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?subdirectory~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configuration parameters of the Amazon FSx for Lustre transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for Lustre."]moduleUpdateLocationEfsResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configuration parameters of the Amazon EFS transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with Amazon EFS."]moduleUpdateLocationEfsRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the Amazon EFS transfer location that you're updating."];subdirectory:EfsSubdirectory.toption[@ocaml.doc"Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location). By default, DataSync uses the root directory (or access point if you provide one by using AccessPointArn). You can also include subdirectories using forward slashes (for example, /path/to/folder)."];accessPointArn:UpdatedEfsAccessPointArn.toption[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your Amazon EFS file system. For more information, see Accessing restricted Amazon EFS file systems."];fileSystemAccessRoleArn:UpdatedEfsIamRoleArn.toption[@ocaml.doc"Specifies an Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system. For information on creating this role, see Creating a DataSync IAM role for Amazon EFS file system access."];inTransitEncryption:EfsInTransitEncryption.toption[@ocaml.doc"Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system. If you specify an access point using AccessPointArn or an IAM role using FileSystemAccessRoleArn, you must set this parameter to TLS1_2."]}letcontext_="UpdateLocationEfsRequest"letmake?subdirectory=fun?accessPointArn->fun?fileSystemAccessRoleArn->fun?inTransitEncryption->fun~locationArn->fun()->{subdirectory;accessPointArn;fileSystemAccessRoleArn;inTransitEncryption;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("Subdirectory",(Option.mapx.subdirectory~f:EfsSubdirectory.to_value));("AccessPointArn",(Option.mapx.accessPointArn~f:UpdatedEfsAccessPointArn.to_value));("FileSystemAccessRoleArn",(Option.mapx.fileSystemAccessRoleArn~f:UpdatedEfsIamRoleArn.to_value));("InTransitEncryption",(Option.mapx.inTransitEncryption~f:EfsInTransitEncryption.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinTransitEncryption=(Option.map~f:EfsInTransitEncryption.of_xml)(Xml.childxml_arg0"InTransitEncryption")inletfileSystemAccessRoleArn=(Option.map~f:UpdatedEfsIamRoleArn.of_xml)(Xml.childxml_arg0"FileSystemAccessRoleArn")inletaccessPointArn=(Option.map~f:UpdatedEfsAccessPointArn.of_xml)(Xml.childxml_arg0"AccessPointArn")inletsubdirectory=(Option.map~f:EfsSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?inTransitEncryption?fileSystemAccessRoleArn?accessPointArn?subdirectory~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinTransitEncryption=field_mapjson__"InTransitEncryption"EfsInTransitEncryption.of_jsoninletfileSystemAccessRoleArn=field_mapjson__"FileSystemAccessRoleArn"UpdatedEfsIamRoleArn.of_jsoninletaccessPointArn=field_mapjson__"AccessPointArn"UpdatedEfsAccessPointArn.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"EfsSubdirectory.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?inTransitEncryption?fileSystemAccessRoleArn?accessPointArn?subdirectory~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configuration parameters of the Amazon EFS transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with Amazon EFS."]moduleUpdateLocationAzureBlobResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Modifies the following configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with Azure Blob Storage."]moduleUpdateLocationAzureBlobRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the ARN of the Azure Blob Storage transfer location that you're updating."];subdirectory:AzureBlobSubdirectory.toption[@ocaml.doc"Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example, /my/images)."];authenticationType:AzureBlobAuthenticationType.toption[@ocaml.doc"Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS)."];sasConfiguration:AzureBlobSasConfiguration.toption[@ocaml.doc"Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage."];blobType:AzureBlobType.toption[@ocaml.doc"Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation."];accessTier:AzureAccessTier.toption[@ocaml.doc"Specifies the access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers."];agentArns:AgentArnList.toption[@ocaml.doc"(Optional) Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage container. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter. You can specify more than one agent. For more information, see Using multiple agents for your transfer. You cannot add or remove agents from a storage location after you initially create it."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret."]}letcontext_="UpdateLocationAzureBlobRequest"letmake?subdirectory=fun?authenticationType->fun?sasConfiguration->fun?blobType->fun?accessTier->fun?agentArns->fun?cmkSecretConfig->fun?customSecretConfig->fun~locationArn->fun()->{subdirectory;authenticationType;sasConfiguration;blobType;accessTier;agentArns;cmkSecretConfig;customSecretConfig;locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)));("Subdirectory",(Option.mapx.subdirectory~f:AzureBlobSubdirectory.to_value));("AuthenticationType",(Option.mapx.authenticationType~f:AzureBlobAuthenticationType.to_value));("SasConfiguration",(Option.mapx.sasConfiguration~f:AzureBlobSasConfiguration.to_value));("BlobType",(Option.mapx.blobType~f:AzureBlobType.to_value));("AccessTier",(Option.mapx.accessTier~f:AzureAccessTier.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inletaccessTier=(Option.map~f:AzureAccessTier.of_xml)(Xml.childxml_arg0"AccessTier")inletblobType=(Option.map~f:AzureBlobType.of_xml)(Xml.childxml_arg0"BlobType")inletsasConfiguration=(Option.map~f:AzureBlobSasConfiguration.of_xml)(Xml.childxml_arg0"SasConfiguration")inletauthenticationType=(Option.map~f:AzureBlobAuthenticationType.of_xml)(Xml.childxml_arg0"AuthenticationType")inletsubdirectory=(Option.map~f:AzureBlobSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake?customSecretConfig?cmkSecretConfig?agentArns?accessTier?blobType?sasConfiguration?authenticationType?subdirectory~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninletaccessTier=field_mapjson__"AccessTier"AzureAccessTier.of_jsoninletblobType=field_mapjson__"BlobType"AzureBlobType.of_jsoninletsasConfiguration=field_mapjson__"SasConfiguration"AzureBlobSasConfiguration.of_jsoninletauthenticationType=field_mapjson__"AuthenticationType"AzureBlobAuthenticationType.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"AzureBlobSubdirectory.of_jsoninletlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake?customSecretConfig?cmkSecretConfig?agentArns?accessTier?blobType?sasConfiguration?authenticationType?subdirectory~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies the following configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with Azure Blob Storage."]moduleUpdateAgentResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Updates the name of an DataSync agent."]moduleUpdateAgentRequest=structtypenonrect={agentArn:AgentArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the agent to update."];name:TagValue.toption[@ocaml.doc"The name that you want to use to configure the agent."]}letcontext_="UpdateAgentRequest"letmake?name=fun~agentArn->fun()->{name;agentArn}letto_valuex=structure_to_value[("AgentArn",(Some(AgentArn.to_valuex.agentArn)));("Name",(Option.mapx.name~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Name")inletagentArn=AgentArn.of_xml(Xml.child_exn~context:context_xml_arg0"AgentArn")inmake?name~agentArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"Name"TagValue.of_jsoninletagentArn=field_map_exnjson__"AgentArn"AgentArn.of_jsoninmake?name~agentArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"UpdateAgentRequest"]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from an Amazon Web Services resource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:TaggableResourceArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the resource to remove the tags from."];keys:TagKeyList.t[@ocaml.doc"Specifies the keys in the tags that you want to remove."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~keys->fun()->{resourceArn;keys}letto_valuex=structure_to_value[("ResourceArn",(Some(TaggableResourceArn.to_valuex.resourceArn)));("Keys",(Some(TagKeyList.to_valuex.keys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"Keys")inletresourceArn=TaggableResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~keys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeys=field_map_exnjson__"Keys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"TaggableResourceArn.of_jsoninmake~keys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"UntagResourceRequest"]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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"Applies a tag to an Amazon Web Services resource. Tags are key-value pairs that can help you manage, filter, and search for your resources. These include DataSync resources, such as locations, tasks, and task executions."]moduleTagResourceRequest=structtypenonrect={resourceArn:TaggableResourceArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the resource to apply the tag to."];tags:InputTagList.t[@ocaml.doc"Specifies the tags that you want to apply to the resource."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("ResourceArn",(Some(TaggableResourceArn.to_valuex.resourceArn)));("Tags",(Some(InputTagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=InputTagList.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"InputTagList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"TaggableResourceArn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"TagResourceRequest"]moduleStartTaskExecutionResponse=structtypenonrect={taskExecutionArn:TaskExecutionArn.toption[@ocaml.doc"The ARN of the running task execution."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskExecutionArn=fun()->{taskExecutionArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TaskExecutionArn",(Option.mapx.taskExecutionArn~f:TaskExecutionArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskExecutionArn=(Option.map~f:TaskExecutionArn.of_xml)(Xml.childxml_arg0"TaskExecutionArn")inmake?taskExecutionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskExecutionArn=field_mapjson__"TaskExecutionArn"TaskExecutionArn.of_jsoninmake?taskExecutionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"StartTaskExecutionResponse"]moduleStartTaskExecutionRequest=structtypenonrect={taskArn:TaskArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the task that you want to start."];overrideOptions:Options.toption;includes:FilterList.toption[@ocaml.doc"Specifies a list of filter rules that determines which files to include when running a task. The pattern should contain a single filter string that consists of the patterns to include. The patterns are delimited by \"|\" (that is, a pipe), for example, \"/folder1|/folder2\"."];excludes:FilterList.toption[@ocaml.doc"Specifies a list of filter rules that determines which files to exclude from a task. The list contains a single filter string that consists of the patterns to exclude. The patterns are delimited by \"|\" (that is, a pipe), for example, \"/folder1|/folder2\"."];manifestConfig:ManifestConfig.toption[@ocaml.doc"Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest. When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission. To remove a manifest configuration, specify this parameter with an empty value."];taskReportConfig:TaskReportConfig.toption[@ocaml.doc"Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports. When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission. To remove a task report configuration, specify this parameter as empty."];tags:InputTagList.toption[@ocaml.doc"Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task execution. Tags are key-value pairs that help you manage, filter, and search for your DataSync resources."]}letcontext_="StartTaskExecutionRequest"letmake?overrideOptions=fun?includes->fun?excludes->fun?manifestConfig->fun?taskReportConfig->fun?tags->fun~taskArn->fun()->{overrideOptions;includes;excludes;manifestConfig;taskReportConfig;tags;taskArn}letto_valuex=structure_to_value[("TaskArn",(Some(TaskArn.to_valuex.taskArn)));("OverrideOptions",(Option.mapx.overrideOptions~f:Options.to_value));("Includes",(Option.mapx.includes~f:FilterList.to_value));("Excludes",(Option.mapx.excludes~f:FilterList.to_value));("ManifestConfig",(Option.mapx.manifestConfig~f:ManifestConfig.to_value));("TaskReportConfig",(Option.mapx.taskReportConfig~f:TaskReportConfig.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inlettaskReportConfig=(Option.map~f:TaskReportConfig.of_xml)(Xml.childxml_arg0"TaskReportConfig")inletmanifestConfig=(Option.map~f:ManifestConfig.of_xml)(Xml.childxml_arg0"ManifestConfig")inletexcludes=(Option.map~f:FilterList.of_xml)(Xml.childxml_arg0"Excludes")inletincludes=(Option.map~f:FilterList.of_xml)(Xml.childxml_arg0"Includes")inletoverrideOptions=(Option.map~f:Options.of_xml)(Xml.childxml_arg0"OverrideOptions")inlettaskArn=TaskArn.of_xml(Xml.child_exn~context:context_xml_arg0"TaskArn")inmake?tags?taskReportConfig?manifestConfig?excludes?includes?overrideOptions~taskArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"InputTagList.of_jsoninlettaskReportConfig=field_mapjson__"TaskReportConfig"TaskReportConfig.of_jsoninletmanifestConfig=field_mapjson__"ManifestConfig"ManifestConfig.of_jsoninletexcludes=field_mapjson__"Excludes"FilterList.of_jsoninletincludes=field_mapjson__"Includes"FilterList.of_jsoninletoverrideOptions=field_mapjson__"OverrideOptions"Options.of_jsoninlettaskArn=field_map_exnjson__"TaskArn"TaskArn.of_jsoninmake?tags?taskReportConfig?manifestConfig?excludes?includes?overrideOptions~taskArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"StartTaskExecutionRequest"]moduleListTasksResponse=structtypenonrect={tasks:TaskList.toption[@ocaml.doc"A list of all the tasks that are returned."];nextToken:NextToken.toption[@ocaml.doc"An opaque string that indicates the position at which to begin returning the next list of tasks."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tasks=fun?nextToken->fun()->{tasks;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tasks",(Option.mapx.tasks~f:TaskList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inlettasks=(Option.map~f:TaskList.of_xml)(Xml.childxml_arg0"Tasks")inmake?nextToken?tasks()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninlettasks=field_mapjson__"Tasks"TaskList.of_jsoninmake?nextToken?tasks()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ListTasksResponse"]moduleListTasksRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"The maximum number of tasks to return."];nextToken:NextToken.toption[@ocaml.doc"An opaque string that indicates the position at which to begin the next list of tasks."];filters:TaskFilters.toption[@ocaml.doc"You can use API filters to narrow down the list of resources returned by ListTasks. For example, to retrieve all tasks on a specific source location, you can use ListTasks with filter name LocationId and Operator Equals with the ARN for the location."]}letmake?maxResults=fun?nextToken->fun?filters->fun()->{maxResults;nextToken;filters}letto_valuex=structure_to_value[("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("Filters",(Option.mapx.filters~f:TaskFilters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilters=(Option.map~f:TaskFilters.of_xml)(Xml.childxml_arg0"Filters")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inmake?filters?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilters=field_mapjson__"Filters"TaskFilters.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?filters?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ListTasksRequest"]moduleListTaskExecutionsResponse=structtypenonrect={taskExecutions:TaskExecutionList.toption[@ocaml.doc"A list of the task's executions."];nextToken:NextToken.toption[@ocaml.doc"The opaque string that indicates the position to begin the next list of results in the response."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskExecutions=fun?nextToken->fun()->{taskExecutions;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TaskExecutions",(Option.mapx.taskExecutions~f:TaskExecutionList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inlettaskExecutions=(Option.map~f:TaskExecutionList.of_xml)(Xml.childxml_arg0"TaskExecutions")inmake?nextToken?taskExecutions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninlettaskExecutions=field_mapjson__"TaskExecutions"TaskExecutionList.of_jsoninmake?nextToken?taskExecutions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ListTaskExecutionsResponse"]moduleListTaskExecutionsRequest=structtypenonrect={taskArn:TaskArn.toption[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the task that you want execution information about."];maxResults:MaxResults.toption[@ocaml.doc"Specifies how many results you want in the response."];nextToken:NextToken.toption[@ocaml.doc"Specifies an opaque string that indicates the position at which to begin the next list of results in the response."]}letmake?taskArn=fun?maxResults->fun?nextToken->fun()->{taskArn;maxResults;nextToken}letto_valuex=structure_to_value[("TaskArn",(Option.mapx.taskArn~f:TaskArn.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inlettaskArn=(Option.map~f:TaskArn.of_xml)(Xml.childxml_arg0"TaskArn")inmake?nextToken?maxResults?taskArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninlettaskArn=field_mapjson__"TaskArn"TaskArn.of_jsoninmake?nextToken?maxResults?taskArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ListTaskExecutions"]moduleListTagsForResourceResponse=structtypenonrect={tags:OutputTagList.toption[@ocaml.doc"An array of tags applied to the specified resource."];nextToken:NextToken.toption[@ocaml.doc"The opaque string that indicates the position to begin the next list of results in the response."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun?nextToken->fun()->{tags;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.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:OutputTagList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inlettags=(Option.map~f:OutputTagList.of_xml)(Xml.childxml_arg0"Tags")inmake?nextToken?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninlettags=field_mapjson__"Tags"OutputTagList.of_jsoninmake?nextToken?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ListTagsForResourceResponse"]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:TaggableResourceArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the resource that you want tag information on."];maxResults:MaxResults.toption[@ocaml.doc"Specifies how many results that you want in the response."];nextToken:NextToken.toption[@ocaml.doc"Specifies an opaque string that indicates the position to begin the next list of results in the response."]}letcontext_="ListTagsForResourceRequest"letmake?maxResults=fun?nextToken->fun~resourceArn->fun()->{maxResults;nextToken;resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(TaggableResourceArn.to_valuex.resourceArn)));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletresourceArn=TaggableResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake?nextToken?maxResults~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"TaggableResourceArn.of_jsoninmake?nextToken?maxResults~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ListTagsForResourceRequest"]moduleListLocationsResponse=structtypenonrect={locations:LocationList.toption[@ocaml.doc"An array that contains a list of locations."];nextToken:NextToken.toption[@ocaml.doc"An opaque string that indicates the position at which to begin returning the next list of locations."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locations=fun?nextToken->fun()->{locations;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Locations",(Option.mapx.locations~f:LocationList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletlocations=(Option.map~f:LocationList.of_xml)(Xml.childxml_arg0"Locations")inmake?nextToken?locations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletlocations=field_mapjson__"Locations"LocationList.of_jsoninmake?nextToken?locations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ListLocationsResponse"]moduleListLocationsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"The maximum number of locations to return."];nextToken:NextToken.toption[@ocaml.doc"An opaque string that indicates the position at which to begin the next list of locations."];filters:LocationFilters.toption[@ocaml.doc"You can use API filters to narrow down the list of resources returned by ListLocations. For example, to retrieve all tasks on a specific source location, you can use ListLocations with filter name LocationType S3 and Operator Equals."]}letmake?maxResults=fun?nextToken->fun?filters->fun()->{maxResults;nextToken;filters}letto_valuex=structure_to_value[("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("Filters",(Option.mapx.filters~f:LocationFilters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilters=(Option.map~f:LocationFilters.of_xml)(Xml.childxml_arg0"Filters")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inmake?filters?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilters=field_mapjson__"Filters"LocationFilters.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?filters?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ListLocationsRequest"]moduleListAgentsResponse=structtypenonrect={agents:AgentList.toption[@ocaml.doc"A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs)."];nextToken:NextToken.toption[@ocaml.doc"The opaque string that indicates the position to begin the next list of results in the response."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?agents=fun?nextToken->fun()->{agents;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Agents",(Option.mapx.agents~f:AgentList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletagents=(Option.map~f:AgentList.of_xml)(Xml.childxml_arg0"Agents")inmake?nextToken?agents()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletagents=field_mapjson__"Agents"AgentList.of_jsoninmake?nextToken?agents()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ListAgentsResponse"]moduleListAgentsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"Specifies the maximum number of DataSync agents to list in a response. By default, a response shows a maximum of 100 agents."];nextToken:NextToken.toption[@ocaml.doc"Specifies an opaque string that indicates the position to begin the next list of results in the response."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"ListAgentsRequest"]moduleDescribeTaskResponse=structtypenonrect={taskArn:TaskArn.toption[@ocaml.doc"The ARN of your task."];status:TaskStatus.toption[@ocaml.doc"The status of your task. For information about what each status means, see Task statuses."];name:TagValue.toption[@ocaml.doc"The name of your task."];currentTaskExecutionArn:TaskExecutionArn.toption[@ocaml.doc"The ARN of the most recent task execution."];sourceLocationArn:LocationArn.toption[@ocaml.doc"The ARN of your transfer's source location."];destinationLocationArn:LocationArn.toption[@ocaml.doc"The ARN of your transfer's destination location."];cloudWatchLogGroupArn:LogGroupArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. For more information, see Monitoring data transfers with CloudWatch Logs."];sourceNetworkInterfaceArns:SourceNetworkInterfaceArns.toption[@ocaml.doc"The ARNs of the network interfaces that DataSync created for your source location."];destinationNetworkInterfaceArns:DestinationNetworkInterfaceArns.toption[@ocaml.doc"The ARNs of the network interfaces that DataSync created for your destination location."];options:Options.toption[@ocaml.doc"The task's settings. For example, what file metadata gets preserved, how data integrity gets verified at the end of your transfer, bandwidth limits, among other options."];excludes:FilterList.toption[@ocaml.doc"The exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters."];schedule:TaskSchedule.toption[@ocaml.doc"The schedule for when you want your task to run. For more information, see Scheduling your task."];errorCode:String_.toption[@ocaml.doc"If there's an issue with your task, you can use the error code to help you troubleshoot the problem. For more information, see Troubleshooting issues with DataSync transfers."];errorDetail:String_.toption[@ocaml.doc"If there's an issue with your task, you can use the error details to help you troubleshoot the problem. For more information, see Troubleshooting issues with DataSync transfers."];creationTime:Time.toption[@ocaml.doc"The time that the task was created."];includes:FilterList.toption[@ocaml.doc"The include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters."];manifestConfig:ManifestConfig.toption[@ocaml.doc"The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see Specifying what DataSync transfers by using a manifest."];taskReportConfig:TaskReportConfig.toption[@ocaml.doc"The configuration of your task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports."];scheduleDetails:TaskScheduleDetails.toption[@ocaml.doc"The details about your task schedule."];taskMode:TaskMode.toption[@ocaml.doc"The task mode that you're using. For more information, see Choosing a task mode for your data transfer."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskArn=fun?status->fun?name->fun?currentTaskExecutionArn->fun?sourceLocationArn->fun?destinationLocationArn->fun?cloudWatchLogGroupArn->fun?sourceNetworkInterfaceArns->fun?destinationNetworkInterfaceArns->fun?options->fun?excludes->fun?schedule->fun?errorCode->fun?errorDetail->fun?creationTime->fun?includes->fun?manifestConfig->fun?taskReportConfig->fun?scheduleDetails->fun?taskMode->fun()->{taskArn;status;name;currentTaskExecutionArn;sourceLocationArn;destinationLocationArn;cloudWatchLogGroupArn;sourceNetworkInterfaceArns;destinationNetworkInterfaceArns;options;excludes;schedule;errorCode;errorDetail;creationTime;includes;manifestConfig;taskReportConfig;scheduleDetails;taskMode}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TaskArn",(Option.mapx.taskArn~f:TaskArn.to_value));("Status",(Option.mapx.status~f:TaskStatus.to_value));("Name",(Option.mapx.name~f:TagValue.to_value));("CurrentTaskExecutionArn",(Option.mapx.currentTaskExecutionArn~f:TaskExecutionArn.to_value));("SourceLocationArn",(Option.mapx.sourceLocationArn~f:LocationArn.to_value));("DestinationLocationArn",(Option.mapx.destinationLocationArn~f:LocationArn.to_value));("CloudWatchLogGroupArn",(Option.mapx.cloudWatchLogGroupArn~f:LogGroupArn.to_value));("SourceNetworkInterfaceArns",(Option.mapx.sourceNetworkInterfaceArns~f:SourceNetworkInterfaceArns.to_value));("DestinationNetworkInterfaceArns",(Option.mapx.destinationNetworkInterfaceArns~f:DestinationNetworkInterfaceArns.to_value));("Options",(Option.mapx.options~f:Options.to_value));("Excludes",(Option.mapx.excludes~f:FilterList.to_value));("Schedule",(Option.mapx.schedule~f:TaskSchedule.to_value));("ErrorCode",(Option.mapx.errorCode~f:String_.to_value));("ErrorDetail",(Option.mapx.errorDetail~f:String_.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("Includes",(Option.mapx.includes~f:FilterList.to_value));("ManifestConfig",(Option.mapx.manifestConfig~f:ManifestConfig.to_value));("TaskReportConfig",(Option.mapx.taskReportConfig~f:TaskReportConfig.to_value));("ScheduleDetails",(Option.mapx.scheduleDetails~f:TaskScheduleDetails.to_value));("TaskMode",(Option.mapx.taskMode~f:TaskMode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskMode=(Option.map~f:TaskMode.of_xml)(Xml.childxml_arg0"TaskMode")inletscheduleDetails=(Option.map~f:TaskScheduleDetails.of_xml)(Xml.childxml_arg0"ScheduleDetails")inlettaskReportConfig=(Option.map~f:TaskReportConfig.of_xml)(Xml.childxml_arg0"TaskReportConfig")inletmanifestConfig=(Option.map~f:ManifestConfig.of_xml)(Xml.childxml_arg0"ManifestConfig")inletincludes=(Option.map~f:FilterList.of_xml)(Xml.childxml_arg0"Includes")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inleterrorDetail=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorDetail")inleterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorCode")inletschedule=(Option.map~f:TaskSchedule.of_xml)(Xml.childxml_arg0"Schedule")inletexcludes=(Option.map~f:FilterList.of_xml)(Xml.childxml_arg0"Excludes")inletoptions=(Option.map~f:Options.of_xml)(Xml.childxml_arg0"Options")inletdestinationNetworkInterfaceArns=(Option.map~f:DestinationNetworkInterfaceArns.of_xml)(Xml.childxml_arg0"DestinationNetworkInterfaceArns")inletsourceNetworkInterfaceArns=(Option.map~f:SourceNetworkInterfaceArns.of_xml)(Xml.childxml_arg0"SourceNetworkInterfaceArns")inletcloudWatchLogGroupArn=(Option.map~f:LogGroupArn.of_xml)(Xml.childxml_arg0"CloudWatchLogGroupArn")inletdestinationLocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"DestinationLocationArn")inletsourceLocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"SourceLocationArn")inletcurrentTaskExecutionArn=(Option.map~f:TaskExecutionArn.of_xml)(Xml.childxml_arg0"CurrentTaskExecutionArn")inletname=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Name")inletstatus=(Option.map~f:TaskStatus.of_xml)(Xml.childxml_arg0"Status")inlettaskArn=(Option.map~f:TaskArn.of_xml)(Xml.childxml_arg0"TaskArn")inmake?taskMode?scheduleDetails?taskReportConfig?manifestConfig?includes?creationTime?errorDetail?errorCode?schedule?excludes?options?destinationNetworkInterfaceArns?sourceNetworkInterfaceArns?cloudWatchLogGroupArn?destinationLocationArn?sourceLocationArn?currentTaskExecutionArn?name?status?taskArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskMode=field_mapjson__"TaskMode"TaskMode.of_jsoninletscheduleDetails=field_mapjson__"ScheduleDetails"TaskScheduleDetails.of_jsoninlettaskReportConfig=field_mapjson__"TaskReportConfig"TaskReportConfig.of_jsoninletmanifestConfig=field_mapjson__"ManifestConfig"ManifestConfig.of_jsoninletincludes=field_mapjson__"Includes"FilterList.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninleterrorDetail=field_mapjson__"ErrorDetail"String_.of_jsoninleterrorCode=field_mapjson__"ErrorCode"String_.of_jsoninletschedule=field_mapjson__"Schedule"TaskSchedule.of_jsoninletexcludes=field_mapjson__"Excludes"FilterList.of_jsoninletoptions=field_mapjson__"Options"Options.of_jsoninletdestinationNetworkInterfaceArns=field_mapjson__"DestinationNetworkInterfaceArns"DestinationNetworkInterfaceArns.of_jsoninletsourceNetworkInterfaceArns=field_mapjson__"SourceNetworkInterfaceArns"SourceNetworkInterfaceArns.of_jsoninletcloudWatchLogGroupArn=field_mapjson__"CloudWatchLogGroupArn"LogGroupArn.of_jsoninletdestinationLocationArn=field_mapjson__"DestinationLocationArn"LocationArn.of_jsoninletsourceLocationArn=field_mapjson__"SourceLocationArn"LocationArn.of_jsoninletcurrentTaskExecutionArn=field_mapjson__"CurrentTaskExecutionArn"TaskExecutionArn.of_jsoninletname=field_mapjson__"Name"TagValue.of_jsoninletstatus=field_mapjson__"Status"TaskStatus.of_jsoninlettaskArn=field_mapjson__"TaskArn"TaskArn.of_jsoninmake?taskMode?scheduleDetails?taskReportConfig?manifestConfig?includes?creationTime?errorDetail?errorCode?schedule?excludes?options?destinationNetworkInterfaceArns?sourceNetworkInterfaceArns?cloudWatchLogGroupArn?destinationLocationArn?sourceLocationArn?currentTaskExecutionArn?name?status?taskArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeTaskResponse"]moduleDescribeTaskRequest=structtypenonrect={taskArn:TaskArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the transfer task that you want information about."]}letcontext_="DescribeTaskRequest"letmake~taskArn=fun()->{taskArn}letto_valuex=structure_to_value[("TaskArn",(Some(TaskArn.to_valuex.taskArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskArn=TaskArn.of_xml(Xml.child_exn~context:context_xml_arg0"TaskArn")inmake~taskArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskArn=field_map_exnjson__"TaskArn"TaskArn.of_jsoninmake~taskArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeTaskRequest"]moduleDescribeTaskExecutionResponse=structtypenonrect={taskExecutionArn:TaskExecutionArn.toption[@ocaml.doc"The ARN of the task execution that you wanted information about. TaskExecutionArn is hierarchical and includes TaskArn for the task that was executed. For example, a TaskExecution value with the ARN arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b executed the task with the ARN arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2."];status:TaskExecutionStatus.toption[@ocaml.doc"The status of the task execution."];options:Options.toption;excludes:FilterList.toption[@ocaml.doc"A list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync."];includes:FilterList.toption[@ocaml.doc"A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync."];manifestConfig:ManifestConfig.toption[@ocaml.doc"The configuration of the manifest that lists the files or objects to transfer. For more information, see Specifying what DataSync transfers by using a manifest."];startTime:Time.toption[@ocaml.doc"The time that DataSync sends the request to start the task execution. For non-queued tasks, LaunchTime and StartTime are typically the same. For queued tasks, LaunchTime is typically later than StartTime because previously queued tasks must finish running before newer tasks can begin."];estimatedFilesToTransfer:Long.toption[@ocaml.doc"The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated while DataSync prepares the transfer. How this gets calculated depends primarily on your task\226\128\153s transfer mode configuration: If TranserMode is set to CHANGED - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include: Anything that's added or modified at the source location. Anything that's in both locations and modified at the destination after an initial transfer (unless OverwriteMode is set to NEVER). (Basic task mode only) The number of items that DataSync expects to delete (if PreserveDeletedFiles is set to REMOVE). If TranserMode is set to ALL - The calculation is based only on the items that DataSync finds at the source location. For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in EstimatedFoldersToTransfer."];estimatedBytesToTransfer:Long.toption[@ocaml.doc"The number of logical bytes that DataSync expects to write to the destination location."];filesTransferred:Long.toption[@ocaml.doc"The number of files, objects, and directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network. If DataSync fails to transfer something, this value can be less than EstimatedFilesToTransfer. In some cases, this value can also be greater than EstimatedFilesToTransfer. This element is implementation-specific for some location types, so don't use it as an exact indication of what's transferring or to monitor your task execution. For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in FoldersTransferred."];bytesWritten:Long.toption[@ocaml.doc"The number of logical bytes that DataSync actually writes to the destination location."];bytesTransferred:Long.toption[@ocaml.doc"The number of bytes that DataSync sends to the network before compression (if compression is possible). For the number of bytes transferred over the network, see BytesCompressed."];bytesCompressed:Long.toption[@ocaml.doc"The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than BytesTransferred unless the data isn't compressible."];result:TaskExecutionResultDetail.toption[@ocaml.doc"The result of the task execution."];taskReportConfig:TaskReportConfig.toption[@ocaml.doc"The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see Creating a task report."];filesDeleted:Long.toption[@ocaml.doc"The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0. For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in FoldersDeleted."];filesSkipped:Long.toption[@ocaml.doc"The number of files, objects, and directories that DataSync skips during your transfer. For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in FoldersSkipped."];filesVerified:Long.toption[@ocaml.doc"The number of files, objects, and directories that DataSync verifies during your transfer. When you configure your task to verify only the data that's transferred, DataSync doesn't verify directories in some situations or files that fail to transfer. For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in FoldersVerified."];reportResult:ReportResult.toption[@ocaml.doc"Indicates whether DataSync generated a complete task report for your transfer."];estimatedFilesToDelete:Long.toption[@ocaml.doc"The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0. For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in EstimatedFoldersToDelete."];taskMode:TaskMode.toption[@ocaml.doc"The task mode that you're using. For more information, see Choosing a task mode for your data transfer."];filesPrepared:Long.toption[@ocaml.doc"The number of files or objects that DataSync will attempt to transfer after comparing your source and destination locations. Applies only to Enhanced mode tasks. This counter isn't applicable if you configure your task to transfer all data. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations."];filesListed:TaskExecutionFilesListedDetail.toption[@ocaml.doc"The number of files or objects that DataSync finds at your locations. Applies only to Enhanced mode tasks."];filesFailed:TaskExecutionFilesFailedDetail.toption[@ocaml.doc"The number of files or objects that DataSync fails to prepare, transfer, verify, and delete during your task execution. Applies only to Enhanced mode tasks."];estimatedFoldersToDelete:ItemCount.toption[@ocaml.doc"The number of directories that DataSync expects to delete in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0. Applies only to Enhanced mode tasks."];estimatedFoldersToTransfer:ItemCount.toption[@ocaml.doc"The number of directories that DataSync expects to transfer over the network. This value is calculated as DataSync prepares directories to transfer. How this gets calculated depends primarily on your task\226\128\153s transfer mode configuration: If TranserMode is set to CHANGED - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include: Anything that's added or modified at the source location. Anything that's in both locations and modified at the destination after an initial transfer (unless OverwriteMode is set to NEVER). If TranserMode is set to ALL - The calculation is based only on the items that DataSync finds at the source location. Applies only to Enhanced mode tasks."];foldersSkipped:ItemCount.toption[@ocaml.doc"The number of directories that DataSync skips during your transfer. Applies only to Enhanced mode tasks."];foldersPrepared:ItemCount.toption[@ocaml.doc"The number of directories that DataSync will attempt to transfer after comparing your source and destination locations. Applies only to Enhanced mode tasks. This counter isn't applicable if you configure your task to transfer all data. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations."];foldersTransferred:ItemCount.toption[@ocaml.doc"The number of directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network. If DataSync fails to transfer something, this value can be less than EstimatedFoldersToTransfer. In some cases, this value can also be greater than EstimatedFoldersToTransfer. Applies only to Enhanced mode tasks."];foldersVerified:ItemCount.toption[@ocaml.doc"The number of directories that DataSync verifies during your transfer. Applies only to Enhanced mode tasks."];foldersDeleted:ItemCount.toption[@ocaml.doc"The number of directories that DataSync actually deletes in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0. Applies only to Enhanced mode tasks."];foldersListed:TaskExecutionFoldersListedDetail.toption[@ocaml.doc"The number of directories that DataSync finds at your locations. Applies only to Enhanced mode tasks."];foldersFailed:TaskExecutionFoldersFailedDetail.toption[@ocaml.doc"The number of directories that DataSync fails to list, prepare, transfer, verify, and delete during your task execution. Applies only to Enhanced mode tasks."];launchTime:Time.toption[@ocaml.doc"The time that the task execution actually begins. For non-queued tasks, LaunchTime and StartTime are typically the same. For queued tasks, LaunchTime is typically later than StartTime because previously queued tasks must finish running before newer tasks can begin."];endTime:Time.toption[@ocaml.doc"The time that the transfer task ends."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskExecutionArn=fun?status->fun?options->fun?excludes->fun?includes->fun?manifestConfig->fun?startTime->fun?estimatedFilesToTransfer->fun?estimatedBytesToTransfer->fun?filesTransferred->fun?bytesWritten->fun?bytesTransferred->fun?bytesCompressed->fun?result->fun?taskReportConfig->fun?filesDeleted->fun?filesSkipped->fun?filesVerified->fun?reportResult->fun?estimatedFilesToDelete->fun?taskMode->fun?filesPrepared->fun?filesListed->fun?filesFailed->fun?estimatedFoldersToDelete->fun?estimatedFoldersToTransfer->fun?foldersSkipped->fun?foldersPrepared->fun?foldersTransferred->fun?foldersVerified->fun?foldersDeleted->fun?foldersListed->fun?foldersFailed->fun?launchTime->fun?endTime->fun()->{taskExecutionArn;status;options;excludes;includes;manifestConfig;startTime;estimatedFilesToTransfer;estimatedBytesToTransfer;filesTransferred;bytesWritten;bytesTransferred;bytesCompressed;result;taskReportConfig;filesDeleted;filesSkipped;filesVerified;reportResult;estimatedFilesToDelete;taskMode;filesPrepared;filesListed;filesFailed;estimatedFoldersToDelete;estimatedFoldersToTransfer;foldersSkipped;foldersPrepared;foldersTransferred;foldersVerified;foldersDeleted;foldersListed;foldersFailed;launchTime;endTime}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TaskExecutionArn",(Option.mapx.taskExecutionArn~f:TaskExecutionArn.to_value));("Status",(Option.mapx.status~f:TaskExecutionStatus.to_value));("Options",(Option.mapx.options~f:Options.to_value));("Excludes",(Option.mapx.excludes~f:FilterList.to_value));("Includes",(Option.mapx.includes~f:FilterList.to_value));("ManifestConfig",(Option.mapx.manifestConfig~f:ManifestConfig.to_value));("StartTime",(Option.mapx.startTime~f:Time.to_value));("EstimatedFilesToTransfer",(Option.mapx.estimatedFilesToTransfer~f:Long.to_value));("EstimatedBytesToTransfer",(Option.mapx.estimatedBytesToTransfer~f:Long.to_value));("FilesTransferred",(Option.mapx.filesTransferred~f:Long.to_value));("BytesWritten",(Option.mapx.bytesWritten~f:Long.to_value));("BytesTransferred",(Option.mapx.bytesTransferred~f:Long.to_value));("BytesCompressed",(Option.mapx.bytesCompressed~f:Long.to_value));("Result",(Option.mapx.result~f:TaskExecutionResultDetail.to_value));("TaskReportConfig",(Option.mapx.taskReportConfig~f:TaskReportConfig.to_value));("FilesDeleted",(Option.mapx.filesDeleted~f:Long.to_value));("FilesSkipped",(Option.mapx.filesSkipped~f:Long.to_value));("FilesVerified",(Option.mapx.filesVerified~f:Long.to_value));("ReportResult",(Option.mapx.reportResult~f:ReportResult.to_value));("EstimatedFilesToDelete",(Option.mapx.estimatedFilesToDelete~f:Long.to_value));("TaskMode",(Option.mapx.taskMode~f:TaskMode.to_value));("FilesPrepared",(Option.mapx.filesPrepared~f:Long.to_value));("FilesListed",(Option.mapx.filesListed~f:TaskExecutionFilesListedDetail.to_value));("FilesFailed",(Option.mapx.filesFailed~f:TaskExecutionFilesFailedDetail.to_value));("EstimatedFoldersToDelete",(Option.mapx.estimatedFoldersToDelete~f:ItemCount.to_value));("EstimatedFoldersToTransfer",(Option.mapx.estimatedFoldersToTransfer~f:ItemCount.to_value));("FoldersSkipped",(Option.mapx.foldersSkipped~f:ItemCount.to_value));("FoldersPrepared",(Option.mapx.foldersPrepared~f:ItemCount.to_value));("FoldersTransferred",(Option.mapx.foldersTransferred~f:ItemCount.to_value));("FoldersVerified",(Option.mapx.foldersVerified~f:ItemCount.to_value));("FoldersDeleted",(Option.mapx.foldersDeleted~f:ItemCount.to_value));("FoldersListed",(Option.mapx.foldersListed~f:TaskExecutionFoldersListedDetail.to_value));("FoldersFailed",(Option.mapx.foldersFailed~f:TaskExecutionFoldersFailedDetail.to_value));("LaunchTime",(Option.mapx.launchTime~f:Time.to_value));("EndTime",(Option.mapx.endTime~f:Time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"EndTime")inletlaunchTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"LaunchTime")inletfoldersFailed=(Option.map~f:TaskExecutionFoldersFailedDetail.of_xml)(Xml.childxml_arg0"FoldersFailed")inletfoldersListed=(Option.map~f:TaskExecutionFoldersListedDetail.of_xml)(Xml.childxml_arg0"FoldersListed")inletfoldersDeleted=(Option.map~f:ItemCount.of_xml)(Xml.childxml_arg0"FoldersDeleted")inletfoldersVerified=(Option.map~f:ItemCount.of_xml)(Xml.childxml_arg0"FoldersVerified")inletfoldersTransferred=(Option.map~f:ItemCount.of_xml)(Xml.childxml_arg0"FoldersTransferred")inletfoldersPrepared=(Option.map~f:ItemCount.of_xml)(Xml.childxml_arg0"FoldersPrepared")inletfoldersSkipped=(Option.map~f:ItemCount.of_xml)(Xml.childxml_arg0"FoldersSkipped")inletestimatedFoldersToTransfer=(Option.map~f:ItemCount.of_xml)(Xml.childxml_arg0"EstimatedFoldersToTransfer")inletestimatedFoldersToDelete=(Option.map~f:ItemCount.of_xml)(Xml.childxml_arg0"EstimatedFoldersToDelete")inletfilesFailed=(Option.map~f:TaskExecutionFilesFailedDetail.of_xml)(Xml.childxml_arg0"FilesFailed")inletfilesListed=(Option.map~f:TaskExecutionFilesListedDetail.of_xml)(Xml.childxml_arg0"FilesListed")inletfilesPrepared=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"FilesPrepared")inlettaskMode=(Option.map~f:TaskMode.of_xml)(Xml.childxml_arg0"TaskMode")inletestimatedFilesToDelete=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"EstimatedFilesToDelete")inletreportResult=(Option.map~f:ReportResult.of_xml)(Xml.childxml_arg0"ReportResult")inletfilesVerified=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"FilesVerified")inletfilesSkipped=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"FilesSkipped")inletfilesDeleted=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"FilesDeleted")inlettaskReportConfig=(Option.map~f:TaskReportConfig.of_xml)(Xml.childxml_arg0"TaskReportConfig")inletresult=(Option.map~f:TaskExecutionResultDetail.of_xml)(Xml.childxml_arg0"Result")inletbytesCompressed=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"BytesCompressed")inletbytesTransferred=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"BytesTransferred")inletbytesWritten=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"BytesWritten")inletfilesTransferred=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"FilesTransferred")inletestimatedBytesToTransfer=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"EstimatedBytesToTransfer")inletestimatedFilesToTransfer=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"EstimatedFilesToTransfer")inletstartTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"StartTime")inletmanifestConfig=(Option.map~f:ManifestConfig.of_xml)(Xml.childxml_arg0"ManifestConfig")inletincludes=(Option.map~f:FilterList.of_xml)(Xml.childxml_arg0"Includes")inletexcludes=(Option.map~f:FilterList.of_xml)(Xml.childxml_arg0"Excludes")inletoptions=(Option.map~f:Options.of_xml)(Xml.childxml_arg0"Options")inletstatus=(Option.map~f:TaskExecutionStatus.of_xml)(Xml.childxml_arg0"Status")inlettaskExecutionArn=(Option.map~f:TaskExecutionArn.of_xml)(Xml.childxml_arg0"TaskExecutionArn")inmake?endTime?launchTime?foldersFailed?foldersListed?foldersDeleted?foldersVerified?foldersTransferred?foldersPrepared?foldersSkipped?estimatedFoldersToTransfer?estimatedFoldersToDelete?filesFailed?filesListed?filesPrepared?taskMode?estimatedFilesToDelete?reportResult?filesVerified?filesSkipped?filesDeleted?taskReportConfig?result?bytesCompressed?bytesTransferred?bytesWritten?filesTransferred?estimatedBytesToTransfer?estimatedFilesToTransfer?startTime?manifestConfig?includes?excludes?options?status?taskExecutionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendTime=field_mapjson__"EndTime"Time.of_jsoninletlaunchTime=field_mapjson__"LaunchTime"Time.of_jsoninletfoldersFailed=field_mapjson__"FoldersFailed"TaskExecutionFoldersFailedDetail.of_jsoninletfoldersListed=field_mapjson__"FoldersListed"TaskExecutionFoldersListedDetail.of_jsoninletfoldersDeleted=field_mapjson__"FoldersDeleted"ItemCount.of_jsoninletfoldersVerified=field_mapjson__"FoldersVerified"ItemCount.of_jsoninletfoldersTransferred=field_mapjson__"FoldersTransferred"ItemCount.of_jsoninletfoldersPrepared=field_mapjson__"FoldersPrepared"ItemCount.of_jsoninletfoldersSkipped=field_mapjson__"FoldersSkipped"ItemCount.of_jsoninletestimatedFoldersToTransfer=field_mapjson__"EstimatedFoldersToTransfer"ItemCount.of_jsoninletestimatedFoldersToDelete=field_mapjson__"EstimatedFoldersToDelete"ItemCount.of_jsoninletfilesFailed=field_mapjson__"FilesFailed"TaskExecutionFilesFailedDetail.of_jsoninletfilesListed=field_mapjson__"FilesListed"TaskExecutionFilesListedDetail.of_jsoninletfilesPrepared=field_mapjson__"FilesPrepared"Long.of_jsoninlettaskMode=field_mapjson__"TaskMode"TaskMode.of_jsoninletestimatedFilesToDelete=field_mapjson__"EstimatedFilesToDelete"Long.of_jsoninletreportResult=field_mapjson__"ReportResult"ReportResult.of_jsoninletfilesVerified=field_mapjson__"FilesVerified"Long.of_jsoninletfilesSkipped=field_mapjson__"FilesSkipped"Long.of_jsoninletfilesDeleted=field_mapjson__"FilesDeleted"Long.of_jsoninlettaskReportConfig=field_mapjson__"TaskReportConfig"TaskReportConfig.of_jsoninletresult=field_mapjson__"Result"TaskExecutionResultDetail.of_jsoninletbytesCompressed=field_mapjson__"BytesCompressed"Long.of_jsoninletbytesTransferred=field_mapjson__"BytesTransferred"Long.of_jsoninletbytesWritten=field_mapjson__"BytesWritten"Long.of_jsoninletfilesTransferred=field_mapjson__"FilesTransferred"Long.of_jsoninletestimatedBytesToTransfer=field_mapjson__"EstimatedBytesToTransfer"Long.of_jsoninletestimatedFilesToTransfer=field_mapjson__"EstimatedFilesToTransfer"Long.of_jsoninletstartTime=field_mapjson__"StartTime"Time.of_jsoninletmanifestConfig=field_mapjson__"ManifestConfig"ManifestConfig.of_jsoninletincludes=field_mapjson__"Includes"FilterList.of_jsoninletexcludes=field_mapjson__"Excludes"FilterList.of_jsoninletoptions=field_mapjson__"Options"Options.of_jsoninletstatus=field_mapjson__"Status"TaskExecutionStatus.of_jsoninlettaskExecutionArn=field_mapjson__"TaskExecutionArn"TaskExecutionArn.of_jsoninmake?endTime?launchTime?foldersFailed?foldersListed?foldersDeleted?foldersVerified?foldersTransferred?foldersPrepared?foldersSkipped?estimatedFoldersToTransfer?estimatedFoldersToDelete?filesFailed?filesListed?filesPrepared?taskMode?estimatedFilesToDelete?reportResult?filesVerified?filesSkipped?filesDeleted?taskReportConfig?result?bytesCompressed?bytesTransferred?bytesWritten?filesTransferred?estimatedBytesToTransfer?estimatedFilesToTransfer?startTime?manifestConfig?includes?excludes?options?status?taskExecutionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeTaskExecutionResponse"]moduleDescribeTaskExecutionRequest=structtypenonrect={taskExecutionArn:TaskExecutionArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the task execution that you want information about."]}letcontext_="DescribeTaskExecutionRequest"letmake~taskExecutionArn=fun()->{taskExecutionArn}letto_valuex=structure_to_value[("TaskExecutionArn",(Some(TaskExecutionArn.to_valuex.taskExecutionArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskExecutionArn=TaskExecutionArn.of_xml(Xml.child_exn~context:context_xml_arg0"TaskExecutionArn")inmake~taskExecutionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskExecutionArn=field_map_exnjson__"TaskExecutionArn"TaskExecutionArn.of_jsoninmake~taskExecutionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeTaskExecutionRequest"]moduleDescribeLocationSmbResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the SMB location."];locationUri:LocationUri.toption[@ocaml.doc"The URI of the SMB location."];agentArns:AgentArnList.toption[@ocaml.doc"The ARNs of the DataSync agents that can connect with your SMB file server."];user:SmbUser.toption[@ocaml.doc"The user that can mount and access the files, folders, and file metadata in your SMB file server. This element applies only if AuthenticationType is set to NTLM."];domain:SmbDomain.toption[@ocaml.doc"The name of the Windows domain that the SMB file server belongs to. This element applies only if AuthenticationType is set to NTLM."];mountOptions:SmbMountOptions.toption[@ocaml.doc"The SMB protocol version that DataSync uses to access your SMB file server."];creationTime:Time.toption[@ocaml.doc"The time that the SMB location was created."];dnsIpAddresses:DnsIpList.toption[@ocaml.doc"The IPv4 or IPv6 addresses for the DNS servers that your SMB file server belongs to. This element applies only if AuthenticationType is set to KERBEROS."];kerberosPrincipal:KerberosPrincipal.toption[@ocaml.doc"The Kerberos principal that has permission to access the files, folders, and file metadata in your SMB file server."];authenticationType:SmbAuthenticationType.toption[@ocaml.doc"The authentication protocol that DataSync uses to connect to your SMB file server."];managedSecretConfig:ManagedSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as a Password or KerberosKeytab that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as a Password or KerberosKeytab that DataSync uses to access a specific storage location, with a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Describes configuration information for a customer-managed secret, such as a Password or KerberosKeytab that DataSync uses to access a specific storage location, with a customer-managed Identity and Access Management (IAM) role that provides access to the secret."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun?locationUri->fun?agentArns->fun?user->fun?domain->fun?mountOptions->fun?creationTime->fun?dnsIpAddresses->fun?kerberosPrincipal->fun?authenticationType->fun?managedSecretConfig->fun?cmkSecretConfig->fun?customSecretConfig->fun()->{locationArn;locationUri;agentArns;user;domain;mountOptions;creationTime;dnsIpAddresses;kerberosPrincipal;authenticationType;managedSecretConfig;cmkSecretConfig;customSecretConfig}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("User",(Option.mapx.user~f:SmbUser.to_value));("Domain",(Option.mapx.domain~f:SmbDomain.to_value));("MountOptions",(Option.mapx.mountOptions~f:SmbMountOptions.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("DnsIpAddresses",(Option.mapx.dnsIpAddresses~f:DnsIpList.to_value));("KerberosPrincipal",(Option.mapx.kerberosPrincipal~f:KerberosPrincipal.to_value));("AuthenticationType",(Option.mapx.authenticationType~f:SmbAuthenticationType.to_value));("ManagedSecretConfig",(Option.mapx.managedSecretConfig~f:ManagedSecretConfig.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletmanagedSecretConfig=(Option.map~f:ManagedSecretConfig.of_xml)(Xml.childxml_arg0"ManagedSecretConfig")inletauthenticationType=(Option.map~f:SmbAuthenticationType.of_xml)(Xml.childxml_arg0"AuthenticationType")inletkerberosPrincipal=(Option.map~f:KerberosPrincipal.of_xml)(Xml.childxml_arg0"KerberosPrincipal")inletdnsIpAddresses=(Option.map~f:DnsIpList.of_xml)(Xml.childxml_arg0"DnsIpAddresses")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletmountOptions=(Option.map~f:SmbMountOptions.of_xml)(Xml.childxml_arg0"MountOptions")inletdomain=(Option.map~f:SmbDomain.of_xml)(Xml.childxml_arg0"Domain")inletuser=(Option.map~f:SmbUser.of_xml)(Xml.childxml_arg0"User")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?customSecretConfig?cmkSecretConfig?managedSecretConfig?authenticationType?kerberosPrincipal?dnsIpAddresses?creationTime?mountOptions?domain?user?agentArns?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletmanagedSecretConfig=field_mapjson__"ManagedSecretConfig"ManagedSecretConfig.of_jsoninletauthenticationType=field_mapjson__"AuthenticationType"SmbAuthenticationType.of_jsoninletkerberosPrincipal=field_mapjson__"KerberosPrincipal"KerberosPrincipal.of_jsoninletdnsIpAddresses=field_mapjson__"DnsIpAddresses"DnsIpList.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletmountOptions=field_mapjson__"MountOptions"SmbMountOptions.of_jsoninletdomain=field_mapjson__"Domain"SmbDomain.of_jsoninletuser=field_mapjson__"User"SmbUser.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?customSecretConfig?cmkSecretConfig?managedSecretConfig?authenticationType?kerberosPrincipal?dnsIpAddresses?creationTime?mountOptions?domain?user?agentArns?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeLocationSmbResponse"]moduleDescribeLocationSmbRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the SMB location that you want information about."]}letcontext_="DescribeLocationSmbRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeLocationSmbRequest"]moduleDescribeLocationS3Response=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the Amazon S3 location."];locationUri:LocationUri.toption[@ocaml.doc"The URL of the Amazon S3 location that was described."];s3StorageClass:S3StorageClass.toption[@ocaml.doc"When Amazon S3 is a destination location, this is the storage class that you chose for your objects. Some storage classes have behaviors that can affect your Amazon S3 storage costs. For more information, see Storage class considerations with Amazon S3 transfers."];s3Config:S3Config.toption;agentArns:AgentArnList.toption[@ocaml.doc"The ARNs of the DataSync agents deployed on your Outpost when using working with Amazon S3 on Outposts. For more information, see Deploy your DataSync agent on Outposts."];creationTime:Time.toption[@ocaml.doc"The time that the Amazon S3 location was created."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun?locationUri->fun?s3StorageClass->fun?s3Config->fun?agentArns->fun?creationTime->fun()->{locationArn;locationUri;s3StorageClass;s3Config;agentArns;creationTime}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("S3StorageClass",(Option.mapx.s3StorageClass~f:S3StorageClass.to_value));("S3Config",(Option.mapx.s3Config~f:S3Config.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inlets3Config=(Option.map~f:S3Config.of_xml)(Xml.childxml_arg0"S3Config")inlets3StorageClass=(Option.map~f:S3StorageClass.of_xml)(Xml.childxml_arg0"S3StorageClass")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?creationTime?agentArns?s3Config?s3StorageClass?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninlets3Config=field_mapjson__"S3Config"S3Config.of_jsoninlets3StorageClass=field_mapjson__"S3StorageClass"S3StorageClass.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?creationTime?agentArns?s3Config?s3StorageClass?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeLocationS3Response"]moduleDescribeLocationS3Request=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the Amazon S3 location."]}letcontext_="DescribeLocationS3Request"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeLocationS3Request"]moduleDescribeLocationObjectStorageResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the object storage system location."];locationUri:LocationUri.toption[@ocaml.doc"The URI of the object storage system location."];accessKey:ObjectStorageAccessKey.toption[@ocaml.doc"The access key (for example, a user name) required to authenticate with the object storage system."];serverPort:ObjectStorageServerPort.toption[@ocaml.doc"The port that your object storage server accepts inbound network traffic on (for example, port 443)."];serverProtocol:ObjectStorageServerProtocol.toption[@ocaml.doc"The protocol that your object storage system uses to communicate."];agentArns:AgentArnList.toption[@ocaml.doc"The ARNs of the DataSync agents that can connect with your object storage system."];creationTime:Time.toption[@ocaml.doc"The time that the location was created."];serverCertificate:ObjectStorageCertificate.toption[@ocaml.doc"The certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA)."];managedSecretConfig:ManagedSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Describes configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun?locationUri->fun?accessKey->fun?serverPort->fun?serverProtocol->fun?agentArns->fun?creationTime->fun?serverCertificate->fun?managedSecretConfig->fun?cmkSecretConfig->fun?customSecretConfig->fun()->{locationArn;locationUri;accessKey;serverPort;serverProtocol;agentArns;creationTime;serverCertificate;managedSecretConfig;cmkSecretConfig;customSecretConfig}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("AccessKey",(Option.mapx.accessKey~f:ObjectStorageAccessKey.to_value));("ServerPort",(Option.mapx.serverPort~f:ObjectStorageServerPort.to_value));("ServerProtocol",(Option.mapx.serverProtocol~f:ObjectStorageServerProtocol.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("ServerCertificate",(Option.mapx.serverCertificate~f:ObjectStorageCertificate.to_value));("ManagedSecretConfig",(Option.mapx.managedSecretConfig~f:ManagedSecretConfig.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletmanagedSecretConfig=(Option.map~f:ManagedSecretConfig.of_xml)(Xml.childxml_arg0"ManagedSecretConfig")inletserverCertificate=(Option.map~f:ObjectStorageCertificate.of_xml)(Xml.childxml_arg0"ServerCertificate")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inletserverProtocol=(Option.map~f:ObjectStorageServerProtocol.of_xml)(Xml.childxml_arg0"ServerProtocol")inletserverPort=(Option.map~f:ObjectStorageServerPort.of_xml)(Xml.childxml_arg0"ServerPort")inletaccessKey=(Option.map~f:ObjectStorageAccessKey.of_xml)(Xml.childxml_arg0"AccessKey")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?customSecretConfig?cmkSecretConfig?managedSecretConfig?serverCertificate?creationTime?agentArns?serverProtocol?serverPort?accessKey?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletmanagedSecretConfig=field_mapjson__"ManagedSecretConfig"ManagedSecretConfig.of_jsoninletserverCertificate=field_mapjson__"ServerCertificate"ObjectStorageCertificate.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninletserverProtocol=field_mapjson__"ServerProtocol"ObjectStorageServerProtocol.of_jsoninletserverPort=field_mapjson__"ServerPort"ObjectStorageServerPort.of_jsoninletaccessKey=field_mapjson__"AccessKey"ObjectStorageAccessKey.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?customSecretConfig?cmkSecretConfig?managedSecretConfig?serverCertificate?creationTime?agentArns?serverProtocol?serverPort?accessKey?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeLocationObjectStorageResponse"]moduleDescribeLocationObjectStorageRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the object storage system location."]}letcontext_="DescribeLocationObjectStorageRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeLocationObjectStorageRequest"]moduleDescribeLocationNfsResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the NFS location."];locationUri:LocationUri.toption[@ocaml.doc"The URI of the NFS location."];onPremConfig:OnPremConfig.toption;mountOptions:NfsMountOptions.toption[@ocaml.doc"The mount options that DataSync uses to mount your NFS file server."];creationTime:Time.toption[@ocaml.doc"The time when the NFS location was created."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun?locationUri->fun?onPremConfig->fun?mountOptions->fun?creationTime->fun()->{locationArn;locationUri;onPremConfig;mountOptions;creationTime}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("OnPremConfig",(Option.mapx.onPremConfig~f:OnPremConfig.to_value));("MountOptions",(Option.mapx.mountOptions~f:NfsMountOptions.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletmountOptions=(Option.map~f:NfsMountOptions.of_xml)(Xml.childxml_arg0"MountOptions")inletonPremConfig=(Option.map~f:OnPremConfig.of_xml)(Xml.childxml_arg0"OnPremConfig")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?creationTime?mountOptions?onPremConfig?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletmountOptions=field_mapjson__"MountOptions"NfsMountOptions.of_jsoninletonPremConfig=field_mapjson__"OnPremConfig"OnPremConfig.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?creationTime?mountOptions?onPremConfig?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeLocationNfsResponse"]moduleDescribeLocationNfsRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the NFS location that you want information about."]}letcontext_="DescribeLocationNfsRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeLocationNfsRequest"]moduleDescribeLocationHdfsResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the HDFS location."];locationUri:LocationUri.toption[@ocaml.doc"The URI of the HDFS location."];nameNodes:HdfsNameNodeList.toption[@ocaml.doc"The NameNode that manages the HDFS namespace."];blockSize:HdfsBlockSize.toption[@ocaml.doc"The size of the data blocks to write into the HDFS cluster."];replicationFactor:HdfsReplicationFactor.toption[@ocaml.doc"The number of DataNodes to replicate the data to when writing to the HDFS cluster."];kmsKeyProviderUri:KmsKeyProviderUri.toption[@ocaml.doc"The URI of the HDFS cluster's Key Management Server (KMS)."];qopConfiguration:QopConfiguration.toption[@ocaml.doc"The Quality of Protection (QOP) configuration, which specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the HDFS cluster."];authenticationType:HdfsAuthenticationType.toption[@ocaml.doc"The type of authentication used to determine the identity of the user."];simpleUser:HdfsUser.toption[@ocaml.doc"The user name to identify the client on the host operating system. This parameter is used if the AuthenticationType is defined as SIMPLE."];kerberosPrincipal:KerberosPrincipal.toption[@ocaml.doc"The Kerberos principal with access to the files and folders on the HDFS cluster. This parameter is used if the AuthenticationType is defined as KERBEROS."];agentArns:AgentArnList.toption[@ocaml.doc"The ARNs of the DataSync agents that can connect with your HDFS cluster."];creationTime:Time.toption[@ocaml.doc"The time that the HDFS location was created."];managedSecretConfig:ManagedSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as a KerberosKeytab that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as a KerberosKeytab that DataSync uses to access a specific storage location, with a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Describes configuration information for a customer-managed secret, such as a KerberosKeytab that DataSync uses to access a specific storage location, with a customer-managed Identity and Access Management (IAM) role that provides access to the secret."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun?locationUri->fun?nameNodes->fun?blockSize->fun?replicationFactor->fun?kmsKeyProviderUri->fun?qopConfiguration->fun?authenticationType->fun?simpleUser->fun?kerberosPrincipal->fun?agentArns->fun?creationTime->fun?managedSecretConfig->fun?cmkSecretConfig->fun?customSecretConfig->fun()->{locationArn;locationUri;nameNodes;blockSize;replicationFactor;kmsKeyProviderUri;qopConfiguration;authenticationType;simpleUser;kerberosPrincipal;agentArns;creationTime;managedSecretConfig;cmkSecretConfig;customSecretConfig}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("NameNodes",(Option.mapx.nameNodes~f:HdfsNameNodeList.to_value));("BlockSize",(Option.mapx.blockSize~f:HdfsBlockSize.to_value));("ReplicationFactor",(Option.mapx.replicationFactor~f:HdfsReplicationFactor.to_value));("KmsKeyProviderUri",(Option.mapx.kmsKeyProviderUri~f:KmsKeyProviderUri.to_value));("QopConfiguration",(Option.mapx.qopConfiguration~f:QopConfiguration.to_value));("AuthenticationType",(Option.mapx.authenticationType~f:HdfsAuthenticationType.to_value));("SimpleUser",(Option.mapx.simpleUser~f:HdfsUser.to_value));("KerberosPrincipal",(Option.mapx.kerberosPrincipal~f:KerberosPrincipal.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("ManagedSecretConfig",(Option.mapx.managedSecretConfig~f:ManagedSecretConfig.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletmanagedSecretConfig=(Option.map~f:ManagedSecretConfig.of_xml)(Xml.childxml_arg0"ManagedSecretConfig")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inletkerberosPrincipal=(Option.map~f:KerberosPrincipal.of_xml)(Xml.childxml_arg0"KerberosPrincipal")inletsimpleUser=(Option.map~f:HdfsUser.of_xml)(Xml.childxml_arg0"SimpleUser")inletauthenticationType=(Option.map~f:HdfsAuthenticationType.of_xml)(Xml.childxml_arg0"AuthenticationType")inletqopConfiguration=(Option.map~f:QopConfiguration.of_xml)(Xml.childxml_arg0"QopConfiguration")inletkmsKeyProviderUri=(Option.map~f:KmsKeyProviderUri.of_xml)(Xml.childxml_arg0"KmsKeyProviderUri")inletreplicationFactor=(Option.map~f:HdfsReplicationFactor.of_xml)(Xml.childxml_arg0"ReplicationFactor")inletblockSize=(Option.map~f:HdfsBlockSize.of_xml)(Xml.childxml_arg0"BlockSize")inletnameNodes=(Option.map~f:HdfsNameNodeList.of_xml)(Xml.childxml_arg0"NameNodes")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?customSecretConfig?cmkSecretConfig?managedSecretConfig?creationTime?agentArns?kerberosPrincipal?simpleUser?authenticationType?qopConfiguration?kmsKeyProviderUri?replicationFactor?blockSize?nameNodes?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletmanagedSecretConfig=field_mapjson__"ManagedSecretConfig"ManagedSecretConfig.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninletkerberosPrincipal=field_mapjson__"KerberosPrincipal"KerberosPrincipal.of_jsoninletsimpleUser=field_mapjson__"SimpleUser"HdfsUser.of_jsoninletauthenticationType=field_mapjson__"AuthenticationType"HdfsAuthenticationType.of_jsoninletqopConfiguration=field_mapjson__"QopConfiguration"QopConfiguration.of_jsoninletkmsKeyProviderUri=field_mapjson__"KmsKeyProviderUri"KmsKeyProviderUri.of_jsoninletreplicationFactor=field_mapjson__"ReplicationFactor"HdfsReplicationFactor.of_jsoninletblockSize=field_mapjson__"BlockSize"HdfsBlockSize.of_jsoninletnameNodes=field_mapjson__"NameNodes"HdfsNameNodeList.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?customSecretConfig?cmkSecretConfig?managedSecretConfig?creationTime?agentArns?kerberosPrincipal?simpleUser?authenticationType?qopConfiguration?kmsKeyProviderUri?replicationFactor?blockSize?nameNodes?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for a Hadoop Distributed File System (HDFS) is configured."]moduleDescribeLocationHdfsRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the HDFS location."]}letcontext_="DescribeLocationHdfsRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for a Hadoop Distributed File System (HDFS) is configured."]moduleDescribeLocationFsxWindowsResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the FSx for Windows File Server location."];locationUri:LocationUri.toption[@ocaml.doc"The uniform resource identifier (URI) of the FSx for Windows File Server location."];securityGroupArns:Ec2SecurityGroupArnList.toption[@ocaml.doc"The ARNs of the Amazon EC2 security groups that provide access to your file system's preferred subnet. For information about configuring security groups for file system access, see the Amazon FSx for Windows File Server User Guide ."];creationTime:Time.toption[@ocaml.doc"The time that the FSx for Windows File Server location was created."];user:SmbUser.toption[@ocaml.doc"The user with the permissions to mount and access the FSx for Windows File Server file system."];domain:SmbDomain.toption[@ocaml.doc"The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to."];managedSecretConfig:ManagedSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as a Password that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as a Password that DataSync uses to access a specific storage location, with a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Describes configuration information for a customer-managed secret, such as a Password that DataSync uses to access a specific storage location, with a customer-managed Identity and Access Management (IAM) role that provides access to the secret."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun?locationUri->fun?securityGroupArns->fun?creationTime->fun?user->fun?domain->fun?managedSecretConfig->fun?cmkSecretConfig->fun?customSecretConfig->fun()->{locationArn;locationUri;securityGroupArns;creationTime;user;domain;managedSecretConfig;cmkSecretConfig;customSecretConfig}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("SecurityGroupArns",(Option.mapx.securityGroupArns~f:Ec2SecurityGroupArnList.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("User",(Option.mapx.user~f:SmbUser.to_value));("Domain",(Option.mapx.domain~f:SmbDomain.to_value));("ManagedSecretConfig",(Option.mapx.managedSecretConfig~f:ManagedSecretConfig.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletmanagedSecretConfig=(Option.map~f:ManagedSecretConfig.of_xml)(Xml.childxml_arg0"ManagedSecretConfig")inletdomain=(Option.map~f:SmbDomain.of_xml)(Xml.childxml_arg0"Domain")inletuser=(Option.map~f:SmbUser.of_xml)(Xml.childxml_arg0"User")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletsecurityGroupArns=(Option.map~f:Ec2SecurityGroupArnList.of_xml)(Xml.childxml_arg0"SecurityGroupArns")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?customSecretConfig?cmkSecretConfig?managedSecretConfig?domain?user?creationTime?securityGroupArns?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletmanagedSecretConfig=field_mapjson__"ManagedSecretConfig"ManagedSecretConfig.of_jsoninletdomain=field_mapjson__"Domain"SmbDomain.of_jsoninletuser=field_mapjson__"User"SmbUser.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletsecurityGroupArns=field_mapjson__"SecurityGroupArns"Ec2SecurityGroupArnList.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?customSecretConfig?cmkSecretConfig?managedSecretConfig?domain?user?creationTime?securityGroupArns?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for an Amazon FSx for Windows File Server file system is configured."]moduleDescribeLocationFsxWindowsRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the FSx for Windows File Server location."]}letcontext_="DescribeLocationFsxWindowsRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for an Amazon FSx for Windows File Server file system is configured."]moduleDescribeLocationFsxOpenZfsResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the FSx for OpenZFS location that was described."];locationUri:LocationUri.toption[@ocaml.doc"The uniform resource identifier (URI) of the FSx for OpenZFS location that was described. Example: fsxz://us-west-2.fs-1234567890abcdef02/fsx/folderA/folder"];securityGroupArns:Ec2SecurityGroupArnList.toption[@ocaml.doc"The ARNs of the security groups that are configured for the FSx for OpenZFS file system."];protocol:FsxProtocol.toption[@ocaml.doc"The type of protocol that DataSync uses to access your file system."];creationTime:Time.toption[@ocaml.doc"The time that the FSx for OpenZFS location was created."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun?locationUri->fun?securityGroupArns->fun?protocol->fun?creationTime->fun()->{locationArn;locationUri;securityGroupArns;protocol;creationTime}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("SecurityGroupArns",(Option.mapx.securityGroupArns~f:Ec2SecurityGroupArnList.to_value));("Protocol",(Option.mapx.protocol~f:FsxProtocol.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletprotocol=(Option.map~f:FsxProtocol.of_xml)(Xml.childxml_arg0"Protocol")inletsecurityGroupArns=(Option.map~f:Ec2SecurityGroupArnList.of_xml)(Xml.childxml_arg0"SecurityGroupArns")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?creationTime?protocol?securityGroupArns?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletprotocol=field_mapjson__"Protocol"FsxProtocol.of_jsoninletsecurityGroupArns=field_mapjson__"SecurityGroupArns"Ec2SecurityGroupArnList.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?creationTime?protocol?securityGroupArns?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for an Amazon FSx for OpenZFS file system is configured. Response elements related to SMB aren't supported with the DescribeLocationFsxOpenZfs operation."]moduleDescribeLocationFsxOpenZfsRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the FSx for OpenZFS location to describe."]}letcontext_="DescribeLocationFsxOpenZfsRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for an Amazon FSx for OpenZFS file system is configured. Response elements related to SMB aren't supported with the DescribeLocationFsxOpenZfs operation."]moduleDescribeLocationFsxOntapResponse=structtypenonrect={creationTime:Time.toption[@ocaml.doc"The time that the location was created."];locationArn:LocationArn.toption[@ocaml.doc"The ARN of the FSx for ONTAP file system location."];locationUri:LocationUri.toption[@ocaml.doc"The uniform resource identifier (URI) of the FSx for ONTAP file system location."];protocol:FsxProtocol.toption;securityGroupArns:Ec2SecurityGroupArnList.toption[@ocaml.doc"The security groups that DataSync uses to access your FSx for ONTAP file system."];storageVirtualMachineArn:StorageVirtualMachineArn.toption[@ocaml.doc"The ARN of the storage virtual machine (SVM) on your FSx for ONTAP file system where you're copying data to or from."];fsxFilesystemArn:FsxFilesystemArn.toption[@ocaml.doc"The ARN of the FSx for ONTAP file system."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?creationTime=fun?locationArn->fun?locationUri->fun?protocol->fun?securityGroupArns->fun?storageVirtualMachineArn->fun?fsxFilesystemArn->fun()->{creationTime;locationArn;locationUri;protocol;securityGroupArns;storageVirtualMachineArn;fsxFilesystemArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("Protocol",(Option.mapx.protocol~f:FsxProtocol.to_value));("SecurityGroupArns",(Option.mapx.securityGroupArns~f:Ec2SecurityGroupArnList.to_value));("StorageVirtualMachineArn",(Option.mapx.storageVirtualMachineArn~f:StorageVirtualMachineArn.to_value));("FsxFilesystemArn",(Option.mapx.fsxFilesystemArn~f:FsxFilesystemArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfsxFilesystemArn=(Option.map~f:FsxFilesystemArn.of_xml)(Xml.childxml_arg0"FsxFilesystemArn")inletstorageVirtualMachineArn=(Option.map~f:StorageVirtualMachineArn.of_xml)(Xml.childxml_arg0"StorageVirtualMachineArn")inletsecurityGroupArns=(Option.map~f:Ec2SecurityGroupArnList.of_xml)(Xml.childxml_arg0"SecurityGroupArns")inletprotocol=(Option.map~f:FsxProtocol.of_xml)(Xml.childxml_arg0"Protocol")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inmake?fsxFilesystemArn?storageVirtualMachineArn?securityGroupArns?protocol?locationUri?locationArn?creationTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfsxFilesystemArn=field_mapjson__"FsxFilesystemArn"FsxFilesystemArn.of_jsoninletstorageVirtualMachineArn=field_mapjson__"StorageVirtualMachineArn"StorageVirtualMachineArn.of_jsoninletsecurityGroupArns=field_mapjson__"SecurityGroupArns"Ec2SecurityGroupArnList.of_jsoninletprotocol=field_mapjson__"Protocol"FsxProtocol.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninmake?fsxFilesystemArn?storageVirtualMachineArn?securityGroupArns?protocol?locationUri?locationArn?creationTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for an Amazon FSx for NetApp ONTAP file system is configured. If your location uses SMB, the DescribeLocationFsxOntap operation doesn't actually return a Password."]moduleDescribeLocationFsxOntapRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the FSx for ONTAP file system location that you want information about."]}letcontext_="DescribeLocationFsxOntapRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for an Amazon FSx for NetApp ONTAP file system is configured. If your location uses SMB, the DescribeLocationFsxOntap operation doesn't actually return a Password."]moduleDescribeLocationFsxLustreResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the FSx for Lustre location that was described."];locationUri:LocationUri.toption[@ocaml.doc"The URI of the FSx for Lustre location that was described."];securityGroupArns:Ec2SecurityGroupArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file system."];creationTime:Time.toption[@ocaml.doc"The time that the FSx for Lustre location was created."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun?locationUri->fun?securityGroupArns->fun?creationTime->fun()->{locationArn;locationUri;securityGroupArns;creationTime}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("SecurityGroupArns",(Option.mapx.securityGroupArns~f:Ec2SecurityGroupArnList.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletsecurityGroupArns=(Option.map~f:Ec2SecurityGroupArnList.of_xml)(Xml.childxml_arg0"SecurityGroupArns")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?creationTime?securityGroupArns?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletsecurityGroupArns=field_mapjson__"SecurityGroupArns"Ec2SecurityGroupArnList.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?creationTime?securityGroupArns?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for an Amazon FSx for Lustre file system is configured."]moduleDescribeLocationFsxLustreRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the FSx for Lustre location to describe."]}letcontext_="DescribeLocationFsxLustreRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for an Amazon FSx for Lustre file system is configured."]moduleDescribeLocationEfsResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the Amazon EFS file system location."];locationUri:LocationUri.toption[@ocaml.doc"The URL of the Amazon EFS file system location."];ec2Config:Ec2Config.toption;creationTime:Time.toption[@ocaml.doc"The time that the location was created."];accessPointArn:EfsAccessPointArn.toption[@ocaml.doc"The ARN of the access point that DataSync uses to access the Amazon EFS file system. For more information, see Accessing restricted file systems."];fileSystemAccessRoleArn:IamRoleArn.toption[@ocaml.doc"The Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system. For more information, see Creating a DataSync IAM role for file system access."];inTransitEncryption:EfsInTransitEncryption.toption[@ocaml.doc"Indicates whether DataSync uses Transport Layer Security (TLS) encryption when transferring data to or from the Amazon EFS file system."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun?locationUri->fun?ec2Config->fun?creationTime->fun?accessPointArn->fun?fileSystemAccessRoleArn->fun?inTransitEncryption->fun()->{locationArn;locationUri;ec2Config;creationTime;accessPointArn;fileSystemAccessRoleArn;inTransitEncryption}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("Ec2Config",(Option.mapx.ec2Config~f:Ec2Config.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("AccessPointArn",(Option.mapx.accessPointArn~f:EfsAccessPointArn.to_value));("FileSystemAccessRoleArn",(Option.mapx.fileSystemAccessRoleArn~f:IamRoleArn.to_value));("InTransitEncryption",(Option.mapx.inTransitEncryption~f:EfsInTransitEncryption.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinTransitEncryption=(Option.map~f:EfsInTransitEncryption.of_xml)(Xml.childxml_arg0"InTransitEncryption")inletfileSystemAccessRoleArn=(Option.map~f:IamRoleArn.of_xml)(Xml.childxml_arg0"FileSystemAccessRoleArn")inletaccessPointArn=(Option.map~f:EfsAccessPointArn.of_xml)(Xml.childxml_arg0"AccessPointArn")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletec2Config=(Option.map~f:Ec2Config.of_xml)(Xml.childxml_arg0"Ec2Config")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?inTransitEncryption?fileSystemAccessRoleArn?accessPointArn?creationTime?ec2Config?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinTransitEncryption=field_mapjson__"InTransitEncryption"EfsInTransitEncryption.of_jsoninletfileSystemAccessRoleArn=field_mapjson__"FileSystemAccessRoleArn"IamRoleArn.of_jsoninletaccessPointArn=field_mapjson__"AccessPointArn"EfsAccessPointArn.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletec2Config=field_mapjson__"Ec2Config"Ec2Config.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?inTransitEncryption?fileSystemAccessRoleArn?accessPointArn?creationTime?ec2Config?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeLocationEfsResponse"]moduleDescribeLocationEfsRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon EFS file system location that you want information about."]}letcontext_="DescribeLocationEfsRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeLocationEfsRequest"]moduleDescribeLocationAzureBlobResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of your Azure Blob Storage transfer location."];locationUri:LocationUri.toption[@ocaml.doc"The URL of the Azure Blob Storage container involved in your transfer."];authenticationType:AzureBlobAuthenticationType.toption[@ocaml.doc"The authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS)."];blobType:AzureBlobType.toption[@ocaml.doc"The type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation."];accessTier:AzureAccessTier.toption[@ocaml.doc"The access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers."];agentArns:AgentArnList.toption[@ocaml.doc"The ARNs of the DataSync agents that can connect with your Azure Blob Storage container."];creationTime:Time.toption[@ocaml.doc"The time that your Azure Blob Storage transfer location was created."];managedSecretConfig:ManagedSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as an authentication token that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Describes configuration information for a DataSync-managed secret, such as an authentication token that DataSync uses to access a specific storage location, with a customer-managed KMS key."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Describes configuration information for a customer-managed secret, such as an authentication token that DataSync uses to access a specific storage location, with a customer-managed Identity and Access Management (IAM) role that provides access to the secret."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun?locationUri->fun?authenticationType->fun?blobType->fun?accessTier->fun?agentArns->fun?creationTime->fun?managedSecretConfig->fun?cmkSecretConfig->fun?customSecretConfig->fun()->{locationArn;locationUri;authenticationType;blobType;accessTier;agentArns;creationTime;managedSecretConfig;cmkSecretConfig;customSecretConfig}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value));("LocationUri",(Option.mapx.locationUri~f:LocationUri.to_value));("AuthenticationType",(Option.mapx.authenticationType~f:AzureBlobAuthenticationType.to_value));("BlobType",(Option.mapx.blobType~f:AzureBlobType.to_value));("AccessTier",(Option.mapx.accessTier~f:AzureAccessTier.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("ManagedSecretConfig",(Option.mapx.managedSecretConfig~f:ManagedSecretConfig.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletmanagedSecretConfig=(Option.map~f:ManagedSecretConfig.of_xml)(Xml.childxml_arg0"ManagedSecretConfig")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inletaccessTier=(Option.map~f:AzureAccessTier.of_xml)(Xml.childxml_arg0"AccessTier")inletblobType=(Option.map~f:AzureBlobType.of_xml)(Xml.childxml_arg0"BlobType")inletauthenticationType=(Option.map~f:AzureBlobAuthenticationType.of_xml)(Xml.childxml_arg0"AuthenticationType")inletlocationUri=(Option.map~f:LocationUri.of_xml)(Xml.childxml_arg0"LocationUri")inletlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?customSecretConfig?cmkSecretConfig?managedSecretConfig?creationTime?agentArns?accessTier?blobType?authenticationType?locationUri?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletmanagedSecretConfig=field_mapjson__"ManagedSecretConfig"ManagedSecretConfig.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninletaccessTier=field_mapjson__"AccessTier"AzureAccessTier.of_jsoninletblobType=field_mapjson__"BlobType"AzureBlobType.of_jsoninletauthenticationType=field_mapjson__"AuthenticationType"AzureBlobAuthenticationType.of_jsoninletlocationUri=field_mapjson__"LocationUri"LocationUri.of_jsoninletlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?customSecretConfig?cmkSecretConfig?managedSecretConfig?creationTime?agentArns?accessTier?blobType?authenticationType?locationUri?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for Microsoft Azure Blob Storage is configured."]moduleDescribeLocationAzureBlobRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of your Azure Blob Storage transfer location."]}letcontext_="DescribeLocationAzureBlobRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about how an DataSync transfer location for Microsoft Azure Blob Storage is configured."]moduleDescribeAgentResponse=structtypenonrect={agentArn:AgentArn.toption[@ocaml.doc"The ARN of the agent."];name:TagValue.toption[@ocaml.doc"The name of the agent."];status:AgentStatus.toption[@ocaml.doc"The status of the agent. If the status is ONLINE, the agent is configured properly and ready to use. If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline?"];lastConnectionTime:Time.toption[@ocaml.doc"The last time that the agent was communicating with the DataSync service."];creationTime:Time.toption[@ocaml.doc"The time that the agent was activated."];endpointType:EndpointType.toption[@ocaml.doc"The type of service endpoint that your agent is connected to."];privateLinkConfig:PrivateLinkConfig.toption[@ocaml.doc"The network configuration that the agent uses when connecting to a VPC service endpoint."];platform:Platform.toption[@ocaml.doc"The platform-related details about the agent, such as the version number."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?agentArn=fun?name->fun?status->fun?lastConnectionTime->fun?creationTime->fun?endpointType->fun?privateLinkConfig->fun?platform->fun()->{agentArn;name;status;lastConnectionTime;creationTime;endpointType;privateLinkConfig;platform}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AgentArn",(Option.mapx.agentArn~f:AgentArn.to_value));("Name",(Option.mapx.name~f:TagValue.to_value));("Status",(Option.mapx.status~f:AgentStatus.to_value));("LastConnectionTime",(Option.mapx.lastConnectionTime~f:Time.to_value));("CreationTime",(Option.mapx.creationTime~f:Time.to_value));("EndpointType",(Option.mapx.endpointType~f:EndpointType.to_value));("PrivateLinkConfig",(Option.mapx.privateLinkConfig~f:PrivateLinkConfig.to_value));("Platform",(Option.mapx.platform~f:Platform.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplatform=(Option.map~f:Platform.of_xml)(Xml.childxml_arg0"Platform")inletprivateLinkConfig=(Option.map~f:PrivateLinkConfig.of_xml)(Xml.childxml_arg0"PrivateLinkConfig")inletendpointType=(Option.map~f:EndpointType.of_xml)(Xml.childxml_arg0"EndpointType")inletcreationTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"CreationTime")inletlastConnectionTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"LastConnectionTime")inletstatus=(Option.map~f:AgentStatus.of_xml)(Xml.childxml_arg0"Status")inletname=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Name")inletagentArn=(Option.map~f:AgentArn.of_xml)(Xml.childxml_arg0"AgentArn")inmake?platform?privateLinkConfig?endpointType?creationTime?lastConnectionTime?status?name?agentArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplatform=field_mapjson__"Platform"Platform.of_jsoninletprivateLinkConfig=field_mapjson__"PrivateLinkConfig"PrivateLinkConfig.of_jsoninletendpointType=field_mapjson__"EndpointType"EndpointType.of_jsoninletcreationTime=field_mapjson__"CreationTime"Time.of_jsoninletlastConnectionTime=field_mapjson__"LastConnectionTime"Time.of_jsoninletstatus=field_mapjson__"Status"AgentStatus.of_jsoninletname=field_mapjson__"Name"TagValue.of_jsoninletagentArn=field_mapjson__"AgentArn"AgentArn.of_jsoninmake?platform?privateLinkConfig?endpointType?creationTime?lastConnectionTime?status?name?agentArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeAgentResponse"]moduleDescribeAgentRequest=structtypenonrect={agentArn:AgentArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the DataSync agent that you want information about."]}letcontext_="DescribeAgentRequest"letmake~agentArn=fun()->{agentArn}letto_valuex=structure_to_value[("AgentArn",(Some(AgentArn.to_valuex.agentArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentArn=AgentArn.of_xml(Xml.child_exn~context:context_xml_arg0"AgentArn")inmake~agentArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentArn=field_map_exnjson__"AgentArn"AgentArn.of_jsoninmake~agentArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DescribeAgent"]moduleDeleteTaskResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a transfer task resource from DataSync."]moduleDeleteTaskRequest=structtypenonrect={taskArn:TaskArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the task that you want to delete."]}letcontext_="DeleteTaskRequest"letmake~taskArn=fun()->{taskArn}letto_valuex=structure_to_value[("TaskArn",(Some(TaskArn.to_valuex.taskArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskArn=TaskArn.of_xml(Xml.child_exn~context:context_xml_arg0"TaskArn")inmake~taskArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskArn=field_map_exnjson__"TaskArn"TaskArn.of_jsoninmake~taskArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DeleteTask"]moduleDeleteLocationResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a transfer location resource from DataSync."]moduleDeleteLocationRequest=structtypenonrect={locationArn:LocationArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the location to delete."]}letcontext_="DeleteLocationRequest"letmake~locationArn=fun()->{locationArn}letto_valuex=structure_to_value[("LocationArn",(Some(LocationArn.to_valuex.locationArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"LocationArn")inmake~locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_map_exnjson__"LocationArn"LocationArn.of_jsoninmake~locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DeleteLocation"]moduleDeleteAgentResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes an DataSync agent resource from your Amazon Web Services account. Keep in mind that this operation (which can't be undone) doesn't remove the agent's virtual machine (VM) or Amazon EC2 instance from your storage environment. For next steps, you can delete the VM or instance from your storage environment or reuse it to activate a new agent."]moduleDeleteAgentRequest=structtypenonrect={agentArn:AgentArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the agent to delete. Use the ListAgents operation to return a list of agents for your account and Amazon Web Services Region."]}letcontext_="DeleteAgentRequest"letmake~agentArn=fun()->{agentArn}letto_valuex=structure_to_value[("AgentArn",(Some(AgentArn.to_valuex.agentArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentArn=AgentArn.of_xml(Xml.child_exn~context:context_xml_arg0"AgentArn")inmake~agentArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentArn=field_map_exnjson__"AgentArn"AgentArn.of_jsoninmake~agentArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"DeleteAgentRequest"]moduleCreateTaskResponse=structtypenonrect={taskArn:TaskArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the task."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskArn=fun()->{taskArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TaskArn",(Option.mapx.taskArn~f:TaskArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskArn=(Option.map~f:TaskArn.of_xml)(Xml.childxml_arg0"TaskArn")inmake?taskArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskArn=field_mapjson__"TaskArn"TaskArn.of_jsoninmake?taskArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateTaskResponse"]moduleCreateTaskRequest=structtypenonrect={sourceLocationArn:LocationArn.t[@ocaml.doc"Specifies the ARN of your transfer's source location."];destinationLocationArn:LocationArn.t[@ocaml.doc"Specifies the ARN of your transfer's destination location."];cloudWatchLogGroupArn:LogGroupArn.toption[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. For Enhanced mode tasks, you don't need to specify anything. DataSync automatically sends logs to a CloudWatch log group named /aws/datasync."];name:TagValue.toption[@ocaml.doc"Specifies the name of your task."];options:Options.toption[@ocaml.doc"Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options."];excludes:FilterList.toption[@ocaml.doc"Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters."];schedule:TaskSchedule.toption[@ocaml.doc"Specifies a schedule for when you want your task to run. For more information, see Scheduling your task."];tags:InputTagList.toption[@ocaml.doc"Specifies the tags that you want to apply to your task. Tags are key-value pairs that help you manage, filter, and search for your DataSync resources."];includes:FilterList.toption[@ocaml.doc"Specifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters."];manifestConfig:ManifestConfig.toption[@ocaml.doc"Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest. When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission."];taskReportConfig:TaskReportConfig.toption[@ocaml.doc"Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports. When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission."];taskMode:TaskMode.toption[@ocaml.doc"Specifies one of the following task modes for your data transfer: ENHANCED - Transfer virtually unlimited numbers of objects with higher performance than Basic mode. Enhanced mode tasks optimize the data transfer process by listing, preparing, transferring, and verifying data in parallel. Enhanced mode is currently available for transfers between Amazon S3 locations, transfers between Azure Blob and Amazon S3 without an agent, and transfers between other clouds and Amazon S3 without an agent. To create an Enhanced mode task, the IAM role that you use to call the CreateTask operation must have the iam:CreateServiceLinkedRole permission. BASIC (default) - Transfer files or objects between Amazon Web Services storage and all other supported DataSync locations. Basic mode tasks are subject to quotas on the number of files, objects, and directories in a dataset. Basic mode sequentially prepares, transfers, and verifies data, making it slower than Enhanced mode for most workloads. For more information, see Understanding task mode differences."]}letcontext_="CreateTaskRequest"letmake?cloudWatchLogGroupArn=fun?name->fun?options->fun?excludes->fun?schedule->fun?tags->fun?includes->fun?manifestConfig->fun?taskReportConfig->fun?taskMode->fun~sourceLocationArn->fun~destinationLocationArn->fun()->{cloudWatchLogGroupArn;name;options;excludes;schedule;tags;includes;manifestConfig;taskReportConfig;taskMode;sourceLocationArn;destinationLocationArn}letto_valuex=structure_to_value[("SourceLocationArn",(Some(LocationArn.to_valuex.sourceLocationArn)));("DestinationLocationArn",(Some(LocationArn.to_valuex.destinationLocationArn)));("CloudWatchLogGroupArn",(Option.mapx.cloudWatchLogGroupArn~f:LogGroupArn.to_value));("Name",(Option.mapx.name~f:TagValue.to_value));("Options",(Option.mapx.options~f:Options.to_value));("Excludes",(Option.mapx.excludes~f:FilterList.to_value));("Schedule",(Option.mapx.schedule~f:TaskSchedule.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value));("Includes",(Option.mapx.includes~f:FilterList.to_value));("ManifestConfig",(Option.mapx.manifestConfig~f:ManifestConfig.to_value));("TaskReportConfig",(Option.mapx.taskReportConfig~f:TaskReportConfig.to_value));("TaskMode",(Option.mapx.taskMode~f:TaskMode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskMode=(Option.map~f:TaskMode.of_xml)(Xml.childxml_arg0"TaskMode")inlettaskReportConfig=(Option.map~f:TaskReportConfig.of_xml)(Xml.childxml_arg0"TaskReportConfig")inletmanifestConfig=(Option.map~f:ManifestConfig.of_xml)(Xml.childxml_arg0"ManifestConfig")inletincludes=(Option.map~f:FilterList.of_xml)(Xml.childxml_arg0"Includes")inlettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletschedule=(Option.map~f:TaskSchedule.of_xml)(Xml.childxml_arg0"Schedule")inletexcludes=(Option.map~f:FilterList.of_xml)(Xml.childxml_arg0"Excludes")inletoptions=(Option.map~f:Options.of_xml)(Xml.childxml_arg0"Options")inletname=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Name")inletcloudWatchLogGroupArn=(Option.map~f:LogGroupArn.of_xml)(Xml.childxml_arg0"CloudWatchLogGroupArn")inletdestinationLocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"DestinationLocationArn")inletsourceLocationArn=LocationArn.of_xml(Xml.child_exn~context:context_xml_arg0"SourceLocationArn")inmake?taskMode?taskReportConfig?manifestConfig?includes?tags?schedule?excludes?options?name?cloudWatchLogGroupArn~destinationLocationArn~sourceLocationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskMode=field_mapjson__"TaskMode"TaskMode.of_jsoninlettaskReportConfig=field_mapjson__"TaskReportConfig"TaskReportConfig.of_jsoninletmanifestConfig=field_mapjson__"ManifestConfig"ManifestConfig.of_jsoninletincludes=field_mapjson__"Includes"FilterList.of_jsoninlettags=field_mapjson__"Tags"InputTagList.of_jsoninletschedule=field_mapjson__"Schedule"TaskSchedule.of_jsoninletexcludes=field_mapjson__"Excludes"FilterList.of_jsoninletoptions=field_mapjson__"Options"Options.of_jsoninletname=field_mapjson__"Name"TagValue.of_jsoninletcloudWatchLogGroupArn=field_mapjson__"CloudWatchLogGroupArn"LogGroupArn.of_jsoninletdestinationLocationArn=field_map_exnjson__"DestinationLocationArn"LocationArn.of_jsoninletsourceLocationArn=field_map_exnjson__"SourceLocationArn"LocationArn.of_jsoninmake?taskMode?taskReportConfig?manifestConfig?includes?tags?schedule?excludes?options?name?cloudWatchLogGroupArn~destinationLocationArn~sourceLocationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateTaskRequest"]moduleCreateLocationSmbResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the SMB location that you created."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateLocationSmbResponse"]moduleCreateLocationSmbRequest=structtypenonrect={subdirectory:SmbSubdirectory.t[@ocaml.doc"Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example, /path/to/subdirectory). Make sure that other SMB clients in your network can also mount this path. To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see Providing DataSync access to SMB file servers."];serverHostname:ServerHostname.t[@ocaml.doc"Specifies the domain name or IP address (IPv4 or IPv6) of the SMB file server that your DataSync agent connects to. If you're using Kerberos authentication, you must specify a domain name."];user:SmbUser.toption[@ocaml.doc"Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server. This parameter applies only if AuthenticationType is set to NTLM. For information about choosing a user with the right level of access for your transfer, see Providing DataSync access to SMB file servers."];domain:SmbDomain.toption[@ocaml.doc"Specifies the Windows domain name that your SMB file server belongs to. This parameter applies only if AuthenticationType is set to NTLM. If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server."];password:SmbPassword.toption[@ocaml.doc"Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer. This parameter applies only if AuthenticationType is set to NTLM."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, either a Password or KerberosKeytab (for NTLM (default) and KERBEROS authentication types, respectively) that DataSync uses to access a specific SMB storage location, with a customer-managed KMS key. When you include this parameter as part of a CreateLocationSmbRequest request, you provide only the KMS key ARN. DataSync uses this KMS key together with either the Password or KerberosKeytab you specify to create a DataSync-managed secret to store the location access credentials. Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key. You can use either CmkSecretConfig (with either Password or KerberosKeytab) or CustomSecretConfig (without any Password and KerberosKeytab) to provide credentials for a CreateLocationSmbRequest request. Do not provide both CmkSecretConfig and CustomSecretConfig parameters for the same request."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed Secrets Manager secret where the SMB storage location credentials is stored in Secrets Manager as plain text (for Password) or binary (for KerberosKeytab). This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage. You can use either CmkSecretConfig (with SasConfiguration) or CustomSecretConfig (without SasConfiguration) to provide credentials for a CreateLocationSmbRequest request. Do not provide both parameters for the same request."];agentArns:AgentArnList.t[@ocaml.doc"Specifies the DataSync agent (or agents) that can connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN)."];mountOptions:SmbMountOptions.toption[@ocaml.doc"Specifies the version of the SMB protocol that DataSync uses to access your SMB file server."];tags:InputTagList.toption[@ocaml.doc"Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location."];authenticationType:SmbAuthenticationType.toption[@ocaml.doc"Specifies the authentication protocol that DataSync uses to connect to your SMB file server. DataSync supports NTLM (default) and KERBEROS authentication. For more information, see Providing DataSync access to SMB file servers."];dnsIpAddresses:DnsIpList.toption[@ocaml.doc"Specifies the IPv4 or IPv6 addresses for the DNS servers that your SMB file server belongs to. This parameter applies only if AuthenticationType is set to KERBEROS. If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right SMB file server."];kerberosPrincipal:KerberosPrincipal.toption[@ocaml.doc"Specifies a Kerberos principal, which is an identity in your Kerberos realm that has permission to access the files, folders, and file metadata in your SMB file server. A Kerberos principal might look like HOST/kerberosuser\\@MYDOMAIN.ORG. Principal names are case sensitive. Your DataSync task execution will fail if the principal that you specify for this parameter doesn\226\128\153t exactly match the principal that you use to create the keytab file."];kerberosKeytab:KerberosKeytabFile.toption[@ocaml.doc"Specifies your Kerberos key table (keytab) file, which includes mappings between your Kerberos principal and encryption keys. To avoid task execution errors, make sure that the Kerberos principal that you use to create the keytab file matches exactly what you specify for KerberosPrincipal."];kerberosKrb5Conf:KerberosKrb5ConfFile.toption[@ocaml.doc"Specifies a Kerberos configuration file (krb5.conf) that defines your Kerberos realm configuration. The file must be base64 encoded. If you're using the CLI, the encoding is done for you."]}letcontext_="CreateLocationSmbRequest"letmake?user=fun?domain->fun?password->fun?cmkSecretConfig->fun?customSecretConfig->fun?mountOptions->fun?tags->fun?authenticationType->fun?dnsIpAddresses->fun?kerberosPrincipal->fun?kerberosKeytab->fun?kerberosKrb5Conf->fun~subdirectory->fun~serverHostname->fun~agentArns->fun()->{user;domain;password;cmkSecretConfig;customSecretConfig;mountOptions;tags;authenticationType;dnsIpAddresses;kerberosPrincipal;kerberosKeytab;kerberosKrb5Conf;subdirectory;serverHostname;agentArns}letto_valuex=structure_to_value[("Subdirectory",(Some(SmbSubdirectory.to_valuex.subdirectory)));("ServerHostname",(Some(ServerHostname.to_valuex.serverHostname)));("User",(Option.mapx.user~f:SmbUser.to_value));("Domain",(Option.mapx.domain~f:SmbDomain.to_value));("Password",(Option.mapx.password~f:SmbPassword.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value));("AgentArns",(Some(AgentArnList.to_valuex.agentArns)));("MountOptions",(Option.mapx.mountOptions~f:SmbMountOptions.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value));("AuthenticationType",(Option.mapx.authenticationType~f:SmbAuthenticationType.to_value));("DnsIpAddresses",(Option.mapx.dnsIpAddresses~f:DnsIpList.to_value));("KerberosPrincipal",(Option.mapx.kerberosPrincipal~f:KerberosPrincipal.to_value));("KerberosKeytab",(Option.mapx.kerberosKeytab~f:KerberosKeytabFile.to_value));("KerberosKrb5Conf",(Option.mapx.kerberosKrb5Conf~f:KerberosKrb5ConfFile.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkerberosKrb5Conf=(Option.map~f:KerberosKrb5ConfFile.of_xml)(Xml.childxml_arg0"KerberosKrb5Conf")inletkerberosKeytab=(Option.map~f:KerberosKeytabFile.of_xml)(Xml.childxml_arg0"KerberosKeytab")inletkerberosPrincipal=(Option.map~f:KerberosPrincipal.of_xml)(Xml.childxml_arg0"KerberosPrincipal")inletdnsIpAddresses=(Option.map~f:DnsIpList.of_xml)(Xml.childxml_arg0"DnsIpAddresses")inletauthenticationType=(Option.map~f:SmbAuthenticationType.of_xml)(Xml.childxml_arg0"AuthenticationType")inlettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletmountOptions=(Option.map~f:SmbMountOptions.of_xml)(Xml.childxml_arg0"MountOptions")inletagentArns=AgentArnList.of_xml(Xml.child_exn~context:context_xml_arg0"AgentArns")inletcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletpassword=(Option.map~f:SmbPassword.of_xml)(Xml.childxml_arg0"Password")inletdomain=(Option.map~f:SmbDomain.of_xml)(Xml.childxml_arg0"Domain")inletuser=(Option.map~f:SmbUser.of_xml)(Xml.childxml_arg0"User")inletserverHostname=ServerHostname.of_xml(Xml.child_exn~context:context_xml_arg0"ServerHostname")inletsubdirectory=SmbSubdirectory.of_xml(Xml.child_exn~context:context_xml_arg0"Subdirectory")inmake?kerberosKrb5Conf?kerberosKeytab?kerberosPrincipal?dnsIpAddresses?authenticationType?tags?mountOptions~agentArns?customSecretConfig?cmkSecretConfig?password?domain?user~serverHostname~subdirectory()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkerberosKrb5Conf=field_mapjson__"KerberosKrb5Conf"KerberosKrb5ConfFile.of_jsoninletkerberosKeytab=field_mapjson__"KerberosKeytab"KerberosKeytabFile.of_jsoninletkerberosPrincipal=field_mapjson__"KerberosPrincipal"KerberosPrincipal.of_jsoninletdnsIpAddresses=field_mapjson__"DnsIpAddresses"DnsIpList.of_jsoninletauthenticationType=field_mapjson__"AuthenticationType"SmbAuthenticationType.of_jsoninlettags=field_mapjson__"Tags"InputTagList.of_jsoninletmountOptions=field_mapjson__"MountOptions"SmbMountOptions.of_jsoninletagentArns=field_map_exnjson__"AgentArns"AgentArnList.of_jsoninletcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletpassword=field_mapjson__"Password"SmbPassword.of_jsoninletdomain=field_mapjson__"Domain"SmbDomain.of_jsoninletuser=field_mapjson__"User"SmbUser.of_jsoninletserverHostname=field_map_exnjson__"ServerHostname"ServerHostname.of_jsoninletsubdirectory=field_map_exnjson__"Subdirectory"SmbSubdirectory.of_jsoninmake?kerberosKrb5Conf?kerberosKeytab?kerberosPrincipal?dnsIpAddresses?authenticationType?tags?mountOptions~agentArns?customSecretConfig?cmkSecretConfig?password?domain?user~serverHostname~subdirectory()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateLocationSmbRequest"]moduleCreateLocationS3Response=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the S3 location that you created."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateLocationS3Response"]moduleCreateLocationS3Request=structtypenonrect={subdirectory:S3Subdirectory.toption[@ocaml.doc"Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location). DataSync can't transfer objects with a prefix that begins with a slash (/) or includes //, /./, or /../ patterns. For example: /photos photos//2006/January photos/./2006/February photos/../2006/March"];s3BucketArn:S3BucketArn.t[@ocaml.doc"Specifies the ARN of the S3 bucket that you want to use as a location. (When creating your DataSync task later, you specify whether this location is a transfer source or destination.) If your S3 bucket is located on an Outposts resource, you must specify an Amazon S3 access point. For more information, see Managing data access with Amazon S3 access points in the Amazon S3 User Guide."];s3StorageClass:S3StorageClass.toption[@ocaml.doc"Specifies the storage class that you want your objects to use when Amazon S3 is a transfer destination. For buckets in Amazon Web Services Regions, the storage class defaults to STANDARD. For buckets on Outposts, the storage class defaults to OUTPOSTS. For more information, see Storage class considerations with Amazon S3 transfers."];s3Config:S3Config.t;agentArns:AgentArnList.toption[@ocaml.doc"(Amazon S3 on Outposts only) Specifies the Amazon Resource Name (ARN) of the DataSync agent on your Outpost. For more information, see Deploy your DataSync agent on Outposts."];tags:InputTagList.toption[@ocaml.doc"Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your transfer location."]}letcontext_="CreateLocationS3Request"letmake?subdirectory=fun?s3StorageClass->fun?agentArns->fun?tags->fun~s3BucketArn->fun~s3Config->fun()->{subdirectory;s3StorageClass;agentArns;tags;s3BucketArn;s3Config}letto_valuex=structure_to_value[("Subdirectory",(Option.mapx.subdirectory~f:S3Subdirectory.to_value));("S3BucketArn",(Some(S3BucketArn.to_valuex.s3BucketArn)));("S3StorageClass",(Option.mapx.s3StorageClass~f:S3StorageClass.to_value));("S3Config",(Some(S3Config.to_valuex.s3Config)));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inlets3Config=S3Config.of_xml(Xml.child_exn~context:context_xml_arg0"S3Config")inlets3StorageClass=(Option.map~f:S3StorageClass.of_xml)(Xml.childxml_arg0"S3StorageClass")inlets3BucketArn=S3BucketArn.of_xml(Xml.child_exn~context:context_xml_arg0"S3BucketArn")inletsubdirectory=(Option.map~f:S3Subdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inmake?tags?agentArns~s3Config?s3StorageClass~s3BucketArn?subdirectory()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"InputTagList.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninlets3Config=field_map_exnjson__"S3Config"S3Config.of_jsoninlets3StorageClass=field_mapjson__"S3StorageClass"S3StorageClass.of_jsoninlets3BucketArn=field_map_exnjson__"S3BucketArn"S3BucketArn.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"S3Subdirectory.of_jsoninmake?tags?agentArns~s3Config?s3StorageClass~s3BucketArn?subdirectory()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateLocationS3Request"]moduleCreateLocationObjectStorageResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"Specifies the ARN of the object storage system location that you create."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateLocationObjectStorageResponse"]moduleCreateLocationObjectStorageRequest=structtypenonrect={serverHostname:ServerHostname.t[@ocaml.doc"Specifies the domain name or IP address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to."];serverPort:ObjectStorageServerPort.toption[@ocaml.doc"Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443)."];serverProtocol:ObjectStorageServerProtocol.toption[@ocaml.doc"Specifies the protocol that your object storage server uses to communicate. If not specified, the default value is HTTPS."];subdirectory:S3Subdirectory.toption[@ocaml.doc"Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix."];bucketName:ObjectStorageBucketName.t[@ocaml.doc"Specifies the name of the object storage bucket involved in the transfer."];accessKey:ObjectStorageAccessKey.toption[@ocaml.doc"Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server."];secretKey:ObjectStorageSecretKey.toption[@ocaml.doc"Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server. If you provide a secret using SecretKey, but do not provide secret configuration details using CmkSecretConfig or CustomSecretConfig, then DataSync stores the token using your Amazon Web Services account's Secrets Manager secret."];agentArns:AgentArnList.toption[@ocaml.doc"(Optional) Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter. Make sure you configure this parameter correctly when you first create your storage location. You cannot add or remove agents from a storage location after you create it."];tags:InputTagList.toption[@ocaml.doc"Specifies the key-value pair that represents a tag that you want to add to the resource. Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location."];serverCertificate:ObjectStorageCertificate.toption[@ocaml.doc"Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single .pem file with a full certificate chain (for example, file:///home/user/.ssh/object_storage_certificates.pem). The certificate chain might include: The object storage system's certificate All intermediate certificates (if there are any) The root certificate of the signing CA You can concatenate your certificates into a .pem file (which can be up to 32768 bytes before base64 encoding). The following example cat command creates an object_storage_certificates.pem file that includes three certificates: cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem To use this parameter, configure ServerProtocol to HTTPS."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, which includes the SecretKey that DataSync uses to access a specific object storage location, with a customer-managed KMS key. When you include this parameter as part of a CreateLocationObjectStorage request, you provide only the KMS key ARN. DataSync uses this KMS key together with the value you specify for the SecretKey parameter to create a DataSync-managed secret to store the location access credentials. Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key. You can use either CmkSecretConfig (with SecretKey) or CustomSecretConfig (without SecretKey) to provide credentials for a CreateLocationObjectStorage request. Do not provide both parameters for the same request."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed Secrets Manager secret where the secret key for a specific object storage location is stored in plain text, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage. You can use either CmkSecretConfig (with SecretKey) or CustomSecretConfig (without SecretKey) to provide credentials for a CreateLocationObjectStorage request. Do not provide both parameters for the same request."]}letcontext_="CreateLocationObjectStorageRequest"letmake?serverPort=fun?serverProtocol->fun?subdirectory->fun?accessKey->fun?secretKey->fun?agentArns->fun?tags->fun?serverCertificate->fun?cmkSecretConfig->fun?customSecretConfig->fun~serverHostname->fun~bucketName->fun()->{serverPort;serverProtocol;subdirectory;accessKey;secretKey;agentArns;tags;serverCertificate;cmkSecretConfig;customSecretConfig;serverHostname;bucketName}letto_valuex=structure_to_value[("ServerHostname",(Some(ServerHostname.to_valuex.serverHostname)));("ServerPort",(Option.mapx.serverPort~f:ObjectStorageServerPort.to_value));("ServerProtocol",(Option.mapx.serverProtocol~f:ObjectStorageServerProtocol.to_value));("Subdirectory",(Option.mapx.subdirectory~f:S3Subdirectory.to_value));("BucketName",(Some(ObjectStorageBucketName.to_valuex.bucketName)));("AccessKey",(Option.mapx.accessKey~f:ObjectStorageAccessKey.to_value));("SecretKey",(Option.mapx.secretKey~f:ObjectStorageSecretKey.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value));("ServerCertificate",(Option.mapx.serverCertificate~f:ObjectStorageCertificate.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletserverCertificate=(Option.map~f:ObjectStorageCertificate.of_xml)(Xml.childxml_arg0"ServerCertificate")inlettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inletsecretKey=(Option.map~f:ObjectStorageSecretKey.of_xml)(Xml.childxml_arg0"SecretKey")inletaccessKey=(Option.map~f:ObjectStorageAccessKey.of_xml)(Xml.childxml_arg0"AccessKey")inletbucketName=ObjectStorageBucketName.of_xml(Xml.child_exn~context:context_xml_arg0"BucketName")inletsubdirectory=(Option.map~f:S3Subdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletserverProtocol=(Option.map~f:ObjectStorageServerProtocol.of_xml)(Xml.childxml_arg0"ServerProtocol")inletserverPort=(Option.map~f:ObjectStorageServerPort.of_xml)(Xml.childxml_arg0"ServerPort")inletserverHostname=ServerHostname.of_xml(Xml.child_exn~context:context_xml_arg0"ServerHostname")inmake?customSecretConfig?cmkSecretConfig?serverCertificate?tags?agentArns?secretKey?accessKey~bucketName?subdirectory?serverProtocol?serverPort~serverHostname()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletserverCertificate=field_mapjson__"ServerCertificate"ObjectStorageCertificate.of_jsoninlettags=field_mapjson__"Tags"InputTagList.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninletsecretKey=field_mapjson__"SecretKey"ObjectStorageSecretKey.of_jsoninletaccessKey=field_mapjson__"AccessKey"ObjectStorageAccessKey.of_jsoninletbucketName=field_map_exnjson__"BucketName"ObjectStorageBucketName.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"S3Subdirectory.of_jsoninletserverProtocol=field_mapjson__"ServerProtocol"ObjectStorageServerProtocol.of_jsoninletserverPort=field_mapjson__"ServerPort"ObjectStorageServerPort.of_jsoninletserverHostname=field_map_exnjson__"ServerHostname"ServerHostname.of_jsoninmake?customSecretConfig?cmkSecretConfig?serverCertificate?tags?agentArns?secretKey?accessKey~bucketName?subdirectory?serverProtocol?serverPort~serverHostname()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateLocationObjectStorageRequest"]moduleCreateLocationNfsResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the transfer location that you created for your NFS file server."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateLocationNfsResponse"]moduleCreateLocationNfsRequest=structtypenonrect={subdirectory:NfsSubdirectory.t[@ocaml.doc"Specifies the export path in your NFS file server that you want DataSync to mount. This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers."];serverHostname:ServerHostname.t[@ocaml.doc"Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to."];onPremConfig:OnPremConfig.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server. You can specify more than one agent. For more information, see Using multiple DataSync agents."];mountOptions:NfsMountOptions.toption[@ocaml.doc"Specifies the options that DataSync can use to mount your NFS file server."];tags:InputTagList.toption[@ocaml.doc"Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location."]}letcontext_="CreateLocationNfsRequest"letmake?mountOptions=fun?tags->fun~subdirectory->fun~serverHostname->fun~onPremConfig->fun()->{mountOptions;tags;subdirectory;serverHostname;onPremConfig}letto_valuex=structure_to_value[("Subdirectory",(Some(NfsSubdirectory.to_valuex.subdirectory)));("ServerHostname",(Some(ServerHostname.to_valuex.serverHostname)));("OnPremConfig",(Some(OnPremConfig.to_valuex.onPremConfig)));("MountOptions",(Option.mapx.mountOptions~f:NfsMountOptions.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletmountOptions=(Option.map~f:NfsMountOptions.of_xml)(Xml.childxml_arg0"MountOptions")inletonPremConfig=OnPremConfig.of_xml(Xml.child_exn~context:context_xml_arg0"OnPremConfig")inletserverHostname=ServerHostname.of_xml(Xml.child_exn~context:context_xml_arg0"ServerHostname")inletsubdirectory=NfsSubdirectory.of_xml(Xml.child_exn~context:context_xml_arg0"Subdirectory")inmake?tags?mountOptions~onPremConfig~serverHostname~subdirectory()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"InputTagList.of_jsoninletmountOptions=field_mapjson__"MountOptions"NfsMountOptions.of_jsoninletonPremConfig=field_map_exnjson__"OnPremConfig"OnPremConfig.of_jsoninletserverHostname=field_map_exnjson__"ServerHostname"ServerHostname.of_jsoninletsubdirectory=field_map_exnjson__"Subdirectory"NfsSubdirectory.of_jsoninmake?tags?mountOptions~onPremConfig~serverHostname~subdirectory()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateLocationNfsRequest"]moduleCreateLocationHdfsResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the source HDFS cluster location that you create."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for a Hadoop Distributed File System (HDFS). DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses HDFS clusters."]moduleCreateLocationHdfsRequest=structtypenonrect={subdirectory:HdfsSubdirectory.toption[@ocaml.doc"A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster. If the subdirectory isn't specified, it will default to /."];nameNodes:HdfsNameNodeList.t[@ocaml.doc"The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode."];blockSize:HdfsBlockSize.toption[@ocaml.doc"The size of data blocks to write into the HDFS cluster. The block size must be a multiple of 512 bytes. The default block size is 128 mebibytes (MiB)."];replicationFactor:HdfsReplicationFactor.toption[@ocaml.doc"The number of DataNodes to replicate the data to when writing to the HDFS cluster. By default, data is replicated to three DataNodes."];kmsKeyProviderUri:KmsKeyProviderUri.toption[@ocaml.doc"The URI of the HDFS cluster's Key Management Server (KMS)."];qopConfiguration:QopConfiguration.toption[@ocaml.doc"The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster. If QopConfiguration isn't specified, RpcProtection and DataTransferProtection default to PRIVACY. If you set RpcProtection or DataTransferProtection, the other parameter assumes the same value."];authenticationType:HdfsAuthenticationType.t[@ocaml.doc"The type of authentication used to determine the identity of the user."];simpleUser:HdfsUser.toption[@ocaml.doc"The user name used to identify the client on the host operating system. If SIMPLE is specified for AuthenticationType, this parameter is required."];kerberosPrincipal:KerberosPrincipal.toption[@ocaml.doc"The Kerberos principal with access to the files and folders on the HDFS cluster. If KERBEROS is specified for AuthenticationType, this parameter is required."];kerberosKeytab:KerberosKeytabFile.toption[@ocaml.doc"The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. You can load the keytab from a file by providing the file's address. If KERBEROS is specified for AuthenticationType, this parameter is required."];kerberosKrb5Conf:KerberosKrb5ConfFile.toption[@ocaml.doc"The krb5.conf file that contains the Kerberos configuration information. You can load the krb5.conf file by providing the file's address. If you're using the CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text. If KERBEROS is specified for AuthenticationType, this parameter is required."];agentArns:AgentArnList.t[@ocaml.doc"The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster."];tags:InputTagList.toption[@ocaml.doc"The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, which includes the Kerberos keytab that DataSync uses to access a specific Hadoop Distributed File System (HDFS) storage location, with a customer-managed KMS key. When you include this parameter as part of a CreateLocationHdfs request, you provide only the KMS key ARN. DataSync uses this KMS key together with the KerberosKeytab you specify for to create a DataSync-managed secret to store the location access credentials. Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key. You can use either CmkSecretConfig (with KerberosKeytab) or CustomSecretConfig (without KerberosKeytab) to provide credentials for a CreateLocationHdfs request. Do not provide both parameters for the same request."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed Secrets Manager secret where the Kerberos keytab for the HDFS storage location is stored in binary, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage. You can use either CmkSecretConfig (with KerberosKeytab) or CustomSecretConfig (without KerberosKeytab) to provide credentials for a CreateLocationHdfs request. Do not provide both parameters for the same request."]}letcontext_="CreateLocationHdfsRequest"letmake?subdirectory=fun?blockSize->fun?replicationFactor->fun?kmsKeyProviderUri->fun?qopConfiguration->fun?simpleUser->fun?kerberosPrincipal->fun?kerberosKeytab->fun?kerberosKrb5Conf->fun?tags->fun?cmkSecretConfig->fun?customSecretConfig->fun~nameNodes->fun~authenticationType->fun~agentArns->fun()->{subdirectory;blockSize;replicationFactor;kmsKeyProviderUri;qopConfiguration;simpleUser;kerberosPrincipal;kerberosKeytab;kerberosKrb5Conf;tags;cmkSecretConfig;customSecretConfig;nameNodes;authenticationType;agentArns}letto_valuex=structure_to_value[("Subdirectory",(Option.mapx.subdirectory~f:HdfsSubdirectory.to_value));("NameNodes",(Some(HdfsNameNodeList.to_valuex.nameNodes)));("BlockSize",(Option.mapx.blockSize~f:HdfsBlockSize.to_value));("ReplicationFactor",(Option.mapx.replicationFactor~f:HdfsReplicationFactor.to_value));("KmsKeyProviderUri",(Option.mapx.kmsKeyProviderUri~f:KmsKeyProviderUri.to_value));("QopConfiguration",(Option.mapx.qopConfiguration~f:QopConfiguration.to_value));("AuthenticationType",(Some(HdfsAuthenticationType.to_valuex.authenticationType)));("SimpleUser",(Option.mapx.simpleUser~f:HdfsUser.to_value));("KerberosPrincipal",(Option.mapx.kerberosPrincipal~f:KerberosPrincipal.to_value));("KerberosKeytab",(Option.mapx.kerberosKeytab~f:KerberosKeytabFile.to_value));("KerberosKrb5Conf",(Option.mapx.kerberosKrb5Conf~f:KerberosKrb5ConfFile.to_value));("AgentArns",(Some(AgentArnList.to_valuex.agentArns)));("Tags",(Option.mapx.tags~f:InputTagList.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inlettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletagentArns=AgentArnList.of_xml(Xml.child_exn~context:context_xml_arg0"AgentArns")inletkerberosKrb5Conf=(Option.map~f:KerberosKrb5ConfFile.of_xml)(Xml.childxml_arg0"KerberosKrb5Conf")inletkerberosKeytab=(Option.map~f:KerberosKeytabFile.of_xml)(Xml.childxml_arg0"KerberosKeytab")inletkerberosPrincipal=(Option.map~f:KerberosPrincipal.of_xml)(Xml.childxml_arg0"KerberosPrincipal")inletsimpleUser=(Option.map~f:HdfsUser.of_xml)(Xml.childxml_arg0"SimpleUser")inletauthenticationType=HdfsAuthenticationType.of_xml(Xml.child_exn~context:context_xml_arg0"AuthenticationType")inletqopConfiguration=(Option.map~f:QopConfiguration.of_xml)(Xml.childxml_arg0"QopConfiguration")inletkmsKeyProviderUri=(Option.map~f:KmsKeyProviderUri.of_xml)(Xml.childxml_arg0"KmsKeyProviderUri")inletreplicationFactor=(Option.map~f:HdfsReplicationFactor.of_xml)(Xml.childxml_arg0"ReplicationFactor")inletblockSize=(Option.map~f:HdfsBlockSize.of_xml)(Xml.childxml_arg0"BlockSize")inletnameNodes=HdfsNameNodeList.of_xml(Xml.child_exn~context:context_xml_arg0"NameNodes")inletsubdirectory=(Option.map~f:HdfsSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inmake?customSecretConfig?cmkSecretConfig?tags~agentArns?kerberosKrb5Conf?kerberosKeytab?kerberosPrincipal?simpleUser~authenticationType?qopConfiguration?kmsKeyProviderUri?replicationFactor?blockSize~nameNodes?subdirectory()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninlettags=field_mapjson__"Tags"InputTagList.of_jsoninletagentArns=field_map_exnjson__"AgentArns"AgentArnList.of_jsoninletkerberosKrb5Conf=field_mapjson__"KerberosKrb5Conf"KerberosKrb5ConfFile.of_jsoninletkerberosKeytab=field_mapjson__"KerberosKeytab"KerberosKeytabFile.of_jsoninletkerberosPrincipal=field_mapjson__"KerberosPrincipal"KerberosPrincipal.of_jsoninletsimpleUser=field_mapjson__"SimpleUser"HdfsUser.of_jsoninletauthenticationType=field_map_exnjson__"AuthenticationType"HdfsAuthenticationType.of_jsoninletqopConfiguration=field_mapjson__"QopConfiguration"QopConfiguration.of_jsoninletkmsKeyProviderUri=field_mapjson__"KmsKeyProviderUri"KmsKeyProviderUri.of_jsoninletreplicationFactor=field_mapjson__"ReplicationFactor"HdfsReplicationFactor.of_jsoninletblockSize=field_mapjson__"BlockSize"HdfsBlockSize.of_jsoninletnameNodes=field_map_exnjson__"NameNodes"HdfsNameNodeList.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"HdfsSubdirectory.of_jsoninmake?customSecretConfig?cmkSecretConfig?tags~agentArns?kerberosKrb5Conf?kerberosKeytab?kerberosPrincipal?simpleUser~authenticationType?qopConfiguration?kmsKeyProviderUri?replicationFactor?blockSize~nameNodes?subdirectory()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for a Hadoop Distributed File System (HDFS). DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses HDFS clusters."]moduleCreateLocationFsxWindowsResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the FSx for Windows File Server file system location you created."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for an Amazon FSx for Windows File Server file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for Windows File Server file systems."]moduleCreateLocationFsxWindowsRequest=structtypenonrect={subdirectory:FsxWindowsSubdirectory.toption[@ocaml.doc"Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes data (depending on if this is a source or destination location)."];fsxFilesystemArn:FsxFilesystemArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system."];securityGroupArns:Ec2SecurityGroupArnList.t[@ocaml.doc"Specifies the ARNs of the Amazon EC2 security groups that provide access to your file system's preferred subnet. The security groups that you specify must be able to communicate with your file system's security groups. For information about configuring security groups for file system access, see the Amazon FSx for Windows File Server User Guide . If you choose a security group that doesn't allow connections from within itself, do one of the following: Configure the security group to allow it to communicate within itself. Choose a different security group that can communicate with the mount target's security group."];tags:InputTagList.toption[@ocaml.doc"Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location."];user:SmbUser.t[@ocaml.doc"Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system. For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations."];domain:SmbDomain.toption[@ocaml.doc"Specifies the name of the Windows domain that the FSx for Windows File Server file system belongs to. If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system."];password:SmbPassword.toption[@ocaml.doc"Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, which includes the password that DataSync uses to access a specific FSx Windows storage location, with a customer-managed KMS key. When you include this parameter as part of a CreateLocationFsxWindows request, you provide only the KMS key ARN. DataSync uses this KMS key together with the Password you specify for to create a DataSync-managed secret to store the location access credentials. Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key. You can use either CmkSecretConfig (with Password) or CustomSecretConfig (without Password) to provide credentials for a CreateLocationFsxWindows request. Do not provide both parameters for the same request."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed Secrets Manager secret where the password for an FSx for Windows File Server storage location is stored in plain text, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage. You can use either CmkSecretConfig (with Password) or CustomSecretConfig (without Password) to provide credentials for a CreateLocationFsxWindows request. Do not provide both parameters for the same request."]}letcontext_="CreateLocationFsxWindowsRequest"letmake?subdirectory=fun?tags->fun?domain->fun?password->fun?cmkSecretConfig->fun?customSecretConfig->fun~fsxFilesystemArn->fun~securityGroupArns->fun~user->fun()->{subdirectory;tags;domain;password;cmkSecretConfig;customSecretConfig;fsxFilesystemArn;securityGroupArns;user}letto_valuex=structure_to_value[("Subdirectory",(Option.mapx.subdirectory~f:FsxWindowsSubdirectory.to_value));("FsxFilesystemArn",(Some(FsxFilesystemArn.to_valuex.fsxFilesystemArn)));("SecurityGroupArns",(Some(Ec2SecurityGroupArnList.to_valuex.securityGroupArns)));("Tags",(Option.mapx.tags~f:InputTagList.to_value));("User",(Some(SmbUser.to_valuex.user)));("Domain",(Option.mapx.domain~f:SmbDomain.to_value));("Password",(Option.mapx.password~f:SmbPassword.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inletpassword=(Option.map~f:SmbPassword.of_xml)(Xml.childxml_arg0"Password")inletdomain=(Option.map~f:SmbDomain.of_xml)(Xml.childxml_arg0"Domain")inletuser=SmbUser.of_xml(Xml.child_exn~context:context_xml_arg0"User")inlettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletsecurityGroupArns=Ec2SecurityGroupArnList.of_xml(Xml.child_exn~context:context_xml_arg0"SecurityGroupArns")inletfsxFilesystemArn=FsxFilesystemArn.of_xml(Xml.child_exn~context:context_xml_arg0"FsxFilesystemArn")inletsubdirectory=(Option.map~f:FsxWindowsSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inmake?customSecretConfig?cmkSecretConfig?password?domain~user?tags~securityGroupArns~fsxFilesystemArn?subdirectory()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninletpassword=field_mapjson__"Password"SmbPassword.of_jsoninletdomain=field_mapjson__"Domain"SmbDomain.of_jsoninletuser=field_map_exnjson__"User"SmbUser.of_jsoninlettags=field_mapjson__"Tags"InputTagList.of_jsoninletsecurityGroupArns=field_map_exnjson__"SecurityGroupArns"Ec2SecurityGroupArnList.of_jsoninletfsxFilesystemArn=field_map_exnjson__"FsxFilesystemArn"FsxFilesystemArn.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"FsxWindowsSubdirectory.of_jsoninmake?customSecretConfig?cmkSecretConfig?password?domain~user?tags~securityGroupArns~fsxFilesystemArn?subdirectory()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for an Amazon FSx for Windows File Server file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for Windows File Server file systems."]moduleCreateLocationFsxOpenZfsResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the FSx for OpenZFS file system location that you created."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for an Amazon FSx for OpenZFS file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for OpenZFS file systems. Request parameters related to SMB aren't supported with the CreateLocationFsxOpenZfs operation."]moduleCreateLocationFsxOpenZfsRequest=structtypenonrect={fsxFilesystemArn:FsxFilesystemArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the FSx for OpenZFS file system."];protocol:FsxProtocol.t[@ocaml.doc"The type of protocol that DataSync uses to access your file system."];securityGroupArns:Ec2SecurityGroupArnList.t[@ocaml.doc"The ARNs of the security groups that are used to configure the FSx for OpenZFS file system."];subdirectory:FsxOpenZfsSubdirectory.toption[@ocaml.doc"A subdirectory in the location's path that must begin with /fsx. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location)."];tags:InputTagList.toption[@ocaml.doc"The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location."]}letcontext_="CreateLocationFsxOpenZfsRequest"letmake?subdirectory=fun?tags->fun~fsxFilesystemArn->fun~protocol->fun~securityGroupArns->fun()->{subdirectory;tags;fsxFilesystemArn;protocol;securityGroupArns}letto_valuex=structure_to_value[("FsxFilesystemArn",(Some(FsxFilesystemArn.to_valuex.fsxFilesystemArn)));("Protocol",(Some(FsxProtocol.to_valuex.protocol)));("SecurityGroupArns",(Some(Ec2SecurityGroupArnList.to_valuex.securityGroupArns)));("Subdirectory",(Option.mapx.subdirectory~f:FsxOpenZfsSubdirectory.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletsubdirectory=(Option.map~f:FsxOpenZfsSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletsecurityGroupArns=Ec2SecurityGroupArnList.of_xml(Xml.child_exn~context:context_xml_arg0"SecurityGroupArns")inletprotocol=FsxProtocol.of_xml(Xml.child_exn~context:context_xml_arg0"Protocol")inletfsxFilesystemArn=FsxFilesystemArn.of_xml(Xml.child_exn~context:context_xml_arg0"FsxFilesystemArn")inmake?tags?subdirectory~securityGroupArns~protocol~fsxFilesystemArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"InputTagList.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"FsxOpenZfsSubdirectory.of_jsoninletsecurityGroupArns=field_map_exnjson__"SecurityGroupArns"Ec2SecurityGroupArnList.of_jsoninletprotocol=field_map_exnjson__"Protocol"FsxProtocol.of_jsoninletfsxFilesystemArn=field_map_exnjson__"FsxFilesystemArn"FsxFilesystemArn.of_jsoninmake?tags?subdirectory~securityGroupArns~protocol~fsxFilesystemArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for an Amazon FSx for OpenZFS file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for OpenZFS file systems. Request parameters related to SMB aren't supported with the CreateLocationFsxOpenZfs operation."]moduleCreateLocationFsxOntapResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"Specifies the ARN of the FSx for ONTAP file system location that you create."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for an Amazon FSx for NetApp ONTAP file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for ONTAP file systems."]moduleCreateLocationFsxOntapRequest=structtypenonrect={protocol:FsxProtocol.t;securityGroupArns:Ec2SecurityGroupArnList.t[@ocaml.doc"Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet. The security groups must allow outbound traffic on the following ports (depending on the protocol you use): Network File System (NFS): TCP ports 111, 635, and 2049 Server Message Block (SMB): TCP port 445 Your file system's security groups must also allow inbound traffic on the same ports."];storageVirtualMachineArn:StorageVirtualMachineArn.t[@ocaml.doc"Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or from."];subdirectory:FsxOntapSubdirectory.toption[@ocaml.doc"Specifies a path to the file share in the SVM where you want to transfer data to or from. You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be /vol1, /vol1/tree1, or /share1. Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide."];tags:InputTagList.toption[@ocaml.doc"Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location."]}letcontext_="CreateLocationFsxOntapRequest"letmake?subdirectory=fun?tags->fun~protocol->fun~securityGroupArns->fun~storageVirtualMachineArn->fun()->{subdirectory;tags;protocol;securityGroupArns;storageVirtualMachineArn}letto_valuex=structure_to_value[("Protocol",(Some(FsxProtocol.to_valuex.protocol)));("SecurityGroupArns",(Some(Ec2SecurityGroupArnList.to_valuex.securityGroupArns)));("StorageVirtualMachineArn",(Some(StorageVirtualMachineArn.to_valuex.storageVirtualMachineArn)));("Subdirectory",(Option.mapx.subdirectory~f:FsxOntapSubdirectory.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletsubdirectory=(Option.map~f:FsxOntapSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletstorageVirtualMachineArn=StorageVirtualMachineArn.of_xml(Xml.child_exn~context:context_xml_arg0"StorageVirtualMachineArn")inletsecurityGroupArns=Ec2SecurityGroupArnList.of_xml(Xml.child_exn~context:context_xml_arg0"SecurityGroupArns")inletprotocol=FsxProtocol.of_xml(Xml.child_exn~context:context_xml_arg0"Protocol")inmake?tags?subdirectory~storageVirtualMachineArn~securityGroupArns~protocol()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"InputTagList.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"FsxOntapSubdirectory.of_jsoninletstorageVirtualMachineArn=field_map_exnjson__"StorageVirtualMachineArn"StorageVirtualMachineArn.of_jsoninletsecurityGroupArns=field_map_exnjson__"SecurityGroupArns"Ec2SecurityGroupArnList.of_jsoninletprotocol=field_map_exnjson__"Protocol"FsxProtocol.of_jsoninmake?tags?subdirectory~storageVirtualMachineArn~securityGroupArns~protocol()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for an Amazon FSx for NetApp ONTAP file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for ONTAP file systems."]moduleCreateLocationFsxLustreResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the FSx for Lustre file system location that you created."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for an Amazon FSx for Lustre file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for Lustre file systems."]moduleCreateLocationFsxLustreRequest=structtypenonrect={fsxFilesystemArn:FsxFilesystemArn.t[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the FSx for Lustre file system."];securityGroupArns:Ec2SecurityGroupArnList.t[@ocaml.doc"Specifies the Amazon Resource Names (ARNs) of up to five security groups that provide access to your FSx for Lustre file system. The security groups must be able to access the file system's ports. The file system must also allow access from the security groups. For information about file system access, see the Amazon FSx for Lustre User Guide ."];subdirectory:FsxLustreSubdirectory.toption[@ocaml.doc"Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories. When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (/)."];tags:InputTagList.toption[@ocaml.doc"Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location."]}letcontext_="CreateLocationFsxLustreRequest"letmake?subdirectory=fun?tags->fun~fsxFilesystemArn->fun~securityGroupArns->fun()->{subdirectory;tags;fsxFilesystemArn;securityGroupArns}letto_valuex=structure_to_value[("FsxFilesystemArn",(Some(FsxFilesystemArn.to_valuex.fsxFilesystemArn)));("SecurityGroupArns",(Some(Ec2SecurityGroupArnList.to_valuex.securityGroupArns)));("Subdirectory",(Option.mapx.subdirectory~f:FsxLustreSubdirectory.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletsubdirectory=(Option.map~f:FsxLustreSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletsecurityGroupArns=Ec2SecurityGroupArnList.of_xml(Xml.child_exn~context:context_xml_arg0"SecurityGroupArns")inletfsxFilesystemArn=FsxFilesystemArn.of_xml(Xml.child_exn~context:context_xml_arg0"FsxFilesystemArn")inmake?tags?subdirectory~securityGroupArns~fsxFilesystemArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"InputTagList.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"FsxLustreSubdirectory.of_jsoninletsecurityGroupArns=field_map_exnjson__"SecurityGroupArns"Ec2SecurityGroupArnList.of_jsoninletfsxFilesystemArn=field_map_exnjson__"FsxFilesystemArn"FsxFilesystemArn.of_jsoninmake?tags?subdirectory~securityGroupArns~fsxFilesystemArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for an Amazon FSx for Lustre file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for Lustre file systems."]moduleCreateLocationEfsResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon EFS file system location that you create."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateLocationEfs"]moduleCreateLocationEfsRequest=structtypenonrect={subdirectory:EfsSubdirectory.toption[@ocaml.doc"Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location). By default, DataSync uses the root directory (or access point if you provide one by using AccessPointArn). You can also include subdirectories using forward slashes (for example, /path/to/folder)."];efsFilesystemArn:EfsFilesystemArn.t[@ocaml.doc"Specifies the ARN for your Amazon EFS file system."];ec2Config:Ec2Config.t[@ocaml.doc"Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS file system's mount targets."];tags:InputTagList.toption[@ocaml.doc"Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location."];accessPointArn:EfsAccessPointArn.toption[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your Amazon EFS file system. For more information, see Accessing restricted file systems."];fileSystemAccessRoleArn:IamRoleArn.toption[@ocaml.doc"Specifies an Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system. For information on creating this role, see Creating a DataSync IAM role for file system access."];inTransitEncryption:EfsInTransitEncryption.toption[@ocaml.doc"Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system. If you specify an access point using AccessPointArn or an IAM role using FileSystemAccessRoleArn, you must set this parameter to TLS1_2."]}letcontext_="CreateLocationEfsRequest"letmake?subdirectory=fun?tags->fun?accessPointArn->fun?fileSystemAccessRoleArn->fun?inTransitEncryption->fun~efsFilesystemArn->fun~ec2Config->fun()->{subdirectory;tags;accessPointArn;fileSystemAccessRoleArn;inTransitEncryption;efsFilesystemArn;ec2Config}letto_valuex=structure_to_value[("Subdirectory",(Option.mapx.subdirectory~f:EfsSubdirectory.to_value));("EfsFilesystemArn",(Some(EfsFilesystemArn.to_valuex.efsFilesystemArn)));("Ec2Config",(Some(Ec2Config.to_valuex.ec2Config)));("Tags",(Option.mapx.tags~f:InputTagList.to_value));("AccessPointArn",(Option.mapx.accessPointArn~f:EfsAccessPointArn.to_value));("FileSystemAccessRoleArn",(Option.mapx.fileSystemAccessRoleArn~f:IamRoleArn.to_value));("InTransitEncryption",(Option.mapx.inTransitEncryption~f:EfsInTransitEncryption.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinTransitEncryption=(Option.map~f:EfsInTransitEncryption.of_xml)(Xml.childxml_arg0"InTransitEncryption")inletfileSystemAccessRoleArn=(Option.map~f:IamRoleArn.of_xml)(Xml.childxml_arg0"FileSystemAccessRoleArn")inletaccessPointArn=(Option.map~f:EfsAccessPointArn.of_xml)(Xml.childxml_arg0"AccessPointArn")inlettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletec2Config=Ec2Config.of_xml(Xml.child_exn~context:context_xml_arg0"Ec2Config")inletefsFilesystemArn=EfsFilesystemArn.of_xml(Xml.child_exn~context:context_xml_arg0"EfsFilesystemArn")inletsubdirectory=(Option.map~f:EfsSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inmake?inTransitEncryption?fileSystemAccessRoleArn?accessPointArn?tags~ec2Config~efsFilesystemArn?subdirectory()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinTransitEncryption=field_mapjson__"InTransitEncryption"EfsInTransitEncryption.of_jsoninletfileSystemAccessRoleArn=field_mapjson__"FileSystemAccessRoleArn"IamRoleArn.of_jsoninletaccessPointArn=field_mapjson__"AccessPointArn"EfsAccessPointArn.of_jsoninlettags=field_mapjson__"Tags"InputTagList.of_jsoninletec2Config=field_map_exnjson__"Ec2Config"Ec2Config.of_jsoninletefsFilesystemArn=field_map_exnjson__"EfsFilesystemArn"EfsFilesystemArn.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"EfsSubdirectory.of_jsoninmake?inTransitEncryption?fileSystemAccessRoleArn?accessPointArn?tags~ec2Config~efsFilesystemArn?subdirectory()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateLocationEfsRequest"]moduleCreateLocationAzureBlobResponse=structtypenonrect={locationArn:LocationArn.toption[@ocaml.doc"The ARN of the Azure Blob Storage transfer location that you created."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?locationArn=fun()->{locationArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("LocationArn",(Option.mapx.locationArn~f:LocationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocationArn=(Option.map~f:LocationArn.of_xml)(Xml.childxml_arg0"LocationArn")inmake?locationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocationArn=field_mapjson__"LocationArn"LocationArn.of_jsoninmake?locationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for a Microsoft Azure Blob Storage container. DataSync can use this location as a transfer source or destination. You can make transfers with or without a DataSync agent that connects to your container. Before you begin, make sure you know how DataSync accesses Azure Blob Storage and works with access tiers and blob types."]moduleCreateLocationAzureBlobRequest=structtypenonrect={containerUrl:AzureBlobContainerUrl.t[@ocaml.doc"Specifies the URL of the Azure Blob Storage container involved in your transfer."];authenticationType:AzureBlobAuthenticationType.t[@ocaml.doc"Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS)."];sasConfiguration:AzureBlobSasConfiguration.toption[@ocaml.doc"Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage. If you provide an authentication token using SasConfiguration, but do not provide secret configuration details using CmkSecretConfig or CustomSecretConfig, then DataSync stores the token using your Amazon Web Services account's secrets manager secret."];blobType:AzureBlobType.toption[@ocaml.doc"Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation."];accessTier:AzureAccessTier.toption[@ocaml.doc"Specifies the access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers."];subdirectory:AzureBlobSubdirectory.toption[@ocaml.doc"Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example, /my/images)."];agentArns:AgentArnList.toption[@ocaml.doc"(Optional) Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage container. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter. You can specify more than one agent. For more information, see Using multiple agents for your transfer. Make sure you configure this parameter correctly when you first create your storage location. You cannot add or remove agents from a storage location after you create it."];tags:InputTagList.toption[@ocaml.doc"Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your transfer location."];cmkSecretConfig:CmkSecretConfig.toption[@ocaml.doc"Specifies configuration information for a DataSync-managed secret, which includes the authentication token that DataSync uses to access a specific AzureBlob storage location, with a customer-managed KMS key. When you include this parameter as part of a CreateLocationAzureBlob request, you provide only the KMS key ARN. DataSync uses this KMS key together with the authentication token you specify for SasConfiguration to create a DataSync-managed secret to store the location access credentials. Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key. You can use either CmkSecretConfig (with SasConfiguration) or CustomSecretConfig (without SasConfiguration) to provide credentials for a CreateLocationAzureBlob request. Do not provide both parameters for the same request."];customSecretConfig:CustomSecretConfig.toption[@ocaml.doc"Specifies configuration information for a customer-managed Secrets Manager secret where the authentication token for an AzureBlob storage location is stored in plain text, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage. You can use either CmkSecretConfig (with SasConfiguration) or CustomSecretConfig (without SasConfiguration) to provide credentials for a CreateLocationAzureBlob request. Do not provide both parameters for the same request."]}letcontext_="CreateLocationAzureBlobRequest"letmake?sasConfiguration=fun?blobType->fun?accessTier->fun?subdirectory->fun?agentArns->fun?tags->fun?cmkSecretConfig->fun?customSecretConfig->fun~containerUrl->fun~authenticationType->fun()->{sasConfiguration;blobType;accessTier;subdirectory;agentArns;tags;cmkSecretConfig;customSecretConfig;containerUrl;authenticationType}letto_valuex=structure_to_value[("ContainerUrl",(Some(AzureBlobContainerUrl.to_valuex.containerUrl)));("AuthenticationType",(Some(AzureBlobAuthenticationType.to_valuex.authenticationType)));("SasConfiguration",(Option.mapx.sasConfiguration~f:AzureBlobSasConfiguration.to_value));("BlobType",(Option.mapx.blobType~f:AzureBlobType.to_value));("AccessTier",(Option.mapx.accessTier~f:AzureAccessTier.to_value));("Subdirectory",(Option.mapx.subdirectory~f:AzureBlobSubdirectory.to_value));("AgentArns",(Option.mapx.agentArns~f:AgentArnList.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value));("CmkSecretConfig",(Option.mapx.cmkSecretConfig~f:CmkSecretConfig.to_value));("CustomSecretConfig",(Option.mapx.customSecretConfig~f:CustomSecretConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomSecretConfig=(Option.map~f:CustomSecretConfig.of_xml)(Xml.childxml_arg0"CustomSecretConfig")inletcmkSecretConfig=(Option.map~f:CmkSecretConfig.of_xml)(Xml.childxml_arg0"CmkSecretConfig")inlettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletagentArns=(Option.map~f:AgentArnList.of_xml)(Xml.childxml_arg0"AgentArns")inletsubdirectory=(Option.map~f:AzureBlobSubdirectory.of_xml)(Xml.childxml_arg0"Subdirectory")inletaccessTier=(Option.map~f:AzureAccessTier.of_xml)(Xml.childxml_arg0"AccessTier")inletblobType=(Option.map~f:AzureBlobType.of_xml)(Xml.childxml_arg0"BlobType")inletsasConfiguration=(Option.map~f:AzureBlobSasConfiguration.of_xml)(Xml.childxml_arg0"SasConfiguration")inletauthenticationType=AzureBlobAuthenticationType.of_xml(Xml.child_exn~context:context_xml_arg0"AuthenticationType")inletcontainerUrl=AzureBlobContainerUrl.of_xml(Xml.child_exn~context:context_xml_arg0"ContainerUrl")inmake?customSecretConfig?cmkSecretConfig?tags?agentArns?subdirectory?accessTier?blobType?sasConfiguration~authenticationType~containerUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomSecretConfig=field_mapjson__"CustomSecretConfig"CustomSecretConfig.of_jsoninletcmkSecretConfig=field_mapjson__"CmkSecretConfig"CmkSecretConfig.of_jsoninlettags=field_mapjson__"Tags"InputTagList.of_jsoninletagentArns=field_mapjson__"AgentArns"AgentArnList.of_jsoninletsubdirectory=field_mapjson__"Subdirectory"AzureBlobSubdirectory.of_jsoninletaccessTier=field_mapjson__"AccessTier"AzureAccessTier.of_jsoninletblobType=field_mapjson__"BlobType"AzureBlobType.of_jsoninletsasConfiguration=field_mapjson__"SasConfiguration"AzureBlobSasConfiguration.of_jsoninletauthenticationType=field_map_exnjson__"AuthenticationType"AzureBlobAuthenticationType.of_jsoninletcontainerUrl=field_map_exnjson__"ContainerUrl"AzureBlobContainerUrl.of_jsoninmake?customSecretConfig?cmkSecretConfig?tags?agentArns?subdirectory?accessTier?blobType?sasConfiguration~authenticationType~containerUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a transfer location for a Microsoft Azure Blob Storage container. DataSync can use this location as a transfer source or destination. You can make transfers with or without a DataSync agent that connects to your container. Before you begin, make sure you know how DataSync accesses Azure Blob Storage and works with access tiers and blob types."]moduleCreateAgentResponse=structtypenonrect={agentArn:AgentArn.toption[@ocaml.doc"The ARN of the agent that you just activated. Use the ListAgents operation to return a list of agents in your Amazon Web Services account and Amazon Web Services Region."]}typenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?agentArn=fun()->{agentArn}leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AgentArn",(Option.mapx.agentArn~f:AgentArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentArn=(Option.map~f:AgentArn.of_xml)(Xml.childxml_arg0"AgentArn")inmake?agentArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentArn=field_mapjson__"AgentArn"AgentArn.of_jsoninmake?agentArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateAgentResponse"]moduleCreateAgentRequest=structtypenonrect={activationKey:ActivationKey.t[@ocaml.doc"Specifies your DataSync agent's activation key. If you don't have an activation key, see Activating your agent."];agentName:TagValue.toption[@ocaml.doc"Specifies a name for your agent. We recommend specifying a name that you can remember."];tags:InputTagList.toption[@ocaml.doc"Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least one tag for your agent."];vpcEndpointId:VpcEndpointId.toption[@ocaml.doc"Specifies the ID of the VPC service endpoint that you're using. For example, a VPC endpoint ID looks like vpce-01234d5aff67890e1. The VPC service endpoint you use must include the DataSync service name (for example, com.amazonaws.us-east-2.datasync)."];subnetArns:PLSubnetArnList.toption[@ocaml.doc"Specifies the ARN of the subnet where your VPC service endpoint is located. You can only specify one ARN."];securityGroupArns:PLSecurityGroupArnList.toption[@ocaml.doc"Specifies the Amazon Resource Name (ARN) of the security group that allows traffic between your agent and VPC service endpoint. You can only specify one ARN."]}letcontext_="CreateAgentRequest"letmake?agentName=fun?tags->fun?vpcEndpointId->fun?subnetArns->fun?securityGroupArns->fun~activationKey->fun()->{agentName;tags;vpcEndpointId;subnetArns;securityGroupArns;activationKey}letto_valuex=structure_to_value[("ActivationKey",(Some(ActivationKey.to_valuex.activationKey)));("AgentName",(Option.mapx.agentName~f:TagValue.to_value));("Tags",(Option.mapx.tags~f:InputTagList.to_value));("VpcEndpointId",(Option.mapx.vpcEndpointId~f:VpcEndpointId.to_value));("SubnetArns",(Option.mapx.subnetArns~f:PLSubnetArnList.to_value));("SecurityGroupArns",(Option.mapx.securityGroupArns~f:PLSecurityGroupArnList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecurityGroupArns=(Option.map~f:PLSecurityGroupArnList.of_xml)(Xml.childxml_arg0"SecurityGroupArns")inletsubnetArns=(Option.map~f:PLSubnetArnList.of_xml)(Xml.childxml_arg0"SubnetArns")inletvpcEndpointId=(Option.map~f:VpcEndpointId.of_xml)(Xml.childxml_arg0"VpcEndpointId")inlettags=(Option.map~f:InputTagList.of_xml)(Xml.childxml_arg0"Tags")inletagentName=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"AgentName")inletactivationKey=ActivationKey.of_xml(Xml.child_exn~context:context_xml_arg0"ActivationKey")inmake?securityGroupArns?subnetArns?vpcEndpointId?tags?agentName~activationKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecurityGroupArns=field_mapjson__"SecurityGroupArns"PLSecurityGroupArnList.of_jsoninletsubnetArns=field_mapjson__"SubnetArns"PLSubnetArnList.of_jsoninletvpcEndpointId=field_mapjson__"VpcEndpointId"VpcEndpointId.of_jsoninlettags=field_mapjson__"Tags"InputTagList.of_jsoninletagentName=field_mapjson__"AgentName"TagValue.of_jsoninletactivationKey=field_map_exnjson__"ActivationKey"ActivationKey.of_jsoninmake?securityGroupArns?subnetArns?vpcEndpointId?tags?agentName~activationKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CreateAgentRequest"]moduleCancelTaskExecutionResponse=structtypenonrect=unittypenonrecerror=[`InternalExceptionofInternalException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalException"->`InternalException(InternalException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalException"->`InternalException(InternalException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalExceptione->`Assoc[("error",(`String"InternalException"));("details",(InternalException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops an DataSync task execution that's in progress. The transfer of some files are abruptly interrupted. File contents that're transferred to the destination might be incomplete or inconsistent with the source files. However, if you start a new task execution using the same task and allow it to finish, file content on the destination will be complete and consistent. This applies to other unexpected failures that interrupt a task execution. In all of these cases, DataSync successfully completes the transfer when you start the next task execution."]moduleCancelTaskExecutionRequest=structtypenonrect={taskExecutionArn:TaskExecutionArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the task execution to stop."]}letcontext_="CancelTaskExecutionRequest"letmake~taskExecutionArn=fun()->{taskExecutionArn}letto_valuex=structure_to_value[("TaskExecutionArn",(Some(TaskExecutionArn.to_valuex.taskExecutionArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskExecutionArn=TaskExecutionArn.of_xml(Xml.child_exn~context:context_xml_arg0"TaskExecutionArn")inmake~taskExecutionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskExecutionArn=field_map_exnjson__"TaskExecutionArn"TaskExecutionArn.of_jsoninmake~taskExecutionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CancelTaskExecutionRequest"]