1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310(* 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.syntheticsletapiVersion="2017-10-11"letendpointPrefix="synthetics"letserviceFullName="Synthetics"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="Synthetics"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[]))])moduleBaseScreenshotConfigIgnoreCoordinate=structtypenonrect=stringletcontext_="BaseScreenshotConfigIgnoreCoordinate"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^(-?\\d{1,5}\\.?\\d{0,2},){3}(-?\\d{1,5}\\.?\\d{0,2}){1}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BaseScreenshotConfigIgnoreCoordinate"jletto_json=simple_to_jsonto_valueendmoduleBaseScreenshotIgnoreCoordinates=structtypenonrect=BaseScreenshotConfigIgnoreCoordinate.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(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:BaseScreenshotConfigIgnoreCoordinate.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:BaseScreenshotConfigIgnoreCoordinate.of_xml)letof_jsonj=list_of_json~kind:"BaseScreenshotIgnoreCoordinates"~of_json:BaseScreenshotConfigIgnoreCoordinate.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleDependencyType=structtypenonrect=|LambdaLayer|Non_static_idofstringletmakei=iletto_string=function|LambdaLayer->"LambdaLayer"|Non_static_ids->sletof_string=function|"LambdaLayer"->LambdaLayer|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 DependencyType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DependencyType"j)letto_json=simple_to_jsonto_valueendmoduleBaseScreenshot=structtypenonrect={screenshotName:String_.t[@ocaml.doc"The name of the screenshot. This is generated the first time the canary is run after the UpdateCanary operation that specified for this canary to perform visual monitoring."];ignoreCoordinates:BaseScreenshotIgnoreCoordinates.toption[@ocaml.doc"Coordinates that define the part of a screen to ignore during screenshot comparisons. To obtain the coordinates to use here, use the CloudWatch console to draw the boundaries on the screen. For more information, see Editing or deleting a canary"]}letcontext_="BaseScreenshot"letmake?ignoreCoordinates=fun~screenshotName->fun()->{ignoreCoordinates;screenshotName}letto_valuex=structure_to_value[("ScreenshotName",(Some(String_.to_valuex.screenshotName)));("IgnoreCoordinates",(Option.mapx.ignoreCoordinates~f:BaseScreenshotIgnoreCoordinates.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letignoreCoordinates=(Option.map~f:BaseScreenshotIgnoreCoordinates.of_xml)(Xml.childxml_arg0"IgnoreCoordinates")inletscreenshotName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"ScreenshotName")inmake?ignoreCoordinates~screenshotName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letignoreCoordinates=field_mapjson__"IgnoreCoordinates"BaseScreenshotIgnoreCoordinates.of_jsoninletscreenshotName=field_map_exnjson__"ScreenshotName"String_.of_jsoninmake?ignoreCoordinates~screenshotName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure representing a screenshot that is used as a baseline during visual monitoring comparisons made by the canary."]moduleEncryptionMode=structtypenonrect=|SSE_S3|SSE_KMS|Non_static_idofstringletmakei=iletto_string=function|SSE_S3->"SSE_S3"|SSE_KMS->"SSE_KMS"|Non_static_ids->sletof_string=function|"SSE_S3"->SSE_S3|"SSE_KMS"->SSE_KMS|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 EncryptionMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EncryptionMode"j)letto_json=simple_to_jsonto_valueendmoduleKmsKeyArn=structtypenonrect=stringletcontext_="KmsKeyArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:(aws[a-zA-Z-]*)?:kms:[a-z]{2,4}(-[a-z]{2,4})?-[a-z]+-\\d{1}:\\d{12}:key/[\\w\\-\\/]+")));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_valueendmoduleBrowserType=structtypenonrect=|CHROME|FIREFOX|Non_static_idofstringletmakei=iletto_string=function|CHROME->"CHROME"|FIREFOX->"FIREFOX"|Non_static_ids->sletof_string=function|"CHROME"->CHROME|"FIREFOX"->FIREFOX|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 BrowserType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"BrowserType"j)letto_json=simple_to_jsonto_valueendmoduleBlueprintType=structtypenonrect=stringletcontext_="BlueprintType"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(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:"BlueprintType"jletto_json=simple_to_jsonto_valueendmoduleDependency=structtypenonrect={type_:DependencyType.toption[@ocaml.doc"The type of dependency. Valid value is LambdaLayer."];reference:String_.t[@ocaml.doc"The dependency reference. For Lambda layers, this is the ARN of the Lambda layer. For more information about Lambda ARN format, see Lambda."]}letcontext_="Dependency"letmake?type_=fun~reference->fun()->{type_;reference}letto_valuex=structure_to_value[("Type",(Option.mapx.type_~f:DependencyType.to_value));("Reference",(Some(String_.to_valuex.reference)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreference=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Reference")inlettype_=(Option.map~f:DependencyType.of_xml)(Xml.childxml_arg0"Type")inmake~reference?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreference=field_map_exnjson__"Reference"String_.of_jsoninlettype_=field_mapjson__"Type"DependencyType.of_jsoninmake~reference?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about a dependency for a canary."]moduleMaxRetries=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:2)>>=(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 MaxRetries"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleFunctionArn=structtypenonrect=stringletcontext_="FunctionArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2,4}(-[a-z]{2,4})?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[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:"FunctionArn"jletto_json=simple_to_jsonto_valueendmoduleBaseScreenshots=structtypenonrect=BaseScreenshot.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BaseScreenshot.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:BaseScreenshot.of_xml)letof_jsonj=list_of_json~kind:"BaseScreenshots"~of_json:BaseScreenshot.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSecurityGroupId=structtypenonrect=stringletcontext_="SecurityGroupId"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:"SecurityGroupId"jletto_json=simple_to_jsonto_valueendmoduleSubnetId=structtypenonrect=stringletcontext_="SubnetId"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:"SubnetId"jletto_json=simple_to_jsonto_valueendmoduleUUID=structtypenonrect=stringletcontext_="UUID"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UUID"jletto_json=simple_to_jsonto_valueendmoduleCanaryRunState=structtypenonrect=|RUNNING|PASSED|FAILED|Non_static_idofstringletmakei=iletto_string=function|RUNNING->"RUNNING"|PASSED->"PASSED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"RUNNING"->RUNNING|"PASSED"->PASSED|"FAILED"->FAILED|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 CanaryRunState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CanaryRunState"j)letto_json=simple_to_jsonto_valueendmoduleCanaryRunStateReasonCode=structtypenonrect=|CANARY_FAILURE|EXECUTION_FAILURE|Non_static_idofstringletmakei=iletto_string=function|CANARY_FAILURE->"CANARY_FAILURE"|EXECUTION_FAILURE->"EXECUTION_FAILURE"|Non_static_ids->sletof_string=function|"CANARY_FAILURE"->CANARY_FAILURE|"EXECUTION_FAILURE"->EXECUTION_FAILURE|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 CanaryRunStateReasonCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CanaryRunStateReasonCode"j)letto_json=simple_to_jsonto_valueendmoduleCanaryRunTestResult=structtypenonrect=|PASSED|FAILED|UNKNOWN|Non_static_idofstringletmakei=iletto_string=function|PASSED->"PASSED"|FAILED->"FAILED"|UNKNOWN->"UNKNOWN"|Non_static_ids->sletof_string=function|"PASSED"->PASSED|"FAILED"->FAILED|"UNKNOWN"->UNKNOWN|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CanaryRunTestResult"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CanaryRunTestResult"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleS3EncryptionConfig=structtypenonrect={encryptionMode:EncryptionMode.toption[@ocaml.doc"The encryption method to use for artifacts created by this canary. Specify SSE_S3 to use server-side encryption (SSE) with an Amazon S3-managed key. Specify SSE-KMS to use server-side encryption with a customer-managed KMS key. If you omit this parameter, an Amazon Web Services-managed KMS key is used."];kmsKeyArn:KmsKeyArn.toption[@ocaml.doc"The ARN of the customer-managed KMS key to use, if you specify SSE-KMS for EncryptionMode"]}letmake?encryptionMode=fun?kmsKeyArn->fun()->{encryptionMode;kmsKeyArn}letto_valuex=structure_to_value[("EncryptionMode",(Option.mapx.encryptionMode~f:EncryptionMode.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")inletencryptionMode=(Option.map~f:EncryptionMode.of_xml)(Xml.childxml_arg0"EncryptionMode")inmake?kmsKeyArn?encryptionMode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkmsKeyArn=field_mapjson__"KmsKeyArn"KmsKeyArn.of_jsoninletencryptionMode=field_mapjson__"EncryptionMode"EncryptionMode.of_jsoninmake?kmsKeyArn?encryptionMode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the configuration of encryption-at-rest settings for canary artifacts that the canary uploads to Amazon S3. For more information, see Encrypting canary artifacts"]moduleBrowserConfig=structtypenonrect={browserType:BrowserType.toption[@ocaml.doc"The browser type associated with this browser configuration."]}letmake?browserType=fun()->{browserType}letto_valuex=structure_to_value[("BrowserType",(Option.mapx.browserType~f:BrowserType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbrowserType=(Option.map~f:BrowserType.of_xml)(Xml.childxml_arg0"BrowserType")inmake?browserType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbrowserType=field_mapjson__"BrowserType"BrowserType.of_jsoninmake?browserType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that specifies the browser type to use for a canary run."]moduleBlueprintTypes=structtypenonrect=BlueprintType.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:BlueprintType.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:BlueprintType.of_xml)letof_jsonj=list_of_json~kind:"BlueprintTypes"~of_json:BlueprintType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDependencies=structtypenonrect=Dependency.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:Dependency.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:Dependency.of_xml)letof_jsonj=list_of_json~kind:"Dependencies"~of_json:Dependency.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEphemeralStorageSize=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10240)>>=(fun()->check_int_mini~min:1024));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 EphemeralStorageSize"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMaxFifteenMinutesInSeconds=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:840)>>=(fun()->check_int_mini~min:3));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 MaxFifteenMinutesInSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMaxSize3008=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:3008)>>=(fun()->check_int_mini~min:960));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 MaxSize3008"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleNullableBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleMaxOneYearInSeconds=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith((check_int64_maxi~max:31622400L)>>=(fun()->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_valueendmoduleRetryConfigOutput=structtypenonrect={maxRetries:MaxRetries.toption[@ocaml.doc"The maximum number of retries. The value must be less than or equal to 2."]}letmake?maxRetries=fun()->{maxRetries}letto_valuex=structure_to_value[("MaxRetries",(Option.mapx.maxRetries~f:MaxRetries.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxRetries=(Option.map~f:MaxRetries.of_xml)(Xml.childxml_arg0"MaxRetries")inmake?maxRetries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxRetries=field_mapjson__"MaxRetries"MaxRetries.of_jsoninmake?maxRetries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about the canary's retry configuration."]moduleCanaryState=structtypenonrect=|CREATING|READY|STARTING|RUNNING|UPDATING|STOPPING|STOPPED|ERROR|DELETING|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|READY->"READY"|STARTING->"STARTING"|RUNNING->"RUNNING"|UPDATING->"UPDATING"|STOPPING->"STOPPING"|STOPPED->"STOPPED"|ERROR->"ERROR"|DELETING->"DELETING"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"READY"->READY|"STARTING"->STARTING|"RUNNING"->RUNNING|"UPDATING"->UPDATING|"STOPPING"->STOPPING|"STOPPED"->STOPPED|"ERROR"->ERROR|"DELETING"->DELETING|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 CanaryState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CanaryState"j)letto_json=simple_to_jsonto_valueendmoduleCanaryStateReasonCode=structtypenonrect=|INVALID_PERMISSIONS|CREATE_PENDING|CREATE_IN_PROGRESS|CREATE_FAILED|UPDATE_PENDING|UPDATE_IN_PROGRESS|UPDATE_COMPLETE|ROLLBACK_COMPLETE|ROLLBACK_FAILED|DELETE_IN_PROGRESS|DELETE_FAILED|SYNC_DELETE_IN_PROGRESS|Non_static_idofstringletmakei=iletto_string=function|INVALID_PERMISSIONS->"INVALID_PERMISSIONS"|CREATE_PENDING->"CREATE_PENDING"|CREATE_IN_PROGRESS->"CREATE_IN_PROGRESS"|CREATE_FAILED->"CREATE_FAILED"|UPDATE_PENDING->"UPDATE_PENDING"|UPDATE_IN_PROGRESS->"UPDATE_IN_PROGRESS"|UPDATE_COMPLETE->"UPDATE_COMPLETE"|ROLLBACK_COMPLETE->"ROLLBACK_COMPLETE"|ROLLBACK_FAILED->"ROLLBACK_FAILED"|DELETE_IN_PROGRESS->"DELETE_IN_PROGRESS"|DELETE_FAILED->"DELETE_FAILED"|SYNC_DELETE_IN_PROGRESS->"SYNC_DELETE_IN_PROGRESS"|Non_static_ids->sletof_string=function|"INVALID_PERMISSIONS"->INVALID_PERMISSIONS|"CREATE_PENDING"->CREATE_PENDING|"CREATE_IN_PROGRESS"->CREATE_IN_PROGRESS|"CREATE_FAILED"->CREATE_FAILED|"UPDATE_PENDING"->UPDATE_PENDING|"UPDATE_IN_PROGRESS"->UPDATE_IN_PROGRESS|"UPDATE_COMPLETE"->UPDATE_COMPLETE|"ROLLBACK_COMPLETE"->ROLLBACK_COMPLETE|"ROLLBACK_FAILED"->ROLLBACK_FAILED|"DELETE_IN_PROGRESS"->DELETE_IN_PROGRESS|"DELETE_FAILED"->DELETE_FAILED|"SYNC_DELETE_IN_PROGRESS"->SYNC_DELETE_IN_PROGRESS|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CanaryStateReasonCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CanaryStateReasonCode"j)letto_json=simple_to_jsonto_valueendmoduleEngineConfig=structtypenonrect={engineArn:FunctionArn.toption[@ocaml.doc"Each engine configuration contains the ARN of the Lambda function that is used as the canary's engine for a specific browser type."];browserType:BrowserType.toption[@ocaml.doc"The browser type associated with this engine configuration."]}letmake?engineArn=fun?browserType->fun()->{engineArn;browserType}letto_valuex=structure_to_value[("EngineArn",(Option.mapx.engineArn~f:FunctionArn.to_value));("BrowserType",(Option.mapx.browserType~f:BrowserType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbrowserType=(Option.map~f:BrowserType.of_xml)(Xml.childxml_arg0"BrowserType")inletengineArn=(Option.map~f:FunctionArn.of_xml)(Xml.childxml_arg0"EngineArn")inmake?browserType?engineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbrowserType=field_mapjson__"BrowserType"BrowserType.of_jsoninletengineArn=field_mapjson__"EngineArn"FunctionArn.of_jsoninmake?browserType?engineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure of engine configurations for the canary, one for each browser type that the canary is configured to run on."]moduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^(?!aws:)[a-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:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:256);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleVisualReferenceOutput=structtypenonrect={baseScreenshots:BaseScreenshots.toption[@ocaml.doc"An array of screenshots that are used as the baseline for comparisons during visual monitoring."];baseCanaryRunId:String_.toption[@ocaml.doc"The ID of the canary run that produced the baseline screenshots that are used for visual monitoring comparisons by this canary."];browserType:BrowserType.toption[@ocaml.doc"The browser type associated with this visual reference."]}letmake?baseScreenshots=fun?baseCanaryRunId->fun?browserType->fun()->{baseScreenshots;baseCanaryRunId;browserType}letto_valuex=structure_to_value[("BaseScreenshots",(Option.mapx.baseScreenshots~f:BaseScreenshots.to_value));("BaseCanaryRunId",(Option.mapx.baseCanaryRunId~f:String_.to_value));("BrowserType",(Option.mapx.browserType~f:BrowserType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbrowserType=(Option.map~f:BrowserType.of_xml)(Xml.childxml_arg0"BrowserType")inletbaseCanaryRunId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"BaseCanaryRunId")inletbaseScreenshots=(Option.map~f:BaseScreenshots.of_xml)(Xml.childxml_arg0"BaseScreenshots")inmake?browserType?baseCanaryRunId?baseScreenshots()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbrowserType=field_mapjson__"BrowserType"BrowserType.of_jsoninletbaseCanaryRunId=field_mapjson__"BaseCanaryRunId"String_.of_jsoninletbaseScreenshots=field_mapjson__"BaseScreenshots"BaseScreenshots.of_jsoninmake?browserType?baseCanaryRunId?baseScreenshots()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If this canary performs visual monitoring by comparing screenshots, this structure contains the ID of the canary run that is used as the baseline for screenshots, and the coordinates of any parts of those screenshots that are ignored during visual monitoring comparison. Visual monitoring is supported only on canaries running the syn-puppeteer-node-3.2 runtime or later."]moduleSecurityGroupIds=structtypenonrect=SecurityGroupId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:5)>>=(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:SecurityGroupId.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:SecurityGroupId.of_xml)letof_jsonj=list_of_json~kind:"SecurityGroupIds"~of_json:SecurityGroupId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSubnetIds=structtypenonrect=SubnetId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:16)>>=(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:SubnetId.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:SubnetId.of_xml)letof_jsonj=list_of_json~kind:"SubnetIds"~of_json:SubnetId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleVpcId=structtypenonrect=stringletcontext_="VpcId"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:"VpcId"jletto_json=simple_to_jsonto_valueendmoduleCanaryDryRunConfigOutput=structtypenonrect={dryRunId:UUID.toption[@ocaml.doc"The DryRunId associated with an existing canary\226\128\153s dry run. You can use this DryRunId to retrieve information about the dry run."]}letmake?dryRunId=fun()->{dryRunId}letto_valuex=structure_to_value[("DryRunId",(Option.mapx.dryRunId~f:UUID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdryRunId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"DryRunId")inmake?dryRunId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdryRunId=field_mapjson__"DryRunId"UUID.of_jsoninmake?dryRunId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the dry run configurations set for a canary."]moduleCanaryName=structtypenonrect=stringletcontext_="CanaryName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[0-9a-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:"CanaryName"jletto_json=simple_to_jsonto_valueendmoduleCanaryRunStatus=structtypenonrect={state:CanaryRunState.toption[@ocaml.doc"The current state of the run."];stateReason:String_.toption[@ocaml.doc"If run of the canary failed, this field contains the reason for the error."];stateReasonCode:CanaryRunStateReasonCode.toption[@ocaml.doc"If this value is CANARY_FAILURE, either the canary script failed or Synthetics ran into a fatal error when running the canary. For example, a canary timeout misconfiguration setting can cause the canary to timeout before Synthetics can evaluate its status. If this value is EXECUTION_FAILURE, a non-critical failure occurred such as failing to save generated debug artifacts (for example, screenshots or har files). If both types of failures occurred, the CANARY_FAILURE takes precedence. To understand the exact error, use the StateReason API."];testResult:CanaryRunTestResult.toption[@ocaml.doc"Specifies the status of canary script for this run. When Synthetics tries to determine the status but fails, the result is marked as UNKNOWN. For the overall status of canary run, see State."]}letmake?state=fun?stateReason->fun?stateReasonCode->fun?testResult->fun()->{state;stateReason;stateReasonCode;testResult}letto_valuex=structure_to_value[("State",(Option.mapx.state~f:CanaryRunState.to_value));("StateReason",(Option.mapx.stateReason~f:String_.to_value));("StateReasonCode",(Option.mapx.stateReasonCode~f:CanaryRunStateReasonCode.to_value));("TestResult",(Option.mapx.testResult~f:CanaryRunTestResult.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettestResult=(Option.map~f:CanaryRunTestResult.of_xml)(Xml.childxml_arg0"TestResult")inletstateReasonCode=(Option.map~f:CanaryRunStateReasonCode.of_xml)(Xml.childxml_arg0"StateReasonCode")inletstateReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StateReason")inletstate=(Option.map~f:CanaryRunState.of_xml)(Xml.childxml_arg0"State")inmake?testResult?stateReasonCode?stateReason?state()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettestResult=field_mapjson__"TestResult"CanaryRunTestResult.of_jsoninletstateReasonCode=field_mapjson__"StateReasonCode"CanaryRunStateReasonCode.of_jsoninletstateReason=field_mapjson__"StateReason"String_.of_jsoninletstate=field_mapjson__"State"CanaryRunState.of_jsoninmake?testResult?stateReasonCode?stateReason?state()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains the status information about a canary run."]moduleCanaryRunTimeline=structtypenonrect={started:Timestamp.toption[@ocaml.doc"The start time of the run."];completed:Timestamp.toption[@ocaml.doc"The end time of the run."];metricTimestampForRunAndRetries:Timestamp.toption[@ocaml.doc"The time at which the metrics will be generated for this run or retries."]}letmake?started=fun?completed->fun?metricTimestampForRunAndRetries->fun()->{started;completed;metricTimestampForRunAndRetries}letto_valuex=structure_to_value[("Started",(Option.mapx.started~f:Timestamp.to_value));("Completed",(Option.mapx.completed~f:Timestamp.to_value));("MetricTimestampForRunAndRetries",(Option.mapx.metricTimestampForRunAndRetries~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricTimestampForRunAndRetries=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"MetricTimestampForRunAndRetries")inletcompleted=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Completed")inletstarted=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Started")inmake?metricTimestampForRunAndRetries?completed?started()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricTimestampForRunAndRetries=field_mapjson__"MetricTimestampForRunAndRetries"Timestamp.of_jsoninletcompleted=field_mapjson__"Completed"Timestamp.of_jsoninletstarted=field_mapjson__"Started"Timestamp.of_jsoninmake?metricTimestampForRunAndRetries?completed?started()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains the start and end times of a single canary run."]moduleRetryAttempt=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:2)>>=(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 RetryAttempt"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleEnvironmentVariableName=structtypenonrect=stringletcontext_="EnvironmentVariableName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z]([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:"EnvironmentVariableName"jletto_json=simple_to_jsonto_valueendmoduleEnvironmentVariableValue=structtypenonrect=stringletcontext_="EnvironmentVariableValue"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:"EnvironmentVariableValue"jletto_json=simple_to_jsonto_valueendmoduleGroupArn=structtypenonrect=stringletcontext_="GroupArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2,4}(-[a-z]{2,4})?-[a-z]+-\\d{1}:\\d{12}:group:[0-9a-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:"GroupArn"jletto_json=simple_to_jsonto_valueendmoduleGroupName=structtypenonrect=stringletcontext_="GroupName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GroupName"jletto_json=simple_to_jsonto_valueendmoduleArtifactConfigOutput=structtypenonrect={s3Encryption:S3EncryptionConfig.toption[@ocaml.doc"A structure that contains the configuration of encryption settings for canary artifacts that are stored in Amazon S3."]}letmake?s3Encryption=fun()->{s3Encryption}letto_valuex=structure_to_value[("S3Encryption",(Option.mapx.s3Encryption~f:S3EncryptionConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3Encryption=(Option.map~f:S3EncryptionConfig.of_xml)(Xml.childxml_arg0"S3Encryption")inmake?s3Encryption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3Encryption=field_mapjson__"S3Encryption"S3EncryptionConfig.of_jsoninmake?s3Encryption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3."]moduleBrowserConfigs=structtypenonrect=BrowserConfig.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:2)>>=(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:BrowserConfig.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:BrowserConfig.of_xml)letof_jsonj=list_of_json~kind:"BrowserConfigs"~of_json:BrowserConfig.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCanaryCodeOutput=structtypenonrect={sourceLocationArn:String_.toption[@ocaml.doc"The ARN of the Lambda layer where Synthetics stores the canary script code."];handler:String_.toption[@ocaml.doc"The entry point to use for the source code when running the canary. This field is required when you don't specify BlueprintTypes and is not allowed when you specify BlueprintTypes."];blueprintTypes:BlueprintTypes.toption[@ocaml.doc"BlueprintTypes is a list of templates that enable simplified canary creation. You can create canaries for common monitoring scenarios by providing only a JSON configuration file instead of writing custom scripts. The only supported value is multi-checks. Multi-checks monitors HTTP/DNS/SSL/TCP endpoints with built-in authentication schemes (Basic, API Key, OAuth, SigV4) and assertion capabilities. When you specify BlueprintTypes, the Handler field cannot be specified since the blueprint provides a pre-defined entry point. BlueprintTypes is supported only on canaries for syn-nodejs-3.0 runtime or later."];dependencies:Dependencies.toption[@ocaml.doc"A list of dependencies that are used for running this canary. The dependencies are specified as a key-value pair, where the key is the type of dependency and the value is the dependency reference."]}letmake?sourceLocationArn=fun?handler->fun?blueprintTypes->fun?dependencies->fun()->{sourceLocationArn;handler;blueprintTypes;dependencies}letto_valuex=structure_to_value[("SourceLocationArn",(Option.mapx.sourceLocationArn~f:String_.to_value));("Handler",(Option.mapx.handler~f:String_.to_value));("BlueprintTypes",(Option.mapx.blueprintTypes~f:BlueprintTypes.to_value));("Dependencies",(Option.mapx.dependencies~f:Dependencies.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdependencies=(Option.map~f:Dependencies.of_xml)(Xml.childxml_arg0"Dependencies")inletblueprintTypes=(Option.map~f:BlueprintTypes.of_xml)(Xml.childxml_arg0"BlueprintTypes")inlethandler=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Handler")inletsourceLocationArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SourceLocationArn")inmake?dependencies?blueprintTypes?handler?sourceLocationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdependencies=field_mapjson__"Dependencies"Dependencies.of_jsoninletblueprintTypes=field_mapjson__"BlueprintTypes"BlueprintTypes.of_jsoninlethandler=field_mapjson__"Handler"String_.of_jsoninletsourceLocationArn=field_mapjson__"SourceLocationArn"String_.of_jsoninmake?dependencies?blueprintTypes?handler?sourceLocationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about the canary's Lambda handler and where its code is stored by CloudWatch Synthetics."]moduleCanaryRunConfigOutput=structtypenonrect={timeoutInSeconds:MaxFifteenMinutesInSeconds.toption[@ocaml.doc"How long the canary is allowed to run before it must stop."];memoryInMB:MaxSize3008.toption[@ocaml.doc"The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64."];activeTracing:NullableBoolean.toption[@ocaml.doc"Displays whether this canary run used active X-Ray tracing."];ephemeralStorage:EphemeralStorageSize.toption[@ocaml.doc"Specifies the amount of ephemeral storage (in MB) to allocate for the canary run during execution. This temporary storage is used for storing canary run artifacts (which are uploaded to an Amazon S3 bucket at the end of the run), and any canary browser operations. This temporary storage is cleared after the run is completed. Default storage value is 1024 MB."]}letmake?timeoutInSeconds=fun?memoryInMB->fun?activeTracing->fun?ephemeralStorage->fun()->{timeoutInSeconds;memoryInMB;activeTracing;ephemeralStorage}letto_valuex=structure_to_value[("TimeoutInSeconds",(Option.mapx.timeoutInSeconds~f:MaxFifteenMinutesInSeconds.to_value));("MemoryInMB",(Option.mapx.memoryInMB~f:MaxSize3008.to_value));("ActiveTracing",(Option.mapx.activeTracing~f:NullableBoolean.to_value));("EphemeralStorage",(Option.mapx.ephemeralStorage~f:EphemeralStorageSize.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letephemeralStorage=(Option.map~f:EphemeralStorageSize.of_xml)(Xml.childxml_arg0"EphemeralStorage")inletactiveTracing=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"ActiveTracing")inletmemoryInMB=(Option.map~f:MaxSize3008.of_xml)(Xml.childxml_arg0"MemoryInMB")inlettimeoutInSeconds=(Option.map~f:MaxFifteenMinutesInSeconds.of_xml)(Xml.childxml_arg0"TimeoutInSeconds")inmake?ephemeralStorage?activeTracing?memoryInMB?timeoutInSeconds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letephemeralStorage=field_mapjson__"EphemeralStorage"EphemeralStorageSize.of_jsoninletactiveTracing=field_mapjson__"ActiveTracing"NullableBoolean.of_jsoninletmemoryInMB=field_mapjson__"MemoryInMB"MaxSize3008.of_jsoninlettimeoutInSeconds=field_mapjson__"TimeoutInSeconds"MaxFifteenMinutesInSeconds.of_jsoninmake?ephemeralStorage?activeTracing?memoryInMB?timeoutInSeconds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about a canary run."]moduleCanaryScheduleOutput=structtypenonrect={expression:String_.toption[@ocaml.doc"A rate expression or a cron expression that defines how often the canary is to run. For a rate expression, The syntax is rate(number unit). unit can be minute, minutes, or hour. For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every 10 minutes, and rate(1 hour) runs it once every hour. You can specify a frequency between rate(1 minute) and rate(1 hour). Specifying rate(0 minute) or rate(0 hour) is a special value that causes the canary to run only once when it is started. Use cron(expression) to specify a cron expression. For information about the syntax for cron expressions, see Scheduling canary runs using cron."];durationInSeconds:MaxOneYearInSeconds.toption[@ocaml.doc"How long, in seconds, for the canary to continue making regular runs after it was created. The runs are performed according to the schedule in the Expression value."];retryConfig:RetryConfigOutput.toption[@ocaml.doc"A structure that contains the retry configuration for a canary"]}letmake?expression=fun?durationInSeconds->fun?retryConfig->fun()->{expression;durationInSeconds;retryConfig}letto_valuex=structure_to_value[("Expression",(Option.mapx.expression~f:String_.to_value));("DurationInSeconds",(Option.mapx.durationInSeconds~f:MaxOneYearInSeconds.to_value));("RetryConfig",(Option.mapx.retryConfig~f:RetryConfigOutput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryConfig=(Option.map~f:RetryConfigOutput.of_xml)(Xml.childxml_arg0"RetryConfig")inletdurationInSeconds=(Option.map~f:MaxOneYearInSeconds.of_xml)(Xml.childxml_arg0"DurationInSeconds")inletexpression=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Expression")inmake?retryConfig?durationInSeconds?expression()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryConfig=field_mapjson__"RetryConfig"RetryConfigOutput.of_jsoninletdurationInSeconds=field_mapjson__"DurationInSeconds"MaxOneYearInSeconds.of_jsoninletexpression=field_mapjson__"Expression"String_.of_jsoninmake?retryConfig?durationInSeconds?expression()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"How long, in seconds, for the canary to continue making regular runs according to the schedule in the Expression value."]moduleCanaryStatus=structtypenonrect={state:CanaryState.toption[@ocaml.doc"The current state of the canary."];stateReason:String_.toption[@ocaml.doc"If the canary creation or update failed, this field provides details on the failure."];stateReasonCode:CanaryStateReasonCode.toption[@ocaml.doc"If the canary creation or update failed, this field displays the reason code."]}letmake?state=fun?stateReason->fun?stateReasonCode->fun()->{state;stateReason;stateReasonCode}letto_valuex=structure_to_value[("State",(Option.mapx.state~f:CanaryState.to_value));("StateReason",(Option.mapx.stateReason~f:String_.to_value));("StateReasonCode",(Option.mapx.stateReasonCode~f:CanaryStateReasonCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateReasonCode=(Option.map~f:CanaryStateReasonCode.of_xml)(Xml.childxml_arg0"StateReasonCode")inletstateReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StateReason")inletstate=(Option.map~f:CanaryState.of_xml)(Xml.childxml_arg0"State")inmake?stateReasonCode?stateReason?state()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateReasonCode=field_mapjson__"StateReasonCode"CanaryStateReasonCode.of_jsoninletstateReason=field_mapjson__"StateReason"String_.of_jsoninletstate=field_mapjson__"State"CanaryState.of_jsoninmake?stateReasonCode?stateReason?state()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the current state of the canary."]moduleCanaryTimeline=structtypenonrect={created:Timestamp.toption[@ocaml.doc"The date and time the canary was created."];lastModified:Timestamp.toption[@ocaml.doc"The date and time the canary was most recently modified."];lastStarted:Timestamp.toption[@ocaml.doc"The date and time that the canary's most recent run started."];lastStopped:Timestamp.toption[@ocaml.doc"The date and time that the canary's most recent run ended."]}letmake?created=fun?lastModified->fun?lastStarted->fun?lastStopped->fun()->{created;lastModified;lastStarted;lastStopped}letto_valuex=structure_to_value[("Created",(Option.mapx.created~f:Timestamp.to_value));("LastModified",(Option.mapx.lastModified~f:Timestamp.to_value));("LastStarted",(Option.mapx.lastStarted~f:Timestamp.to_value));("LastStopped",(Option.mapx.lastStopped~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastStopped=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastStopped")inletlastStarted=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastStarted")inletlastModified=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastModified")inletcreated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Created")inmake?lastStopped?lastStarted?lastModified?created()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastStopped=field_mapjson__"LastStopped"Timestamp.of_jsoninletlastStarted=field_mapjson__"LastStarted"Timestamp.of_jsoninletlastModified=field_mapjson__"LastModified"Timestamp.of_jsoninletcreated=field_mapjson__"Created"Timestamp.of_jsoninmake?lastStopped?lastStarted?lastModified?created()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about when the canary was created and modified."]moduleDryRunConfigOutput=structtypenonrect={dryRunId:UUID.toption[@ocaml.doc"The DryRunId associated with an existing canary\226\128\153s dry run. You can use this DryRunId to retrieve information about the dry run."];lastDryRunExecutionStatus:String_.toption[@ocaml.doc"Returns the last execution status for a canary's dry run."]}letmake?dryRunId=fun?lastDryRunExecutionStatus->fun()->{dryRunId;lastDryRunExecutionStatus}letto_valuex=structure_to_value[("DryRunId",(Option.mapx.dryRunId~f:UUID.to_value));("LastDryRunExecutionStatus",(Option.mapx.lastDryRunExecutionStatus~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastDryRunExecutionStatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"LastDryRunExecutionStatus")inletdryRunId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"DryRunId")inmake?lastDryRunExecutionStatus?dryRunId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastDryRunExecutionStatus=field_mapjson__"LastDryRunExecutionStatus"String_.of_jsoninletdryRunId=field_mapjson__"DryRunId"UUID.of_jsoninmake?lastDryRunExecutionStatus?dryRunId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the dry run configurations set for a canary."]moduleEngineConfigs=structtypenonrect=EngineConfig.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EngineConfig.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:EngineConfig.of_xml)letof_jsonj=list_of_json~kind:"EngineConfigs"~of_json:EngineConfig.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxSize1024=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1024)>>=(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 MaxSize1024"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleProvisionedResourceCleanupSetting=structtypenonrect=|AUTOMATIC|OFF|Non_static_idofstringletmakei=iletto_string=function|AUTOMATIC->"AUTOMATIC"|OFF->"OFF"|Non_static_ids->sletof_string=function|"AUTOMATIC"->AUTOMATIC|"OFF"->OFF|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 ProvisionedResourceCleanupSetting"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ProvisionedResourceCleanupSetting"j)letto_json=simple_to_jsonto_valueendmoduleRoleArn=structtypenonrect=stringletcontext_="RoleArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoleArn"jletto_json=simple_to_jsonto_valueendmoduleTagMap=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleVisualReferencesOutput=structtypenonrect=VisualReferenceOutput.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:2)>>=(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:VisualReferenceOutput.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:VisualReferenceOutput.of_xml)letof_jsonj=list_of_json~kind:"VisualReferencesOutput"~of_json:VisualReferenceOutput.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleVpcConfigOutput=structtypenonrect={vpcId:VpcId.toption[@ocaml.doc"The IDs of the VPC where this canary is to run."];subnetIds:SubnetIds.toption[@ocaml.doc"The IDs of the subnets where this canary is to run."];securityGroupIds:SecurityGroupIds.toption[@ocaml.doc"The IDs of the security groups for this canary."];ipv6AllowedForDualStack:NullableBoolean.toption[@ocaml.doc"Indicates whether this canary allows outbound IPv6 traffic if it is connected to dual-stack subnets."]}letmake?vpcId=fun?subnetIds->fun?securityGroupIds->fun?ipv6AllowedForDualStack->fun()->{vpcId;subnetIds;securityGroupIds;ipv6AllowedForDualStack}letto_valuex=structure_to_value[("VpcId",(Option.mapx.vpcId~f:VpcId.to_value));("SubnetIds",(Option.mapx.subnetIds~f:SubnetIds.to_value));("SecurityGroupIds",(Option.mapx.securityGroupIds~f:SecurityGroupIds.to_value));("Ipv6AllowedForDualStack",(Option.mapx.ipv6AllowedForDualStack~f:NullableBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letipv6AllowedForDualStack=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"Ipv6AllowedForDualStack")inletsecurityGroupIds=(Option.map~f:SecurityGroupIds.of_xml)(Xml.childxml_arg0"SecurityGroupIds")inletsubnetIds=(Option.map~f:SubnetIds.of_xml)(Xml.childxml_arg0"SubnetIds")inletvpcId=(Option.map~f:VpcId.of_xml)(Xml.childxml_arg0"VpcId")inmake?ipv6AllowedForDualStack?securityGroupIds?subnetIds?vpcId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letipv6AllowedForDualStack=field_mapjson__"Ipv6AllowedForDualStack"NullableBoolean.of_jsoninletsecurityGroupIds=field_mapjson__"SecurityGroupIds"SecurityGroupIds.of_jsoninletsubnetIds=field_mapjson__"SubnetIds"SubnetIds.of_jsoninletvpcId=field_mapjson__"VpcId"VpcId.of_jsoninmake?ipv6AllowedForDualStack?securityGroupIds?subnetIds?vpcId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC."]moduleCanaryRun=structtypenonrect={id:UUID.toption[@ocaml.doc"A unique ID that identifies this canary run."];scheduledRunId:UUID.toption[@ocaml.doc"The ID of the scheduled canary run."];retryAttempt:RetryAttempt.toption[@ocaml.doc"The count in number of the retry attempt."];name:CanaryName.toption[@ocaml.doc"The name of the canary."];status:CanaryRunStatus.toption[@ocaml.doc"The status of this run."];timeline:CanaryRunTimeline.toption[@ocaml.doc"A structure that contains the start and end times of this run."];artifactS3Location:String_.toption[@ocaml.doc"The location where the canary stored artifacts from the run. Artifacts include the log file, screenshots, and HAR files."];dryRunConfig:CanaryDryRunConfigOutput.toption[@ocaml.doc"Returns the dry run configurations for a canary."];browserType:BrowserType.toption[@ocaml.doc"The browser type associated with this canary run."]}letmake?id=fun?scheduledRunId->fun?retryAttempt->fun?name->fun?status->fun?timeline->fun?artifactS3Location->fun?dryRunConfig->fun?browserType->fun()->{id;scheduledRunId;retryAttempt;name;status;timeline;artifactS3Location;dryRunConfig;browserType}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:UUID.to_value));("ScheduledRunId",(Option.mapx.scheduledRunId~f:UUID.to_value));("RetryAttempt",(Option.mapx.retryAttempt~f:RetryAttempt.to_value));("Name",(Option.mapx.name~f:CanaryName.to_value));("Status",(Option.mapx.status~f:CanaryRunStatus.to_value));("Timeline",(Option.mapx.timeline~f:CanaryRunTimeline.to_value));("ArtifactS3Location",(Option.mapx.artifactS3Location~f:String_.to_value));("DryRunConfig",(Option.mapx.dryRunConfig~f:CanaryDryRunConfigOutput.to_value));("BrowserType",(Option.mapx.browserType~f:BrowserType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbrowserType=(Option.map~f:BrowserType.of_xml)(Xml.childxml_arg0"BrowserType")inletdryRunConfig=(Option.map~f:CanaryDryRunConfigOutput.of_xml)(Xml.childxml_arg0"DryRunConfig")inletartifactS3Location=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ArtifactS3Location")inlettimeline=(Option.map~f:CanaryRunTimeline.of_xml)(Xml.childxml_arg0"Timeline")inletstatus=(Option.map~f:CanaryRunStatus.of_xml)(Xml.childxml_arg0"Status")inletname=(Option.map~f:CanaryName.of_xml)(Xml.childxml_arg0"Name")inletretryAttempt=(Option.map~f:RetryAttempt.of_xml)(Xml.childxml_arg0"RetryAttempt")inletscheduledRunId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"ScheduledRunId")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"Id")inmake?browserType?dryRunConfig?artifactS3Location?timeline?status?name?retryAttempt?scheduledRunId?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbrowserType=field_mapjson__"BrowserType"BrowserType.of_jsoninletdryRunConfig=field_mapjson__"DryRunConfig"CanaryDryRunConfigOutput.of_jsoninletartifactS3Location=field_mapjson__"ArtifactS3Location"String_.of_jsoninlettimeline=field_mapjson__"Timeline"CanaryRunTimeline.of_jsoninletstatus=field_mapjson__"Status"CanaryRunStatus.of_jsoninletname=field_mapjson__"Name"CanaryName.of_jsoninletretryAttempt=field_mapjson__"RetryAttempt"RetryAttempt.of_jsoninletscheduledRunId=field_mapjson__"ScheduledRunId"UUID.of_jsoninletid=field_mapjson__"Id"UUID.of_jsoninmake?browserType?dryRunConfig?artifactS3Location?timeline?status?name?retryAttempt?scheduledRunId?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains the details about one run of one canary."]moduleErrorMessage=structtypenonrect=stringletcontext_="ErrorMessage"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleBlob=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleCodeHandler=structtypenonrect=stringletcontext_="CodeHandler"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^(([0-9a-zA-Z_-]+(\\/|\\.))*[0-9A-Za-z_\\\\-]+(\\.|::)[A-Za-z_][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:"CodeHandler"jletto_json=simple_to_jsonto_valueendmoduleEnvironmentVariablesMap=structtypenonrect=(EnvironmentVariableName.t*EnvironmentVariableValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((EnvironmentVariableName.of_stringchopped),(EnvironmentVariableValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(EnvironmentVariableName.to_valuex)|>(funx->(EnvironmentVariableValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:EnvironmentVariableName.of_string~of_json:EnvironmentVariableValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRetryConfigInput=structtypenonrect={maxRetries:MaxRetries.t[@ocaml.doc"The maximum number of retries. The value must be less than or equal to 2."]}letcontext_="RetryConfigInput"letmake~maxRetries=fun()->{maxRetries}letto_valuex=structure_to_value[("MaxRetries",(Some(MaxRetries.to_valuex.maxRetries)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxRetries=MaxRetries.of_xml(Xml.child_exn~context:context_xml_arg0"MaxRetries")inmake~maxRetries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxRetries=field_map_exnjson__"MaxRetries"MaxRetries.of_jsoninmake~maxRetries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about the canary's retry configuration. The default account level concurrent execution limit from Lambda is 1000. When you have more than 1000 canaries, it's possible there are more than 1000 Lambda invocations due to retries and the console might hang. For more information on the Lambda execution limit, see Understanding Lambda function scaling. For canary with MaxRetries = 2, you need to set the CanaryRunConfigInput.TimeoutInSeconds to less than 600 seconds to avoid validation errors."]moduleVisualReferenceInput=structtypenonrect={baseScreenshots:BaseScreenshots.toption[@ocaml.doc"An array of screenshots that will be used as the baseline for visual monitoring in future runs of this canary. If there is a screenshot that you don't want to be used for visual monitoring, remove it from this array."];baseCanaryRunId:String_.t[@ocaml.doc"Specifies which canary run to use the screenshots from as the baseline for future visual monitoring with this canary. Valid values are nextrun to use the screenshots from the next run after this update is made, lastrun to use the screenshots from the most recent run before this update was made, or the value of Id in the CanaryRun from a run of this a canary in the past 31 days. If you specify the Id of a canary run older than 31 days, the operation returns a 400 validation exception error.."];browserType:BrowserType.toption[@ocaml.doc"The browser type associated with this visual reference."]}letcontext_="VisualReferenceInput"letmake?baseScreenshots=fun?browserType->fun~baseCanaryRunId->fun()->{baseScreenshots;browserType;baseCanaryRunId}letto_valuex=structure_to_value[("BaseScreenshots",(Option.mapx.baseScreenshots~f:BaseScreenshots.to_value));("BaseCanaryRunId",(Some(String_.to_valuex.baseCanaryRunId)));("BrowserType",(Option.mapx.browserType~f:BrowserType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbrowserType=(Option.map~f:BrowserType.of_xml)(Xml.childxml_arg0"BrowserType")inletbaseCanaryRunId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"BaseCanaryRunId")inletbaseScreenshots=(Option.map~f:BaseScreenshots.of_xml)(Xml.childxml_arg0"BaseScreenshots")inmake?browserType~baseCanaryRunId?baseScreenshots()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbrowserType=field_mapjson__"BrowserType"BrowserType.of_jsoninletbaseCanaryRunId=field_map_exnjson__"BaseCanaryRunId"String_.of_jsoninletbaseScreenshots=field_mapjson__"BaseScreenshots"BaseScreenshots.of_jsoninmake?browserType~baseCanaryRunId?baseScreenshots()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that specifies what screenshots to use as a baseline for visual monitoring by this canary. It can optionally also specify parts of the screenshots to ignore during the visual monitoring comparison. Visual monitoring is supported only on canaries running the syn-puppeteer-node-3.2 runtime or later. For more information, see Visual monitoring and Visual monitoring blueprint"]moduleGroupSummary=structtypenonrect={id:String_.toption[@ocaml.doc"The unique ID of the group."];name:GroupName.toption[@ocaml.doc"The name of the group."];arn:GroupArn.toption[@ocaml.doc"The ARN of the group."]}letmake?id=fun?name->fun?arn->fun()->{id;name;arn}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:String_.to_value));("Name",(Option.mapx.name~f:GroupName.to_value));("Arn",(Option.mapx.arn~f:GroupArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=(Option.map~f:GroupArn.of_xml)(Xml.childxml_arg0"Arn")inletname=(Option.map~f:GroupName.of_xml)(Xml.childxml_arg0"Name")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Id")inmake?arn?name?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_mapjson__"Arn"GroupArn.of_jsoninletname=field_mapjson__"Name"GroupName.of_jsoninletid=field_mapjson__"Id"String_.of_jsoninmake?arn?name?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure containing some information about a group."]moduleRuntimeVersion=structtypenonrect={versionName:String_.toption[@ocaml.doc"The name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions."];description:String_.toption[@ocaml.doc"A description of the runtime version, created by Amazon."];releaseDate:Timestamp.toption[@ocaml.doc"The date that the runtime version was released."];deprecationDate:Timestamp.toption[@ocaml.doc"If this runtime version is deprecated, this value is the date of deprecation."]}letmake?versionName=fun?description->fun?releaseDate->fun?deprecationDate->fun()->{versionName;description;releaseDate;deprecationDate}letto_valuex=structure_to_value[("VersionName",(Option.mapx.versionName~f:String_.to_value));("Description",(Option.mapx.description~f:String_.to_value));("ReleaseDate",(Option.mapx.releaseDate~f:Timestamp.to_value));("DeprecationDate",(Option.mapx.deprecationDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeprecationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"DeprecationDate")inletreleaseDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ReleaseDate")inletdescription=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Description")inletversionName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VersionName")inmake?deprecationDate?releaseDate?description?versionName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeprecationDate=field_mapjson__"DeprecationDate"Timestamp.of_jsoninletreleaseDate=field_mapjson__"ReleaseDate"Timestamp.of_jsoninletdescription=field_mapjson__"Description"String_.of_jsoninletversionName=field_mapjson__"VersionName"String_.of_jsoninmake?deprecationDate?releaseDate?description?versionName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about one canary runtime version. For more information about runtime versions, see Canary Runtime Versions."]moduleCanary=structtypenonrect={id:UUID.toption[@ocaml.doc"The unique ID of this canary."];name:CanaryName.toption[@ocaml.doc"The name of the canary."];code:CanaryCodeOutput.toption;executionRoleArn:RoleArn.toption[@ocaml.doc"The ARN of the IAM role used to run the canary. This role must include lambda.amazonaws.com as a principal in the trust policy."];schedule:CanaryScheduleOutput.toption[@ocaml.doc"A structure that contains information about how often the canary is to run, and when these runs are to stop."];runConfig:CanaryRunConfigOutput.toption;successRetentionPeriodInDays:MaxSize1024.toption[@ocaml.doc"The number of days to retain data about successful runs of this canary. This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console."];failureRetentionPeriodInDays:MaxSize1024.toption[@ocaml.doc"The number of days to retain data about failed runs of this canary. This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console."];status:CanaryStatus.toption[@ocaml.doc"A structure that contains information about the canary's status."];timeline:CanaryTimeline.toption[@ocaml.doc"A structure that contains information about when the canary was created, modified, and most recently run."];artifactS3Location:String_.toption[@ocaml.doc"The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary. Artifacts include the log file, screenshots, and HAR files."];engineArn:FunctionArn.toption[@ocaml.doc"The ARN of the Lambda function that is used as your canary's engine. For more information about Lambda ARN format, see Resources and Conditions for Lambda Actions."];runtimeVersion:String_.toption[@ocaml.doc"Specifies the runtime version to use for the canary. For more information about runtime versions, see Canary Runtime Versions."];vpcConfig:VpcConfigOutput.toption;visualReference:VisualReferenceOutput.toption[@ocaml.doc"If this canary performs visual monitoring by comparing screenshots, this structure contains the ID of the canary run to use as the baseline for screenshots, and the coordinates of any parts of the screen to ignore during the visual monitoring comparison."];provisionedResourceCleanup:ProvisionedResourceCleanupSetting.toption[@ocaml.doc"Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If it is AUTOMATIC, the Lambda functions and layers will be deleted when the canary is deleted. If the value of this parameter is OFF, then the value of the DeleteLambda parameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted."];browserConfigs:BrowserConfigs.toption[@ocaml.doc"A structure that specifies the browser type to use for a canary run. CloudWatch Synthetics supports running canaries on both CHROME and FIREFOX browsers. If not specified, browserConfigs defaults to Chrome."];engineConfigs:EngineConfigs.toption[@ocaml.doc"A list of engine configurations for the canary, one for each browser type that the canary is configured to run on. All runtime versions syn-nodejs-puppeteer-11.0 and above, and syn-nodejs-playwright-3.0 and above, use engineConfigs only. You can no longer use engineArn in these versions. Runtime versions older than syn-nodejs-puppeteer-11.0 and syn-nodejs-playwright-3.0 continue to support engineArn to ensure backward compatibility."];visualReferences:VisualReferencesOutput.toption[@ocaml.doc"A list of visual reference configurations for the canary, one for each browser type that the canary is configured to run on. Visual references are used for visual monitoring comparisons. syn-nodejs-puppeteer-11.0 and above, and syn-nodejs-playwright-3.0 and above, only supports visualReferences. visualReference field is not supported. Versions older than syn-nodejs-puppeteer-11.0 supports both visualReference and visualReferences for backward compatibility. It is recommended to use visualReferences for consistency and future compatibility."];tags:TagMap.toption[@ocaml.doc"The list of key-value pairs that are associated with the canary."];artifactConfig:ArtifactConfigOutput.toption[@ocaml.doc"A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3."];dryRunConfig:DryRunConfigOutput.toption[@ocaml.doc"Returns the dry run configurations for a canary."]}letmake?id=fun?name->fun?code->fun?executionRoleArn->fun?schedule->fun?runConfig->fun?successRetentionPeriodInDays->fun?failureRetentionPeriodInDays->fun?status->fun?timeline->fun?artifactS3Location->fun?engineArn->fun?runtimeVersion->fun?vpcConfig->fun?visualReference->fun?provisionedResourceCleanup->fun?browserConfigs->fun?engineConfigs->fun?visualReferences->fun?tags->fun?artifactConfig->fun?dryRunConfig->fun()->{id;name;code;executionRoleArn;schedule;runConfig;successRetentionPeriodInDays;failureRetentionPeriodInDays;status;timeline;artifactS3Location;engineArn;runtimeVersion;vpcConfig;visualReference;provisionedResourceCleanup;browserConfigs;engineConfigs;visualReferences;tags;artifactConfig;dryRunConfig}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:UUID.to_value));("Name",(Option.mapx.name~f:CanaryName.to_value));("Code",(Option.mapx.code~f:CanaryCodeOutput.to_value));("ExecutionRoleArn",(Option.mapx.executionRoleArn~f:RoleArn.to_value));("Schedule",(Option.mapx.schedule~f:CanaryScheduleOutput.to_value));("RunConfig",(Option.mapx.runConfig~f:CanaryRunConfigOutput.to_value));("SuccessRetentionPeriodInDays",(Option.mapx.successRetentionPeriodInDays~f:MaxSize1024.to_value));("FailureRetentionPeriodInDays",(Option.mapx.failureRetentionPeriodInDays~f:MaxSize1024.to_value));("Status",(Option.mapx.status~f:CanaryStatus.to_value));("Timeline",(Option.mapx.timeline~f:CanaryTimeline.to_value));("ArtifactS3Location",(Option.mapx.artifactS3Location~f:String_.to_value));("EngineArn",(Option.mapx.engineArn~f:FunctionArn.to_value));("RuntimeVersion",(Option.mapx.runtimeVersion~f:String_.to_value));("VpcConfig",(Option.mapx.vpcConfig~f:VpcConfigOutput.to_value));("VisualReference",(Option.mapx.visualReference~f:VisualReferenceOutput.to_value));("ProvisionedResourceCleanup",(Option.mapx.provisionedResourceCleanup~f:ProvisionedResourceCleanupSetting.to_value));("BrowserConfigs",(Option.mapx.browserConfigs~f:BrowserConfigs.to_value));("EngineConfigs",(Option.mapx.engineConfigs~f:EngineConfigs.to_value));("VisualReferences",(Option.mapx.visualReferences~f:VisualReferencesOutput.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("ArtifactConfig",(Option.mapx.artifactConfig~f:ArtifactConfigOutput.to_value));("DryRunConfig",(Option.mapx.dryRunConfig~f:DryRunConfigOutput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdryRunConfig=(Option.map~f:DryRunConfigOutput.of_xml)(Xml.childxml_arg0"DryRunConfig")inletartifactConfig=(Option.map~f:ArtifactConfigOutput.of_xml)(Xml.childxml_arg0"ArtifactConfig")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletvisualReferences=(Option.map~f:VisualReferencesOutput.of_xml)(Xml.childxml_arg0"VisualReferences")inletengineConfigs=(Option.map~f:EngineConfigs.of_xml)(Xml.childxml_arg0"EngineConfigs")inletbrowserConfigs=(Option.map~f:BrowserConfigs.of_xml)(Xml.childxml_arg0"BrowserConfigs")inletprovisionedResourceCleanup=(Option.map~f:ProvisionedResourceCleanupSetting.of_xml)(Xml.childxml_arg0"ProvisionedResourceCleanup")inletvisualReference=(Option.map~f:VisualReferenceOutput.of_xml)(Xml.childxml_arg0"VisualReference")inletvpcConfig=(Option.map~f:VpcConfigOutput.of_xml)(Xml.childxml_arg0"VpcConfig")inletruntimeVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"RuntimeVersion")inletengineArn=(Option.map~f:FunctionArn.of_xml)(Xml.childxml_arg0"EngineArn")inletartifactS3Location=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ArtifactS3Location")inlettimeline=(Option.map~f:CanaryTimeline.of_xml)(Xml.childxml_arg0"Timeline")inletstatus=(Option.map~f:CanaryStatus.of_xml)(Xml.childxml_arg0"Status")inletfailureRetentionPeriodInDays=(Option.map~f:MaxSize1024.of_xml)(Xml.childxml_arg0"FailureRetentionPeriodInDays")inletsuccessRetentionPeriodInDays=(Option.map~f:MaxSize1024.of_xml)(Xml.childxml_arg0"SuccessRetentionPeriodInDays")inletrunConfig=(Option.map~f:CanaryRunConfigOutput.of_xml)(Xml.childxml_arg0"RunConfig")inletschedule=(Option.map~f:CanaryScheduleOutput.of_xml)(Xml.childxml_arg0"Schedule")inletexecutionRoleArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"ExecutionRoleArn")inletcode=(Option.map~f:CanaryCodeOutput.of_xml)(Xml.childxml_arg0"Code")inletname=(Option.map~f:CanaryName.of_xml)(Xml.childxml_arg0"Name")inletid=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"Id")inmake?dryRunConfig?artifactConfig?tags?visualReferences?engineConfigs?browserConfigs?provisionedResourceCleanup?visualReference?vpcConfig?runtimeVersion?engineArn?artifactS3Location?timeline?status?failureRetentionPeriodInDays?successRetentionPeriodInDays?runConfig?schedule?executionRoleArn?code?name?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdryRunConfig=field_mapjson__"DryRunConfig"DryRunConfigOutput.of_jsoninletartifactConfig=field_mapjson__"ArtifactConfig"ArtifactConfigOutput.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletvisualReferences=field_mapjson__"VisualReferences"VisualReferencesOutput.of_jsoninletengineConfigs=field_mapjson__"EngineConfigs"EngineConfigs.of_jsoninletbrowserConfigs=field_mapjson__"BrowserConfigs"BrowserConfigs.of_jsoninletprovisionedResourceCleanup=field_mapjson__"ProvisionedResourceCleanup"ProvisionedResourceCleanupSetting.of_jsoninletvisualReference=field_mapjson__"VisualReference"VisualReferenceOutput.of_jsoninletvpcConfig=field_mapjson__"VpcConfig"VpcConfigOutput.of_jsoninletruntimeVersion=field_mapjson__"RuntimeVersion"String_.of_jsoninletengineArn=field_mapjson__"EngineArn"FunctionArn.of_jsoninletartifactS3Location=field_mapjson__"ArtifactS3Location"String_.of_jsoninlettimeline=field_mapjson__"Timeline"CanaryTimeline.of_jsoninletstatus=field_mapjson__"Status"CanaryStatus.of_jsoninletfailureRetentionPeriodInDays=field_mapjson__"FailureRetentionPeriodInDays"MaxSize1024.of_jsoninletsuccessRetentionPeriodInDays=field_mapjson__"SuccessRetentionPeriodInDays"MaxSize1024.of_jsoninletrunConfig=field_mapjson__"RunConfig"CanaryRunConfigOutput.of_jsoninletschedule=field_mapjson__"Schedule"CanaryScheduleOutput.of_jsoninletexecutionRoleArn=field_mapjson__"ExecutionRoleArn"RoleArn.of_jsoninletcode=field_mapjson__"Code"CanaryCodeOutput.of_jsoninletname=field_mapjson__"Name"CanaryName.of_jsoninletid=field_mapjson__"Id"UUID.of_jsoninmake?dryRunConfig?artifactConfig?tags?visualReferences?engineConfigs?browserConfigs?provisionedResourceCleanup?visualReference?vpcConfig?runtimeVersion?engineArn?artifactS3Location?timeline?status?failureRetentionPeriodInDays?successRetentionPeriodInDays?runConfig?schedule?executionRoleArn?code?name?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains all information about one canary in your account."]moduleCanaryLastRun=structtypenonrect={canaryName:CanaryName.toption[@ocaml.doc"The name of the canary."];lastRun:CanaryRun.toption[@ocaml.doc"The results from this canary's most recent run."]}letmake?canaryName=fun?lastRun->fun()->{canaryName;lastRun}letto_valuex=structure_to_value[("CanaryName",(Option.mapx.canaryName~f:CanaryName.to_value));("LastRun",(Option.mapx.lastRun~f:CanaryRun.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastRun=(Option.map~f:CanaryRun.of_xml)(Xml.childxml_arg0"LastRun")inletcanaryName=(Option.map~f:CanaryName.of_xml)(Xml.childxml_arg0"CanaryName")inmake?lastRun?canaryName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastRun=field_mapjson__"LastRun"CanaryRun.of_jsoninletcanaryName=field_mapjson__"CanaryName"CanaryName.of_jsoninmake?lastRun?canaryName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about the most recent run of a single canary."]moduleResourceToTag=structtypenonrect=|Lambda_function|Non_static_idofstringletmakei=iletto_string=function|Lambda_function->"lambda-function"|Non_static_ids->sletof_string=function|"lambda-function"->Lambda_function|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 ResourceToTag"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ResourceToTag"j)letto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You don't have permission to perform this operation on this resource."]moduleConflictException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A conflicting operation is already in progress."]moduleInternalServerException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An unknown internal error occurred."]moduleRequestEntityTooLargeException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One of the input resources is larger than is allowed."]moduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One of the specified resources was not found."]moduleValidationException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A parameter could not be validated."]moduleArtifactConfigInput=structtypenonrect={s3Encryption:S3EncryptionConfig.toption[@ocaml.doc"A structure that contains the configuration of the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3. Artifact encryption functionality is available only for canaries that use Synthetics runtime version syn-nodejs-puppeteer-3.3 or later. For more information, see Encrypting canary artifacts"]}letmake?s3Encryption=fun()->{s3Encryption}letto_valuex=structure_to_value[("S3Encryption",(Option.mapx.s3Encryption~f:S3EncryptionConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3Encryption=(Option.map~f:S3EncryptionConfig.of_xml)(Xml.childxml_arg0"S3Encryption")inmake?s3Encryption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3Encryption=field_mapjson__"S3Encryption"S3EncryptionConfig.of_jsoninmake?s3Encryption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3."]moduleCanaryCodeInput=structtypenonrect={s3Bucket:String_.toption[@ocaml.doc"If your canary script is located in Amazon S3, specify the bucket name here. Do not include s3:// as the start of the bucket name."];s3Key:String_.toption[@ocaml.doc"The Amazon S3 key of your script. For more information, see Working with Amazon S3 Objects."];s3Version:String_.toption[@ocaml.doc"The Amazon S3 version ID of your script."];zipFile:Blob.toption[@ocaml.doc"If you input your canary script directly into the canary instead of referring to an Amazon S3 location, the value of this parameter is the base64-encoded contents of the .zip file that contains the script. It must be smaller than 225 Kb. For large canary scripts, we recommend that you use an Amazon S3 location instead of inputting it directly with this parameter."];handler:CodeHandler.toption[@ocaml.doc"The entry point to use for the source code when running the canary. For canaries that use the syn-python-selenium-1.0 runtime or a syn-nodejs.puppeteer runtime earlier than syn-nodejs.puppeteer-3.4, the handler must be specified as fileName.handler. For syn-python-selenium-1.1, syn-nodejs.puppeteer-3.4, and later runtimes, the handler can be specified as fileName.functionName , or you can specify a folder where canary scripts reside as folder/fileName.functionName . This field is required when you don't specify BlueprintTypes and is not allowed when you specify BlueprintTypes."];blueprintTypes:BlueprintTypes.toption[@ocaml.doc"BlueprintTypes is a list of templates that enable simplified canary creation. You can create canaries for common monitoring scenarios by providing only a JSON configuration file instead of writing custom scripts. The only supported value is multi-checks. Multi-checks monitors HTTP/DNS/SSL/TCP endpoints with built-in authentication schemes (Basic, API Key, OAuth, SigV4) and assertion capabilities. When you specify BlueprintTypes, the Handler field cannot be specified since the blueprint provides a pre-defined entry point. BlueprintTypes is supported only on canaries for syn-nodejs-3.0 runtime or later."];dependencies:Dependencies.toption[@ocaml.doc"A list of dependencies that should be used for running this canary. Specify the dependencies as a key-value pair, where the key is the type of dependency and the value is the dependency reference."]}letmake?s3Bucket=fun?s3Key->fun?s3Version->fun?zipFile->fun?handler->fun?blueprintTypes->fun?dependencies->fun()->{s3Bucket;s3Key;s3Version;zipFile;handler;blueprintTypes;dependencies}letto_valuex=structure_to_value[("S3Bucket",(Option.mapx.s3Bucket~f:String_.to_value));("S3Key",(Option.mapx.s3Key~f:String_.to_value));("S3Version",(Option.mapx.s3Version~f:String_.to_value));("ZipFile",(Option.mapx.zipFile~f:Blob.to_value));("Handler",(Option.mapx.handler~f:CodeHandler.to_value));("BlueprintTypes",(Option.mapx.blueprintTypes~f:BlueprintTypes.to_value));("Dependencies",(Option.mapx.dependencies~f:Dependencies.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdependencies=(Option.map~f:Dependencies.of_xml)(Xml.childxml_arg0"Dependencies")inletblueprintTypes=(Option.map~f:BlueprintTypes.of_xml)(Xml.childxml_arg0"BlueprintTypes")inlethandler=(Option.map~f:CodeHandler.of_xml)(Xml.childxml_arg0"Handler")inletzipFile=(Option.map~f:Blob.of_xml)(Xml.childxml_arg0"ZipFile")inlets3Version=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"S3Version")inlets3Key=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"S3Key")inlets3Bucket=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"S3Bucket")inmake?dependencies?blueprintTypes?handler?zipFile?s3Version?s3Key?s3Bucket()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdependencies=field_mapjson__"Dependencies"Dependencies.of_jsoninletblueprintTypes=field_mapjson__"BlueprintTypes"BlueprintTypes.of_jsoninlethandler=field_mapjson__"Handler"CodeHandler.of_jsoninletzipFile=field_mapjson__"ZipFile"Blob.of_jsoninlets3Version=field_mapjson__"S3Version"String_.of_jsoninlets3Key=field_mapjson__"S3Key"String_.of_jsoninlets3Bucket=field_mapjson__"S3Bucket"String_.of_jsoninmake?dependencies?blueprintTypes?handler?zipFile?s3Version?s3Key?s3Bucket()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this structure to input your script code for the canary. This structure contains the Lambda handler with the location where the canary should start running the script. If the script is stored in an Amazon S3 bucket, the bucket name, key, and version are also included. If the script was passed into the canary directly, the script code is contained in the value of Zipfile. If you are uploading your canary scripts with an Amazon S3 bucket, your zip file should include your script in a certain folder structure. For Node.js canaries, the folder structure must be nodejs/node_modules/myCanaryFilename.js For more information, see Packaging your Node.js canary files For Python canaries, the folder structure must be python/myCanaryFilename.py or python/myFolder/myCanaryFilename.py For more information, see Packaging your Python canary files"]moduleCanaryRunConfigInput=structtypenonrect={timeoutInSeconds:MaxFifteenMinutesInSeconds.toption[@ocaml.doc"How long the canary is allowed to run before it must stop. You can't set this time to be longer than the frequency of the runs of this canary. If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes."];memoryInMB:MaxSize3008.toption[@ocaml.doc"The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64."];activeTracing:NullableBoolean.toption[@ocaml.doc"Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing. You can enable active tracing only for canaries that use version syn-nodejs-2.0 or later for their canary runtime."];environmentVariables:EnvironmentVariablesMap.toption[@ocaml.doc"Specifies the keys and values to use for any environment variables used in the canary script. Use the following format: \\{ \"key1\" : \"value1\", \"key2\" : \"value2\", ...\\} Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables. Environment variable keys and values are encrypted at rest using Amazon Web Services owned KMS keys. However, the environment variables are not encrypted on the client side. Do not store sensitive information in them."];ephemeralStorage:EphemeralStorageSize.toption[@ocaml.doc"Specifies the amount of ephemeral storage (in MB) to allocate for the canary run during execution. This temporary storage is used for storing canary run artifacts (which are uploaded to an Amazon S3 bucket at the end of the run), and any canary browser operations. This temporary storage is cleared after the run is completed. Default storage value is 1024 MB."]}letmake?timeoutInSeconds=fun?memoryInMB->fun?activeTracing->fun?environmentVariables->fun?ephemeralStorage->fun()->{timeoutInSeconds;memoryInMB;activeTracing;environmentVariables;ephemeralStorage}letto_valuex=structure_to_value[("TimeoutInSeconds",(Option.mapx.timeoutInSeconds~f:MaxFifteenMinutesInSeconds.to_value));("MemoryInMB",(Option.mapx.memoryInMB~f:MaxSize3008.to_value));("ActiveTracing",(Option.mapx.activeTracing~f:NullableBoolean.to_value));("EnvironmentVariables",(Option.mapx.environmentVariables~f:EnvironmentVariablesMap.to_value));("EphemeralStorage",(Option.mapx.ephemeralStorage~f:EphemeralStorageSize.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letephemeralStorage=(Option.map~f:EphemeralStorageSize.of_xml)(Xml.childxml_arg0"EphemeralStorage")inletenvironmentVariables=(Option.map~f:EnvironmentVariablesMap.of_xml)(Xml.childxml_arg0"EnvironmentVariables")inletactiveTracing=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"ActiveTracing")inletmemoryInMB=(Option.map~f:MaxSize3008.of_xml)(Xml.childxml_arg0"MemoryInMB")inlettimeoutInSeconds=(Option.map~f:MaxFifteenMinutesInSeconds.of_xml)(Xml.childxml_arg0"TimeoutInSeconds")inmake?ephemeralStorage?environmentVariables?activeTracing?memoryInMB?timeoutInSeconds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letephemeralStorage=field_mapjson__"EphemeralStorage"EphemeralStorageSize.of_jsoninletenvironmentVariables=field_mapjson__"EnvironmentVariables"EnvironmentVariablesMap.of_jsoninletactiveTracing=field_mapjson__"ActiveTracing"NullableBoolean.of_jsoninletmemoryInMB=field_mapjson__"MemoryInMB"MaxSize3008.of_jsoninlettimeoutInSeconds=field_mapjson__"TimeoutInSeconds"MaxFifteenMinutesInSeconds.of_jsoninmake?ephemeralStorage?environmentVariables?activeTracing?memoryInMB?timeoutInSeconds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains input information for a canary run."]moduleCanaryScheduleInput=structtypenonrect={expression:String_.t[@ocaml.doc"A rate expression or a cron expression that defines how often the canary is to run. For a rate expression, The syntax is rate(number unit). unit can be minute, minutes, or hour. For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every 10 minutes, and rate(1 hour) runs it once every hour. You can specify a frequency between rate(1 minute) and rate(1 hour). Specifying rate(0 minute) or rate(0 hour) is a special value that causes the canary to run only once when it is started. Use cron(expression) to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see Scheduling canary runs using cron."];durationInSeconds:MaxOneYearInSeconds.toption[@ocaml.doc"How long, in seconds, for the canary to continue making regular runs according to the schedule in the Expression value. If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used."];retryConfig:RetryConfigInput.toption[@ocaml.doc"A structure that contains the retry configuration for a canary"]}letcontext_="CanaryScheduleInput"letmake?durationInSeconds=fun?retryConfig->fun~expression->fun()->{durationInSeconds;retryConfig;expression}letto_valuex=structure_to_value[("Expression",(Some(String_.to_valuex.expression)));("DurationInSeconds",(Option.mapx.durationInSeconds~f:MaxOneYearInSeconds.to_value));("RetryConfig",(Option.mapx.retryConfig~f:RetryConfigInput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryConfig=(Option.map~f:RetryConfigInput.of_xml)(Xml.childxml_arg0"RetryConfig")inletdurationInSeconds=(Option.map~f:MaxOneYearInSeconds.of_xml)(Xml.childxml_arg0"DurationInSeconds")inletexpression=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Expression")inmake?retryConfig?durationInSeconds~expression()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryConfig=field_mapjson__"RetryConfig"RetryConfigInput.of_jsoninletdurationInSeconds=field_mapjson__"DurationInSeconds"MaxOneYearInSeconds.of_jsoninletexpression=field_map_exnjson__"Expression"String_.of_jsoninmake?retryConfig?durationInSeconds~expression()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure specifies how often a canary is to make runs and the date and time when it should stop making runs."]moduleVisualReferences=structtypenonrect=VisualReferenceInput.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:2)>>=(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:VisualReferenceInput.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:VisualReferenceInput.of_xml)letof_jsonj=list_of_json~kind:"VisualReferences"~of_json:VisualReferenceInput.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleVpcConfigInput=structtypenonrect={subnetIds:SubnetIds.toption[@ocaml.doc"The IDs of the subnets where this canary is to run."];securityGroupIds:SecurityGroupIds.toption[@ocaml.doc"The IDs of the security groups for this canary."];ipv6AllowedForDualStack:NullableBoolean.toption[@ocaml.doc"Set this to true to allow outbound IPv6 traffic on VPC canaries that are connected to dual-stack subnets. The default is false"]}letmake?subnetIds=fun?securityGroupIds->fun?ipv6AllowedForDualStack->fun()->{subnetIds;securityGroupIds;ipv6AllowedForDualStack}letto_valuex=structure_to_value[("SubnetIds",(Option.mapx.subnetIds~f:SubnetIds.to_value));("SecurityGroupIds",(Option.mapx.securityGroupIds~f:SecurityGroupIds.to_value));("Ipv6AllowedForDualStack",(Option.mapx.ipv6AllowedForDualStack~f:NullableBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letipv6AllowedForDualStack=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"Ipv6AllowedForDualStack")inletsecurityGroupIds=(Option.map~f:SecurityGroupIds.of_xml)(Xml.childxml_arg0"SecurityGroupIds")inletsubnetIds=(Option.map~f:SubnetIds.of_xml)(Xml.childxml_arg0"SubnetIds")inmake?ipv6AllowedForDualStack?securityGroupIds?subnetIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letipv6AllowedForDualStack=field_mapjson__"Ipv6AllowedForDualStack"NullableBoolean.of_jsoninletsecurityGroupIds=field_mapjson__"SecurityGroupIds"SecurityGroupIds.of_jsoninletsubnetIds=field_mapjson__"SubnetIds"SubnetIds.of_jsoninmake?ipv6AllowedForDualStack?securityGroupIds?subnetIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC."]moduleBadRequestException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was not valid."]moduleInternalFailureException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An internal failure occurred. Try the operation again."]moduleNotFoundException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified resource was not found."]moduleTooManyRequestsException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"There were too many simultaneous requests. Try the operation again."]moduleResourceArn=structtypenonrect=stringletcontext_="ResourceArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2,4}(-[a-z]{2,4})?-[a-z]+-\\d{1}:\\d{12}:(canary|group):[0-9a-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:"ResourceArn"jletto_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_valuevendmoduleGroupSummaryList=structtypenonrect=GroupSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:GroupSummary.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:GroupSummary.of_xml)letof_jsonj=list_of_json~kind:"GroupSummaryList"~of_json:GroupSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleToken=structtypenonrect=stringletcontext_="Token"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:252)>>=(fun()->check_string_mini~min: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:"Token"jletto_json=simple_to_jsonto_valueendmoduleMaxGroupResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:20)>>=(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 MaxGroupResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmodulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:512)>>=(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:"PaginationToken"jletto_json=simple_to_jsonto_valueendmoduleStringList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"StringList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGroupIdentifier=structtypenonrect=stringletcontext_="GroupIdentifier"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GroupIdentifier"jletto_json=simple_to_jsonto_valueendmoduleCanaryArn=structtypenonrect=stringletcontext_="CanaryArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2,4}(-[a-z]{2,4})?-[a-z]+-\\d{1}:\\d{12}:canary:[0-9a-z_\\-]{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:"CanaryArn"jletto_json=simple_to_jsonto_valueendmoduleGroup=structtypenonrect={id:String_.toption[@ocaml.doc"The unique ID of the group."];name:GroupName.toption[@ocaml.doc"The name of the group."];arn:GroupArn.toption[@ocaml.doc"The ARN of the group."];tags:TagMap.toption[@ocaml.doc"The list of key-value pairs that are associated with the canary."];createdTime:Timestamp.toption[@ocaml.doc"The date and time that the group was created."];lastModifiedTime:Timestamp.toption[@ocaml.doc"The date and time that the group was most recently updated."]}letmake?id=fun?name->fun?arn->fun?tags->fun?createdTime->fun?lastModifiedTime->fun()->{id;name;arn;tags;createdTime;lastModifiedTime}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:String_.to_value));("Name",(Option.mapx.name~f:GroupName.to_value));("Arn",(Option.mapx.arn~f:GroupArn.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("CreatedTime",(Option.mapx.createdTime~f:Timestamp.to_value));("LastModifiedTime",(Option.mapx.lastModifiedTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastModifiedTime")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedTime")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletarn=(Option.map~f:GroupArn.of_xml)(Xml.childxml_arg0"Arn")inletname=(Option.map~f:GroupName.of_xml)(Xml.childxml_arg0"Name")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Id")inmake?lastModifiedTime?createdTime?tags?arn?name?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedTime=field_mapjson__"LastModifiedTime"Timestamp.of_jsoninletcreatedTime=field_mapjson__"CreatedTime"Timestamp.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletarn=field_mapjson__"Arn"GroupArn.of_jsoninletname=field_mapjson__"Name"GroupName.of_jsoninletid=field_mapjson__"Id"String_.of_jsoninmake?lastModifiedTime?createdTime?tags?arn?name?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about one group."]moduleCanaryRuns=structtypenonrect=CanaryRun.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CanaryRun.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:CanaryRun.of_xml)letof_jsonj=list_of_json~kind:"CanaryRuns"~of_json:CanaryRun.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxSize100=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxSize100"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRunType=structtypenonrect=|CANARY_RUN|DRY_RUN|Non_static_idofstringletmakei=iletto_string=function|CANARY_RUN->"CANARY_RUN"|DRY_RUN->"DRY_RUN"|Non_static_ids->sletof_string=function|"CANARY_RUN"->CANARY_RUN|"DRY_RUN"->DRY_RUN|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 RunType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RunType"j)letto_json=simple_to_jsonto_valueendmoduleRuntimeVersionList=structtypenonrect=RuntimeVersion.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RuntimeVersion.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:RuntimeVersion.of_xml)letof_jsonj=list_of_json~kind:"RuntimeVersionList"~of_json:RuntimeVersion.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCanaries=structtypenonrect=Canary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Canary.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:Canary.of_xml)letof_jsonj=list_of_json~kind:"Canaries"~of_json:Canary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDescribeCanariesNameFilter=structtypenonrect=CanaryName.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:CanaryName.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:CanaryName.of_xml)letof_jsonj=list_of_json~kind:"DescribeCanariesNameFilter"~of_json:CanaryName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxCanaryResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:20)>>=(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 MaxCanaryResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleCanariesLastRun=structtypenonrect=CanaryLastRun.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CanaryLastRun.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:CanaryLastRun.of_xml)letof_jsonj=list_of_json~kind:"CanariesLastRun"~of_json:CanaryLastRun.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDescribeCanariesLastRunNameFilter=structtypenonrect=CanaryName.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:CanaryName.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:CanaryName.of_xml)letof_jsonj=list_of_json~kind:"DescribeCanariesLastRunNameFilter"~of_json:CanaryName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleServiceQuotaExceededException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request exceeded a service quota value."]moduleResourceList=structtypenonrect=ResourceToTag.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:ResourceToTag.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:ResourceToTag.of_xml)letof_jsonj=list_of_json~kind:"ResourceList"~of_json:ResourceToTag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateCanaryResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`RequestEntityTooLargeExceptionofRequestEntityTooLargeException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"RequestEntityTooLargeException"->`RequestEntityTooLargeException(RequestEntityTooLargeException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"RequestEntityTooLargeException"->`RequestEntityTooLargeException(RequestEntityTooLargeException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`RequestEntityTooLargeExceptione->`Assoc[("error",(`String"RequestEntityTooLargeException"));("details",(RequestEntityTooLargeException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the configuration of a canary that has already been created. For multibrowser canaries, you can add or remove browsers by updating the browserConfig list in the update call. For example: To add Firefox to a canary that currently uses Chrome, specify browserConfigs as \\[CHROME, FIREFOX\\] To remove Firefox and keep only Chrome, specify browserConfigs as \\[CHROME\\] You can't use this operation to update the tags of an existing canary. To change the tags of an existing canary, use TagResource. When you use the dryRunId field when updating a canary, the only other field you can provide is the Schedule. Adding any other field will thrown an exception."]moduleUpdateCanaryRequest=structtypenonrect={name:CanaryName.t[@ocaml.doc"The name of the canary that you want to update. To find the names of your canaries, use DescribeCanaries. You cannot change the name of a canary that has already been created."];code:CanaryCodeInput.toption[@ocaml.doc"A structure that includes the entry point from which the canary should start running your script. If the script is stored in an Amazon S3 bucket, the bucket name, key, and version are also included."];executionRoleArn:RoleArn.toption[@ocaml.doc"The ARN of the IAM role to be used to run the canary. This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions: s3:PutObject s3:GetBucketLocation s3:ListAllMyBuckets cloudwatch:PutMetricData logs:CreateLogGroup logs:CreateLogStream logs:CreateLogStream"];runtimeVersion:String_.toption[@ocaml.doc"Specifies the runtime version to use for the canary. For a list of valid runtime versions and for more information about runtime versions, see Canary Runtime Versions."];schedule:CanaryScheduleInput.toption[@ocaml.doc"A structure that contains information about how often the canary is to run, and when these runs are to stop."];runConfig:CanaryRunConfigInput.toption[@ocaml.doc"A structure that contains the timeout value that is used for each individual run of the canary. Environment variable keys and values are encrypted at rest using Amazon Web Services owned KMS keys. However, the environment variables are not encrypted on the client side. Do not store sensitive information in them."];successRetentionPeriodInDays:MaxSize1024.toption[@ocaml.doc"The number of days to retain data about successful runs of this canary. This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console."];failureRetentionPeriodInDays:MaxSize1024.toption[@ocaml.doc"The number of days to retain data about failed runs of this canary. This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console."];vpcConfig:VpcConfigInput.toption[@ocaml.doc"If this canary is to test an endpoint in a VPC, this structure contains information about the subnet and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC."];visualReference:VisualReferenceInput.toption[@ocaml.doc"Defines the screenshots to use as the baseline for comparisons during visual monitoring comparisons during future runs of this canary. If you omit this parameter, no changes are made to any baseline screenshots that the canary might be using already. Visual monitoring is supported only on canaries running the syn-puppeteer-node-3.2 runtime or later. For more information, see Visual monitoring and Visual monitoring blueprint"];artifactS3Location:String_.toption[@ocaml.doc"The location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary. Artifacts include the log file, screenshots, and HAR files. The name of the Amazon S3 bucket can't include a period (.)."];artifactConfig:ArtifactConfigInput.toption[@ocaml.doc"A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3."];provisionedResourceCleanup:ProvisionedResourceCleanupSetting.toption[@ocaml.doc"Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If the value of this parameter is OFF, then the value of the DeleteLambda parameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted."];dryRunId:UUID.toption[@ocaml.doc"Update the existing canary using the updated configurations from the DryRun associated with the DryRunId. When you use the dryRunId field when updating a canary, the only other field you can provide is the Schedule. Adding any other field will thrown an exception."];visualReferences:VisualReferences.toption[@ocaml.doc"A list of visual reference configurations for the canary, one for each browser type that the canary is configured to run on. Visual references are used for visual monitoring comparisons. syn-nodejs-puppeteer-11.0 and above, and syn-nodejs-playwright-3.0 and above, only supports visualReferences. visualReference field is not supported. Versions older than syn-nodejs-puppeteer-11.0 supports both visualReference and visualReferences for backward compatibility. It is recommended to use visualReferences for consistency and future compatibility. For multibrowser visual monitoring, you can update the baseline for all configured browsers in a single update call by specifying a list of VisualReference objects, one per browser. Each VisualReference object maps to a specific browser configuration, allowing you to manage visual baselines for multiple browsers simultaneously. For single configuration canaries using Chrome browser (default browser), use visualReferences for syn-nodejs-puppeteer-11.0 and above, and syn-nodejs-playwright-3.0 and above canaries. The browserType in the visualReference object is not mandatory."];browserConfigs:BrowserConfigs.toption[@ocaml.doc"A structure that specifies the browser type to use for a canary run. CloudWatch Synthetics supports running canaries on both CHROME and FIREFOX browsers. If not specified, browserConfigs defaults to Chrome."]}letcontext_="UpdateCanaryRequest"letmake?code=fun?executionRoleArn->fun?runtimeVersion->fun?schedule->fun?runConfig->fun?successRetentionPeriodInDays->fun?failureRetentionPeriodInDays->fun?vpcConfig->fun?visualReference->fun?artifactS3Location->fun?artifactConfig->fun?provisionedResourceCleanup->fun?dryRunId->fun?visualReferences->fun?browserConfigs->fun~name->fun()->{code;executionRoleArn;runtimeVersion;schedule;runConfig;successRetentionPeriodInDays;failureRetentionPeriodInDays;vpcConfig;visualReference;artifactS3Location;artifactConfig;provisionedResourceCleanup;dryRunId;visualReferences;browserConfigs;name}letto_valuex=structure_to_value[("name",(Some(CanaryName.to_valuex.name)));("Code",(Option.mapx.code~f:CanaryCodeInput.to_value));("ExecutionRoleArn",(Option.mapx.executionRoleArn~f:RoleArn.to_value));("RuntimeVersion",(Option.mapx.runtimeVersion~f:String_.to_value));("Schedule",(Option.mapx.schedule~f:CanaryScheduleInput.to_value));("RunConfig",(Option.mapx.runConfig~f:CanaryRunConfigInput.to_value));("SuccessRetentionPeriodInDays",(Option.mapx.successRetentionPeriodInDays~f:MaxSize1024.to_value));("FailureRetentionPeriodInDays",(Option.mapx.failureRetentionPeriodInDays~f:MaxSize1024.to_value));("VpcConfig",(Option.mapx.vpcConfig~f:VpcConfigInput.to_value));("VisualReference",(Option.mapx.visualReference~f:VisualReferenceInput.to_value));("ArtifactS3Location",(Option.mapx.artifactS3Location~f:String_.to_value));("ArtifactConfig",(Option.mapx.artifactConfig~f:ArtifactConfigInput.to_value));("ProvisionedResourceCleanup",(Option.mapx.provisionedResourceCleanup~f:ProvisionedResourceCleanupSetting.to_value));("DryRunId",(Option.mapx.dryRunId~f:UUID.to_value));("VisualReferences",(Option.mapx.visualReferences~f:VisualReferences.to_value));("BrowserConfigs",(Option.mapx.browserConfigs~f:BrowserConfigs.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbrowserConfigs=(Option.map~f:BrowserConfigs.of_xml)(Xml.childxml_arg0"BrowserConfigs")inletvisualReferences=(Option.map~f:VisualReferences.of_xml)(Xml.childxml_arg0"VisualReferences")inletdryRunId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"DryRunId")inletprovisionedResourceCleanup=(Option.map~f:ProvisionedResourceCleanupSetting.of_xml)(Xml.childxml_arg0"ProvisionedResourceCleanup")inletartifactConfig=(Option.map~f:ArtifactConfigInput.of_xml)(Xml.childxml_arg0"ArtifactConfig")inletartifactS3Location=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ArtifactS3Location")inletvisualReference=(Option.map~f:VisualReferenceInput.of_xml)(Xml.childxml_arg0"VisualReference")inletvpcConfig=(Option.map~f:VpcConfigInput.of_xml)(Xml.childxml_arg0"VpcConfig")inletfailureRetentionPeriodInDays=(Option.map~f:MaxSize1024.of_xml)(Xml.childxml_arg0"FailureRetentionPeriodInDays")inletsuccessRetentionPeriodInDays=(Option.map~f:MaxSize1024.of_xml)(Xml.childxml_arg0"SuccessRetentionPeriodInDays")inletrunConfig=(Option.map~f:CanaryRunConfigInput.of_xml)(Xml.childxml_arg0"RunConfig")inletschedule=(Option.map~f:CanaryScheduleInput.of_xml)(Xml.childxml_arg0"Schedule")inletruntimeVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"RuntimeVersion")inletexecutionRoleArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"ExecutionRoleArn")inletcode=(Option.map~f:CanaryCodeInput.of_xml)(Xml.childxml_arg0"Code")inletname=CanaryName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?browserConfigs?visualReferences?dryRunId?provisionedResourceCleanup?artifactConfig?artifactS3Location?visualReference?vpcConfig?failureRetentionPeriodInDays?successRetentionPeriodInDays?runConfig?schedule?runtimeVersion?executionRoleArn?code~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbrowserConfigs=field_mapjson__"BrowserConfigs"BrowserConfigs.of_jsoninletvisualReferences=field_mapjson__"VisualReferences"VisualReferences.of_jsoninletdryRunId=field_mapjson__"DryRunId"UUID.of_jsoninletprovisionedResourceCleanup=field_mapjson__"ProvisionedResourceCleanup"ProvisionedResourceCleanupSetting.of_jsoninletartifactConfig=field_mapjson__"ArtifactConfig"ArtifactConfigInput.of_jsoninletartifactS3Location=field_mapjson__"ArtifactS3Location"String_.of_jsoninletvisualReference=field_mapjson__"VisualReference"VisualReferenceInput.of_jsoninletvpcConfig=field_mapjson__"VpcConfig"VpcConfigInput.of_jsoninletfailureRetentionPeriodInDays=field_mapjson__"FailureRetentionPeriodInDays"MaxSize1024.of_jsoninletsuccessRetentionPeriodInDays=field_mapjson__"SuccessRetentionPeriodInDays"MaxSize1024.of_jsoninletrunConfig=field_mapjson__"RunConfig"CanaryRunConfigInput.of_jsoninletschedule=field_mapjson__"Schedule"CanaryScheduleInput.of_jsoninletruntimeVersion=field_mapjson__"RuntimeVersion"String_.of_jsoninletexecutionRoleArn=field_mapjson__"ExecutionRoleArn"RoleArn.of_jsoninletcode=field_mapjson__"Code"CanaryCodeInput.of_jsoninletname=field_map_exnjson__"Name"CanaryName.of_jsoninmake?browserConfigs?visualReferences?dryRunId?provisionedResourceCleanup?artifactConfig?artifactS3Location?visualReference?vpcConfig?failureRetentionPeriodInDays?successRetentionPeriodInDays?runConfig?schedule?runtimeVersion?executionRoleArn?code~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the configuration of a canary that has already been created. For multibrowser canaries, you can add or remove browsers by updating the browserConfig list in the update call. For example: To add Firefox to a canary that currently uses Chrome, specify browserConfigs as \\[CHROME, FIREFOX\\] To remove Firefox and keep only Chrome, specify browserConfigs as \\[CHROME\\] You can't use this operation to update the tags of an existing canary. To change the tags of an existing canary, use TagResource. When you use the dryRunId field when updating a canary, the only other field you can provide is the Schedule. Adding any other field will thrown an exception."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ConflictExceptionofConflictException.t|`InternalFailureExceptionofInternalFailureException.t|`NotFoundExceptionofNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalFailureExceptione->`Assoc[("error",(`String"InternalFailureException"));("details",(InternalFailureException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.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 one or more tags from the specified resource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The ARN of the canary or group that you're removing tags from. The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name . The ARN format of a group is arn:aws:synthetics:Region:account-id:group:group-name"];tagKeys:TagKeyList.t[@ocaml.doc"The list of tag keys to remove from the resource."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from the specified resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ConflictExceptionofConflictException.t|`InternalFailureExceptionofInternalFailureException.t|`NotFoundExceptionofNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalFailureExceptione->`Assoc[("error",(`String"InternalFailureException"));("details",(InternalFailureException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.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"Assigns one or more tags (key-value pairs) to the specified canary or group. Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters. You can use the TagResource action with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag. You can associate as many as 50 tags with a canary or group."]moduleTagResourceRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The ARN of the canary or group that you're adding tags to. The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name . The ARN format of a group is arn:aws:synthetics:Region:account-id:group:group-name"];tags:TagMap.t[@ocaml.doc"The list of key-value pairs to associate with the resource."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("Tags",(Some(TagMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagMap.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Assigns one or more tags (key-value pairs) to the specified canary or group. Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters. You can use the TagResource action with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag. You can associate as many as 50 tags with a canary or group."]moduleStopCanaryResponse=structtypenonrect=unittypenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the canary to prevent all future runs. If the canary is currently running,the run that is in progress completes on its own, publishes metrics, and uploads artifacts, but it is not recorded in Synthetics as a completed run. You can use StartCanary to start it running again with the canary\226\128\153s current schedule at any point in the future."]moduleStopCanaryRequest=structtypenonrect={name:CanaryName.t[@ocaml.doc"The name of the canary that you want to stop. To find the names of your canaries, use ListCanaries."]}letcontext_="StopCanaryRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("name",(Some(CanaryName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=CanaryName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"CanaryName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops the canary to prevent all future runs. If the canary is currently running,the run that is in progress completes on its own, publishes metrics, and uploads artifacts, but it is not recorded in Synthetics as a completed run. You can use StartCanary to start it running again with the canary\226\128\153s current schedule at any point in the future."]moduleStartCanaryResponse=structtypenonrect=unittypenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to run a canary that has already been created. The frequency of the canary runs is determined by the value of the canary's Schedule. To see a canary's schedule, use GetCanary."]moduleStartCanaryRequest=structtypenonrect={name:CanaryName.t[@ocaml.doc"The name of the canary that you want to run. To find canary names, use DescribeCanaries."]}letcontext_="StartCanaryRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("name",(Some(CanaryName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=CanaryName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"CanaryName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to run a canary that has already been created. The frequency of the canary runs is determined by the value of the canary's Schedule. To see a canary's schedule, use GetCanary."]moduleStartCanaryDryRunResponse=structtypenonrect={dryRunConfig:DryRunConfigOutput.toption[@ocaml.doc"Returns the dry run configurations for a canary."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dryRunConfig=fun()->{dryRunConfig}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("DryRunConfig",(Option.mapx.dryRunConfig~f:DryRunConfigOutput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdryRunConfig=(Option.map~f:DryRunConfigOutput.of_xml)(Xml.childxml_arg0"DryRunConfig")inmake?dryRunConfig()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdryRunConfig=field_mapjson__"DryRunConfig"DryRunConfigOutput.of_jsoninmake?dryRunConfig()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to start a dry run for a canary that has already been created"]moduleStartCanaryDryRunRequest=structtypenonrect={name:CanaryName.t[@ocaml.doc"The name of the canary that you want to dry run. To find canary names, use DescribeCanaries."];code:CanaryCodeInput.toption;runtimeVersion:String_.toption[@ocaml.doc"Specifies the runtime version to use for the canary. For a list of valid runtime versions and for more information about runtime versions, see Canary Runtime Versions."];runConfig:CanaryRunConfigInput.toption;vpcConfig:VpcConfigInput.toption;executionRoleArn:RoleArn.toption[@ocaml.doc"The ARN of the IAM role to be used to run the canary. This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions:"];successRetentionPeriodInDays:MaxSize1024.toption[@ocaml.doc"The number of days to retain data about successful runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days. This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console."];failureRetentionPeriodInDays:MaxSize1024.toption[@ocaml.doc"The number of days to retain data about failed runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days. This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console."];visualReference:VisualReferenceInput.toption;artifactS3Location:String_.toption[@ocaml.doc"The location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary. Artifacts include the log file, screenshots, and HAR files. The name of the Amazon S3 bucket can't include a period (.)."];artifactConfig:ArtifactConfigInput.toption;provisionedResourceCleanup:ProvisionedResourceCleanupSetting.toption[@ocaml.doc"Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If you omit this parameter, the default of AUTOMATIC is used, which means that the Lambda functions and layers will be deleted when the canary is deleted. If the value of this parameter is OFF, then the value of the DeleteLambda parameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted."];browserConfigs:BrowserConfigs.toption[@ocaml.doc"A structure that specifies the browser type to use for a canary run. CloudWatch Synthetics supports running canaries on both CHROME and FIREFOX browsers. If not specified, browserConfigs defaults to Chrome."];visualReferences:VisualReferences.toption[@ocaml.doc"A list of visual reference configurations for the canary, one for each browser type that the canary is configured to run on. Visual references are used for visual monitoring comparisons. syn-nodejs-puppeteer-11.0 and above, and syn-nodejs-playwright-3.0 and above, only supports visualReferences. visualReference field is not supported. Versions older than syn-nodejs-puppeteer-11.0 supports both visualReference and visualReferences for backward compatibility. It is recommended to use visualReferences for consistency and future compatibility."]}letcontext_="StartCanaryDryRunRequest"letmake?code=fun?runtimeVersion->fun?runConfig->fun?vpcConfig->fun?executionRoleArn->fun?successRetentionPeriodInDays->fun?failureRetentionPeriodInDays->fun?visualReference->fun?artifactS3Location->fun?artifactConfig->fun?provisionedResourceCleanup->fun?browserConfigs->fun?visualReferences->fun~name->fun()->{code;runtimeVersion;runConfig;vpcConfig;executionRoleArn;successRetentionPeriodInDays;failureRetentionPeriodInDays;visualReference;artifactS3Location;artifactConfig;provisionedResourceCleanup;browserConfigs;visualReferences;name}letto_valuex=structure_to_value[("name",(Some(CanaryName.to_valuex.name)));("Code",(Option.mapx.code~f:CanaryCodeInput.to_value));("RuntimeVersion",(Option.mapx.runtimeVersion~f:String_.to_value));("RunConfig",(Option.mapx.runConfig~f:CanaryRunConfigInput.to_value));("VpcConfig",(Option.mapx.vpcConfig~f:VpcConfigInput.to_value));("ExecutionRoleArn",(Option.mapx.executionRoleArn~f:RoleArn.to_value));("SuccessRetentionPeriodInDays",(Option.mapx.successRetentionPeriodInDays~f:MaxSize1024.to_value));("FailureRetentionPeriodInDays",(Option.mapx.failureRetentionPeriodInDays~f:MaxSize1024.to_value));("VisualReference",(Option.mapx.visualReference~f:VisualReferenceInput.to_value));("ArtifactS3Location",(Option.mapx.artifactS3Location~f:String_.to_value));("ArtifactConfig",(Option.mapx.artifactConfig~f:ArtifactConfigInput.to_value));("ProvisionedResourceCleanup",(Option.mapx.provisionedResourceCleanup~f:ProvisionedResourceCleanupSetting.to_value));("BrowserConfigs",(Option.mapx.browserConfigs~f:BrowserConfigs.to_value));("VisualReferences",(Option.mapx.visualReferences~f:VisualReferences.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvisualReferences=(Option.map~f:VisualReferences.of_xml)(Xml.childxml_arg0"VisualReferences")inletbrowserConfigs=(Option.map~f:BrowserConfigs.of_xml)(Xml.childxml_arg0"BrowserConfigs")inletprovisionedResourceCleanup=(Option.map~f:ProvisionedResourceCleanupSetting.of_xml)(Xml.childxml_arg0"ProvisionedResourceCleanup")inletartifactConfig=(Option.map~f:ArtifactConfigInput.of_xml)(Xml.childxml_arg0"ArtifactConfig")inletartifactS3Location=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ArtifactS3Location")inletvisualReference=(Option.map~f:VisualReferenceInput.of_xml)(Xml.childxml_arg0"VisualReference")inletfailureRetentionPeriodInDays=(Option.map~f:MaxSize1024.of_xml)(Xml.childxml_arg0"FailureRetentionPeriodInDays")inletsuccessRetentionPeriodInDays=(Option.map~f:MaxSize1024.of_xml)(Xml.childxml_arg0"SuccessRetentionPeriodInDays")inletexecutionRoleArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"ExecutionRoleArn")inletvpcConfig=(Option.map~f:VpcConfigInput.of_xml)(Xml.childxml_arg0"VpcConfig")inletrunConfig=(Option.map~f:CanaryRunConfigInput.of_xml)(Xml.childxml_arg0"RunConfig")inletruntimeVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"RuntimeVersion")inletcode=(Option.map~f:CanaryCodeInput.of_xml)(Xml.childxml_arg0"Code")inletname=CanaryName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?visualReferences?browserConfigs?provisionedResourceCleanup?artifactConfig?artifactS3Location?visualReference?failureRetentionPeriodInDays?successRetentionPeriodInDays?executionRoleArn?vpcConfig?runConfig?runtimeVersion?code~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvisualReferences=field_mapjson__"VisualReferences"VisualReferences.of_jsoninletbrowserConfigs=field_mapjson__"BrowserConfigs"BrowserConfigs.of_jsoninletprovisionedResourceCleanup=field_mapjson__"ProvisionedResourceCleanup"ProvisionedResourceCleanupSetting.of_jsoninletartifactConfig=field_mapjson__"ArtifactConfig"ArtifactConfigInput.of_jsoninletartifactS3Location=field_mapjson__"ArtifactS3Location"String_.of_jsoninletvisualReference=field_mapjson__"VisualReference"VisualReferenceInput.of_jsoninletfailureRetentionPeriodInDays=field_mapjson__"FailureRetentionPeriodInDays"MaxSize1024.of_jsoninletsuccessRetentionPeriodInDays=field_mapjson__"SuccessRetentionPeriodInDays"MaxSize1024.of_jsoninletexecutionRoleArn=field_mapjson__"ExecutionRoleArn"RoleArn.of_jsoninletvpcConfig=field_mapjson__"VpcConfig"VpcConfigInput.of_jsoninletrunConfig=field_mapjson__"RunConfig"CanaryRunConfigInput.of_jsoninletruntimeVersion=field_mapjson__"RuntimeVersion"String_.of_jsoninletcode=field_mapjson__"Code"CanaryCodeInput.of_jsoninletname=field_map_exnjson__"Name"CanaryName.of_jsoninmake?visualReferences?browserConfigs?provisionedResourceCleanup?artifactConfig?artifactS3Location?visualReference?failureRetentionPeriodInDays?successRetentionPeriodInDays?executionRoleArn?vpcConfig?runConfig?runtimeVersion?code~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to start a dry run for a canary that has already been created"]moduleListTagsForResourceResponse=structtypenonrect={tags:TagMap.toption[@ocaml.doc"The list of tag keys and values associated with the resource that you specified."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`ConflictExceptionofConflictException.t|`InternalFailureExceptionofInternalFailureException.t|`NotFoundExceptionofNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalFailureExceptione->`Assoc[("error",(`String"InternalFailureException"));("details",(InternalFailureException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays the tags associated with a canary or group."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The ARN of the canary or group that you want to view tags for. The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name . The ARN format of a group is arn:aws:synthetics:Region:account-id:group:group-name"]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(ResourceArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays the tags associated with a canary or group."]moduleListGroupsResponse=structtypenonrect={groups:GroupSummaryList.toption[@ocaml.doc"An array of structures that each contain information about one group."];nextToken:Token.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent ListGroups operation to retrieve the next set of results."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?groups=fun?nextToken->fun()->{groups;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Groups",(Option.mapx.groups~f:GroupSummaryList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletgroups=(Option.map~f:GroupSummaryList.of_xml)(Xml.childxml_arg0"Groups")inmake?nextToken?groups()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletgroups=field_mapjson__"Groups"GroupSummaryList.of_jsoninmake?nextToken?groups()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of all groups in the account, displaying their names, unique IDs, and ARNs. The groups from all Regions are returned."]moduleListGroupsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results."];maxResults:MaxGroupResults.toption[@ocaml.doc"Specify this parameter to limit how many groups are returned each time you use the ListGroups operation. If you omit this parameter, the default of 20 is used."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxGroupResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxGroupResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxGroupResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of all groups in the account, displaying their names, unique IDs, and ARNs. The groups from all Regions are returned."]moduleListGroupResourcesResponse=structtypenonrect={resources:StringList.toption[@ocaml.doc"An array of ARNs. These ARNs are for the canaries that are associated with the group."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent ListGroupResources operation to retrieve the next set of results."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resources=fun?nextToken->fun()->{resources;nextToken}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Resources",(Option.mapx.resources~f:StringList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletresources=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"Resources")inmake?nextToken?resources()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletresources=field_mapjson__"Resources"StringList.of_jsoninmake?nextToken?resources()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation returns a list of the ARNs of the canaries that are associated with the specified group."]moduleListGroupResourcesRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results."];maxResults:MaxGroupResults.toption[@ocaml.doc"Specify this parameter to limit how many canary ARNs are returned each time you use the ListGroupResources operation. If you omit this parameter, the default of 20 is used."];groupIdentifier:GroupIdentifier.t[@ocaml.doc"Specifies the group to return information for. You can specify the group name, the ARN, or the group ID as the GroupIdentifier."]}letcontext_="ListGroupResourcesRequest"letmake?nextToken=fun?maxResults->fun~groupIdentifier->fun()->{nextToken;maxResults;groupIdentifier}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxGroupResults.to_value));("groupIdentifier",(Some(GroupIdentifier.to_valuex.groupIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupIdentifier=GroupIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"groupIdentifier")inletmaxResults=(Option.map~f:MaxGroupResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake~groupIdentifier?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupIdentifier=field_map_exnjson__"GroupIdentifier"GroupIdentifier.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxGroupResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake~groupIdentifier?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation returns a list of the ARNs of the canaries that are associated with the specified group."]moduleListAssociatedGroupsResponse=structtypenonrect={groups:GroupSummaryList.toption[@ocaml.doc"An array of structures that contain information about the groups that this canary is associated with."];nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent ListAssociatedGroups operation to retrieve the next set of results."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?groups=fun?nextToken->fun()->{groups;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Groups",(Option.mapx.groups~f:GroupSummaryList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletgroups=(Option.map~f:GroupSummaryList.of_xml)(Xml.childxml_arg0"Groups")inmake?nextToken?groups()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletgroups=field_mapjson__"Groups"GroupSummaryList.of_jsoninmake?nextToken?groups()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the groups that the specified canary is associated with. The canary that you specify must be in the current Region."]moduleListAssociatedGroupsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results."];maxResults:MaxGroupResults.toption[@ocaml.doc"Specify this parameter to limit how many groups are returned each time you use the ListAssociatedGroups operation. If you omit this parameter, the default of 20 is used."];resourceArn:CanaryArn.t[@ocaml.doc"The ARN of the canary that you want to view groups for."]}letcontext_="ListAssociatedGroupsRequest"letmake?nextToken=fun?maxResults->fun~resourceArn->fun()->{nextToken;maxResults;resourceArn}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxGroupResults.to_value));("resourceArn",(Some(CanaryArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=CanaryArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inletmaxResults=(Option.map~f:MaxGroupResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake~resourceArn?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"CanaryArn.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxGroupResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake~resourceArn?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the groups that the specified canary is associated with. The canary that you specify must be in the current Region."]moduleGetGroupResponse=structtypenonrect={group:Group.toption[@ocaml.doc"A structure that contains information about the group."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?group=fun()->{group}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Group",(Option.mapx.group~f:Group.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroup=(Option.map~f:Group.of_xml)(Xml.childxml_arg0"Group")inmake?group()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroup=field_mapjson__"Group"Group.of_jsoninmake?group()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about one group. Groups are a global resource, so you can use this operation from any Region."]moduleGetGroupRequest=structtypenonrect={groupIdentifier:GroupIdentifier.t[@ocaml.doc"Specifies the group to return information for. You can specify the group name, the ARN, or the group ID as the GroupIdentifier."]}letcontext_="GetGroupRequest"letmake~groupIdentifier=fun()->{groupIdentifier}letto_valuex=structure_to_value[("groupIdentifier",(Some(GroupIdentifier.to_valuex.groupIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupIdentifier=GroupIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"groupIdentifier")inmake~groupIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupIdentifier=field_map_exnjson__"GroupIdentifier"GroupIdentifier.of_jsoninmake~groupIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about one group. Groups are a global resource, so you can use this operation from any Region."]moduleGetCanaryRunsResponse=structtypenonrect={canaryRuns:CanaryRuns.toption[@ocaml.doc"An array of structures. Each structure contains the details of one of the retrieved canary runs."];nextToken:Token.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent GetCanaryRuns operation to retrieve the next set of results."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?canaryRuns=fun?nextToken->fun()->{canaryRuns;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CanaryRuns",(Option.mapx.canaryRuns~f:CanaryRuns.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletcanaryRuns=(Option.map~f:CanaryRuns.of_xml)(Xml.childxml_arg0"CanaryRuns")inmake?nextToken?canaryRuns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletcanaryRuns=field_mapjson__"CanaryRuns"CanaryRuns.of_jsoninmake?nextToken?canaryRuns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of runs for a specified canary."]moduleGetCanaryRunsRequest=structtypenonrect={name:CanaryName.t[@ocaml.doc"The name of the canary that you want to see runs for."];nextToken:Token.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent GetCanaryRuns operation to retrieve the next set of results. When auto retry is enabled for the canary, the first subsequent retry is suffixed with *1 indicating its the first retry and the next subsequent try is suffixed with *2."];maxResults:MaxSize100.toption[@ocaml.doc"Specify this parameter to limit how many runs are returned each time you use the GetCanaryRuns operation. If you omit this parameter, the default of 100 is used."];dryRunId:UUID.toption[@ocaml.doc"The DryRunId associated with an existing canary\226\128\153s dry run. You can use this DryRunId to retrieve information about the dry run."];runType:RunType.toption[@ocaml.doc"When you provide RunType=CANARY_RUN and dryRunId, you will get an exception When a value is not provided for RunType, the default value is CANARY_RUN When CANARY_RUN is provided, all canary runs excluding dry runs are returned When DRY_RUN is provided, all dry runs excluding canary runs are returned"]}letcontext_="GetCanaryRunsRequest"letmake?nextToken=fun?maxResults->fun?dryRunId->fun?runType->fun~name->fun()->{nextToken;maxResults;dryRunId;runType;name}letto_valuex=structure_to_value[("name",(Some(CanaryName.to_valuex.name)));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxSize100.to_value));("DryRunId",(Option.mapx.dryRunId~f:UUID.to_value));("RunType",(Option.mapx.runType~f:RunType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrunType=(Option.map~f:RunType.of_xml)(Xml.childxml_arg0"RunType")inletdryRunId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"DryRunId")inletmaxResults=(Option.map~f:MaxSize100.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletname=CanaryName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?runType?dryRunId?maxResults?nextToken~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrunType=field_mapjson__"RunType"RunType.of_jsoninletdryRunId=field_mapjson__"DryRunId"UUID.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxSize100.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletname=field_map_exnjson__"Name"CanaryName.of_jsoninmake?runType?dryRunId?maxResults?nextToken~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of runs for a specified canary."]moduleGetCanaryResponse=structtypenonrect={canary:Canary.toption[@ocaml.doc"A structure that contains the full information about the canary."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?canary=fun()->{canary}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Canary",(Option.mapx.canary~f:Canary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcanary=(Option.map~f:Canary.of_xml)(Xml.childxml_arg0"Canary")inmake?canary()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcanary=field_mapjson__"Canary"Canary.of_jsoninmake?canary()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves complete information about one canary. You must specify the name of the canary that you want. To get a list of canaries and their names, use DescribeCanaries."]moduleGetCanaryRequest=structtypenonrect={name:CanaryName.t[@ocaml.doc"The name of the canary that you want details for."];dryRunId:UUID.toption[@ocaml.doc"The DryRunId associated with an existing canary\226\128\153s dry run. You can use this DryRunId to retrieve information about the dry run."]}letcontext_="GetCanaryRequest"letmake?dryRunId=fun~name->fun()->{dryRunId;name}letto_valuex=structure_to_value[("name",(Some(CanaryName.to_valuex.name)));("dryRunId",(Option.mapx.dryRunId~f:UUID.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdryRunId=(Option.map~f:UUID.of_xml)(Xml.childxml_arg0"dryRunId")inletname=CanaryName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?dryRunId~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdryRunId=field_mapjson__"DryRunId"UUID.of_jsoninletname=field_map_exnjson__"Name"CanaryName.of_jsoninmake?dryRunId~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves complete information about one canary. You must specify the name of the canary that you want. To get a list of canaries and their names, use DescribeCanaries."]moduleDisassociateResourceResponse=structtypenonrect=unittypenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes a canary from a group. You must run this operation in the Region where the canary exists."]moduleDisassociateResourceRequest=structtypenonrect={groupIdentifier:GroupIdentifier.t[@ocaml.doc"Specifies the group. You can specify the group name, the ARN, or the group ID as the GroupIdentifier."];resourceArn:CanaryArn.t[@ocaml.doc"The ARN of the canary that you want to remove from the specified group."]}letcontext_="DisassociateResourceRequest"letmake~groupIdentifier=fun~resourceArn->fun()->{groupIdentifier;resourceArn}letto_valuex=structure_to_value[("groupIdentifier",(Some(GroupIdentifier.to_valuex.groupIdentifier)));("ResourceArn",(Some(CanaryArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=CanaryArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inletgroupIdentifier=GroupIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"groupIdentifier")inmake~resourceArn~groupIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"CanaryArn.of_jsoninletgroupIdentifier=field_map_exnjson__"GroupIdentifier"GroupIdentifier.of_jsoninmake~resourceArn~groupIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes a canary from a group. You must run this operation in the Region where the canary exists."]moduleDescribeRuntimeVersionsResponse=structtypenonrect={runtimeVersions:RuntimeVersionList.toption[@ocaml.doc"An array of objects that display the details about each Synthetics canary runtime version."];nextToken:Token.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent DescribeRuntimeVersions operation to retrieve the next set of results."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?runtimeVersions=fun?nextToken->fun()->{runtimeVersions;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RuntimeVersions",(Option.mapx.runtimeVersions~f:RuntimeVersionList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletruntimeVersions=(Option.map~f:RuntimeVersionList.of_xml)(Xml.childxml_arg0"RuntimeVersions")inmake?nextToken?runtimeVersions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletruntimeVersions=field_mapjson__"RuntimeVersions"RuntimeVersionList.of_jsoninmake?nextToken?runtimeVersions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Synthetics canary runtime versions. For more information, see Canary Runtime Versions."]moduleDescribeRuntimeVersionsRequest=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent DescribeRuntimeVersions operation to retrieve the next set of results."];maxResults:MaxSize100.toption[@ocaml.doc"Specify this parameter to limit how many runs are returned each time you use the DescribeRuntimeVersions operation. If you omit this parameter, the default of 100 is used."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxSize100.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxSize100.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxSize100.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Synthetics canary runtime versions. For more information, see Canary Runtime Versions."]moduleDescribeCanariesResponse=structtypenonrect={canaries:Canaries.toption[@ocaml.doc"Returns an array. Each item in the array contains the full information about one canary."];nextToken:Token.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent DescribeCanaries operation to retrieve the next set of results."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?canaries=fun?nextToken->fun()->{canaries;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Canaries",(Option.mapx.canaries~f:Canaries.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletcanaries=(Option.map~f:Canaries.of_xml)(Xml.childxml_arg0"Canaries")inmake?nextToken?canaries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletcanaries=field_mapjson__"Canaries"Canaries.of_jsoninmake?nextToken?canaries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation returns a list of the canaries in your account, along with full details about each canary. This operation supports resource-level authorization using an IAM policy and the Names parameter. If you specify the Names parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response. You are required to use the Names parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries."]moduleDescribeCanariesRequest=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results."];maxResults:MaxCanaryResults.toption[@ocaml.doc"Specify this parameter to limit how many canaries are returned each time you use the DescribeCanaries operation. If you omit this parameter, the default of 20 is used."];names:DescribeCanariesNameFilter.toption[@ocaml.doc"Use this parameter to return only canaries that match the names that you specify here. You can specify as many as five canary names. If you specify this parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response. You are required to use this parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries."]}letmake?nextToken=fun?maxResults->fun?names->fun()->{nextToken;maxResults;names}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxCanaryResults.to_value));("Names",(Option.mapx.names~f:DescribeCanariesNameFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnames=(Option.map~f:DescribeCanariesNameFilter.of_xml)(Xml.childxml_arg0"Names")inletmaxResults=(Option.map~f:MaxCanaryResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inmake?names?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnames=field_mapjson__"Names"DescribeCanariesNameFilter.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxCanaryResults.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?names?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation returns a list of the canaries in your account, along with full details about each canary. This operation supports resource-level authorization using an IAM policy and the Names parameter. If you specify the Names parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response. You are required to use the Names parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries."]moduleDescribeCanariesLastRunResponse=structtypenonrect={canariesLastRun:CanariesLastRun.toption[@ocaml.doc"An array that contains the information from the most recent run of each canary."];nextToken:Token.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent DescribeCanariesLastRun operation to retrieve the next set of results."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?canariesLastRun=fun?nextToken->fun()->{canariesLastRun;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CanariesLastRun",(Option.mapx.canariesLastRun~f:CanariesLastRun.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletcanariesLastRun=(Option.map~f:CanariesLastRun.of_xml)(Xml.childxml_arg0"CanariesLastRun")inmake?nextToken?canariesLastRun()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletcanariesLastRun=field_mapjson__"CanariesLastRun"CanariesLastRun.of_jsoninmake?nextToken?canariesLastRun()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to see information from the most recent run of each canary that you have created. This operation supports resource-level authorization using an IAM policy and the Names parameter. If you specify the Names parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response. You are required to use the Names parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries."]moduleDescribeCanariesLastRunRequest=structtypenonrect={nextToken:Token.toption[@ocaml.doc"A token that indicates that there is more data available. You can use this token in a subsequent DescribeCanariesLastRun operation to retrieve the next set of results."];maxResults:MaxSize100.toption[@ocaml.doc"Specify this parameter to limit how many runs are returned each time you use the DescribeLastRun operation. If you omit this parameter, the default of 100 is used."];names:DescribeCanariesLastRunNameFilter.toption[@ocaml.doc"Use this parameter to return only canaries that match the names that you specify here. You can specify as many as five canary names. If you specify this parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response. You are required to use the Names parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries."];browserType:BrowserType.toption[@ocaml.doc"The type of browser to use for the canary run."]}letmake?nextToken=fun?maxResults->fun?names->fun?browserType->fun()->{nextToken;maxResults;names;browserType}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxSize100.to_value));("Names",(Option.mapx.names~f:DescribeCanariesLastRunNameFilter.to_value));("BrowserType",(Option.mapx.browserType~f:BrowserType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbrowserType=(Option.map~f:BrowserType.of_xml)(Xml.childxml_arg0"BrowserType")inletnames=(Option.map~f:DescribeCanariesLastRunNameFilter.of_xml)(Xml.childxml_arg0"Names")inletmaxResults=(Option.map~f:MaxSize100.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inmake?browserType?names?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbrowserType=field_mapjson__"BrowserType"BrowserType.of_jsoninletnames=field_mapjson__"Names"DescribeCanariesLastRunNameFilter.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxSize100.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?browserType?names?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to see information from the most recent run of each canary that you have created. This operation supports resource-level authorization using an IAM policy and the Names parameter. If you specify the Names parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response. You are required to use the Names parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries."]moduleDeleteGroupResponse=structtypenonrect=unittypenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a group. The group doesn't need to be empty to be deleted. If there are canaries in the group, they are not deleted when you delete the group. Groups are a global resource that appear in all Regions, but the request to delete a group must be made from its home Region. You can find the home Region of a group within its ARN."]moduleDeleteGroupRequest=structtypenonrect={groupIdentifier:GroupIdentifier.t[@ocaml.doc"Specifies which group to delete. You can specify the group name, the ARN, or the group ID as the GroupIdentifier."]}letcontext_="DeleteGroupRequest"letmake~groupIdentifier=fun()->{groupIdentifier}letto_valuex=structure_to_value[("groupIdentifier",(Some(GroupIdentifier.to_valuex.groupIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupIdentifier=GroupIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"groupIdentifier")inmake~groupIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupIdentifier=field_map_exnjson__"GroupIdentifier"GroupIdentifier.of_jsoninmake~groupIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a group. The group doesn't need to be empty to be deleted. If there are canaries in the group, they are not deleted when you delete the group. Groups are a global resource that appear in all Regions, but the request to delete a group must be made from its home Region. You can find the home Region of a group within its ARN."]moduleDeleteCanaryResponse=structtypenonrect=unittypenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Permanently deletes the specified canary. If the canary's ProvisionedResourceCleanup field is set to AUTOMATIC or you specify DeleteLambda in this operation as true, CloudWatch Synthetics also deletes the Lambda functions and layers that are used by the canary. Other resources used and created by the canary are not automatically deleted. After you delete a canary, you should also delete the following: The CloudWatch alarms created for this canary. These alarms have a name of Synthetics-Alarm-first-198-characters-of-canary-name-canaryId-alarm number Amazon S3 objects and buckets, such as the canary's artifact location. IAM roles created for the canary. If they were created in the console, these roles have the name role/service-role/CloudWatchSyntheticsRole-First-21-Characters-of-CanaryName CloudWatch Logs log groups created for the canary. These logs groups have the name /aws/lambda/cwsyn-First-21-Characters-of-CanaryName Before you delete a canary, you might want to use GetCanary to display the information about this canary. Make note of the information returned by this operation so that you can delete these resources after you delete the canary."]moduleDeleteCanaryRequest=structtypenonrect={name:CanaryName.t[@ocaml.doc"The name of the canary that you want to delete. To find the names of your canaries, use DescribeCanaries."];deleteLambda:Boolean.toption[@ocaml.doc"Specifies whether to also delete the Lambda functions and layers used by this canary. The default is false. Your setting for this parameter is used only if the canary doesn't have AUTOMATIC for its ProvisionedResourceCleanup field. If that field is set to AUTOMATIC, then the Lambda functions and layers will be deleted when this canary is deleted. Type: Boolean"]}letcontext_="DeleteCanaryRequest"letmake?deleteLambda=fun~name->fun()->{deleteLambda;name}letto_valuex=structure_to_value[("name",(Some(CanaryName.to_valuex.name)));("deleteLambda",(Option.mapx.deleteLambda~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeleteLambda=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"deleteLambda")inletname=CanaryName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?deleteLambda~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeleteLambda=field_mapjson__"DeleteLambda"Boolean.of_jsoninletname=field_map_exnjson__"Name"CanaryName.of_jsoninmake?deleteLambda~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Permanently deletes the specified canary. If the canary's ProvisionedResourceCleanup field is set to AUTOMATIC or you specify DeleteLambda in this operation as true, CloudWatch Synthetics also deletes the Lambda functions and layers that are used by the canary. Other resources used and created by the canary are not automatically deleted. After you delete a canary, you should also delete the following: The CloudWatch alarms created for this canary. These alarms have a name of Synthetics-Alarm-first-198-characters-of-canary-name-canaryId-alarm number Amazon S3 objects and buckets, such as the canary's artifact location. IAM roles created for the canary. If they were created in the console, these roles have the name role/service-role/CloudWatchSyntheticsRole-First-21-Characters-of-CanaryName CloudWatch Logs log groups created for the canary. These logs groups have the name /aws/lambda/cwsyn-First-21-Characters-of-CanaryName Before you delete a canary, you might want to use GetCanary to display the information about this canary. Make note of the information returned by this operation so that you can delete these resources after you delete the canary."]moduleCreateGroupResponse=structtypenonrect={group:Group.toption[@ocaml.doc"A structure that contains information about the group that was just created."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?group=fun()->{group}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Group",(Option.mapx.group~f:Group.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroup=(Option.map~f:Group.of_xml)(Xml.childxml_arg0"Group")inmake?group()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroup=field_mapjson__"Group"Group.of_jsoninmake?group()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a group which you can use to associate canaries with each other, including cross-Region canaries. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group. Groups are global resources. When you create a group, it is replicated across Amazon Web Services Regions, and you can view it and add canaries to it from any Region. Although the group ARN format reflects the Region name where it was created, a group is not constrained to any Region. This means that you can put canaries from multiple Regions into the same group, and then use that group to view and manage all of those canaries in a single view. Groups are supported in all Regions except the Regions that are disabled by default. For more information about these Regions, see Enabling a Region. Each group can contain as many as 10 canaries. You can have as many as 20 groups in your account. Any single canary can be a member of up to 10 groups."]moduleCreateGroupRequest=structtypenonrect={name:GroupName.t[@ocaml.doc"The name for the group. It can include any Unicode characters. The names for all groups in your account, across all Regions, must be unique."];tags:TagMap.toption[@ocaml.doc"A list of key-value pairs to associate with the group. You can associate as many as 50 tags with a group. Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values."]}letcontext_="CreateGroupRequest"letmake?tags=fun~name->fun()->{tags;name}letto_valuex=structure_to_value[("Name",(Some(GroupName.to_valuex.name)));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletname=GroupName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?tags~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninletname=field_map_exnjson__"Name"GroupName.of_jsoninmake?tags~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a group which you can use to associate canaries with each other, including cross-Region canaries. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group. Groups are global resources. When you create a group, it is replicated across Amazon Web Services Regions, and you can view it and add canaries to it from any Region. Although the group ARN format reflects the Region name where it was created, a group is not constrained to any Region. This means that you can put canaries from multiple Regions into the same group, and then use that group to view and manage all of those canaries in a single view. Groups are supported in all Regions except the Regions that are disabled by default. For more information about these Regions, see Enabling a Region. Each group can contain as many as 10 canaries. You can have as many as 20 groups in your account. Any single canary can be a member of up to 10 groups."]moduleCreateCanaryResponse=structtypenonrect={canary:Canary.toption[@ocaml.doc"The full details about the canary you have created."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`RequestEntityTooLargeExceptionofRequestEntityTooLargeException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?canary=fun()->{canary}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"RequestEntityTooLargeException"->`RequestEntityTooLargeException(RequestEntityTooLargeException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"RequestEntityTooLargeException"->`RequestEntityTooLargeException(RequestEntityTooLargeException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`RequestEntityTooLargeExceptione->`Assoc[("error",(`String"RequestEntityTooLargeException"));("details",(RequestEntityTooLargeException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Canary",(Option.mapx.canary~f:Canary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcanary=(Option.map~f:Canary.of_xml)(Xml.childxml_arg0"Canary")inmake?canary()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcanary=field_mapjson__"Canary"Canary.of_jsoninmake?canary()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a canary. Canaries are scripts that monitor your endpoints and APIs from the outside-in. Canaries help you check the availability and latency of your web services and troubleshoot anomalies by investigating load time data, screenshots of the UI, logs, and metrics. You can set up a canary to run continuously or just once. Do not use CreateCanary to modify an existing canary. Use UpdateCanary instead. To create canaries, you must have the CloudWatchSyntheticsFullAccess policy. If you are creating a new IAM role for the canary, you also need the iam:CreateRole, iam:CreatePolicy and iam:AttachRolePolicy permissions. For more information, see Necessary Roles and Permissions. Do not include secrets or proprietary information in your canary names. The canary name makes up part of the Amazon Resource Name (ARN) for the canary, and the ARN is included in outbound calls over the internet. For more information, see Security Considerations for Synthetics Canaries."]moduleCreateCanaryRequest=structtypenonrect={name:CanaryName.t[@ocaml.doc"The name for this canary. Be sure to give it a descriptive name that distinguishes it from other canaries in your account. Do not include secrets or proprietary information in your canary names. The canary name makes up part of the canary ARN, and the ARN is included in outbound calls over the internet. For more information, see Security Considerations for Synthetics Canaries."];code:CanaryCodeInput.t[@ocaml.doc"A structure that includes the entry point from which the canary should start running your script. If the script is stored in an Amazon S3 bucket, the bucket name, key, and version are also included."];artifactS3Location:String_.t[@ocaml.doc"The location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary. Artifacts include the log file, screenshots, and HAR files. The name of the Amazon S3 bucket can't include a period (.)."];executionRoleArn:RoleArn.t[@ocaml.doc"The ARN of the IAM role to be used to run the canary. This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions: s3:PutObject s3:GetBucketLocation s3:ListAllMyBuckets cloudwatch:PutMetricData logs:CreateLogGroup logs:CreateLogStream logs:PutLogEvents"];schedule:CanaryScheduleInput.t[@ocaml.doc"A structure that contains information about how often the canary is to run and when these test runs are to stop."];runConfig:CanaryRunConfigInput.toption[@ocaml.doc"A structure that contains the configuration for individual canary runs, such as timeout value and environment variables. Environment variable keys and values are encrypted at rest using Amazon Web Services owned KMS keys. However, the environment variables are not encrypted on the client side. Do not store sensitive information in them."];successRetentionPeriodInDays:MaxSize1024.toption[@ocaml.doc"The number of days to retain data about successful runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days. This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console."];failureRetentionPeriodInDays:MaxSize1024.toption[@ocaml.doc"The number of days to retain data about failed runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days. This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console."];runtimeVersion:String_.t[@ocaml.doc"Specifies the runtime version to use for the canary. For a list of valid runtime versions and more information about runtime versions, see Canary Runtime Versions."];vpcConfig:VpcConfigInput.toption[@ocaml.doc"If this canary is to test an endpoint in a VPC, this structure contains information about the subnet and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC."];resourcesToReplicateTags:ResourceList.toption[@ocaml.doc"To have the tags that you apply to this canary also be applied to the Lambda function that the canary uses, specify this parameter with the value lambda-function. If you specify this parameter and don't specify any tags in the Tags parameter, the canary creation fails."];provisionedResourceCleanup:ProvisionedResourceCleanupSetting.toption[@ocaml.doc"Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If you omit this parameter, the default of AUTOMATIC is used, which means that the Lambda functions and layers will be deleted when the canary is deleted. If the value of this parameter is OFF, then the value of the DeleteLambda parameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted."];browserConfigs:BrowserConfigs.toption[@ocaml.doc"CloudWatch Synthetics now supports multibrowser canaries for syn-nodejs-puppeteer-11.0 and syn-nodejs-playwright-3.0 runtimes. This feature allows you to run your canaries on both Firefox and Chrome browsers. To create a multibrowser canary, you need to specify the BrowserConfigs with a list of browsers you want to use. If not specified, browserConfigs defaults to Chrome."];tags:TagMap.toption[@ocaml.doc"A list of key-value pairs to associate with the canary. You can associate as many as 50 tags with a canary. Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values. To have the tags that you apply to this canary also be applied to the Lambda function that the canary uses, specify this parameter with the value lambda-function."];artifactConfig:ArtifactConfigInput.toption[@ocaml.doc"A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3."]}letcontext_="CreateCanaryRequest"letmake?runConfig=fun?successRetentionPeriodInDays->fun?failureRetentionPeriodInDays->fun?vpcConfig->fun?resourcesToReplicateTags->fun?provisionedResourceCleanup->fun?browserConfigs->fun?tags->fun?artifactConfig->fun~name->fun~code->fun~artifactS3Location->fun~executionRoleArn->fun~schedule->fun~runtimeVersion->fun()->{runConfig;successRetentionPeriodInDays;failureRetentionPeriodInDays;vpcConfig;resourcesToReplicateTags;provisionedResourceCleanup;browserConfigs;tags;artifactConfig;name;code;artifactS3Location;executionRoleArn;schedule;runtimeVersion}letto_valuex=structure_to_value[("Name",(Some(CanaryName.to_valuex.name)));("Code",(Some(CanaryCodeInput.to_valuex.code)));("ArtifactS3Location",(Some(String_.to_valuex.artifactS3Location)));("ExecutionRoleArn",(Some(RoleArn.to_valuex.executionRoleArn)));("Schedule",(Some(CanaryScheduleInput.to_valuex.schedule)));("RunConfig",(Option.mapx.runConfig~f:CanaryRunConfigInput.to_value));("SuccessRetentionPeriodInDays",(Option.mapx.successRetentionPeriodInDays~f:MaxSize1024.to_value));("FailureRetentionPeriodInDays",(Option.mapx.failureRetentionPeriodInDays~f:MaxSize1024.to_value));("RuntimeVersion",(Some(String_.to_valuex.runtimeVersion)));("VpcConfig",(Option.mapx.vpcConfig~f:VpcConfigInput.to_value));("ResourcesToReplicateTags",(Option.mapx.resourcesToReplicateTags~f:ResourceList.to_value));("ProvisionedResourceCleanup",(Option.mapx.provisionedResourceCleanup~f:ProvisionedResourceCleanupSetting.to_value));("BrowserConfigs",(Option.mapx.browserConfigs~f:BrowserConfigs.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("ArtifactConfig",(Option.mapx.artifactConfig~f:ArtifactConfigInput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letartifactConfig=(Option.map~f:ArtifactConfigInput.of_xml)(Xml.childxml_arg0"ArtifactConfig")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletbrowserConfigs=(Option.map~f:BrowserConfigs.of_xml)(Xml.childxml_arg0"BrowserConfigs")inletprovisionedResourceCleanup=(Option.map~f:ProvisionedResourceCleanupSetting.of_xml)(Xml.childxml_arg0"ProvisionedResourceCleanup")inletresourcesToReplicateTags=(Option.map~f:ResourceList.of_xml)(Xml.childxml_arg0"ResourcesToReplicateTags")inletvpcConfig=(Option.map~f:VpcConfigInput.of_xml)(Xml.childxml_arg0"VpcConfig")inletruntimeVersion=String_.of_xml(Xml.child_exn~context:context_xml_arg0"RuntimeVersion")inletfailureRetentionPeriodInDays=(Option.map~f:MaxSize1024.of_xml)(Xml.childxml_arg0"FailureRetentionPeriodInDays")inletsuccessRetentionPeriodInDays=(Option.map~f:MaxSize1024.of_xml)(Xml.childxml_arg0"SuccessRetentionPeriodInDays")inletrunConfig=(Option.map~f:CanaryRunConfigInput.of_xml)(Xml.childxml_arg0"RunConfig")inletschedule=CanaryScheduleInput.of_xml(Xml.child_exn~context:context_xml_arg0"Schedule")inletexecutionRoleArn=RoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"ExecutionRoleArn")inletartifactS3Location=String_.of_xml(Xml.child_exn~context:context_xml_arg0"ArtifactS3Location")inletcode=CanaryCodeInput.of_xml(Xml.child_exn~context:context_xml_arg0"Code")inletname=CanaryName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?artifactConfig?tags?browserConfigs?provisionedResourceCleanup?resourcesToReplicateTags?vpcConfig~runtimeVersion?failureRetentionPeriodInDays?successRetentionPeriodInDays?runConfig~schedule~executionRoleArn~artifactS3Location~code~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letartifactConfig=field_mapjson__"ArtifactConfig"ArtifactConfigInput.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletbrowserConfigs=field_mapjson__"BrowserConfigs"BrowserConfigs.of_jsoninletprovisionedResourceCleanup=field_mapjson__"ProvisionedResourceCleanup"ProvisionedResourceCleanupSetting.of_jsoninletresourcesToReplicateTags=field_mapjson__"ResourcesToReplicateTags"ResourceList.of_jsoninletvpcConfig=field_mapjson__"VpcConfig"VpcConfigInput.of_jsoninletruntimeVersion=field_map_exnjson__"RuntimeVersion"String_.of_jsoninletfailureRetentionPeriodInDays=field_mapjson__"FailureRetentionPeriodInDays"MaxSize1024.of_jsoninletsuccessRetentionPeriodInDays=field_mapjson__"SuccessRetentionPeriodInDays"MaxSize1024.of_jsoninletrunConfig=field_mapjson__"RunConfig"CanaryRunConfigInput.of_jsoninletschedule=field_map_exnjson__"Schedule"CanaryScheduleInput.of_jsoninletexecutionRoleArn=field_map_exnjson__"ExecutionRoleArn"RoleArn.of_jsoninletartifactS3Location=field_map_exnjson__"ArtifactS3Location"String_.of_jsoninletcode=field_map_exnjson__"Code"CanaryCodeInput.of_jsoninletname=field_map_exnjson__"Name"CanaryName.of_jsoninmake?artifactConfig?tags?browserConfigs?provisionedResourceCleanup?resourcesToReplicateTags?vpcConfig~runtimeVersion?failureRetentionPeriodInDays?successRetentionPeriodInDays?runConfig~schedule~executionRoleArn~artifactS3Location~code~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a canary. Canaries are scripts that monitor your endpoints and APIs from the outside-in. Canaries help you check the availability and latency of your web services and troubleshoot anomalies by investigating load time data, screenshots of the UI, logs, and metrics. You can set up a canary to run continuously or just once. Do not use CreateCanary to modify an existing canary. Use UpdateCanary instead. To create canaries, you must have the CloudWatchSyntheticsFullAccess policy. If you are creating a new IAM role for the canary, you also need the iam:CreateRole, iam:CreatePolicy and iam:AttachRolePolicy permissions. For more information, see Necessary Roles and Permissions. Do not include secrets or proprietary information in your canary names. The canary name makes up part of the Amazon Resource Name (ARN) for the canary, and the ARN is included in outbound calls over the internet. For more information, see Security Considerations for Synthetics Canaries."]moduleAssociateResourceResponse=structtypenonrect=unittypenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates a canary with a group. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group. You must run this operation in the Region where the canary exists."]moduleAssociateResourceRequest=structtypenonrect={groupIdentifier:GroupIdentifier.t[@ocaml.doc"Specifies the group. You can specify the group name, the ARN, or the group ID as the GroupIdentifier."];resourceArn:CanaryArn.t[@ocaml.doc"The ARN of the canary that you want to associate with the specified group."]}letcontext_="AssociateResourceRequest"letmake~groupIdentifier=fun~resourceArn->fun()->{groupIdentifier;resourceArn}letto_valuex=structure_to_value[("groupIdentifier",(Some(GroupIdentifier.to_valuex.groupIdentifier)));("ResourceArn",(Some(CanaryArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=CanaryArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inletgroupIdentifier=GroupIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"groupIdentifier")inmake~resourceArn~groupIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"CanaryArn.of_jsoninletgroupIdentifier=field_map_exnjson__"GroupIdentifier"GroupIdentifier.of_jsoninmake~resourceArn~groupIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates a canary with a group. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group. You must run this operation in the Region where the canary exists."]