1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940(* 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.shieldletapiVersion="2016-06-02"letendpointPrefix="shield"letserviceFullName="AWS Shield"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="AWS Shield"lettargetPrefix="AWSShield_20160616"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[]))])moduleDouble=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleInteger=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleSummarizedCounter=structtypenonrect={name:String_.toption[@ocaml.doc"The counter name."];max:Double.toption[@ocaml.doc"The maximum value of the counter for a specified time period."];average:Double.toption[@ocaml.doc"The average value of the counter for a specified time period."];sum:Double.toption[@ocaml.doc"The total of counter values for a specified time period."];n:Integer.toption[@ocaml.doc"The number of counters for a specified time period."];unit:String_.toption[@ocaml.doc"The unit of the counters."]}letmake?name=fun?max->fun?average->fun?sum->fun?n->fun?unit->fun()->{name;max;average;sum;n;unit}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.to_value));("Max",(Option.mapx.max~f:Double.to_value));("Average",(Option.mapx.average~f:Double.to_value));("Sum",(Option.mapx.sum~f:Double.to_value));("N",(Option.mapx.n~f:Integer.to_value));("Unit",(Option.mapx.unit~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunit=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Unit")inletn=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"N")inletsum=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Sum")inletaverage=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Average")inletmax=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Max")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?unit?n?sum?average?max?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunit=field_mapjson__"Unit"String_.of_jsoninletn=field_mapjson__"N"Integer.of_jsoninletsum=field_mapjson__"Sum"Double.of_jsoninletaverage=field_mapjson__"Average"Double.of_jsoninletmax=field_mapjson__"Max"Double.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?unit?n?sum?average?max?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The counter that describes a DDoS attack."]moduleLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleSummarizedCounterList=structtypenonrect=SummarizedCounter.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SummarizedCounter.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:SummarizedCounter.of_xml)letof_jsonj=list_of_json~kind:"SummarizedCounterList"~of_json:SummarizedCounter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBlockAction=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies that Shield Advanced should configure its WAF rules with the WAF Block action. This is only used in the context of the ResponseAction setting. JSON specification: \"Block\": \\{\\}"]moduleCountAction=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies that Shield Advanced should configure its WAF rules with the WAF Count action. This is only used in the context of the ResponseAction setting. JSON specification: \"Count\": \\{\\}"]moduleProtectionGroupArbitraryPatternLimits=structtypenonrect={maxMembers:Long.toption[@ocaml.doc"The maximum number of resources you can specify for a single arbitrary pattern in a protection group."]}letmake?maxMembers=fun()->{maxMembers}letto_valuex=structure_to_value[("MaxMembers",(Option.mapx.maxMembers~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxMembers=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"MaxMembers")inmake?maxMembers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxMembers=field_mapjson__"MaxMembers"Long.of_jsoninmake?maxMembers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Limits settings on protection groups with arbitrary pattern type."]moduleLimit=structtypenonrect={type_:String_.toption[@ocaml.doc"The type of protection."];max:Long.toption[@ocaml.doc"The maximum number of protections that can be created for the specified Type."]}letmake?type_=fun?max->fun()->{type_;max}letto_valuex=structure_to_value[("Type",(Option.mapx.type_~f:String_.to_value));("Max",(Option.mapx.max~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmax=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Max")inlettype_=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Type")inmake?max?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmax=field_mapjson__"Max"Long.of_jsoninlettype_=field_mapjson__"Type"String_.of_jsoninmake?max?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies how many protections of a given type you can create."]moduleContributor=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier setting in the AttackProperty where this contributor is defined. For example, if the AttackPropertyIdentifier is SOURCE_COUNTRY, the Name could be United States."];value:Long.toption[@ocaml.doc"The contribution of this contributor expressed in Protection units. For example 10,000."]}letmake?name=fun?value->fun()->{name;value}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.to_value));("Value",(Option.mapx.value~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Value")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?value?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"Long.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?value?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A contributor to the attack and their contribution."]moduleSummarizedAttackVector=structtypenonrect={vectorType:String_.toption[@ocaml.doc"The attack type, for example, SNMP reflection or SYN flood."];vectorCounters:SummarizedCounterList.toption[@ocaml.doc"The list of counters that describe the details of the attack."]}letmake?vectorType=fun?vectorCounters->fun()->{vectorType;vectorCounters}letto_valuex=structure_to_value[("VectorType",(Option.mapx.vectorType~f:String_.to_value));("VectorCounters",(Option.mapx.vectorCounters~f:SummarizedCounterList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvectorCounters=(Option.map~f:SummarizedCounterList.of_xml)(Xml.childxml_arg0"VectorCounters")inletvectorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VectorType")inmake?vectorCounters?vectorType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvectorCounters=field_mapjson__"VectorCounters"SummarizedCounterList.of_jsoninletvectorType=field_mapjson__"VectorType"String_.of_jsoninmake?vectorCounters?vectorType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A summary of information about the attack."]moduleApplicationLayerAutomaticResponseStatus=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ApplicationLayerAutomaticResponseStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ApplicationLayerAutomaticResponseStatus"j)letto_json=simple_to_jsonto_valueendmoduleResponseAction=structtypenonrect={block:BlockAction.toption[@ocaml.doc"Specifies that Shield Advanced should configure its WAF rules with the WAF Block action. You must specify exactly one action, either Block or Count."];count:CountAction.toption[@ocaml.doc"Specifies that Shield Advanced should configure its WAF rules with the WAF Count action. You must specify exactly one action, either Block or Count."]}letmake?block=fun?count->fun()->{block;count}letto_valuex=structure_to_value[("Block",(Option.mapx.block~f:BlockAction.to_value));("Count",(Option.mapx.count~f:CountAction.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcount=(Option.map~f:CountAction.of_xml)(Xml.childxml_arg0"Count")inletblock=(Option.map~f:BlockAction.of_xml)(Xml.childxml_arg0"Block")inmake?count?block()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcount=field_mapjson__"Count"CountAction.of_jsoninletblock=field_mapjson__"Block"BlockAction.of_jsoninmake?count?block()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource."]moduleHealthCheckId=structtypenonrect=stringletcontext_="HealthCheckId"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:"HealthCheckId"jletto_json=simple_to_jsonto_valueendmoduleResourceArn=structtypenonrect=stringletcontext_="ResourceArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:aws.*")));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_valueendmoduleAttackVectorDescription=structtypenonrect={vectorType:String_.toption[@ocaml.doc"The attack type. Valid values: UDP_TRAFFIC UDP_FRAGMENT GENERIC_UDP_REFLECTION DNS_REFLECTION NTP_REFLECTION CHARGEN_REFLECTION SSDP_REFLECTION PORT_MAPPER RIP_REFLECTION SNMP_REFLECTION MSSQL_REFLECTION NET_BIOS_REFLECTION SYN_FLOOD ACK_FLOOD REQUEST_FLOOD HTTP_REFLECTION UDS_REFLECTION MEMCACHED_REFLECTION"]}letmake?vectorType=fun()->{vectorType}letto_valuex=structure_to_value[("VectorType",(Option.mapx.vectorType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvectorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VectorType")inmake?vectorType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvectorType=field_mapjson__"VectorType"String_.of_jsoninmake?vectorType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the attack."]moduleProtectionGroupPatternTypeLimits=structtypenonrect={arbitraryPatternLimits:ProtectionGroupArbitraryPatternLimits.toption[@ocaml.doc"Limits settings on protection groups with arbitrary pattern type."]}letmake?arbitraryPatternLimits=fun()->{arbitraryPatternLimits}letto_valuex=structure_to_value[("ArbitraryPatternLimits",(Option.mapx.arbitraryPatternLimits~f:ProtectionGroupArbitraryPatternLimits.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarbitraryPatternLimits=(Option.map~f:ProtectionGroupArbitraryPatternLimits.of_xml)(Xml.childxml_arg0"ArbitraryPatternLimits")inmake?arbitraryPatternLimits()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarbitraryPatternLimits=field_mapjson__"ArbitraryPatternLimits"ProtectionGroupArbitraryPatternLimits.of_jsoninmake?arbitraryPatternLimits()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Limits settings by pattern type in the protection groups for your subscription."]moduleLimits=structtypenonrect=Limit.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Limit.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:Limit.of_xml)letof_jsonj=list_of_json~kind:"Limits"~of_json:Limit.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAttackVolumeStatistics=structtypenonrect={max:Double.toption[@ocaml.doc"The maximum attack volume observed for the given unit."]}letmake?max=fun()->{max}letto_valuex=structure_to_value[("Max",(Option.mapx.max~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmax=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Max")inmake?max()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmax=field_mapjson__"Max"Double.of_jsoninmake?max()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Statistics objects for the various data types in AttackVolume."]moduleAttackLayer=structtypenonrect=|NETWORK|APPLICATION|Non_static_idofstringletmakei=iletto_string=function|NETWORK->"NETWORK"|APPLICATION->"APPLICATION"|Non_static_ids->sletof_string=function|"NETWORK"->NETWORK|"APPLICATION"->APPLICATION|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 AttackLayer"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AttackLayer"j)letto_json=simple_to_jsonto_valueendmoduleAttackPropertyIdentifier=structtypenonrect=|DESTINATION_URL|REFERRER|SOURCE_ASN|SOURCE_COUNTRY|SOURCE_IP_ADDRESS|SOURCE_USER_AGENT|WORDPRESS_PINGBACK_REFLECTOR|WORDPRESS_PINGBACK_SOURCE|Non_static_idofstringletmakei=iletto_string=function|DESTINATION_URL->"DESTINATION_URL"|REFERRER->"REFERRER"|SOURCE_ASN->"SOURCE_ASN"|SOURCE_COUNTRY->"SOURCE_COUNTRY"|SOURCE_IP_ADDRESS->"SOURCE_IP_ADDRESS"|SOURCE_USER_AGENT->"SOURCE_USER_AGENT"|WORDPRESS_PINGBACK_REFLECTOR->"WORDPRESS_PINGBACK_REFLECTOR"|WORDPRESS_PINGBACK_SOURCE->"WORDPRESS_PINGBACK_SOURCE"|Non_static_ids->sletof_string=function|"DESTINATION_URL"->DESTINATION_URL|"REFERRER"->REFERRER|"SOURCE_ASN"->SOURCE_ASN|"SOURCE_COUNTRY"->SOURCE_COUNTRY|"SOURCE_IP_ADDRESS"->SOURCE_IP_ADDRESS|"SOURCE_USER_AGENT"->SOURCE_USER_AGENT|"WORDPRESS_PINGBACK_REFLECTOR"->WORDPRESS_PINGBACK_REFLECTOR|"WORDPRESS_PINGBACK_SOURCE"->WORDPRESS_PINGBACK_SOURCE|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 AttackPropertyIdentifier"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AttackPropertyIdentifier"j)letto_json=simple_to_jsonto_valueendmoduleTopContributors=structtypenonrect=Contributor.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Contributor.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:Contributor.of_xml)letof_jsonj=list_of_json~kind:"TopContributors"~of_json:Contributor.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUnit=structtypenonrect=|BITS|BYTES|PACKETS|REQUESTS|Non_static_idofstringletmakei=iletto_string=function|BITS->"BITS"|BYTES->"BYTES"|PACKETS->"PACKETS"|REQUESTS->"REQUESTS"|Non_static_ids->sletof_string=function|"BITS"->BITS|"BYTES"->BYTES|"PACKETS"->PACKETS|"REQUESTS"->REQUESTS|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 Unit"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Unit"j)letto_json=simple_to_jsonto_valueendmoduleSubResourceType=structtypenonrect=|IP|URL|Non_static_idofstringletmakei=iletto_string=function|IP->"IP"|URL->"URL"|Non_static_ids->sletof_string=function|"IP"->IP|"URL"->URL|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 SubResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SubResourceType"j)letto_json=simple_to_jsonto_valueendmoduleSummarizedAttackVectorList=structtypenonrect=SummarizedAttackVector.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SummarizedAttackVector.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:SummarizedAttackVector.of_xml)letof_jsonj=list_of_json~kind:"SummarizedAttackVectorList"~of_json:SummarizedAttackVector.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidationExceptionField=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the parameter that failed validation."];message:String_.toption[@ocaml.doc"The message describing why the parameter failed validation."]}letmake?name=fun?message->fun()->{name;message}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?message?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?message?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about a particular parameter passed inside a request that resulted in an exception."]moduleContactNotes=structtypenonrect=stringletcontext_="ContactNotes"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"^[\\w\\s\\.\\-,:/()+@]*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ContactNotes"jletto_json=simple_to_jsonto_valueendmoduleEmailAddress=structtypenonrect=stringletcontext_="EmailAddress"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:150)>>=(fun()->check_patterni~pattern:"^\\S+@\\S+\\.\\S+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EmailAddress"jletto_json=simple_to_jsonto_valueendmodulePhoneNumber=structtypenonrect=stringletcontext_="PhoneNumber"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:16)>>=(fun()->check_patterni~pattern:"^\\+[1-9]\\d{1,14}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PhoneNumber"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"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:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleApplicationLayerAutomaticResponseConfiguration=structtypenonrect={status:ApplicationLayerAutomaticResponseStatus.toption[@ocaml.doc"Indicates whether automatic application layer DDoS mitigation is enabled for the protection."];action:ResponseAction.toption[@ocaml.doc"Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource."]}letmake?status=fun?action->fun()->{status;action}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:ApplicationLayerAutomaticResponseStatus.to_value));("Action",(Option.mapx.action~f:ResponseAction.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaction=(Option.map~f:ResponseAction.of_xml)(Xml.childxml_arg0"Action")inletstatus=(Option.map~f:ApplicationLayerAutomaticResponseStatus.of_xml)(Xml.childxml_arg0"Status")inmake?action?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaction=field_mapjson__"Action"ResponseAction.of_jsoninletstatus=field_mapjson__"Status"ApplicationLayerAutomaticResponseStatus.of_jsoninmake?action?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The automatic application layer DDoS mitigation settings for a Protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks."]moduleHealthCheckIds=structtypenonrect=HealthCheckId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:HealthCheckId.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:HealthCheckId.of_xml)letof_jsonj=list_of_json~kind:"HealthCheckIds"~of_json:HealthCheckId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleProtectionId=structtypenonrect=stringletcontext_="ProtectionId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9\\\\-]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ProtectionId"jletto_json=simple_to_jsonto_valueendmoduleProtectionName=structtypenonrect=stringletcontext_="ProtectionName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[ a-zA-Z0-9_\\\\.\\\\-]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ProtectionName"jletto_json=simple_to_jsonto_valueendmoduleProtectedResourceType=structtypenonrect=|CLOUDFRONT_DISTRIBUTION|ROUTE_53_HOSTED_ZONE|ELASTIC_IP_ALLOCATION|CLASSIC_LOAD_BALANCER|APPLICATION_LOAD_BALANCER|GLOBAL_ACCELERATOR|Non_static_idofstringletmakei=iletto_string=function|CLOUDFRONT_DISTRIBUTION->"CLOUDFRONT_DISTRIBUTION"|ROUTE_53_HOSTED_ZONE->"ROUTE_53_HOSTED_ZONE"|ELASTIC_IP_ALLOCATION->"ELASTIC_IP_ALLOCATION"|CLASSIC_LOAD_BALANCER->"CLASSIC_LOAD_BALANCER"|APPLICATION_LOAD_BALANCER->"APPLICATION_LOAD_BALANCER"|GLOBAL_ACCELERATOR->"GLOBAL_ACCELERATOR"|Non_static_ids->sletof_string=function|"CLOUDFRONT_DISTRIBUTION"->CLOUDFRONT_DISTRIBUTION|"ROUTE_53_HOSTED_ZONE"->ROUTE_53_HOSTED_ZONE|"ELASTIC_IP_ALLOCATION"->ELASTIC_IP_ALLOCATION|"CLASSIC_LOAD_BALANCER"->CLASSIC_LOAD_BALANCER|"APPLICATION_LOAD_BALANCER"->APPLICATION_LOAD_BALANCER|"GLOBAL_ACCELERATOR"->GLOBAL_ACCELERATOR|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 ProtectedResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ProtectedResourceType"j)letto_json=simple_to_jsonto_valueendmoduleProtectionGroupAggregation=structtypenonrect=|SUM|MEAN|MAX|Non_static_idofstringletmakei=iletto_string=function|SUM->"SUM"|MEAN->"MEAN"|MAX->"MAX"|Non_static_ids->sletof_string=function|"SUM"->SUM|"MEAN"->MEAN|"MAX"->MAX|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 ProtectionGroupAggregation"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ProtectionGroupAggregation"j)letto_json=simple_to_jsonto_valueendmoduleProtectionGroupId=structtypenonrect=stringletcontext_="ProtectionGroupId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9\\\\-]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ProtectionGroupId"jletto_json=simple_to_jsonto_valueendmoduleProtectionGroupMembers=structtypenonrect=ResourceArn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10000)>>=(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:ResourceArn.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:ResourceArn.of_xml)letof_jsonj=list_of_json~kind:"ProtectionGroupMembers"~of_json:ResourceArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleProtectionGroupPattern=structtypenonrect=|ALL|ARBITRARY|BY_RESOURCE_TYPE|Non_static_idofstringletmakei=iletto_string=function|ALL->"ALL"|ARBITRARY->"ARBITRARY"|BY_RESOURCE_TYPE->"BY_RESOURCE_TYPE"|Non_static_ids->sletof_string=function|"ALL"->ALL|"ARBITRARY"->ARBITRARY|"BY_RESOURCE_TYPE"->BY_RESOURCE_TYPE|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 ProtectionGroupPattern"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ProtectionGroupPattern"j)letto_json=simple_to_jsonto_valueendmoduleAttackTimestamp=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_valueendmoduleAttackVectorDescriptionList=structtypenonrect=AttackVectorDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttackVectorDescription.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:AttackVectorDescription.of_xml)letof_jsonj=list_of_json~kind:"AttackVectorDescriptionList"~of_json:AttackVectorDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleProtectionGroupLimits=structtypenonrect={maxProtectionGroups:Long.toption[@ocaml.doc"The maximum number of protection groups that you can have at one time."];patternTypeLimits:ProtectionGroupPatternTypeLimits.toption[@ocaml.doc"Limits settings by pattern type in the protection groups for your subscription."]}letmake?maxProtectionGroups=fun?patternTypeLimits->fun()->{maxProtectionGroups;patternTypeLimits}letto_valuex=structure_to_value[("MaxProtectionGroups",(Option.mapx.maxProtectionGroups~f:Long.to_value));("PatternTypeLimits",(Option.mapx.patternTypeLimits~f:ProtectionGroupPatternTypeLimits.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpatternTypeLimits=(Option.map~f:ProtectionGroupPatternTypeLimits.of_xml)(Xml.childxml_arg0"PatternTypeLimits")inletmaxProtectionGroups=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"MaxProtectionGroups")inmake?patternTypeLimits?maxProtectionGroups()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpatternTypeLimits=field_mapjson__"PatternTypeLimits"ProtectionGroupPatternTypeLimits.of_jsoninletmaxProtectionGroups=field_mapjson__"MaxProtectionGroups"Long.of_jsoninmake?patternTypeLimits?maxProtectionGroups()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Limits settings on protection groups for your subscription."]moduleProtectionLimits=structtypenonrect={protectedResourceTypeLimits:Limits.toption[@ocaml.doc"The maximum number of resource types that you can specify in a protection."]}letmake?protectedResourceTypeLimits=fun()->{protectedResourceTypeLimits}letto_valuex=structure_to_value[("ProtectedResourceTypeLimits",(Option.mapx.protectedResourceTypeLimits~f:Limits.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprotectedResourceTypeLimits=(Option.map~f:Limits.of_xml)(Xml.childxml_arg0"ProtectedResourceTypeLimits")inmake?protectedResourceTypeLimits()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprotectedResourceTypeLimits=field_mapjson__"ProtectedResourceTypeLimits"Limits.of_jsoninmake?protectedResourceTypeLimits()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Limits settings on protections for your subscription."]moduleAttackVolume=structtypenonrect={bitsPerSecond:AttackVolumeStatistics.toption[@ocaml.doc"A statistics object that uses bits per second as the unit. This is included for network level attacks."];packetsPerSecond:AttackVolumeStatistics.toption[@ocaml.doc"A statistics object that uses packets per second as the unit. This is included for network level attacks."];requestsPerSecond:AttackVolumeStatistics.toption[@ocaml.doc"A statistics object that uses requests per second as the unit. This is included for application level attacks, and is only available for accounts that are subscribed to Shield Advanced."]}letmake?bitsPerSecond=fun?packetsPerSecond->fun?requestsPerSecond->fun()->{bitsPerSecond;packetsPerSecond;requestsPerSecond}letto_valuex=structure_to_value[("BitsPerSecond",(Option.mapx.bitsPerSecond~f:AttackVolumeStatistics.to_value));("PacketsPerSecond",(Option.mapx.packetsPerSecond~f:AttackVolumeStatistics.to_value));("RequestsPerSecond",(Option.mapx.requestsPerSecond~f:AttackVolumeStatistics.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrequestsPerSecond=(Option.map~f:AttackVolumeStatistics.of_xml)(Xml.childxml_arg0"RequestsPerSecond")inletpacketsPerSecond=(Option.map~f:AttackVolumeStatistics.of_xml)(Xml.childxml_arg0"PacketsPerSecond")inletbitsPerSecond=(Option.map~f:AttackVolumeStatistics.of_xml)(Xml.childxml_arg0"BitsPerSecond")inmake?requestsPerSecond?packetsPerSecond?bitsPerSecond()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrequestsPerSecond=field_mapjson__"RequestsPerSecond"AttackVolumeStatistics.of_jsoninletpacketsPerSecond=field_mapjson__"PacketsPerSecond"AttackVolumeStatistics.of_jsoninletbitsPerSecond=field_mapjson__"BitsPerSecond"AttackVolumeStatistics.of_jsoninmake?requestsPerSecond?packetsPerSecond?bitsPerSecond()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the volume of attacks during the time period, included in an AttackStatisticsDataItem. If the accompanying AttackCount in the statistics object is zero, this setting might be empty."]moduleAttackProperty=structtypenonrect={attackLayer:AttackLayer.toption[@ocaml.doc"The type of Shield event that was observed. NETWORK indicates layer 3 and layer 4 events and APPLICATION indicates layer 7 events. For infrastructure layer events (L3 and L4 events), you can view metrics for top contributors in Amazon CloudWatch metrics. For more information, see Shield metrics and alarms in the WAF Developer Guide."];attackPropertyIdentifier:AttackPropertyIdentifier.toption[@ocaml.doc"Defines the Shield event property information that is provided. The WORDPRESS_PINGBACK_REFLECTOR and WORDPRESS_PINGBACK_SOURCE values are valid only for WordPress reflective pingback events."];topContributors:TopContributors.toption[@ocaml.doc"Contributor objects for the top five contributors to a Shield event. A contributor is a source of traffic that Shield Advanced identifies as responsible for some or all of an event."];unit:Unit.toption[@ocaml.doc"The unit used for the Contributor Value property."];total:Long.toption[@ocaml.doc"The total contributions made to this Shield event by all contributors."]}letmake?attackLayer=fun?attackPropertyIdentifier->fun?topContributors->fun?unit->fun?total->fun()->{attackLayer;attackPropertyIdentifier;topContributors;unit;total}letto_valuex=structure_to_value[("AttackLayer",(Option.mapx.attackLayer~f:AttackLayer.to_value));("AttackPropertyIdentifier",(Option.mapx.attackPropertyIdentifier~f:AttackPropertyIdentifier.to_value));("TopContributors",(Option.mapx.topContributors~f:TopContributors.to_value));("Unit",(Option.mapx.unit~f:Unit.to_value));("Total",(Option.mapx.total~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotal=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"Total")inletunit=(Option.map~f:Unit.of_xml)(Xml.childxml_arg0"Unit")inlettopContributors=(Option.map~f:TopContributors.of_xml)(Xml.childxml_arg0"TopContributors")inletattackPropertyIdentifier=(Option.map~f:AttackPropertyIdentifier.of_xml)(Xml.childxml_arg0"AttackPropertyIdentifier")inletattackLayer=(Option.map~f:AttackLayer.of_xml)(Xml.childxml_arg0"AttackLayer")inmake?total?unit?topContributors?attackPropertyIdentifier?attackLayer()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotal=field_mapjson__"Total"Long.of_jsoninletunit=field_mapjson__"Unit"Unit.of_jsoninlettopContributors=field_mapjson__"TopContributors"TopContributors.of_jsoninletattackPropertyIdentifier=field_mapjson__"AttackPropertyIdentifier"AttackPropertyIdentifier.of_jsoninletattackLayer=field_mapjson__"AttackLayer"AttackLayer.of_jsoninmake?total?unit?topContributors?attackPropertyIdentifier?attackLayer()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details of a Shield event. This is provided as part of an AttackDetail."]moduleMitigation=structtypenonrect={mitigationName:String_.toption[@ocaml.doc"The name of the mitigation taken for this attack."]}letmake?mitigationName=fun()->{mitigationName}letto_valuex=structure_to_value[("MitigationName",(Option.mapx.mitigationName~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmitigationName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MitigationName")inmake?mitigationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmitigationName=field_mapjson__"MitigationName"String_.of_jsoninmake?mitigationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The mitigation applied to a DDoS attack."]moduleSubResourceSummary=structtypenonrect={type_:SubResourceType.toption[@ocaml.doc"The SubResource type."];id:String_.toption[@ocaml.doc"The unique identifier (ID) of the SubResource."];attackVectors:SummarizedAttackVectorList.toption[@ocaml.doc"The list of attack types and associated counters."];counters:SummarizedCounterList.toption[@ocaml.doc"The counters that describe the details of the attack."]}letmake?type_=fun?id->fun?attackVectors->fun?counters->fun()->{type_;id;attackVectors;counters}letto_valuex=structure_to_value[("Type",(Option.mapx.type_~f:SubResourceType.to_value));("Id",(Option.mapx.id~f:String_.to_value));("AttackVectors",(Option.mapx.attackVectors~f:SummarizedAttackVectorList.to_value));("Counters",(Option.mapx.counters~f:SummarizedCounterList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcounters=(Option.map~f:SummarizedCounterList.of_xml)(Xml.childxml_arg0"Counters")inletattackVectors=(Option.map~f:SummarizedAttackVectorList.of_xml)(Xml.childxml_arg0"AttackVectors")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Id")inlettype_=(Option.map~f:SubResourceType.of_xml)(Xml.childxml_arg0"Type")inmake?counters?attackVectors?id?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcounters=field_mapjson__"Counters"SummarizedCounterList.of_jsoninletattackVectors=field_mapjson__"AttackVectors"SummarizedAttackVectorList.of_jsoninletid=field_mapjson__"Id"String_.of_jsoninlettype_=field_mapjson__"Type"SubResourceType.of_jsoninmake?counters?attackVectors?id?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The attack information for the specified SubResource."]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_valueendmoduleValidationExceptionFieldList=structtypenonrect=ValidationExceptionField.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ValidationExceptionField.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:ValidationExceptionField.of_xml)letof_jsonj=list_of_json~kind:"ValidationExceptionFieldList"~of_json:ValidationExceptionField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidationExceptionReason=structtypenonrect=|FIELD_VALIDATION_FAILED|OTHER|Non_static_idofstringletmakei=iletto_string=function|FIELD_VALIDATION_FAILED->"FIELD_VALIDATION_FAILED"|OTHER->"OTHER"|Non_static_ids->sletof_string=function|"FIELD_VALIDATION_FAILED"->FIELD_VALIDATION_FAILED|"OTHER"->OTHER|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 ValidationExceptionReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidationExceptionReason"j)letto_json=simple_to_jsonto_valueendmoduleEmergencyContact=structtypenonrect={emailAddress:EmailAddress.t[@ocaml.doc"The email address for the contact."];phoneNumber:PhoneNumber.toption[@ocaml.doc"The phone number for the contact."];contactNotes:ContactNotes.toption[@ocaml.doc"Additional notes regarding the contact."]}letcontext_="EmergencyContact"letmake?phoneNumber=fun?contactNotes->fun~emailAddress->fun()->{phoneNumber;contactNotes;emailAddress}letto_valuex=structure_to_value[("EmailAddress",(Some(EmailAddress.to_valuex.emailAddress)));("PhoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value));("ContactNotes",(Option.mapx.contactNotes~f:ContactNotes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactNotes=(Option.map~f:ContactNotes.of_xml)(Xml.childxml_arg0"ContactNotes")inletphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"PhoneNumber")inletemailAddress=EmailAddress.of_xml(Xml.child_exn~context:context_xml_arg0"EmailAddress")inmake?contactNotes?phoneNumber~emailAddress()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactNotes=field_mapjson__"ContactNotes"ContactNotes.of_jsoninletphoneNumber=field_mapjson__"PhoneNumber"PhoneNumber.of_jsoninletemailAddress=field_map_exnjson__"EmailAddress"EmailAddress.of_jsoninmake?contactNotes?phoneNumber~emailAddress()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contact information that the SRT can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support."]moduleTag=structtypenonrect={key:TagKey.toption[@ocaml.doc"Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as \"customer.\" Tag keys are case-sensitive."];value:TagValue.toption[@ocaml.doc"Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as \"companyA\" or \"companyB.\" Tag values are case-sensitive."]}letmake?key=fun?value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:TagKey.to_value));("Value",(Option.mapx.value~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Value")inletkey=(Option.map~f:TagKey.of_xml)(Xml.childxml_arg0"Key")inmake?value?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"TagValue.of_jsoninletkey=field_mapjson__"Key"TagKey.of_jsoninmake?value?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A tag associated with an Amazon Web Services resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as \"environment\", and the tag value represents a specific value within that category, such as \"test,\" \"development,\" or \"production\". Or you might set the tag key to \"customer\" and the value to the customer name or ID. You can specify one or more tags to add to each Amazon Web Services resource, up to 50 tags for a resource."]moduleProtection=structtypenonrect={id:ProtectionId.toption[@ocaml.doc"The unique identifier (ID) of the protection."];name:ProtectionName.toption[@ocaml.doc"The name of the protection. For example, My CloudFront distributions."];resourceArn:ResourceArn.toption[@ocaml.doc"The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected."];healthCheckIds:HealthCheckIds.toption[@ocaml.doc"The unique identifier (ID) for the Route\194\16053 health check that's associated with the protection."];protectionArn:ResourceArn.toption[@ocaml.doc"The ARN (Amazon Resource Name) of the protection."];applicationLayerAutomaticResponseConfiguration:ApplicationLayerAutomaticResponseConfiguration.toption[@ocaml.doc"The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks."]}letmake?id=fun?name->fun?resourceArn->fun?healthCheckIds->fun?protectionArn->fun?applicationLayerAutomaticResponseConfiguration->fun()->{id;name;resourceArn;healthCheckIds;protectionArn;applicationLayerAutomaticResponseConfiguration}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:ProtectionId.to_value));("Name",(Option.mapx.name~f:ProtectionName.to_value));("ResourceArn",(Option.mapx.resourceArn~f:ResourceArn.to_value));("HealthCheckIds",(Option.mapx.healthCheckIds~f:HealthCheckIds.to_value));("ProtectionArn",(Option.mapx.protectionArn~f:ResourceArn.to_value));("ApplicationLayerAutomaticResponseConfiguration",(Option.mapx.applicationLayerAutomaticResponseConfiguration~f:ApplicationLayerAutomaticResponseConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationLayerAutomaticResponseConfiguration=(Option.map~f:ApplicationLayerAutomaticResponseConfiguration.of_xml)(Xml.childxml_arg0"ApplicationLayerAutomaticResponseConfiguration")inletprotectionArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"ProtectionArn")inlethealthCheckIds=(Option.map~f:HealthCheckIds.of_xml)(Xml.childxml_arg0"HealthCheckIds")inletresourceArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"ResourceArn")inletname=(Option.map~f:ProtectionName.of_xml)(Xml.childxml_arg0"Name")inletid=(Option.map~f:ProtectionId.of_xml)(Xml.childxml_arg0"Id")inmake?applicationLayerAutomaticResponseConfiguration?protectionArn?healthCheckIds?resourceArn?name?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationLayerAutomaticResponseConfiguration=field_mapjson__"ApplicationLayerAutomaticResponseConfiguration"ApplicationLayerAutomaticResponseConfiguration.of_jsoninletprotectionArn=field_mapjson__"ProtectionArn"ResourceArn.of_jsoninlethealthCheckIds=field_mapjson__"HealthCheckIds"HealthCheckIds.of_jsoninletresourceArn=field_mapjson__"ResourceArn"ResourceArn.of_jsoninletname=field_mapjson__"Name"ProtectionName.of_jsoninletid=field_mapjson__"Id"ProtectionId.of_jsoninmake?applicationLayerAutomaticResponseConfiguration?protectionArn?healthCheckIds?resourceArn?name?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents a resource that is under DDoS protection."]moduleProtectedResourceTypeFilters=structtypenonrect=ProtectedResourceType.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:ProtectedResourceType.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:ProtectedResourceType.of_xml)letof_jsonj=list_of_json~kind:"ProtectedResourceTypeFilters"~of_json:ProtectedResourceType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleProtectionNameFilters=structtypenonrect=ProtectionName.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:ProtectionName.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:ProtectionName.of_xml)letof_jsonj=list_of_json~kind:"ProtectionNameFilters"~of_json:ProtectionName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceArnFilters=structtypenonrect=ResourceArn.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:ResourceArn.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:ResourceArn.of_xml)letof_jsonj=list_of_json~kind:"ResourceArnFilters"~of_json:ResourceArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleProtectionGroup=structtypenonrect={protectionGroupId:ProtectionGroupId.toption[@ocaml.doc"The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it."];aggregation:ProtectionGroupAggregation.toption[@ocaml.doc"Defines how Shield combines resource data for the group in order to detect, mitigate, and report events. Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically. Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers. Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront distributions and origin resources for CloudFront distributions."];pattern:ProtectionGroupPattern.toption[@ocaml.doc"The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource ARNs (Amazon Resource Names), or include all resources of a specified resource type."];resourceType:ProtectedResourceType.toption[@ocaml.doc"The resource type to include in the protection group. All protected resources of this type are included in the protection group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting."];members:ProtectionGroupMembers.toption[@ocaml.doc"The ARNs (Amazon Resource Names) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting."];protectionGroupArn:ResourceArn.toption[@ocaml.doc"The ARN (Amazon Resource Name) of the protection group."]}letmake?protectionGroupId=fun?aggregation->fun?pattern->fun?resourceType->fun?members->fun?protectionGroupArn->fun()->{protectionGroupId;aggregation;pattern;resourceType;members;protectionGroupArn}letto_valuex=structure_to_value[("ProtectionGroupId",(Option.mapx.protectionGroupId~f:ProtectionGroupId.to_value));("Aggregation",(Option.mapx.aggregation~f:ProtectionGroupAggregation.to_value));("Pattern",(Option.mapx.pattern~f:ProtectionGroupPattern.to_value));("ResourceType",(Option.mapx.resourceType~f:ProtectedResourceType.to_value));("Members",(Option.mapx.members~f:ProtectionGroupMembers.to_value));("ProtectionGroupArn",(Option.mapx.protectionGroupArn~f:ResourceArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprotectionGroupArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"ProtectionGroupArn")inletmembers=(Option.map~f:ProtectionGroupMembers.of_xml)(Xml.childxml_arg0"Members")inletresourceType=(Option.map~f:ProtectedResourceType.of_xml)(Xml.childxml_arg0"ResourceType")inletpattern=(Option.map~f:ProtectionGroupPattern.of_xml)(Xml.childxml_arg0"Pattern")inletaggregation=(Option.map~f:ProtectionGroupAggregation.of_xml)(Xml.childxml_arg0"Aggregation")inletprotectionGroupId=(Option.map~f:ProtectionGroupId.of_xml)(Xml.childxml_arg0"ProtectionGroupId")inmake?protectionGroupArn?members?resourceType?pattern?aggregation?protectionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprotectionGroupArn=field_mapjson__"ProtectionGroupArn"ResourceArn.of_jsoninletmembers=field_mapjson__"Members"ProtectionGroupMembers.of_jsoninletresourceType=field_mapjson__"ResourceType"ProtectedResourceType.of_jsoninletpattern=field_mapjson__"Pattern"ProtectionGroupPattern.of_jsoninletaggregation=field_mapjson__"Aggregation"ProtectionGroupAggregation.of_jsoninletprotectionGroupId=field_mapjson__"ProtectionGroupId"ProtectionGroupId.of_jsoninmake?protectionGroupArn?members?resourceType?pattern?aggregation?protectionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives."]moduleProtectionGroupAggregationFilters=structtypenonrect=ProtectionGroupAggregation.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:ProtectionGroupAggregation.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:ProtectionGroupAggregation.of_xml)letof_jsonj=list_of_json~kind:"ProtectionGroupAggregationFilters"~of_json:ProtectionGroupAggregation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleProtectionGroupIdFilters=structtypenonrect=ProtectionGroupId.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:ProtectionGroupId.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:ProtectionGroupId.of_xml)letof_jsonj=list_of_json~kind:"ProtectionGroupIdFilters"~of_json:ProtectionGroupId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleProtectionGroupPatternFilters=structtypenonrect=ProtectionGroupPattern.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:ProtectionGroupPattern.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:ProtectionGroupPattern.of_xml)letof_jsonj=list_of_json~kind:"ProtectionGroupPatternFilters"~of_json:ProtectionGroupPattern.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAttackSummary=structtypenonrect={attackId:String_.toption[@ocaml.doc"The unique identifier (ID) of the attack."];resourceArn:String_.toption[@ocaml.doc"The ARN (Amazon Resource Name) of the resource that was attacked."];startTime:AttackTimestamp.toption[@ocaml.doc"The start time of the attack, in Unix time in seconds."];endTime:AttackTimestamp.toption[@ocaml.doc"The end time of the attack, in Unix time in seconds."];attackVectors:AttackVectorDescriptionList.toption[@ocaml.doc"The list of attacks for a specified time period."]}letmake?attackId=fun?resourceArn->fun?startTime->fun?endTime->fun?attackVectors->fun()->{attackId;resourceArn;startTime;endTime;attackVectors}letto_valuex=structure_to_value[("AttackId",(Option.mapx.attackId~f:String_.to_value));("ResourceArn",(Option.mapx.resourceArn~f:String_.to_value));("StartTime",(Option.mapx.startTime~f:AttackTimestamp.to_value));("EndTime",(Option.mapx.endTime~f:AttackTimestamp.to_value));("AttackVectors",(Option.mapx.attackVectors~f:AttackVectorDescriptionList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattackVectors=(Option.map~f:AttackVectorDescriptionList.of_xml)(Xml.childxml_arg0"AttackVectors")inletendTime=(Option.map~f:AttackTimestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:AttackTimestamp.of_xml)(Xml.childxml_arg0"StartTime")inletresourceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourceArn")inletattackId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"AttackId")inmake?attackVectors?endTime?startTime?resourceArn?attackId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattackVectors=field_mapjson__"AttackVectors"AttackVectorDescriptionList.of_jsoninletendTime=field_mapjson__"EndTime"AttackTimestamp.of_jsoninletstartTime=field_mapjson__"StartTime"AttackTimestamp.of_jsoninletresourceArn=field_mapjson__"ResourceArn"String_.of_jsoninletattackId=field_mapjson__"AttackId"String_.of_jsoninmake?attackVectors?endTime?startTime?resourceArn?attackId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summarizes all DDoS attacks for a specified time period."]moduleTimestamp=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_valueendmoduleLimitNumber=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleLimitType=structtypenonrect=stringletcontext_="LimitType"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:"LimitType"jletto_json=simple_to_jsonto_valueendmoduleAutoRenew=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AutoRenew"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AutoRenew"j)letto_json=simple_to_jsonto_valueendmoduleDurationInSeconds=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:0L);iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleProactiveEngagementStatus=structtypenonrect=|ENABLED|DISABLED|PENDING|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|PENDING->"PENDING"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|"PENDING"->PENDING|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 ProactiveEngagementStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ProactiveEngagementStatus"j)letto_json=simple_to_jsonto_valueendmoduleSubscriptionLimits=structtypenonrect={protectionLimits:ProtectionLimits.toption[@ocaml.doc"Limits settings on protections for your subscription."];protectionGroupLimits:ProtectionGroupLimits.toption[@ocaml.doc"Limits settings on protection groups for your subscription."]}letmake?protectionLimits=fun?protectionGroupLimits->fun()->{protectionLimits;protectionGroupLimits}letto_valuex=structure_to_value[("ProtectionLimits",(Option.mapx.protectionLimits~f:ProtectionLimits.to_value));("ProtectionGroupLimits",(Option.mapx.protectionGroupLimits~f:ProtectionGroupLimits.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprotectionGroupLimits=(Option.map~f:ProtectionGroupLimits.of_xml)(Xml.childxml_arg0"ProtectionGroupLimits")inletprotectionLimits=(Option.map~f:ProtectionLimits.of_xml)(Xml.childxml_arg0"ProtectionLimits")inmake?protectionGroupLimits?protectionLimits()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprotectionGroupLimits=field_mapjson__"ProtectionGroupLimits"ProtectionGroupLimits.of_jsoninletprotectionLimits=field_mapjson__"ProtectionLimits"ProtectionLimits.of_jsoninmake?protectionGroupLimits?protectionLimits()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Limits settings for your subscription."]moduleLogBucket=structtypenonrect=stringletcontext_="LogBucket"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:"^([a-z]|(\\d(?!\\d{0,2}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})))([a-z\\d]|(\\.(?!(\\.|-)))|(-(?!\\.))){1,61}[a-z\\d]$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LogBucket"jletto_json=simple_to_jsonto_valueendmoduleAttackStatisticsDataItem=structtypenonrect={attackVolume:AttackVolume.toption[@ocaml.doc"Information about the volume of attacks during the time period. If the accompanying AttackCount is zero, this setting might be empty."];attackCount:Long.toption[@ocaml.doc"The number of attacks detected during the time period. This is always present, but might be zero."]}letmake?attackVolume=fun?attackCount->fun()->{attackVolume;attackCount}letto_valuex=structure_to_value[("AttackVolume",(Option.mapx.attackVolume~f:AttackVolume.to_value));("AttackCount",(Option.mapx.attackCount~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattackCount=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"AttackCount")inletattackVolume=(Option.map~f:AttackVolume.of_xml)(Xml.childxml_arg0"AttackVolume")inmake?attackCount?attackVolume()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattackCount=field_mapjson__"AttackCount"Long.of_jsoninletattackVolume=field_mapjson__"AttackVolume"AttackVolume.of_jsoninmake?attackCount?attackVolume()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A single attack statistics data record. This is returned by DescribeAttackStatistics along with a time range indicating the time period that the attack statistics apply to."]moduleAttackId=structtypenonrect=stringletcontext_="AttackId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9\\\\-]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AttackId"jletto_json=simple_to_jsonto_valueendmoduleAttackProperties=structtypenonrect=AttackProperty.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttackProperty.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:AttackProperty.of_xml)letof_jsonj=list_of_json~kind:"AttackProperties"~of_json:AttackProperty.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMitigationList=structtypenonrect=Mitigation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Mitigation.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:Mitigation.of_xml)letof_jsonj=list_of_json~kind:"MitigationList"~of_json:Mitigation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSubResourceSummaryList=structtypenonrect=SubResourceSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SubResourceSummary.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:SubResourceSummary.of_xml)letof_jsonj=list_of_json~kind:"SubResourceSummaryList"~of_json:SubResourceSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInternalErrorException=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"Exception that indicates that a problem occurred with the service infrastructure. You can retry the request."]moduleInvalidParameterException=structtypenonrect={message:ErrorMessage.toption;reason:ValidationExceptionReason.toption[@ocaml.doc"Additional information about the exception."];fields:ValidationExceptionFieldList.toption[@ocaml.doc"Fields that caused the exception."]}letmake?message=fun?reason->fun?fields->fun()->{message;reason;fields}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("reason",(Option.mapx.reason~f:ValidationExceptionReason.to_value));("fields",(Option.mapx.fields~f:ValidationExceptionFieldList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=(Option.map~f:ValidationExceptionFieldList.of_xml)(Xml.childxml_arg0"fields")inletreason=(Option.map~f:ValidationExceptionReason.of_xml)(Xml.childxml_arg0"reason")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?fields?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_mapjson__"fields"ValidationExceptionFieldList.of_jsoninletreason=field_mapjson__"reason"ValidationExceptionReason.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?fields?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties."]moduleLockedSubscriptionException=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 are trying to update a subscription that has not yet completed the 1-year commitment. You can change the AutoRenew parameter during the last 30 days of your subscription. This exception indicates that you are attempting to change AutoRenew prior to that period."]moduleOptimisticLockException=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"Exception that indicates that the resource state has been modified by another client. Retrieve the resource and then retry your request."]moduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption;resourceType:String_.toption[@ocaml.doc"Type of resource."]}letmake?message=fun?resourceType->fun()->{message;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?resourceType?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties."]moduleEmergencyContactList=structtypenonrect=EmergencyContact.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:EmergencyContact.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:EmergencyContact.of_xml)letof_jsonj=list_of_json~kind:"EmergencyContactList"~of_json:EmergencyContact.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInvalidOperationException=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"Exception that indicates that the operation would not cause any change to occur."]moduleInvalidResourceException=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"Exception that indicates that the resource is invalid. You might not have access to the resource, or the resource might not exist."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagList=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInvalidPaginationTokenException=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"Exception that indicates that the NextToken specified in the request is invalid. Submit the request using the NextToken value that was returned in the prior response."]moduleResourceArnList=structtypenonrect=ResourceArn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourceArn.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:ResourceArn.of_xml)letof_jsonj=list_of_json~kind:"ResourceArnList"~of_json:ResourceArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleToken=structtypenonrect=stringletcontext_="Token"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:4096)>>=(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:"Token"jletto_json=simple_to_jsonto_valueendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10000)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleProtections=structtypenonrect=Protection.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Protection.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:Protection.of_xml)letof_jsonj=list_of_json~kind:"Protections"~of_json:Protection.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInclusionProtectionFilters=structtypenonrect={resourceArns:ResourceArnFilters.toption[@ocaml.doc"The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve."];protectionNames:ProtectionNameFilters.toption[@ocaml.doc"The name of the protection that you want to retrieve."];resourceTypes:ProtectedResourceTypeFilters.toption[@ocaml.doc"The type of protected resource whose protections you want to retrieve."]}letmake?resourceArns=fun?protectionNames->fun?resourceTypes->fun()->{resourceArns;protectionNames;resourceTypes}letto_valuex=structure_to_value[("ResourceArns",(Option.mapx.resourceArns~f:ResourceArnFilters.to_value));("ProtectionNames",(Option.mapx.protectionNames~f:ProtectionNameFilters.to_value));("ResourceTypes",(Option.mapx.resourceTypes~f:ProtectedResourceTypeFilters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceTypes=(Option.map~f:ProtectedResourceTypeFilters.of_xml)(Xml.childxml_arg0"ResourceTypes")inletprotectionNames=(Option.map~f:ProtectionNameFilters.of_xml)(Xml.childxml_arg0"ProtectionNames")inletresourceArns=(Option.map~f:ResourceArnFilters.of_xml)(Xml.childxml_arg0"ResourceArns")inmake?resourceTypes?protectionNames?resourceArns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceTypes=field_mapjson__"ResourceTypes"ProtectedResourceTypeFilters.of_jsoninletprotectionNames=field_mapjson__"ProtectionNames"ProtectionNameFilters.of_jsoninletresourceArns=field_mapjson__"ResourceArns"ResourceArnFilters.of_jsoninmake?resourceTypes?protectionNames?resourceArns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Narrows the set of protections that the call retrieves. You can retrieve a single protection by providing its name or the ARN (Amazon Resource Name) of its protected resource. You can also retrieve all protections for a specific resource type. You can provide up to one criteria per filter type. Shield Advanced returns protections that exactly match all of the filter criteria that you provide."]moduleProtectionGroups=structtypenonrect=ProtectionGroup.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ProtectionGroup.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:ProtectionGroup.of_xml)letof_jsonj=list_of_json~kind:"ProtectionGroups"~of_json:ProtectionGroup.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInclusionProtectionGroupFilters=structtypenonrect={protectionGroupIds:ProtectionGroupIdFilters.toption[@ocaml.doc"The ID of the protection group that you want to retrieve."];patterns:ProtectionGroupPatternFilters.toption[@ocaml.doc"The pattern specification of the protection groups that you want to retrieve."];resourceTypes:ProtectedResourceTypeFilters.toption[@ocaml.doc"The resource type configuration of the protection groups that you want to retrieve. In the protection group configuration, you specify the resource type when you set the group's Pattern to BY_RESOURCE_TYPE."];aggregations:ProtectionGroupAggregationFilters.toption[@ocaml.doc"The aggregation setting of the protection groups that you want to retrieve."]}letmake?protectionGroupIds=fun?patterns->fun?resourceTypes->fun?aggregations->fun()->{protectionGroupIds;patterns;resourceTypes;aggregations}letto_valuex=structure_to_value[("ProtectionGroupIds",(Option.mapx.protectionGroupIds~f:ProtectionGroupIdFilters.to_value));("Patterns",(Option.mapx.patterns~f:ProtectionGroupPatternFilters.to_value));("ResourceTypes",(Option.mapx.resourceTypes~f:ProtectedResourceTypeFilters.to_value));("Aggregations",(Option.mapx.aggregations~f:ProtectionGroupAggregationFilters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaggregations=(Option.map~f:ProtectionGroupAggregationFilters.of_xml)(Xml.childxml_arg0"Aggregations")inletresourceTypes=(Option.map~f:ProtectedResourceTypeFilters.of_xml)(Xml.childxml_arg0"ResourceTypes")inletpatterns=(Option.map~f:ProtectionGroupPatternFilters.of_xml)(Xml.childxml_arg0"Patterns")inletprotectionGroupIds=(Option.map~f:ProtectionGroupIdFilters.of_xml)(Xml.childxml_arg0"ProtectionGroupIds")inmake?aggregations?resourceTypes?patterns?protectionGroupIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaggregations=field_mapjson__"Aggregations"ProtectionGroupAggregationFilters.of_jsoninletresourceTypes=field_mapjson__"ResourceTypes"ProtectedResourceTypeFilters.of_jsoninletpatterns=field_mapjson__"Patterns"ProtectionGroupPatternFilters.of_jsoninletprotectionGroupIds=field_mapjson__"ProtectionGroupIds"ProtectionGroupIdFilters.of_jsoninmake?aggregations?resourceTypes?patterns?protectionGroupIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Narrows the set of protection groups that the call retrieves. You can retrieve a single protection group by its name and you can retrieve all protection groups that are configured with a specific pattern, aggregation, or resource type. You can provide up to one criteria per filter type. Shield Advanced returns the protection groups that exactly match all of the search criteria that you provide."]moduleAttackSummaries=structtypenonrect=AttackSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttackSummary.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:AttackSummary.of_xml)letof_jsonj=list_of_json~kind:"AttackSummaries"~of_json:AttackSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceArnFilterList=structtypenonrect=ResourceArn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourceArn.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:ResourceArn.of_xml)letof_jsonj=list_of_json~kind:"ResourceArnFilterList"~of_json:ResourceArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTimeRange=structtypenonrect={fromInclusive:Timestamp.toption[@ocaml.doc"The start time, in Unix time in seconds."];toExclusive:Timestamp.toption[@ocaml.doc"The end time, in Unix time in seconds."]}letmake?fromInclusive=fun?toExclusive->fun()->{fromInclusive;toExclusive}letto_valuex=structure_to_value[("FromInclusive",(Option.mapx.fromInclusive~f:Timestamp.to_value));("ToExclusive",(Option.mapx.toExclusive~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettoExclusive=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ToExclusive")inletfromInclusive=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"FromInclusive")inmake?toExclusive?fromInclusive()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettoExclusive=field_mapjson__"ToExclusive"Timestamp.of_jsoninletfromInclusive=field_mapjson__"FromInclusive"Timestamp.of_jsoninmake?toExclusive?fromInclusive()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The time range."]moduleSubscriptionState=structtypenonrect=|ACTIVE|INACTIVE|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|INACTIVE->"INACTIVE"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"INACTIVE"->INACTIVE|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 SubscriptionState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SubscriptionState"j)letto_json=simple_to_jsonto_valueendmoduleLimitsExceededException=structtypenonrect={message:ErrorMessage.toption;type_:LimitType.toption[@ocaml.doc"The type of limit that would be exceeded."];limit:LimitNumber.toption[@ocaml.doc"The threshold that would be exceeded."]}letmake?message=fun?type_->fun?limit->fun()->{message;type_;limit}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("Type",(Option.mapx.type_~f:LimitType.to_value));("Limit",(Option.mapx.limit~f:LimitNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlimit=(Option.map~f:LimitNumber.of_xml)(Xml.childxml_arg0"Limit")inlettype_=(Option.map~f:LimitType.of_xml)(Xml.childxml_arg0"Type")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?limit?type_?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlimit=field_mapjson__"Limit"LimitNumber.of_jsoninlettype_=field_mapjson__"Type"LimitType.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?limit?type_?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exception that indicates that the operation would exceed a limit."]moduleHealthCheckArn=structtypenonrect=stringletcontext_="HealthCheckArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:aws:route53:::healthcheck/\\S{36}$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"HealthCheckArn"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedForDependencyException=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"In order to grant the necessary access to the Shield Response Team (SRT) the user submitting the request must have the iam:PassRole permission. This error indicates the user did not have the appropriate permissions. For more information, see Granting a User Permissions to Pass a Role to an Amazon Web Services Service."]moduleNoAssociatedRoleException=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 ARN of the role that you specified does not exist."]moduleSubscription=structtypenonrect={startTime:Timestamp.toption[@ocaml.doc"The start time of the subscription, in Unix time in seconds."];endTime:Timestamp.toption[@ocaml.doc"The date and time your subscription will end."];timeCommitmentInSeconds:DurationInSeconds.toption[@ocaml.doc"The length, in seconds, of the Shield Advanced subscription for the account."];autoRenew:AutoRenew.toption[@ocaml.doc"If ENABLED, the subscription will be automatically renewed at the end of the existing subscription period. When you initally create a subscription, AutoRenew is set to ENABLED. You can change this by submitting an UpdateSubscription request. If the UpdateSubscription request does not included a value for AutoRenew, the existing value for AutoRenew remains unchanged."];limits:Limits.toption[@ocaml.doc"Specifies how many protections of a given type you can create."];proactiveEngagementStatus:ProactiveEngagementStatus.toption[@ocaml.doc"If ENABLED, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support. If PENDING, you have requested proactive engagement and the request is pending. The status changes to ENABLED when your request is fully processed. If DISABLED, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support."];subscriptionLimits:SubscriptionLimits.toption[@ocaml.doc"Limits settings for your subscription."];subscriptionArn:ResourceArn.toption[@ocaml.doc"The ARN (Amazon Resource Name) of the subscription."]}letmake?startTime=fun?endTime->fun?timeCommitmentInSeconds->fun?autoRenew->fun?limits->fun?proactiveEngagementStatus->fun?subscriptionLimits->fun?subscriptionArn->fun()->{startTime;endTime;timeCommitmentInSeconds;autoRenew;limits;proactiveEngagementStatus;subscriptionLimits;subscriptionArn}letto_valuex=structure_to_value[("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("EndTime",(Option.mapx.endTime~f:Timestamp.to_value));("TimeCommitmentInSeconds",(Option.mapx.timeCommitmentInSeconds~f:DurationInSeconds.to_value));("AutoRenew",(Option.mapx.autoRenew~f:AutoRenew.to_value));("Limits",(Option.mapx.limits~f:Limits.to_value));("ProactiveEngagementStatus",(Option.mapx.proactiveEngagementStatus~f:ProactiveEngagementStatus.to_value));("SubscriptionLimits",(Option.mapx.subscriptionLimits~f:SubscriptionLimits.to_value));("SubscriptionArn",(Option.mapx.subscriptionArn~f:ResourceArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscriptionArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"SubscriptionArn")inletsubscriptionLimits=(Option.map~f:SubscriptionLimits.of_xml)(Xml.childxml_arg0"SubscriptionLimits")inletproactiveEngagementStatus=(Option.map~f:ProactiveEngagementStatus.of_xml)(Xml.childxml_arg0"ProactiveEngagementStatus")inletlimits=(Option.map~f:Limits.of_xml)(Xml.childxml_arg0"Limits")inletautoRenew=(Option.map~f:AutoRenew.of_xml)(Xml.childxml_arg0"AutoRenew")inlettimeCommitmentInSeconds=(Option.map~f:DurationInSeconds.of_xml)(Xml.childxml_arg0"TimeCommitmentInSeconds")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inmake?subscriptionArn?subscriptionLimits?proactiveEngagementStatus?limits?autoRenew?timeCommitmentInSeconds?endTime?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscriptionArn=field_mapjson__"SubscriptionArn"ResourceArn.of_jsoninletsubscriptionLimits=field_mapjson__"SubscriptionLimits"SubscriptionLimits.of_jsoninletproactiveEngagementStatus=field_mapjson__"ProactiveEngagementStatus"ProactiveEngagementStatus.of_jsoninletlimits=field_mapjson__"Limits"Limits.of_jsoninletautoRenew=field_mapjson__"AutoRenew"AutoRenew.of_jsoninlettimeCommitmentInSeconds=field_mapjson__"TimeCommitmentInSeconds"DurationInSeconds.of_jsoninletendTime=field_mapjson__"EndTime"Timestamp.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninmake?subscriptionArn?subscriptionLimits?proactiveEngagementStatus?limits?autoRenew?timeCommitmentInSeconds?endTime?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the Shield Advanced subscription for an account."]moduleLogBucketList=structtypenonrect=LogBucket.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:LogBucket.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:LogBucket.of_xml)letof_jsonj=list_of_json~kind:"LogBucketList"~of_json:LogBucket.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRoleArn=structtypenonrect=stringletcontext_="RoleArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^arn:aws: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_valueendmoduleAttackStatisticsDataList=structtypenonrect=AttackStatisticsDataItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttackStatisticsDataItem.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:AttackStatisticsDataItem.of_xml)letof_jsonj=list_of_json~kind:"AttackStatisticsDataList"~of_json:AttackStatisticsDataItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessDeniedException=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"Exception that indicates the specified AttackId does not exist, or the requester does not have the appropriate permissions to access the AttackId."]moduleAttackDetail=structtypenonrect={attackId:AttackId.toption[@ocaml.doc"The unique identifier (ID) of the attack."];resourceArn:ResourceArn.toption[@ocaml.doc"The ARN (Amazon Resource Name) of the resource that was attacked."];subResources:SubResourceSummaryList.toption[@ocaml.doc"If applicable, additional detail about the resource being attacked, for example, IP address or URL."];startTime:AttackTimestamp.toption[@ocaml.doc"The time the attack started, in Unix time in seconds."];endTime:AttackTimestamp.toption[@ocaml.doc"The time the attack ended, in Unix time in seconds."];attackCounters:SummarizedCounterList.toption[@ocaml.doc"List of counters that describe the attack for the specified time period."];attackProperties:AttackProperties.toption[@ocaml.doc"The array of objects that provide details of the Shield event. For infrastructure layer events (L3 and L4 events), you can view metrics for top contributors in Amazon CloudWatch metrics. For more information, see Shield metrics and alarms in the WAF Developer Guide."];mitigations:MitigationList.toption[@ocaml.doc"List of mitigation actions taken for the attack."]}letmake?attackId=fun?resourceArn->fun?subResources->fun?startTime->fun?endTime->fun?attackCounters->fun?attackProperties->fun?mitigations->fun()->{attackId;resourceArn;subResources;startTime;endTime;attackCounters;attackProperties;mitigations}letto_valuex=structure_to_value[("AttackId",(Option.mapx.attackId~f:AttackId.to_value));("ResourceArn",(Option.mapx.resourceArn~f:ResourceArn.to_value));("SubResources",(Option.mapx.subResources~f:SubResourceSummaryList.to_value));("StartTime",(Option.mapx.startTime~f:AttackTimestamp.to_value));("EndTime",(Option.mapx.endTime~f:AttackTimestamp.to_value));("AttackCounters",(Option.mapx.attackCounters~f:SummarizedCounterList.to_value));("AttackProperties",(Option.mapx.attackProperties~f:AttackProperties.to_value));("Mitigations",(Option.mapx.mitigations~f:MitigationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmitigations=(Option.map~f:MitigationList.of_xml)(Xml.childxml_arg0"Mitigations")inletattackProperties=(Option.map~f:AttackProperties.of_xml)(Xml.childxml_arg0"AttackProperties")inletattackCounters=(Option.map~f:SummarizedCounterList.of_xml)(Xml.childxml_arg0"AttackCounters")inletendTime=(Option.map~f:AttackTimestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:AttackTimestamp.of_xml)(Xml.childxml_arg0"StartTime")inletsubResources=(Option.map~f:SubResourceSummaryList.of_xml)(Xml.childxml_arg0"SubResources")inletresourceArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"ResourceArn")inletattackId=(Option.map~f:AttackId.of_xml)(Xml.childxml_arg0"AttackId")inmake?mitigations?attackProperties?attackCounters?endTime?startTime?subResources?resourceArn?attackId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmitigations=field_mapjson__"Mitigations"MitigationList.of_jsoninletattackProperties=field_mapjson__"AttackProperties"AttackProperties.of_jsoninletattackCounters=field_mapjson__"AttackCounters"SummarizedCounterList.of_jsoninletendTime=field_mapjson__"EndTime"AttackTimestamp.of_jsoninletstartTime=field_mapjson__"StartTime"AttackTimestamp.of_jsoninletsubResources=field_mapjson__"SubResources"SubResourceSummaryList.of_jsoninletresourceArn=field_mapjson__"ResourceArn"ResourceArn.of_jsoninletattackId=field_mapjson__"AttackId"AttackId.of_jsoninmake?mitigations?attackProperties?attackCounters?endTime?startTime?subResources?resourceArn?attackId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of a DDoS attack."]moduleResourceAlreadyExistsException=structtypenonrect={message:ErrorMessage.toption;resourceType:String_.toption[@ocaml.doc"The type of resource that already exists."]}letmake?message=fun?resourceType->fun()->{message;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?resourceType?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exception indicating the specified resource already exists. If available, this exception includes details in additional properties."]moduleUpdateSubscriptionResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`LockedSubscriptionExceptionofLockedSubscriptionException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"LockedSubscriptionException"->`LockedSubscriptionException(LockedSubscriptionException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"LockedSubscriptionException"->`LockedSubscriptionException(LockedSubscriptionException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`LockedSubscriptionExceptione->`Assoc[("error",(`String"LockedSubscriptionException"));("details",(LockedSubscriptionException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated. For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account, regardless of whether the payer account itself is subscribed."]moduleUpdateSubscriptionRequest=structtypenonrect={autoRenew:AutoRenew.toption[@ocaml.doc"When you initally create a subscription, AutoRenew is set to ENABLED. If ENABLED, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request. If the UpdateSubscription request does not included a value for AutoRenew, the existing value for AutoRenew remains unchanged."]}letmake?autoRenew=fun()->{autoRenew}letto_valuex=structure_to_value[("AutoRenew",(Option.mapx.autoRenew~f:AutoRenew.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letautoRenew=(Option.map~f:AutoRenew.of_xml)(Xml.childxml_arg0"AutoRenew")inmake?autoRenew()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letautoRenew=field_mapjson__"AutoRenew"AutoRenew.of_jsoninmake?autoRenew()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated. For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account, regardless of whether the payer account itself is subscribed."]moduleUpdateProtectionGroupResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 an existing protection group. A protection group is a grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives."]moduleUpdateProtectionGroupRequest=structtypenonrect={protectionGroupId:ProtectionGroupId.t[@ocaml.doc"The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it."];aggregation:ProtectionGroupAggregation.t[@ocaml.doc"Defines how Shield combines resource data for the group in order to detect, mitigate, and report events. Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically. Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers. Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront distributions and origin resources for CloudFront distributions."];pattern:ProtectionGroupPattern.t[@ocaml.doc"The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type."];resourceType:ProtectedResourceType.toption[@ocaml.doc"The resource type to include in the protection group. All protected resources of this type are included in the protection group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting."];members:ProtectionGroupMembers.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting."]}letcontext_="UpdateProtectionGroupRequest"letmake?resourceType=fun?members->fun~protectionGroupId->fun~aggregation->fun~pattern->fun()->{resourceType;members;protectionGroupId;aggregation;pattern}letto_valuex=structure_to_value[("ProtectionGroupId",(Some(ProtectionGroupId.to_valuex.protectionGroupId)));("Aggregation",(Some(ProtectionGroupAggregation.to_valuex.aggregation)));("Pattern",(Some(ProtectionGroupPattern.to_valuex.pattern)));("ResourceType",(Option.mapx.resourceType~f:ProtectedResourceType.to_value));("Members",(Option.mapx.members~f:ProtectionGroupMembers.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmembers=(Option.map~f:ProtectionGroupMembers.of_xml)(Xml.childxml_arg0"Members")inletresourceType=(Option.map~f:ProtectedResourceType.of_xml)(Xml.childxml_arg0"ResourceType")inletpattern=ProtectionGroupPattern.of_xml(Xml.child_exn~context:context_xml_arg0"Pattern")inletaggregation=ProtectionGroupAggregation.of_xml(Xml.child_exn~context:context_xml_arg0"Aggregation")inletprotectionGroupId=ProtectionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"ProtectionGroupId")inmake?members?resourceType~pattern~aggregation~protectionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmembers=field_mapjson__"Members"ProtectionGroupMembers.of_jsoninletresourceType=field_mapjson__"ResourceType"ProtectedResourceType.of_jsoninletpattern=field_map_exnjson__"Pattern"ProtectionGroupPattern.of_jsoninletaggregation=field_map_exnjson__"Aggregation"ProtectionGroupAggregation.of_jsoninletprotectionGroupId=field_map_exnjson__"ProtectionGroupId"ProtectionGroupId.of_jsoninmake?members?resourceType~pattern~aggregation~protectionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing protection group. A protection group is a grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives."]moduleUpdateEmergencyContactSettingsResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 details of the list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support."]moduleUpdateEmergencyContactSettingsRequest=structtypenonrect={emergencyContactList:EmergencyContactList.toption[@ocaml.doc"A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support. If you have proactive engagement enabled, the contact list must include at least one phone number."]}letmake?emergencyContactList=fun()->{emergencyContactList}letto_valuex=structure_to_value[("EmergencyContactList",(Option.mapx.emergencyContactList~f:EmergencyContactList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letemergencyContactList=(Option.map~f:EmergencyContactList.of_xml)(Xml.childxml_arg0"EmergencyContactList")inmake?emergencyContactList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letemergencyContactList=field_mapjson__"EmergencyContactList"EmergencyContactList.of_jsoninmake?emergencyContactList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the details of the list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support."]moduleUpdateApplicationLayerAutomaticResponseResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 an existing Shield Advanced automatic application layer DDoS mitigation configuration for the specified resource."]moduleUpdateApplicationLayerAutomaticResponseRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The ARN (Amazon Resource Name) of the resource."];action:ResponseAction.t[@ocaml.doc"Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource."]}letcontext_="UpdateApplicationLayerAutomaticResponseRequest"letmake~resourceArn=fun~action->fun()->{resourceArn;action}letto_valuex=structure_to_value[("ResourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("Action",(Some(ResponseAction.to_valuex.action)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaction=ResponseAction.of_xml(Xml.child_exn~context:context_xml_arg0"Action")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~action~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaction=field_map_exnjson__"Action"ResponseAction.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake~action~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing Shield Advanced automatic application layer DDoS mitigation configuration for the specified resource."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidResourceExceptionofInvalidResourceException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidResourceExceptione->`Assoc[("error",(`String"InvalidResourceException"));("details",(InvalidResourceException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from a resource in Shield."]moduleUntagResourceRequest=structtypenonrect={resourceARN:ResourceArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource that you want to remove tags from."];tagKeys:TagKeyList.t[@ocaml.doc"The tag key for each tag that you want 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 tags from a resource in Shield."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidResourceExceptionofInvalidResourceException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidResourceExceptione->`Assoc[("error",(`String"InvalidResourceException"));("details",(InvalidResourceException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Adds or updates tags for a resource in Shield."]moduleTagResourceRequest=structtypenonrect={resourceARN:ResourceArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource that you want to add or update tags for."];tags:TagList.t[@ocaml.doc"The tags that you want to modify or add to the resource."]}letcontext_="TagResourceRequest"letmake~resourceARN=fun~tags->fun()->{resourceARN;tags}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceArn.to_valuex.resourceARN)));("Tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceARN=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"TagList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceArn.of_jsoninmake~tags~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or updates tags for a resource in Shield."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagList.toption[@ocaml.doc"A list of tag key and value pairs associated with the specified resource."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidResourceExceptionofInvalidResourceException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidResourceExceptione->`Assoc[("error",(`String"InvalidResourceException"));("details",(InvalidResourceException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield."]moduleListTagsForResourceRequest=structtypenonrect={resourceARN:ResourceArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource to get tags for."]}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"Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield."]moduleListResourcesInProtectionGroupResponse=structtypenonrect={resourceArns:ResourceArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the resources that are included in the protection group."];nextToken:Token.toption[@ocaml.doc"When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request. You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available. Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidPaginationTokenExceptionofInvalidPaginationTokenException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArns=fun?nextToken->fun()->{resourceArns;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidPaginationTokenException"->`InvalidPaginationTokenException(InvalidPaginationTokenException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidPaginationTokenException"->`InvalidPaginationTokenException(InvalidPaginationTokenException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidPaginationTokenExceptione->`Assoc[("error",(`String"InvalidPaginationTokenException"));("details",(InvalidPaginationTokenException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ResourceArns",(Option.mapx.resourceArns~f:ResourceArnList.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")inletresourceArns=(Option.map~f:ResourceArnList.of_xml)(Xml.childxml_arg0"ResourceArns")inmake?nextToken?resourceArns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletresourceArns=field_mapjson__"ResourceArns"ResourceArnList.of_jsoninmake?nextToken?resourceArns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the resources that are included in the protection group."]moduleListResourcesInProtectionGroupRequest=structtypenonrect={protectionGroupId:ProtectionGroupId.t[@ocaml.doc"The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it."];nextToken:Token.toption[@ocaml.doc"When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request. You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available. Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value. On your first call to a list operation, leave this setting empty."];maxResults:MaxResults.toption[@ocaml.doc"The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken value in the response. The default setting is 20."]}letcontext_="ListResourcesInProtectionGroupRequest"letmake?nextToken=fun?maxResults->fun~protectionGroupId->fun()->{nextToken;maxResults;protectionGroupId}letto_valuex=structure_to_value[("ProtectionGroupId",(Some(ProtectionGroupId.to_valuex.protectionGroupId)));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletprotectionGroupId=ProtectionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"ProtectionGroupId")inmake?maxResults?nextToken~protectionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletprotectionGroupId=field_map_exnjson__"ProtectionGroupId"ProtectionGroupId.of_jsoninmake?maxResults?nextToken~protectionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the resources that are included in the protection group."]moduleListProtectionsResponse=structtypenonrect={protections:Protections.toption[@ocaml.doc"The array of enabled Protection objects."];nextToken:Token.toption[@ocaml.doc"When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request. You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available. Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidPaginationTokenExceptionofInvalidPaginationTokenException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?protections=fun?nextToken->fun()->{protections;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidPaginationTokenException"->`InvalidPaginationTokenException(InvalidPaginationTokenException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidPaginationTokenException"->`InvalidPaginationTokenException(InvalidPaginationTokenException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidPaginationTokenExceptione->`Assoc[("error",(`String"InvalidPaginationTokenException"));("details",(InvalidPaginationTokenException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Protections",(Option.mapx.protections~f:Protections.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")inletprotections=(Option.map~f:Protections.of_xml)(Xml.childxml_arg0"Protections")inmake?nextToken?protections()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletprotections=field_mapjson__"Protections"Protections.of_jsoninmake?nextToken?protections()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves Protection objects for the account. You can retrieve all protections or you can provide filtering criteria and retrieve just the subset of protections that match the criteria."]moduleListProtectionsRequest=structtypenonrect={nextToken:Token.toption[@ocaml.doc"When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request. You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available. Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value. On your first call to a list operation, leave this setting empty."];maxResults:MaxResults.toption[@ocaml.doc"The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken value in the response. The default setting is 20."];inclusionFilters:InclusionProtectionFilters.toption[@ocaml.doc"Narrows the set of protections that the call retrieves. You can retrieve a single protection by providing its name or the ARN (Amazon Resource Name) of its protected resource. You can also retrieve all protections for a specific resource type. You can provide up to one criteria per filter type. Shield Advanced returns protections that exactly match all of the filter criteria that you provide."]}letmake?nextToken=fun?maxResults->fun?inclusionFilters->fun()->{nextToken;maxResults;inclusionFilters}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("InclusionFilters",(Option.mapx.inclusionFilters~f:InclusionProtectionFilters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinclusionFilters=(Option.map~f:InclusionProtectionFilters.of_xml)(Xml.childxml_arg0"InclusionFilters")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inmake?inclusionFilters?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinclusionFilters=field_mapjson__"InclusionFilters"InclusionProtectionFilters.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?inclusionFilters?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves Protection objects for the account. You can retrieve all protections or you can provide filtering criteria and retrieve just the subset of protections that match the criteria."]moduleListProtectionGroupsResponse=structtypenonrect={protectionGroups:ProtectionGroups.toption;nextToken:Token.toption[@ocaml.doc"When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request. You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available. Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidPaginationTokenExceptionofInvalidPaginationTokenException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?protectionGroups=fun?nextToken->fun()->{protectionGroups;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidPaginationTokenException"->`InvalidPaginationTokenException(InvalidPaginationTokenException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidPaginationTokenException"->`InvalidPaginationTokenException(InvalidPaginationTokenException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidPaginationTokenExceptione->`Assoc[("error",(`String"InvalidPaginationTokenException"));("details",(InvalidPaginationTokenException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ProtectionGroups",(Option.mapx.protectionGroups~f:ProtectionGroups.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")inletprotectionGroups=(Option.map~f:ProtectionGroups.of_xml)(Xml.childxml_arg0"ProtectionGroups")inmake?nextToken?protectionGroups()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletprotectionGroups=field_mapjson__"ProtectionGroups"ProtectionGroups.of_jsoninmake?nextToken?protectionGroups()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves ProtectionGroup objects for the account. You can retrieve all protection groups or you can provide filtering criteria and retrieve just the subset of protection groups that match the criteria."]moduleListProtectionGroupsRequest=structtypenonrect={nextToken:Token.toption[@ocaml.doc"When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request. You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available. Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value. On your first call to a list operation, leave this setting empty."];maxResults:MaxResults.toption[@ocaml.doc"The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken value in the response. The default setting is 20."];inclusionFilters:InclusionProtectionGroupFilters.toption[@ocaml.doc"Narrows the set of protection groups that the call retrieves. You can retrieve a single protection group by its name and you can retrieve all protection groups that are configured with specific pattern or aggregation settings. You can provide up to one criteria per filter type. Shield Advanced returns the protection groups that exactly match all of the search criteria that you provide."]}letmake?nextToken=fun?maxResults->fun?inclusionFilters->fun()->{nextToken;maxResults;inclusionFilters}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("InclusionFilters",(Option.mapx.inclusionFilters~f:InclusionProtectionGroupFilters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinclusionFilters=(Option.map~f:InclusionProtectionGroupFilters.of_xml)(Xml.childxml_arg0"InclusionFilters")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inmake?inclusionFilters?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinclusionFilters=field_mapjson__"InclusionFilters"InclusionProtectionGroupFilters.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninmake?inclusionFilters?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves ProtectionGroup objects for the account. You can retrieve all protection groups or you can provide filtering criteria and retrieve just the subset of protection groups that match the criteria."]moduleListAttacksResponse=structtypenonrect={attackSummaries:AttackSummaries.toption[@ocaml.doc"The attack information for the specified time range."];nextToken:Token.toption[@ocaml.doc"When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request. You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available. Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`Unknown_operation_errorof(string*stringoption)]letmake?attackSummaries=fun?nextToken->fun()->{attackSummaries;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AttackSummaries",(Option.mapx.attackSummaries~f:AttackSummaries.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")inletattackSummaries=(Option.map~f:AttackSummaries.of_xml)(Xml.childxml_arg0"AttackSummaries")inmake?nextToken?attackSummaries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletattackSummaries=field_mapjson__"AttackSummaries"AttackSummaries.of_jsoninmake?nextToken?attackSummaries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period."]moduleListAttacksRequest=structtypenonrect={resourceArns:ResourceArnFilterList.toption[@ocaml.doc"The ARNs (Amazon Resource Names) of the resources that were attacked. If you leave this blank, all applicable resources for this account will be included."];startTime:TimeRange.toption[@ocaml.doc"The start of the time period for the attacks. This is a timestamp type. The request syntax listing for this call indicates a number type, but you can provide the time in any valid timestamp format setting."];endTime:TimeRange.toption[@ocaml.doc"The end of the time period for the attacks. This is a timestamp type. The request syntax listing for this call indicates a number type, but you can provide the time in any valid timestamp format setting."];nextToken:Token.toption[@ocaml.doc"When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request. You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available. Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value. On your first call to a list operation, leave this setting empty."];maxResults:MaxResults.toption[@ocaml.doc"The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken value in the response. The default setting is 20."]}letmake?resourceArns=fun?startTime->fun?endTime->fun?nextToken->fun?maxResults->fun()->{resourceArns;startTime;endTime;nextToken;maxResults}letto_valuex=structure_to_value[("ResourceArns",(Option.mapx.resourceArns~f:ResourceArnFilterList.to_value));("StartTime",(Option.mapx.startTime~f:TimeRange.to_value));("EndTime",(Option.mapx.endTime~f:TimeRange.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletendTime=(Option.map~f:TimeRange.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:TimeRange.of_xml)(Xml.childxml_arg0"StartTime")inletresourceArns=(Option.map~f:ResourceArnFilterList.of_xml)(Xml.childxml_arg0"ResourceArns")inmake?maxResults?nextToken?endTime?startTime?resourceArns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"Token.of_jsoninletendTime=field_mapjson__"EndTime"TimeRange.of_jsoninletstartTime=field_mapjson__"StartTime"TimeRange.of_jsoninletresourceArns=field_mapjson__"ResourceArns"ResourceArnFilterList.of_jsoninmake?maxResults?nextToken?endTime?startTime?resourceArns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period."]moduleGetSubscriptionStateResponse=structtypenonrect={subscriptionState:SubscriptionState.toption[@ocaml.doc"The status of the subscription."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`Unknown_operation_errorof(string*stringoption)]letmake?subscriptionState=fun()->{subscriptionState}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("SubscriptionState",(Option.mapx.subscriptionState~f:SubscriptionState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscriptionState=(Option.map~f:SubscriptionState.of_xml)(Xml.childxml_arg0"SubscriptionState")inmake?subscriptionState()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscriptionState=field_mapjson__"SubscriptionState"SubscriptionState.of_jsoninmake?subscriptionState()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the SubscriptionState, either Active or Inactive."]moduleGetSubscriptionStateRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the SubscriptionState, either Active or Inactive."]moduleEnableProactiveEngagementResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support."]moduleEnableProactiveEngagementRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support."]moduleEnableApplicationLayerAutomaticResponseResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`LimitsExceededExceptionofLimitsExceededException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"LimitsExceededException"->`LimitsExceededException(LimitsExceededException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"LimitsExceededException"->`LimitsExceededException(LimitsExceededException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`LimitsExceededExceptione->`Assoc[("error",(`String"LimitsExceededException"));("details",(LimitsExceededException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Enable the Shield Advanced automatic application layer DDoS mitigation for the protected resource. This feature is available for Amazon CloudFront distributions and Application Load Balancers only. This causes Shield Advanced to create, verify, and apply WAF rules for DDoS attacks that it detects for the resource. Shield Advanced applies the rules in a Shield rule group inside the web ACL that you've associated with the resource. For information about how automatic mitigation works and the requirements for using it, see Shield Advanced automatic application layer DDoS mitigation. Don't use this action to make changes to automatic mitigation settings when it's already enabled for a resource. Instead, use UpdateApplicationLayerAutomaticResponse. To use this feature, you must associate a web ACL with the protected resource. The web ACL must be created using the latest version of WAF (v2). You can associate the web ACL through the Shield Advanced console at https://console.aws.amazon.com/wafv2/shieldv2#/. For more information, see Getting Started with Shield Advanced. You can also associate the web ACL to the resource through the WAF console or the WAF API, but you must manage Shield Advanced automatic mitigation through Shield Advanced. For information about WAF, see WAF Developer Guide."]moduleEnableApplicationLayerAutomaticResponseRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The ARN (Amazon Resource Name) of the protected resource."];action:ResponseAction.t[@ocaml.doc"Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource."]}letcontext_="EnableApplicationLayerAutomaticResponseRequest"letmake~resourceArn=fun~action->fun()->{resourceArn;action}letto_valuex=structure_to_value[("ResourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("Action",(Some(ResponseAction.to_valuex.action)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaction=ResponseAction.of_xml(Xml.child_exn~context:context_xml_arg0"Action")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~action~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaction=field_map_exnjson__"Action"ResponseAction.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake~action~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Enable the Shield Advanced automatic application layer DDoS mitigation for the protected resource. This feature is available for Amazon CloudFront distributions and Application Load Balancers only. This causes Shield Advanced to create, verify, and apply WAF rules for DDoS attacks that it detects for the resource. Shield Advanced applies the rules in a Shield rule group inside the web ACL that you've associated with the resource. For information about how automatic mitigation works and the requirements for using it, see Shield Advanced automatic application layer DDoS mitigation. Don't use this action to make changes to automatic mitigation settings when it's already enabled for a resource. Instead, use UpdateApplicationLayerAutomaticResponse. To use this feature, you must associate a web ACL with the protected resource. The web ACL must be created using the latest version of WAF (v2). You can associate the web ACL through the Shield Advanced console at https://console.aws.amazon.com/wafv2/shieldv2#/. For more information, see Getting Started with Shield Advanced. You can also associate the web ACL to the resource through the WAF console or the WAF API, but you must manage Shield Advanced automatic mitigation through Shield Advanced. For information about WAF, see WAF Developer Guide."]moduleDisassociateHealthCheckResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidResourceExceptionofInvalidResourceException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidResourceExceptione->`Assoc[("error",(`String"InvalidResourceException"));("details",(InvalidResourceException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and response. You define the health check in Route\194\16053 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide."]moduleDisassociateHealthCheckRequest=structtypenonrect={protectionId:ProtectionId.t[@ocaml.doc"The unique identifier (ID) for the Protection object to remove the health check association from."];healthCheckArn:HealthCheckArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the health check that is associated with the protection."]}letcontext_="DisassociateHealthCheckRequest"letmake~protectionId=fun~healthCheckArn->fun()->{protectionId;healthCheckArn}letto_valuex=structure_to_value[("ProtectionId",(Some(ProtectionId.to_valuex.protectionId)));("HealthCheckArn",(Some(HealthCheckArn.to_valuex.healthCheckArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethealthCheckArn=HealthCheckArn.of_xml(Xml.child_exn~context:context_xml_arg0"HealthCheckArn")inletprotectionId=ProtectionId.of_xml(Xml.child_exn~context:context_xml_arg0"ProtectionId")inmake~healthCheckArn~protectionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethealthCheckArn=field_map_exnjson__"HealthCheckArn"HealthCheckArn.of_jsoninletprotectionId=field_map_exnjson__"ProtectionId"ProtectionId.of_jsoninmake~healthCheckArn~protectionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and response. You define the health check in Route\194\16053 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide."]moduleDisassociateDRTRoleResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 the Shield Response Team's (SRT) access to your Amazon Web Services account."]moduleDisassociateDRTRoleRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the Shield Response Team's (SRT) access to your Amazon Web Services account."]moduleDisassociateDRTLogBucketResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedForDependencyExceptionofAccessDeniedForDependencyException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`NoAssociatedRoleExceptionofNoAssociatedRoleException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedForDependencyException"->`AccessDeniedForDependencyException(AccessDeniedForDependencyException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"NoAssociatedRoleException"->`NoAssociatedRoleException(NoAssociatedRoleException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedForDependencyException"->`AccessDeniedForDependencyException(AccessDeniedForDependencyException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"NoAssociatedRoleException"->`NoAssociatedRoleException(NoAssociatedRoleException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedForDependencyExceptione->`Assoc[("error",(`String"AccessDeniedForDependencyException"));("details",(AccessDeniedForDependencyException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`NoAssociatedRoleExceptione->`Assoc[("error",(`String"NoAssociatedRoleException"));("details",(NoAssociatedRoleException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 the Shield Response Team's (SRT) access to the specified Amazon S3 bucket containing the logs that you shared previously."]moduleDisassociateDRTLogBucketRequest=structtypenonrect={logBucket:LogBucket.t[@ocaml.doc"The Amazon S3 bucket that contains the logs that you want to share."]}letcontext_="DisassociateDRTLogBucketRequest"letmake~logBucket=fun()->{logBucket}letto_valuex=structure_to_value[("LogBucket",(Some(LogBucket.to_valuex.logBucket)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogBucket=LogBucket.of_xml(Xml.child_exn~context:context_xml_arg0"LogBucket")inmake~logBucket()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogBucket=field_map_exnjson__"LogBucket"LogBucket.of_jsoninmake~logBucket()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the Shield Response Team's (SRT) access to the specified Amazon S3 bucket containing the logs that you shared previously."]moduleDisableProactiveEngagementResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 authorization from the Shield Response Team (SRT) to notify contacts about escalations to the SRT and to initiate proactive customer support."]moduleDisableProactiveEngagementRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes authorization from the Shield Response Team (SRT) to notify contacts about escalations to the SRT and to initiate proactive customer support."]moduleDisableApplicationLayerAutomaticResponseResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Disable the Shield Advanced automatic application layer DDoS mitigation feature for the protected resource. This stops Shield Advanced from creating, verifying, and applying WAF rules for attacks that it detects for the resource."]moduleDisableApplicationLayerAutomaticResponseRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The ARN (Amazon Resource Name) of the protected resource."]}letcontext_="DisableApplicationLayerAutomaticResponseRequest"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"Disable the Shield Advanced automatic application layer DDoS mitigation feature for the protected resource. This stops Shield Advanced from creating, verifying, and applying WAF rules for attacks that it detects for the resource."]moduleDescribeSubscriptionResponse=structtypenonrect={subscription:Subscription.toption[@ocaml.doc"The Shield Advanced subscription details for an account."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?subscription=fun()->{subscription}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Subscription",(Option.mapx.subscription~f:Subscription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscription=(Option.map~f:Subscription.of_xml)(Xml.childxml_arg0"Subscription")inmake?subscription()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscription=field_mapjson__"Subscription"Subscription.of_jsoninmake?subscription()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about the Shield Advanced subscription for an account."]moduleDescribeSubscriptionRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about the Shield Advanced subscription for an account."]moduleDescribeProtectionResponse=structtypenonrect={protection:Protection.toption[@ocaml.doc"The Protection that you requested."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?protection=fun()->{protection}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Protection",(Option.mapx.protection~f:Protection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprotection=(Option.map~f:Protection.of_xml)(Xml.childxml_arg0"Protection")inmake?protection()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprotection=field_mapjson__"Protection"Protection.of_jsoninmake?protection()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the details of a Protection object."]moduleDescribeProtectionRequest=structtypenonrect={protectionId:ProtectionId.toption[@ocaml.doc"The unique identifier (ID) for the Protection object to describe. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both."];resourceArn:ResourceArn.toption[@ocaml.doc"The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both."]}letmake?protectionId=fun?resourceArn->fun()->{protectionId;resourceArn}letto_valuex=structure_to_value[("ProtectionId",(Option.mapx.protectionId~f:ProtectionId.to_value));("ResourceArn",(Option.mapx.resourceArn~f:ResourceArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"ResourceArn")inletprotectionId=(Option.map~f:ProtectionId.of_xml)(Xml.childxml_arg0"ProtectionId")inmake?resourceArn?protectionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_mapjson__"ResourceArn"ResourceArn.of_jsoninletprotectionId=field_mapjson__"ProtectionId"ProtectionId.of_jsoninmake?resourceArn?protectionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the details of a Protection object."]moduleDescribeProtectionGroupResponse=structtypenonrect={protectionGroup:ProtectionGroup.toption[@ocaml.doc"A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?protectionGroup=fun()->{protectionGroup}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ProtectionGroup",(Option.mapx.protectionGroup~f:ProtectionGroup.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprotectionGroup=(Option.map~f:ProtectionGroup.of_xml)(Xml.childxml_arg0"ProtectionGroup")inmake?protectionGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprotectionGroup=field_mapjson__"ProtectionGroup"ProtectionGroup.of_jsoninmake?protectionGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the specification for the specified protection group."]moduleDescribeProtectionGroupRequest=structtypenonrect={protectionGroupId:ProtectionGroupId.t[@ocaml.doc"The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it."]}letcontext_="DescribeProtectionGroupRequest"letmake~protectionGroupId=fun()->{protectionGroupId}letto_valuex=structure_to_value[("ProtectionGroupId",(Some(ProtectionGroupId.to_valuex.protectionGroupId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprotectionGroupId=ProtectionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"ProtectionGroupId")inmake~protectionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprotectionGroupId=field_map_exnjson__"ProtectionGroupId"ProtectionGroupId.of_jsoninmake~protectionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the specification for the specified protection group."]moduleDescribeEmergencyContactSettingsResponse=structtypenonrect={emergencyContactList:EmergencyContactList.toption[@ocaml.doc"A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?emergencyContactList=fun()->{emergencyContactList}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("EmergencyContactList",(Option.mapx.emergencyContactList~f:EmergencyContactList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letemergencyContactList=(Option.map~f:EmergencyContactList.of_xml)(Xml.childxml_arg0"EmergencyContactList")inmake?emergencyContactList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letemergencyContactList=field_mapjson__"EmergencyContactList"EmergencyContactList.of_jsoninmake?emergencyContactList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support."]moduleDescribeEmergencyContactSettingsRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support."]moduleDescribeDRTAccessResponse=structtypenonrect={roleArn:RoleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon Web Services account."];logBucketList:LogBucketList.toption[@ocaml.doc"The list of Amazon S3 buckets accessed by the SRT."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?roleArn=fun?logBucketList->fun()->{roleArn;logBucketList}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RoleArn",(Option.mapx.roleArn~f:RoleArn.to_value));("LogBucketList",(Option.mapx.logBucketList~f:LogBucketList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogBucketList=(Option.map~f:LogBucketList.of_xml)(Xml.childxml_arg0"LogBucketList")inletroleArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"RoleArn")inmake?logBucketList?roleArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogBucketList=field_mapjson__"LogBucketList"LogBucketList.of_jsoninletroleArn=field_mapjson__"RoleArn"RoleArn.of_jsoninmake?logBucketList?roleArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the current role and list of Amazon S3 log buckets used by the Shield Response Team (SRT) to access your Amazon Web Services account while assisting with attack mitigation."]moduleDescribeDRTAccessRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the current role and list of Amazon S3 log buckets used by the Shield Response Team (SRT) to access your Amazon Web Services account while assisting with attack mitigation."]moduleDescribeAttackStatisticsResponse=structtypenonrect={timeRange:TimeRange.toption[@ocaml.doc"The time range of the attack."];dataItems:AttackStatisticsDataList.toption[@ocaml.doc"The data that describes the attacks detected during the time period."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`Unknown_operation_errorof(string*stringoption)]letmake?timeRange=fun?dataItems->fun()->{timeRange;dataItems}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TimeRange",(Option.mapx.timeRange~f:TimeRange.to_value));("DataItems",(Option.mapx.dataItems~f:AttackStatisticsDataList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataItems=(Option.map~f:AttackStatisticsDataList.of_xml)(Xml.childxml_arg0"DataItems")inlettimeRange=(Option.map~f:TimeRange.of_xml)(Xml.childxml_arg0"TimeRange")inmake?dataItems?timeRange()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataItems=field_mapjson__"DataItems"AttackStatisticsDataList.of_jsoninlettimeRange=field_mapjson__"TimeRange"TimeRange.of_jsoninmake?dataItems?timeRange()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about the number and type of attacks Shield has detected in the last year for all resources that belong to your account, regardless of whether you've defined Shield protections for them. This operation is available to Shield customers as well as to Shield Advanced customers. The operation returns data for the time range of midnight UTC, one year ago, to midnight UTC, today. For example, if the current time is 2020-10-26 15:39:32 PDT, equal to 2020-10-26 22:39:32 UTC, then the time range for the attack data returned is from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC. The time range indicates the period covered by the attack statistics data items."]moduleDescribeAttackStatisticsRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about the number and type of attacks Shield has detected in the last year for all resources that belong to your account, regardless of whether you've defined Shield protections for them. This operation is available to Shield customers as well as to Shield Advanced customers. The operation returns data for the time range of midnight UTC, one year ago, to midnight UTC, today. For example, if the current time is 2020-10-26 15:39:32 PDT, equal to 2020-10-26 22:39:32 UTC, then the time range for the attack data returned is from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC. The time range indicates the period covered by the attack statistics data items."]moduleDescribeAttackResponse=structtypenonrect={attack:AttackDetail.toption[@ocaml.doc"The attack that you requested."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`Unknown_operation_errorof(string*stringoption)]letmake?attack=fun()->{attack}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.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))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Attack",(Option.mapx.attack~f:AttackDetail.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattack=(Option.map~f:AttackDetail.of_xml)(Xml.childxml_arg0"Attack")inmake?attack()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattack=field_mapjson__"Attack"AttackDetail.of_jsoninmake?attack()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the details of a DDoS attack."]moduleDescribeAttackRequest=structtypenonrect={attackId:AttackId.t[@ocaml.doc"The unique identifier (ID) for the attack."]}letcontext_="DescribeAttackRequest"letmake~attackId=fun()->{attackId}letto_valuex=structure_to_value[("AttackId",(Some(AttackId.to_valuex.attackId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattackId=AttackId.of_xml(Xml.child_exn~context:context_xml_arg0"AttackId")inmake~attackId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattackId=field_map_exnjson__"AttackId"AttackId.of_jsoninmake~attackId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the details of a DDoS attack."]moduleDeleteSubscriptionResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`LockedSubscriptionExceptionofLockedSubscriptionException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"LockedSubscriptionException"->`LockedSubscriptionException(LockedSubscriptionException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"LockedSubscriptionException"->`LockedSubscriptionException(LockedSubscriptionException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`LockedSubscriptionExceptione->`Assoc[("error",(`String"LockedSubscriptionException"));("details",(LockedSubscriptionException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 Shield Advanced from an account. Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment."]moduleDeleteSubscriptionRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes Shield Advanced from an account. Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment."]moduleDeleteProtectionResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 an Shield Advanced Protection."]moduleDeleteProtectionRequest=structtypenonrect={protectionId:ProtectionId.t[@ocaml.doc"The unique identifier (ID) for the Protection object to be deleted."]}letcontext_="DeleteProtectionRequest"letmake~protectionId=fun()->{protectionId}letto_valuex=structure_to_value[("ProtectionId",(Some(ProtectionId.to_valuex.protectionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprotectionId=ProtectionId.of_xml(Xml.child_exn~context:context_xml_arg0"ProtectionId")inmake~protectionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprotectionId=field_map_exnjson__"ProtectionId"ProtectionId.of_jsoninmake~protectionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an Shield Advanced Protection."]moduleDeleteProtectionGroupResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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 the specified protection group."]moduleDeleteProtectionGroupRequest=structtypenonrect={protectionGroupId:ProtectionGroupId.t[@ocaml.doc"The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it."]}letcontext_="DeleteProtectionGroupRequest"letmake~protectionGroupId=fun()->{protectionGroupId}letto_valuex=structure_to_value[("ProtectionGroupId",(Some(ProtectionGroupId.to_valuex.protectionGroupId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprotectionGroupId=ProtectionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"ProtectionGroupId")inmake~protectionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprotectionGroupId=field_map_exnjson__"ProtectionGroupId"ProtectionGroupId.of_jsoninmake~protectionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified protection group."]moduleCreateSubscriptionResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.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"Activates Shield Advanced for an account. For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account, regardless of whether the payer account itself is subscribed. When you initially create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request."]moduleCreateSubscriptionRequest=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Activates Shield Advanced for an account. For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account, regardless of whether the payer account itself is subscribed. When you initially create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request."]moduleCreateProtectionResponse=structtypenonrect={protectionId:ProtectionId.toption[@ocaml.doc"The unique identifier (ID) for the Protection object that is created."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidResourceExceptionofInvalidResourceException.t|`LimitsExceededExceptionofLimitsExceededException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?protectionId=fun()->{protectionId}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_jsonjson)|"LimitsExceededException"->`LimitsExceededException(LimitsExceededException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_xmlxml)|"LimitsExceededException"->`LimitsExceededException(LimitsExceededException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidResourceExceptione->`Assoc[("error",(`String"InvalidResourceException"));("details",(InvalidResourceException.to_jsone))]|`LimitsExceededExceptione->`Assoc[("error",(`String"LimitsExceededException"));("details",(LimitsExceededException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ProtectionId",(Option.mapx.protectionId~f:ProtectionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprotectionId=(Option.map~f:ProtectionId.of_xml)(Xml.childxml_arg0"ProtectionId")inmake?protectionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprotectionId=field_mapjson__"ProtectionId"ProtectionId.of_jsoninmake?protectionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Amazon Route\194\16053 hosted zone, Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses. You can add protection to only a single resource with each CreateProtection request. You can add protection to multiple resources at once through the Shield Advanced console at https://console.aws.amazon.com/wafv2/shieldv2#/. For more information see Getting Started with Shield Advanced and Adding Shield Advanced protection to Amazon Web Services resources."]moduleCreateProtectionRequest=structtypenonrect={name:ProtectionName.t[@ocaml.doc"Friendly name for the Protection you are creating."];resourceArn:ResourceArn.t[@ocaml.doc"The ARN (Amazon Resource Name) of the resource to be protected. The ARN should be in one of the following formats: For an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id For an Elastic Load Balancer (Classic Load Balancer): arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name For an Amazon CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id For an Global Accelerator standard accelerator: arn:aws:globalaccelerator::account-id:accelerator/accelerator-id For Amazon Route\194\16053: arn:aws:route53:::hostedzone/hosted-zone-id For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id"];tags:TagList.toption[@ocaml.doc"One or more tag key-value pairs for the Protection object that is created."]}letcontext_="CreateProtectionRequest"letmake?tags=fun~name->fun~resourceArn->fun()->{tags;name;resourceArn}letto_valuex=structure_to_value[("Name",(Some(ProtectionName.to_valuex.name)));("ResourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inletname=ProtectionName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?tags~resourceArn~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninletname=field_map_exnjson__"Name"ProtectionName.of_jsoninmake?tags~resourceArn~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Amazon Route\194\16053 hosted zone, Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses. You can add protection to only a single resource with each CreateProtection request. You can add protection to multiple resources at once through the Shield Advanced console at https://console.aws.amazon.com/wafv2/shieldv2#/. For more information see Getting Started with Shield Advanced and Adding Shield Advanced protection to Amazon Web Services resources."]moduleCreateProtectionGroupResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`LimitsExceededExceptionofLimitsExceededException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceAlreadyExistsExceptionofResourceAlreadyExistsException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"LimitsExceededException"->`LimitsExceededException(LimitsExceededException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"LimitsExceededException"->`LimitsExceededException(LimitsExceededException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceAlreadyExistsException"->`ResourceAlreadyExistsException(ResourceAlreadyExistsException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`LimitsExceededExceptione->`Assoc[("error",(`String"LimitsExceededException"));("details",(LimitsExceededException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceAlreadyExistsExceptione->`Assoc[("error",(`String"ResourceAlreadyExistsException"));("details",(ResourceAlreadyExistsException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Creates a grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives."]moduleCreateProtectionGroupRequest=structtypenonrect={protectionGroupId:ProtectionGroupId.t[@ocaml.doc"The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it."];aggregation:ProtectionGroupAggregation.t[@ocaml.doc"Defines how Shield combines resource data for the group in order to detect, mitigate, and report events. Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically. Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers. Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions."];pattern:ProtectionGroupPattern.t[@ocaml.doc"The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type."];resourceType:ProtectedResourceType.toption[@ocaml.doc"The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting."];members:ProtectionGroupMembers.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting."];tags:TagList.toption[@ocaml.doc"One or more tag key-value pairs for the protection group."]}letcontext_="CreateProtectionGroupRequest"letmake?resourceType=fun?members->fun?tags->fun~protectionGroupId->fun~aggregation->fun~pattern->fun()->{resourceType;members;tags;protectionGroupId;aggregation;pattern}letto_valuex=structure_to_value[("ProtectionGroupId",(Some(ProtectionGroupId.to_valuex.protectionGroupId)));("Aggregation",(Some(ProtectionGroupAggregation.to_valuex.aggregation)));("Pattern",(Some(ProtectionGroupPattern.to_valuex.pattern)));("ResourceType",(Option.mapx.resourceType~f:ProtectedResourceType.to_value));("Members",(Option.mapx.members~f:ProtectionGroupMembers.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletmembers=(Option.map~f:ProtectionGroupMembers.of_xml)(Xml.childxml_arg0"Members")inletresourceType=(Option.map~f:ProtectedResourceType.of_xml)(Xml.childxml_arg0"ResourceType")inletpattern=ProtectionGroupPattern.of_xml(Xml.child_exn~context:context_xml_arg0"Pattern")inletaggregation=ProtectionGroupAggregation.of_xml(Xml.child_exn~context:context_xml_arg0"Aggregation")inletprotectionGroupId=ProtectionGroupId.of_xml(Xml.child_exn~context:context_xml_arg0"ProtectionGroupId")inmake?tags?members?resourceType~pattern~aggregation~protectionGroupId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletmembers=field_mapjson__"Members"ProtectionGroupMembers.of_jsoninletresourceType=field_mapjson__"ResourceType"ProtectedResourceType.of_jsoninletpattern=field_map_exnjson__"Pattern"ProtectionGroupPattern.of_jsoninletaggregation=field_map_exnjson__"Aggregation"ProtectionGroupAggregation.of_jsoninletprotectionGroupId=field_map_exnjson__"ProtectionGroupId"ProtectionGroupId.of_jsoninmake?tags?members?resourceType~pattern~aggregation~protectionGroupId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives."]moduleAssociateProactiveEngagementDetailsResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Initializes proactive engagement and sets the list of contacts for the Shield Response Team (SRT) to use. You must provide at least one phone number in the emergency contact list. After you have initialized proactive engagement using this call, to disable or enable proactive engagement, use the calls DisableProactiveEngagement and EnableProactiveEngagement. This call defines the list of email addresses and phone numbers that the SRT can use to contact you for escalations to the SRT and to initiate proactive customer support. The contacts that you provide in the request replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it to this call."]moduleAssociateProactiveEngagementDetailsRequest=structtypenonrect={emergencyContactList:EmergencyContactList.t[@ocaml.doc"A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support. To enable proactive engagement, the contact list must include at least one phone number. The contacts that you provide here replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it here."]}letcontext_="AssociateProactiveEngagementDetailsRequest"letmake~emergencyContactList=fun()->{emergencyContactList}letto_valuex=structure_to_value[("EmergencyContactList",(Some(EmergencyContactList.to_valuex.emergencyContactList)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letemergencyContactList=EmergencyContactList.of_xml(Xml.child_exn~context:context_xml_arg0"EmergencyContactList")inmake~emergencyContactList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letemergencyContactList=field_map_exnjson__"EmergencyContactList"EmergencyContactList.of_jsoninmake~emergencyContactList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Initializes proactive engagement and sets the list of contacts for the Shield Response Team (SRT) to use. You must provide at least one phone number in the emergency contact list. After you have initialized proactive engagement using this call, to disable or enable proactive engagement, use the calls DisableProactiveEngagement and EnableProactiveEngagement. This call defines the list of email addresses and phone numbers that the SRT can use to contact you for escalations to the SRT and to initiate proactive customer support. The contacts that you provide in the request replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it to this call."]moduleAssociateHealthCheckResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidResourceExceptionofInvalidResourceException.t|`LimitsExceededExceptionofLimitsExceededException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_jsonjson)|"LimitsExceededException"->`LimitsExceededException(LimitsExceededException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidResourceException"->`InvalidResourceException(InvalidResourceException.of_xmlxml)|"LimitsExceededException"->`LimitsExceededException(LimitsExceededException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidResourceExceptione->`Assoc[("error",(`String"InvalidResourceException"));("details",(InvalidResourceException.to_jsone))]|`LimitsExceededExceptione->`Assoc[("error",(`String"LimitsExceededException"));("details",(LimitsExceededException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and response. You define the health check in Route\194\16053 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide."]moduleAssociateHealthCheckRequest=structtypenonrect={protectionId:ProtectionId.t[@ocaml.doc"The unique identifier (ID) for the Protection object to add the health check association to."];healthCheckArn:HealthCheckArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the health check to associate with the protection."]}letcontext_="AssociateHealthCheckRequest"letmake~protectionId=fun~healthCheckArn->fun()->{protectionId;healthCheckArn}letto_valuex=structure_to_value[("ProtectionId",(Some(ProtectionId.to_valuex.protectionId)));("HealthCheckArn",(Some(HealthCheckArn.to_valuex.healthCheckArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethealthCheckArn=HealthCheckArn.of_xml(Xml.child_exn~context:context_xml_arg0"HealthCheckArn")inletprotectionId=ProtectionId.of_xml(Xml.child_exn~context:context_xml_arg0"ProtectionId")inmake~healthCheckArn~protectionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethealthCheckArn=field_map_exnjson__"HealthCheckArn"HealthCheckArn.of_jsoninletprotectionId=field_map_exnjson__"ProtectionId"ProtectionId.of_jsoninmake~healthCheckArn~protectionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and response. You define the health check in Route\194\16053 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide."]moduleAssociateDRTRoleResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedForDependencyExceptionofAccessDeniedForDependencyException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedForDependencyException"->`AccessDeniedForDependencyException(AccessDeniedForDependencyException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedForDependencyException"->`AccessDeniedForDependencyException(AccessDeniedForDependencyException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedForDependencyExceptione->`Assoc[("error",(`String"AccessDeniedForDependencyException"));("details",(AccessDeniedForDependencyException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Authorizes the Shield Response Team (SRT) using the specified role, to access your Amazon Web Services account to assist with DDoS attack mitigation during potential attacks. This enables the SRT to inspect your WAF configuration and create or update WAF rules and web ACLs. You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn. Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role that you'll specify in the request. You can access this policy in the IAM console at AWSShieldDRTAccessPolicy. For more information see Adding and removing IAM identity permissions. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON policy elements: Principal. The SRT will have access only to your WAF and Shield resources. By submitting this request, you authorize the SRT to inspect your WAF and Shield configuration and create and update WAF rules and web ACLs on your behalf. The SRT takes these actions only if explicitly authorized by you. You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a user permissions to pass a role to an Amazon Web Services service. To use the services of the SRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan."]moduleAssociateDRTRoleRequest=structtypenonrect={roleArn:RoleArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the role the SRT will use to access your Amazon Web Services account. Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to this role. For more information see Attaching and Detaching IAM Policies."]}letcontext_="AssociateDRTRoleRequest"letmake~roleArn=fun()->{roleArn}letto_valuex=structure_to_value[("RoleArn",(Some(RoleArn.to_valuex.roleArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleArn=RoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"RoleArn")inmake~roleArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleArn=field_map_exnjson__"RoleArn"RoleArn.of_jsoninmake~roleArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Authorizes the Shield Response Team (SRT) using the specified role, to access your Amazon Web Services account to assist with DDoS attack mitigation during potential attacks. This enables the SRT to inspect your WAF configuration and create or update WAF rules and web ACLs. You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn. Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role that you'll specify in the request. You can access this policy in the IAM console at AWSShieldDRTAccessPolicy. For more information see Adding and removing IAM identity permissions. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON policy elements: Principal. The SRT will have access only to your WAF and Shield resources. By submitting this request, you authorize the SRT to inspect your WAF and Shield configuration and create and update WAF rules and web ACLs on your behalf. The SRT takes these actions only if explicitly authorized by you. You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a user permissions to pass a role to an Amazon Web Services service. To use the services of the SRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan."]moduleAssociateDRTLogBucketResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedForDependencyExceptionofAccessDeniedForDependencyException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidOperationExceptionofInvalidOperationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`LimitsExceededExceptionofLimitsExceededException.t|`NoAssociatedRoleExceptionofNoAssociatedRoleException.t|`OptimisticLockExceptionofOptimisticLockException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedForDependencyException"->`AccessDeniedForDependencyException(AccessDeniedForDependencyException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"LimitsExceededException"->`LimitsExceededException(LimitsExceededException.of_jsonjson)|"NoAssociatedRoleException"->`NoAssociatedRoleException(NoAssociatedRoleException.of_jsonjson)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedForDependencyException"->`AccessDeniedForDependencyException(AccessDeniedForDependencyException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidOperationException"->`InvalidOperationException(InvalidOperationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"LimitsExceededException"->`LimitsExceededException(LimitsExceededException.of_xmlxml)|"NoAssociatedRoleException"->`NoAssociatedRoleException(NoAssociatedRoleException.of_xmlxml)|"OptimisticLockException"->`OptimisticLockException(OptimisticLockException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedForDependencyExceptione->`Assoc[("error",(`String"AccessDeniedForDependencyException"));("details",(AccessDeniedForDependencyException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidOperationExceptione->`Assoc[("error",(`String"InvalidOperationException"));("details",(InvalidOperationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`LimitsExceededExceptione->`Assoc[("error",(`String"LimitsExceededException"));("details",(LimitsExceededException.to_jsone))]|`NoAssociatedRoleExceptione->`Assoc[("error",(`String"NoAssociatedRoleException"));("details",(NoAssociatedRoleException.to_jsone))]|`OptimisticLockExceptione->`Assoc[("error",(`String"OptimisticLockException"));("details",(OptimisticLockException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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"Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources. You can associate up to 10 Amazon S3 buckets with your subscription. To use the services of the SRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan."]moduleAssociateDRTLogBucketRequest=structtypenonrect={logBucket:LogBucket.t[@ocaml.doc"The Amazon S3 bucket that contains the logs that you want to share."]}letcontext_="AssociateDRTLogBucketRequest"letmake~logBucket=fun()->{logBucket}letto_valuex=structure_to_value[("LogBucket",(Some(LogBucket.to_valuex.logBucket)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogBucket=LogBucket.of_xml(Xml.child_exn~context:context_xml_arg0"LogBucket")inmake~logBucket()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogBucket=field_map_exnjson__"LogBucket"LogBucket.of_jsoninmake~logBucket()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources. You can associate up to 10 Amazon S3 buckets with your subscription. To use the services of the SRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan."]