12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858(* 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.acmletapiVersion="2015-12-08"letendpointPrefix="acm"letserviceFullName="AWS Certificate Manager"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="ACM"lettargetPrefix="CertificateManager"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[]))])moduleServiceErrorMessage=structtypenonrect=stringletcontext_="ServiceErrorMessage"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:"ServiceErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:ServiceErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ServiceErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ServiceErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ServiceErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You do not have access required to perform this action."]moduleValidationMethod=structtypenonrect=|EMAIL|DNS|HTTP|Non_static_idofstringletmakei=iletto_string=function|EMAIL->"EMAIL"|DNS->"DNS"|HTTP->"HTTP"|Non_static_ids->sletof_string=function|"EMAIL"->EMAIL|"DNS"->DNS|"HTTP"->HTTP|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ValidationMethod"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidationMethod"j)letto_json=simple_to_jsonto_valueendmoduleTStamp=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_valueendmoduleRenewalStatus=structtypenonrect=|PENDING_AUTO_RENEWAL|PENDING_VALIDATION|SUCCESS|FAILED|Non_static_idofstringletmakei=iletto_string=function|PENDING_AUTO_RENEWAL->"PENDING_AUTO_RENEWAL"|PENDING_VALIDATION->"PENDING_VALIDATION"|SUCCESS->"SUCCESS"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"PENDING_AUTO_RENEWAL"->PENDING_AUTO_RENEWAL|"PENDING_VALIDATION"->PENDING_VALIDATION|"SUCCESS"->SUCCESS|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration RenewalStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RenewalStatus"j)letto_json=simple_to_jsonto_valueendmoduleRenewalEligibility=structtypenonrect=|ELIGIBLE|INELIGIBLE|Non_static_idofstringletmakei=iletto_string=function|ELIGIBLE->"ELIGIBLE"|INELIGIBLE->"INELIGIBLE"|Non_static_ids->sletof_string=function|"ELIGIBLE"->ELIGIBLE|"INELIGIBLE"->INELIGIBLE|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 RenewalEligibility"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RenewalEligibility"j)letto_json=simple_to_jsonto_valueendmoduleNullableBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleCertificateType=structtypenonrect=|IMPORTED|AMAZON_ISSUED|PRIVATE|Non_static_idofstringletmakei=iletto_string=function|IMPORTED->"IMPORTED"|AMAZON_ISSUED->"AMAZON_ISSUED"|PRIVATE->"PRIVATE"|Non_static_ids->sletof_string=function|"IMPORTED"->IMPORTED|"AMAZON_ISSUED"->AMAZON_ISSUED|"PRIVATE"->PRIVATE|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 CertificateType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CertificateType"j)letto_json=simple_to_jsonto_valueendmoduleCertificateStatus=structtypenonrect=|PENDING_VALIDATION|ISSUED|INACTIVE|EXPIRED|VALIDATION_TIMED_OUT|REVOKED|FAILED|Non_static_idofstringletmakei=iletto_string=function|PENDING_VALIDATION->"PENDING_VALIDATION"|ISSUED->"ISSUED"|INACTIVE->"INACTIVE"|EXPIRED->"EXPIRED"|VALIDATION_TIMED_OUT->"VALIDATION_TIMED_OUT"|REVOKED->"REVOKED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"PENDING_VALIDATION"->PENDING_VALIDATION|"ISSUED"->ISSUED|"INACTIVE"->INACTIVE|"EXPIRED"->EXPIRED|"VALIDATION_TIMED_OUT"->VALIDATION_TIMED_OUT|"REVOKED"->REVOKED|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CertificateStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CertificateStatus"j)letto_json=simple_to_jsonto_valueendmoduleCertificateManagedBy=structtypenonrect=|CLOUDFRONT|Non_static_idofstringletmakei=iletto_string=function|CLOUDFRONT->"CLOUDFRONT"|Non_static_ids->sletof_string=function|"CLOUDFRONT"->CLOUDFRONT|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 CertificateManagedBy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CertificateManagedBy"j)letto_json=simple_to_jsonto_valueendmoduleCertificateExport=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 CertificateExport"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CertificateExport"j)letto_json=simple_to_jsonto_valueendmoduleAcmCertificateMetadata=structtypenonrect={createdAt:TStamp.toption[@ocaml.doc"The time at which the certificate was requested."];exported:NullableBoolean.toption[@ocaml.doc"Indicates whether the certificate has been exported."];importedAt:TStamp.toption[@ocaml.doc"The date and time when the certificate was imported. This value exists only when the certificate type is IMPORTED."];inUse:NullableBoolean.toption[@ocaml.doc"Indicates whether the certificate is currently in use by an Amazon Web Services service."];issuedAt:TStamp.toption[@ocaml.doc"The time at which the certificate was issued. This value exists only when the certificate type is AMAZON_ISSUED."];renewalEligibility:RenewalEligibility.toption[@ocaml.doc"Specifies whether the certificate is eligible for renewal. At this time, only exported private certificates can be renewed with the RenewCertificate command."];revokedAt:TStamp.toption[@ocaml.doc"The time at which the certificate was revoked. This value exists only when the certificate status is REVOKED."];status:CertificateStatus.toption[@ocaml.doc"The status of the certificate. A certificate enters status PENDING_VALIDATION upon being requested, unless it fails for any of the reasons given in the troubleshooting topic Certificate request fails. ACM makes repeated attempts to validate a certificate for 72 hours and then times out. If a certificate shows status FAILED or VALIDATION_TIMED_OUT, delete the request, correct the issue with DNS validation or Email validation, and try again. If validation succeeds, the certificate enters status ISSUED."];renewalStatus:RenewalStatus.toption[@ocaml.doc"The renewal status of the certificate."];type_:CertificateType.toption[@ocaml.doc"The source of the certificate. For certificates provided by ACM, this value is AMAZON_ISSUED. For certificates that you imported with ImportCertificate, this value is IMPORTED. ACM does not provide managed renewal for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see Importing Certificates in the Certificate Manager User Guide."];exportOption:CertificateExport.toption[@ocaml.doc"Indicates whether the certificate can be exported."];managedBy:CertificateManagedBy.toption[@ocaml.doc"Identifies the Amazon Web Services service that manages the certificate issued by ACM."];validationMethod:ValidationMethod.toption[@ocaml.doc"Specifies the domain validation method."]}letmake?createdAt=fun?exported->fun?importedAt->fun?inUse->fun?issuedAt->fun?renewalEligibility->fun?revokedAt->fun?status->fun?renewalStatus->fun?type_->fun?exportOption->fun?managedBy->fun?validationMethod->fun()->{createdAt;exported;importedAt;inUse;issuedAt;renewalEligibility;revokedAt;status;renewalStatus;type_;exportOption;managedBy;validationMethod}letto_valuex=structure_to_value[("CreatedAt",(Option.mapx.createdAt~f:TStamp.to_value));("Exported",(Option.mapx.exported~f:NullableBoolean.to_value));("ImportedAt",(Option.mapx.importedAt~f:TStamp.to_value));("InUse",(Option.mapx.inUse~f:NullableBoolean.to_value));("IssuedAt",(Option.mapx.issuedAt~f:TStamp.to_value));("RenewalEligibility",(Option.mapx.renewalEligibility~f:RenewalEligibility.to_value));("RevokedAt",(Option.mapx.revokedAt~f:TStamp.to_value));("Status",(Option.mapx.status~f:CertificateStatus.to_value));("RenewalStatus",(Option.mapx.renewalStatus~f:RenewalStatus.to_value));("Type",(Option.mapx.type_~f:CertificateType.to_value));("ExportOption",(Option.mapx.exportOption~f:CertificateExport.to_value));("ManagedBy",(Option.mapx.managedBy~f:CertificateManagedBy.to_value));("ValidationMethod",(Option.mapx.validationMethod~f:ValidationMethod.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidationMethod=(Option.map~f:ValidationMethod.of_xml)(Xml.childxml_arg0"ValidationMethod")inletmanagedBy=(Option.map~f:CertificateManagedBy.of_xml)(Xml.childxml_arg0"ManagedBy")inletexportOption=(Option.map~f:CertificateExport.of_xml)(Xml.childxml_arg0"ExportOption")inlettype_=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"Type")inletrenewalStatus=(Option.map~f:RenewalStatus.of_xml)(Xml.childxml_arg0"RenewalStatus")inletstatus=(Option.map~f:CertificateStatus.of_xml)(Xml.childxml_arg0"Status")inletrevokedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"RevokedAt")inletrenewalEligibility=(Option.map~f:RenewalEligibility.of_xml)(Xml.childxml_arg0"RenewalEligibility")inletissuedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"IssuedAt")inletinUse=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"InUse")inletimportedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"ImportedAt")inletexported=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"Exported")inletcreatedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"CreatedAt")inmake?validationMethod?managedBy?exportOption?type_?renewalStatus?status?revokedAt?renewalEligibility?issuedAt?inUse?importedAt?exported?createdAt()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidationMethod=field_mapjson__"ValidationMethod"ValidationMethod.of_jsoninletmanagedBy=field_mapjson__"ManagedBy"CertificateManagedBy.of_jsoninletexportOption=field_mapjson__"ExportOption"CertificateExport.of_jsoninlettype_=field_mapjson__"Type"CertificateType.of_jsoninletrenewalStatus=field_mapjson__"RenewalStatus"RenewalStatus.of_jsoninletstatus=field_mapjson__"Status"CertificateStatus.of_jsoninletrevokedAt=field_mapjson__"RevokedAt"TStamp.of_jsoninletrenewalEligibility=field_mapjson__"RenewalEligibility"RenewalEligibility.of_jsoninletissuedAt=field_mapjson__"IssuedAt"TStamp.of_jsoninletinUse=field_mapjson__"InUse"NullableBoolean.of_jsoninletimportedAt=field_mapjson__"ImportedAt"TStamp.of_jsoninletexported=field_mapjson__"Exported"NullableBoolean.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"TStamp.of_jsoninmake?validationMethod?managedBy?exportOption?type_?renewalStatus?status?revokedAt?renewalEligibility?issuedAt?inUse?importedAt?exported?createdAt()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains ACM-specific metadata about a certificate."]moduleAcmCertificateMetadataFilter=structtypenonrect={status:CertificateStatus.toption[@ocaml.doc"Filter by certificate status."];renewalStatus:RenewalStatus.toption[@ocaml.doc"Filter by certificate renewal status."];type_:CertificateType.toption[@ocaml.doc"Filter by certificate type."];inUse:NullableBoolean.toption[@ocaml.doc"Filter by whether the certificate is in use."];exported:NullableBoolean.toption[@ocaml.doc"Filter by whether the certificate has been exported."];exportOption:CertificateExport.toption[@ocaml.doc"Filter by certificate export option."];managedBy:CertificateManagedBy.toption[@ocaml.doc"Filter by the entity that manages the certificate."];validationMethod:ValidationMethod.toption[@ocaml.doc"Filter by validation method."]}letmake?status=fun?renewalStatus->fun?type_->fun?inUse->fun?exported->fun?exportOption->fun?managedBy->fun?validationMethod->fun()->{status;renewalStatus;type_;inUse;exported;exportOption;managedBy;validationMethod}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:CertificateStatus.to_value));("RenewalStatus",(Option.mapx.renewalStatus~f:RenewalStatus.to_value));("Type",(Option.mapx.type_~f:CertificateType.to_value));("InUse",(Option.mapx.inUse~f:NullableBoolean.to_value));("Exported",(Option.mapx.exported~f:NullableBoolean.to_value));("ExportOption",(Option.mapx.exportOption~f:CertificateExport.to_value));("ManagedBy",(Option.mapx.managedBy~f:CertificateManagedBy.to_value));("ValidationMethod",(Option.mapx.validationMethod~f:ValidationMethod.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidationMethod=(Option.map~f:ValidationMethod.of_xml)(Xml.childxml_arg0"ValidationMethod")inletmanagedBy=(Option.map~f:CertificateManagedBy.of_xml)(Xml.childxml_arg0"ManagedBy")inletexportOption=(Option.map~f:CertificateExport.of_xml)(Xml.childxml_arg0"ExportOption")inletexported=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"Exported")inletinUse=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"InUse")inlettype_=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"Type")inletrenewalStatus=(Option.map~f:RenewalStatus.of_xml)(Xml.childxml_arg0"RenewalStatus")inletstatus=(Option.map~f:CertificateStatus.of_xml)(Xml.childxml_arg0"Status")inmake?validationMethod?managedBy?exportOption?exported?inUse?type_?renewalStatus?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidationMethod=field_mapjson__"ValidationMethod"ValidationMethod.of_jsoninletmanagedBy=field_mapjson__"ManagedBy"CertificateManagedBy.of_jsoninletexportOption=field_mapjson__"ExportOption"CertificateExport.of_jsoninletexported=field_mapjson__"Exported"NullableBoolean.of_jsoninletinUse=field_mapjson__"InUse"NullableBoolean.of_jsoninlettype_=field_mapjson__"Type"CertificateType.of_jsoninletrenewalStatus=field_mapjson__"RenewalStatus"RenewalStatus.of_jsoninletstatus=field_mapjson__"Status"CertificateStatus.of_jsoninmake?validationMethod?managedBy?exportOption?exported?inUse?type_?renewalStatus?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Filters certificates by ACM metadata."]moduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTag=structtypenonrect={key:TagKey.t[@ocaml.doc"The key of the tag."];value:TagValue.toption[@ocaml.doc"The value of the tag."]}letcontext_="Tag"letmake?value=fun~key->fun()->{value;key}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Option.mapx.value~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake?value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake?value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A key-value pair that identifies or specifies metadata about an ACM resource."]moduleTagList=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f: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_valuevendmoduleArn=structtypenonrect=stringletcontext_="Arn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:[\\w+=/,.@-]+:acm:[\\w+=/,.@-]*:[0-9]+:[\\w+=,.@-]+(/[\\w+=,.@-]+)*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Arn"jletto_json=simple_to_jsonto_valueendmoduleAddTagsToCertificateRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"String that contains the ARN of the ACM certificate to which the tag is to be applied. This must be of the form: arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 For more information about ARNs, see Amazon Resource Names (ARNs)."];tags:TagList.t[@ocaml.doc"The key-value pair that defines the tag. The tag value is optional."]}letcontext_="AddTagsToCertificateRequest"letmake~certificateArn=fun~tags->fun()->{certificateArn;tags}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)));("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")inletcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~tags~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagList.of_jsoninletcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~tags~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify and organize your Amazon Web Services resources. Each tag consists of a key and an optional value. You specify the certificate on input by its Amazon Resource Name (ARN). You specify the tag by using a key-value pair. You can apply a tag to just one certificate if you want to identify a specific characteristic of that certificate, or you can apply the same tag to multiple certificates if you want to filter for a common relationship among those certificates. Similarly, you can apply the same tag to multiple resources if you want to specify a relationship among those resources. For example, you can add the same tag to an ACM certificate and an Elastic Load Balancing load balancer to indicate that they are both used by the same website. For more information, see Tagging ACM certificates. To remove one or more tags, use the RemoveTagsFromCertificate action. To view all of the tags that have been applied to the certificate, use the ListTagsForCertificate action."]moduleAvailabilityErrorMessage=structtypenonrect=stringletcontext_="AvailabilityErrorMessage"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:"AvailabilityErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleCertificateBody=structtypenonrect=stringletcontext_="CertificateBody"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:32768)>>=(fun()->check_patterni~pattern:"-{5}BEGIN CERTIFICATE-{5}\\u000D?\\u000A([A-Za-z0-9/+]{64}\\u000D?\\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\\u000D?\\u000A-{5}END CERTIFICATE-{5}(\\u000D?\\u000A)?")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateBody"jletto_json=simple_to_jsonto_valueendmoduleCertificateBodyBlob=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleCertificateChain=structtypenonrect=stringletcontext_="CertificateChain"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2097152)>>=(fun()->check_patterni~pattern:"(-{5}BEGIN CERTIFICATE-{5}\\u000D?\\u000A([A-Za-z0-9/+]{64}\\u000D?\\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\\u000D?\\u000A-{5}END CERTIFICATE-{5}\\u000D?\\u000A)*-{5}BEGIN CERTIFICATE-{5}\\u000D?\\u000A([A-Za-z0-9/+]{64}\\u000D?\\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\\u000D?\\u000A-{5}END CERTIFICATE-{5}(\\u000D?\\u000A)?")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateChain"jletto_json=simple_to_jsonto_valueendmoduleCertificateChainBlob=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_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_valueendmoduleRevocationReason=structtypenonrect=|UNSPECIFIED|KEY_COMPROMISE|CA_COMPROMISE|AFFILIATION_CHANGED|SUPERCEDED|SUPERSEDED|CESSATION_OF_OPERATION|CERTIFICATE_HOLD|REMOVE_FROM_CRL|PRIVILEGE_WITHDRAWN|A_A_COMPROMISE|Non_static_idofstringletmakei=iletto_string=function|UNSPECIFIED->"UNSPECIFIED"|KEY_COMPROMISE->"KEY_COMPROMISE"|CA_COMPROMISE->"CA_COMPROMISE"|AFFILIATION_CHANGED->"AFFILIATION_CHANGED"|SUPERCEDED->"SUPERCEDED"|SUPERSEDED->"SUPERSEDED"|CESSATION_OF_OPERATION->"CESSATION_OF_OPERATION"|CERTIFICATE_HOLD->"CERTIFICATE_HOLD"|REMOVE_FROM_CRL->"REMOVE_FROM_CRL"|PRIVILEGE_WITHDRAWN->"PRIVILEGE_WITHDRAWN"|A_A_COMPROMISE->"A_A_COMPROMISE"|Non_static_ids->sletof_string=function|"UNSPECIFIED"->UNSPECIFIED|"KEY_COMPROMISE"->KEY_COMPROMISE|"CA_COMPROMISE"->CA_COMPROMISE|"AFFILIATION_CHANGED"->AFFILIATION_CHANGED|"SUPERCEDED"->SUPERCEDED|"SUPERSEDED"->SUPERSEDED|"CESSATION_OF_OPERATION"->CESSATION_OF_OPERATION|"CERTIFICATE_HOLD"->CERTIFICATE_HOLD|"REMOVE_FROM_CRL"->REMOVE_FROM_CRL|"PRIVILEGE_WITHDRAWN"->PRIVILEGE_WITHDRAWN|"A_A_COMPROMISE"->A_A_COMPROMISE|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 RevocationReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RevocationReason"j)letto_json=simple_to_jsonto_valueendmoduleFailureReason=structtypenonrect=|NO_AVAILABLE_CONTACTS|ADDITIONAL_VERIFICATION_REQUIRED|DOMAIN_NOT_ALLOWED|INVALID_PUBLIC_DOMAIN|DOMAIN_VALIDATION_DENIED|CAA_ERROR|PCA_LIMIT_EXCEEDED|PCA_INVALID_ARN|PCA_INVALID_STATE|PCA_REQUEST_FAILED|PCA_NAME_CONSTRAINTS_VALIDATION|PCA_RESOURCE_NOT_FOUND|PCA_INVALID_ARGS|PCA_INVALID_DURATION|PCA_ACCESS_DENIED|SLR_NOT_FOUND|OTHER|Non_static_idofstringletmakei=iletto_string=function|NO_AVAILABLE_CONTACTS->"NO_AVAILABLE_CONTACTS"|ADDITIONAL_VERIFICATION_REQUIRED->"ADDITIONAL_VERIFICATION_REQUIRED"|DOMAIN_NOT_ALLOWED->"DOMAIN_NOT_ALLOWED"|INVALID_PUBLIC_DOMAIN->"INVALID_PUBLIC_DOMAIN"|DOMAIN_VALIDATION_DENIED->"DOMAIN_VALIDATION_DENIED"|CAA_ERROR->"CAA_ERROR"|PCA_LIMIT_EXCEEDED->"PCA_LIMIT_EXCEEDED"|PCA_INVALID_ARN->"PCA_INVALID_ARN"|PCA_INVALID_STATE->"PCA_INVALID_STATE"|PCA_REQUEST_FAILED->"PCA_REQUEST_FAILED"|PCA_NAME_CONSTRAINTS_VALIDATION->"PCA_NAME_CONSTRAINTS_VALIDATION"|PCA_RESOURCE_NOT_FOUND->"PCA_RESOURCE_NOT_FOUND"|PCA_INVALID_ARGS->"PCA_INVALID_ARGS"|PCA_INVALID_DURATION->"PCA_INVALID_DURATION"|PCA_ACCESS_DENIED->"PCA_ACCESS_DENIED"|SLR_NOT_FOUND->"SLR_NOT_FOUND"|OTHER->"OTHER"|Non_static_ids->sletof_string=function|"NO_AVAILABLE_CONTACTS"->NO_AVAILABLE_CONTACTS|"ADDITIONAL_VERIFICATION_REQUIRED"->ADDITIONAL_VERIFICATION_REQUIRED|"DOMAIN_NOT_ALLOWED"->DOMAIN_NOT_ALLOWED|"INVALID_PUBLIC_DOMAIN"->INVALID_PUBLIC_DOMAIN|"DOMAIN_VALIDATION_DENIED"->DOMAIN_VALIDATION_DENIED|"CAA_ERROR"->CAA_ERROR|"PCA_LIMIT_EXCEEDED"->PCA_LIMIT_EXCEEDED|"PCA_INVALID_ARN"->PCA_INVALID_ARN|"PCA_INVALID_STATE"->PCA_INVALID_STATE|"PCA_REQUEST_FAILED"->PCA_REQUEST_FAILED|"PCA_NAME_CONSTRAINTS_VALIDATION"->PCA_NAME_CONSTRAINTS_VALIDATION|"PCA_RESOURCE_NOT_FOUND"->PCA_RESOURCE_NOT_FOUND|"PCA_INVALID_ARGS"->PCA_INVALID_ARGS|"PCA_INVALID_DURATION"->PCA_INVALID_DURATION|"PCA_ACCESS_DENIED"->PCA_ACCESS_DENIED|"SLR_NOT_FOUND"->SLR_NOT_FOUND|"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 FailureReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FailureReason"j)letto_json=simple_to_jsonto_valueendmoduleValidationEmailList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"ValidationEmailList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRecordType=structtypenonrect=|CNAME|Non_static_idofstringletmakei=iletto_string=function|CNAME->"CNAME"|Non_static_ids->sletof_string=function|"CNAME"->CNAME|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 RecordType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RecordType"j)letto_json=simple_to_jsonto_valueendmoduleResourceRecord=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the DNS record to create in your domain. This is supplied by ACM."];type_:RecordType.toption[@ocaml.doc"The type of DNS record. Currently this can be CNAME."];value:String_.toption[@ocaml.doc"The value of the CNAME record to add to your DNS database. This is supplied by ACM."]}letmake?name=fun?type_->fun?value->fun()->{name;type_;value}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.to_value));("Type",(Option.mapx.type_~f:RecordType.to_value));("Value",(Option.mapx.value~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Value")inlettype_=(Option.map~f:RecordType.of_xml)(Xml.childxml_arg0"Type")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?value?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"String_.of_jsoninlettype_=field_mapjson__"Type"RecordType.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?value?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains a DNS record value that you can use to validate ownership or control of a domain. This is used by the DescribeCertificate action."]moduleHttpRedirect=structtypenonrect={redirectFrom:String_.toption[@ocaml.doc"The URL including the domain to be validated. The certificate authority sends GET requests here during validation."];redirectTo:String_.toption[@ocaml.doc"The URL hosting the validation token. RedirectFrom must return this content or redirect here."]}letmake?redirectFrom=fun?redirectTo->fun()->{redirectFrom;redirectTo}letto_valuex=structure_to_value[("RedirectFrom",(Option.mapx.redirectFrom~f:String_.to_value));("RedirectTo",(Option.mapx.redirectTo~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letredirectTo=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"RedirectTo")inletredirectFrom=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"RedirectFrom")inmake?redirectTo?redirectFrom()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letredirectTo=field_mapjson__"RedirectTo"String_.of_jsoninletredirectFrom=field_mapjson__"RedirectFrom"String_.of_jsoninmake?redirectTo?redirectFrom()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information for HTTP-based domain validation of certificates requested through Amazon CloudFront and issued by ACM. This field exists only when the certificate type is AMAZON_ISSUED and the validation method is HTTP."]moduleDomainStatus=structtypenonrect=|PENDING_VALIDATION|SUCCESS|FAILED|Non_static_idofstringletmakei=iletto_string=function|PENDING_VALIDATION->"PENDING_VALIDATION"|SUCCESS->"SUCCESS"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"PENDING_VALIDATION"->PENDING_VALIDATION|"SUCCESS"->SUCCESS|"FAILED"->FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration DomainStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DomainStatus"j)letto_json=simple_to_jsonto_valueendmoduleDomainNameString=structtypenonrect=stringletcontext_="DomainNameString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:253)>>=(fun()->check_patterni~pattern:"(\\*\\.)?(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9])\\.)+((?!-)[A-Za-z0-9-]{1,62}[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:"DomainNameString"jletto_json=simple_to_jsonto_valueendmoduleDomainValidation=structtypenonrect={domainName:DomainNameString.toption[@ocaml.doc"A fully qualified domain name (FQDN) in the certificate. For example, www.example.com or example.com."];validationEmails:ValidationEmailList.toption[@ocaml.doc"A list of email addresses that ACM used to send domain validation emails."];validationDomain:DomainNameString.toption[@ocaml.doc"The domain name that ACM used to send domain validation emails."];validationStatus:DomainStatus.toption[@ocaml.doc"The validation status of the domain name. This can be one of the following values: PENDING_VALIDATION SUCCESS FAILED"];resourceRecord:ResourceRecord.toption[@ocaml.doc"Contains the CNAME record that you add to your DNS database for domain validation. For more information, see Use DNS to Validate Domain Ownership. The CNAME information that you need does not include the name of your domain. If you include your domain name in the DNS database CNAME record, validation fails. For example, if the name is _a79865eb4cd1a6ab990a45779b4e0b96.yourdomain.com, only _a79865eb4cd1a6ab990a45779b4e0b96 must be used."];httpRedirect:HttpRedirect.toption[@ocaml.doc"Contains information for HTTP-based domain validation of certificates requested through Amazon CloudFront and issued by ACM. This field exists only when the certificate type is AMAZON_ISSUED and the validation method is HTTP."];validationMethod:ValidationMethod.toption[@ocaml.doc"Specifies the domain validation method."]}letmake?domainName=fun?validationEmails->fun?validationDomain->fun?validationStatus->fun?resourceRecord->fun?httpRedirect->fun?validationMethod->fun()->{domainName;validationEmails;validationDomain;validationStatus;resourceRecord;httpRedirect;validationMethod}letto_valuex=structure_to_value[("DomainName",(Option.mapx.domainName~f:DomainNameString.to_value));("ValidationEmails",(Option.mapx.validationEmails~f:ValidationEmailList.to_value));("ValidationDomain",(Option.mapx.validationDomain~f:DomainNameString.to_value));("ValidationStatus",(Option.mapx.validationStatus~f:DomainStatus.to_value));("ResourceRecord",(Option.mapx.resourceRecord~f:ResourceRecord.to_value));("HttpRedirect",(Option.mapx.httpRedirect~f:HttpRedirect.to_value));("ValidationMethod",(Option.mapx.validationMethod~f:ValidationMethod.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidationMethod=(Option.map~f:ValidationMethod.of_xml)(Xml.childxml_arg0"ValidationMethod")inlethttpRedirect=(Option.map~f:HttpRedirect.of_xml)(Xml.childxml_arg0"HttpRedirect")inletresourceRecord=(Option.map~f:ResourceRecord.of_xml)(Xml.childxml_arg0"ResourceRecord")inletvalidationStatus=(Option.map~f:DomainStatus.of_xml)(Xml.childxml_arg0"ValidationStatus")inletvalidationDomain=(Option.map~f:DomainNameString.of_xml)(Xml.childxml_arg0"ValidationDomain")inletvalidationEmails=(Option.map~f:ValidationEmailList.of_xml)(Xml.childxml_arg0"ValidationEmails")inletdomainName=(Option.map~f:DomainNameString.of_xml)(Xml.childxml_arg0"DomainName")inmake?validationMethod?httpRedirect?resourceRecord?validationStatus?validationDomain?validationEmails?domainName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidationMethod=field_mapjson__"ValidationMethod"ValidationMethod.of_jsoninlethttpRedirect=field_mapjson__"HttpRedirect"HttpRedirect.of_jsoninletresourceRecord=field_mapjson__"ResourceRecord"ResourceRecord.of_jsoninletvalidationStatus=field_mapjson__"ValidationStatus"DomainStatus.of_jsoninletvalidationDomain=field_mapjson__"ValidationDomain"DomainNameString.of_jsoninletvalidationEmails=field_mapjson__"ValidationEmails"ValidationEmailList.of_jsoninletdomainName=field_mapjson__"DomainName"DomainNameString.of_jsoninmake?validationMethod?httpRedirect?resourceRecord?validationStatus?validationDomain?validationEmails?domainName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the validation of each domain name in the certificate."]moduleDomainValidationList=structtypenonrect=DomainValidation.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1000)>>=(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:DomainValidation.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:DomainValidation.of_xml)letof_jsonj=list_of_json~kind:"DomainValidationList"~of_json:DomainValidation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRenewalSummary=structtypenonrect={renewalStatus:RenewalStatus.toption[@ocaml.doc"The status of ACM's managed renewal of the certificate."];domainValidationOptions:DomainValidationList.toption[@ocaml.doc"Contains information about the validation of each domain name in the certificate, as it pertains to ACM's managed renewal. This is different from the initial validation that occurs as a result of the RequestCertificate request. This field exists only when the certificate type is AMAZON_ISSUED."];renewalStatusReason:FailureReason.toption[@ocaml.doc"The reason that a renewal request was unsuccessful."];updatedAt:TStamp.toption[@ocaml.doc"The time at which the renewal summary was last updated."]}letmake?renewalStatus=fun?domainValidationOptions->fun?renewalStatusReason->fun?updatedAt->fun()->{renewalStatus;domainValidationOptions;renewalStatusReason;updatedAt}letto_valuex=structure_to_value[("RenewalStatus",(Option.mapx.renewalStatus~f:RenewalStatus.to_value));("DomainValidationOptions",(Option.mapx.domainValidationOptions~f:DomainValidationList.to_value));("RenewalStatusReason",(Option.mapx.renewalStatusReason~f:FailureReason.to_value));("UpdatedAt",(Option.mapx.updatedAt~f:TStamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"UpdatedAt")inletrenewalStatusReason=(Option.map~f:FailureReason.of_xml)(Xml.childxml_arg0"RenewalStatusReason")inletdomainValidationOptions=(Option.map~f:DomainValidationList.of_xml)(Xml.childxml_arg0"DomainValidationOptions")inletrenewalStatus=(Option.map~f:RenewalStatus.of_xml)(Xml.childxml_arg0"RenewalStatus")inmake?updatedAt?renewalStatusReason?domainValidationOptions?renewalStatus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedAt=field_mapjson__"UpdatedAt"TStamp.of_jsoninletrenewalStatusReason=field_mapjson__"RenewalStatusReason"FailureReason.of_jsoninletdomainValidationOptions=field_mapjson__"DomainValidationOptions"DomainValidationList.of_jsoninletrenewalStatus=field_mapjson__"RenewalStatus"RenewalStatus.of_jsoninmake?updatedAt?renewalStatusReason?domainValidationOptions?renewalStatus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the status of ACM's managed renewal for the certificate. This structure exists only when the certificate type is AMAZON_ISSUED."]moduleKeyUsageName=structtypenonrect=|DIGITAL_SIGNATURE|NON_REPUDIATION|KEY_ENCIPHERMENT|DATA_ENCIPHERMENT|KEY_AGREEMENT|CERTIFICATE_SIGNING|CRL_SIGNING|ENCIPHER_ONLY|DECIPHER_ONLY|ANY|CUSTOM|Non_static_idofstringletmakei=iletto_string=function|DIGITAL_SIGNATURE->"DIGITAL_SIGNATURE"|NON_REPUDIATION->"NON_REPUDIATION"|KEY_ENCIPHERMENT->"KEY_ENCIPHERMENT"|DATA_ENCIPHERMENT->"DATA_ENCIPHERMENT"|KEY_AGREEMENT->"KEY_AGREEMENT"|CERTIFICATE_SIGNING->"CERTIFICATE_SIGNING"|CRL_SIGNING->"CRL_SIGNING"|ENCIPHER_ONLY->"ENCIPHER_ONLY"|DECIPHER_ONLY->"DECIPHER_ONLY"|ANY->"ANY"|CUSTOM->"CUSTOM"|Non_static_ids->sletof_string=function|"DIGITAL_SIGNATURE"->DIGITAL_SIGNATURE|"NON_REPUDIATION"->NON_REPUDIATION|"KEY_ENCIPHERMENT"->KEY_ENCIPHERMENT|"DATA_ENCIPHERMENT"->DATA_ENCIPHERMENT|"KEY_AGREEMENT"->KEY_AGREEMENT|"CERTIFICATE_SIGNING"->CERTIFICATE_SIGNING|"CRL_SIGNING"->CRL_SIGNING|"ENCIPHER_ONLY"->ENCIPHER_ONLY|"DECIPHER_ONLY"->DECIPHER_ONLY|"ANY"->ANY|"CUSTOM"->CUSTOM|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 KeyUsageName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyUsageName"j)letto_json=simple_to_jsonto_valueendmoduleKeyUsage=structtypenonrect={name:KeyUsageName.toption[@ocaml.doc"A string value that contains a Key Usage extension name."]}letmake?name=fun()->{name}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:KeyUsageName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:KeyUsageName.of_xml)(Xml.childxml_arg0"Name")inmake?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"Name"KeyUsageName.of_jsoninmake?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Key Usage X.509 v3 extension defines the purpose of the public key contained in the certificate."]moduleKeyUsageList=structtypenonrect=KeyUsage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KeyUsage.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:KeyUsage.of_xml)letof_jsonj=list_of_json~kind:"KeyUsageList"~of_json:KeyUsage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKeyAlgorithm=structtypenonrect=|RSA_1024|RSA_2048|RSA_3072|RSA_4096|EC_prime256v1|EC_secp384r1|EC_secp521r1|Non_static_idofstringletmakei=iletto_string=function|RSA_1024->"RSA_1024"|RSA_2048->"RSA_2048"|RSA_3072->"RSA_3072"|RSA_4096->"RSA_4096"|EC_prime256v1->"EC_prime256v1"|EC_secp384r1->"EC_secp384r1"|EC_secp521r1->"EC_secp521r1"|Non_static_ids->sletof_string=function|"RSA_1024"->RSA_1024|"RSA_2048"->RSA_2048|"RSA_3072"->RSA_3072|"RSA_4096"->RSA_4096|"EC_prime256v1"->EC_prime256v1|"EC_secp384r1"->EC_secp384r1|"EC_secp521r1"->EC_secp521r1|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 KeyAlgorithm"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyAlgorithm"j)letto_json=simple_to_jsonto_valueendmoduleInUseList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"InUseList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExtendedKeyUsageName=structtypenonrect=|TLS_WEB_SERVER_AUTHENTICATION|TLS_WEB_CLIENT_AUTHENTICATION|CODE_SIGNING|EMAIL_PROTECTION|TIME_STAMPING|OCSP_SIGNING|IPSEC_END_SYSTEM|IPSEC_TUNNEL|IPSEC_USER|ANY|NONE|CUSTOM|Non_static_idofstringletmakei=iletto_string=function|TLS_WEB_SERVER_AUTHENTICATION->"TLS_WEB_SERVER_AUTHENTICATION"|TLS_WEB_CLIENT_AUTHENTICATION->"TLS_WEB_CLIENT_AUTHENTICATION"|CODE_SIGNING->"CODE_SIGNING"|EMAIL_PROTECTION->"EMAIL_PROTECTION"|TIME_STAMPING->"TIME_STAMPING"|OCSP_SIGNING->"OCSP_SIGNING"|IPSEC_END_SYSTEM->"IPSEC_END_SYSTEM"|IPSEC_TUNNEL->"IPSEC_TUNNEL"|IPSEC_USER->"IPSEC_USER"|ANY->"ANY"|NONE->"NONE"|CUSTOM->"CUSTOM"|Non_static_ids->sletof_string=function|"TLS_WEB_SERVER_AUTHENTICATION"->TLS_WEB_SERVER_AUTHENTICATION|"TLS_WEB_CLIENT_AUTHENTICATION"->TLS_WEB_CLIENT_AUTHENTICATION|"CODE_SIGNING"->CODE_SIGNING|"EMAIL_PROTECTION"->EMAIL_PROTECTION|"TIME_STAMPING"->TIME_STAMPING|"OCSP_SIGNING"->OCSP_SIGNING|"IPSEC_END_SYSTEM"->IPSEC_END_SYSTEM|"IPSEC_TUNNEL"->IPSEC_TUNNEL|"IPSEC_USER"->IPSEC_USER|"ANY"->ANY|"NONE"->NONE|"CUSTOM"->CUSTOM|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 ExtendedKeyUsageName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExtendedKeyUsageName"j)letto_json=simple_to_jsonto_valueendmoduleExtendedKeyUsage=structtypenonrect={name:ExtendedKeyUsageName.toption[@ocaml.doc"The name of an Extended Key Usage value."];oID:String_.toption[@ocaml.doc"An object identifier (OID) for the extension value. OIDs are strings of numbers separated by periods. The following OIDs are defined in RFC 3280 and RFC 5280. 1.3.6.1.5.5.7.3.1 (TLS_WEB_SERVER_AUTHENTICATION) 1.3.6.1.5.5.7.3.2 (TLS_WEB_CLIENT_AUTHENTICATION) 1.3.6.1.5.5.7.3.3 (CODE_SIGNING) 1.3.6.1.5.5.7.3.4 (EMAIL_PROTECTION) 1.3.6.1.5.5.7.3.8 (TIME_STAMPING) 1.3.6.1.5.5.7.3.9 (OCSP_SIGNING) 1.3.6.1.5.5.7.3.5 (IPSEC_END_SYSTEM) 1.3.6.1.5.5.7.3.6 (IPSEC_TUNNEL) 1.3.6.1.5.5.7.3.7 (IPSEC_USER)"]}letmake?name=fun?oID->fun()->{name;oID}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:ExtendedKeyUsageName.to_value));("OID",(Option.mapx.oID~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoID=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"OID")inletname=(Option.map~f:ExtendedKeyUsageName.of_xml)(Xml.childxml_arg0"Name")inmake?oID?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoID=field_mapjson__"OID"String_.of_jsoninletname=field_mapjson__"Name"ExtendedKeyUsageName.of_jsoninmake?oID?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Extended Key Usage X.509 v3 extension defines one or more purposes for which the public key can be used. This is in addition to or in place of the basic purposes specified by the Key Usage extension."]moduleExtendedKeyUsageList=structtypenonrect=ExtendedKeyUsage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ExtendedKeyUsage.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:ExtendedKeyUsage.of_xml)letof_jsonj=list_of_json~kind:"ExtendedKeyUsageList"~of_json:ExtendedKeyUsage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDomainList=structtypenonrect=DomainNameString.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(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:DomainNameString.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:DomainNameString.of_xml)letof_jsonj=list_of_json~kind:"DomainList"~of_json:DomainNameString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCertificateTransparencyLoggingPreference=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 CertificateTransparencyLoggingPreference"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CertificateTransparencyLoggingPreference"j)letto_json=simple_to_jsonto_valueendmoduleCertificateOptions=structtypenonrect={certificateTransparencyLoggingPreference:CertificateTransparencyLoggingPreference.toption[@ocaml.doc"You can opt out of certificate transparency logging by specifying the DISABLED option. Opt in by specifying ENABLED."];export:CertificateExport.toption[@ocaml.doc"You can opt in to allow the export of your certificates by specifying ENABLED. You cannot update the value of Export after the the certificate is created."]}letmake?certificateTransparencyLoggingPreference=fun?export->fun()->{certificateTransparencyLoggingPreference;export}letto_valuex=structure_to_value[("CertificateTransparencyLoggingPreference",(Option.mapx.certificateTransparencyLoggingPreference~f:CertificateTransparencyLoggingPreference.to_value));("Export",(Option.mapx.export~f:CertificateExport.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexport=(Option.map~f:CertificateExport.of_xml)(Xml.childxml_arg0"Export")inletcertificateTransparencyLoggingPreference=(Option.map~f:CertificateTransparencyLoggingPreference.of_xml)(Xml.childxml_arg0"CertificateTransparencyLoggingPreference")inmake?export?certificateTransparencyLoggingPreference()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexport=field_mapjson__"Export"CertificateExport.of_jsoninletcertificateTransparencyLoggingPreference=field_mapjson__"CertificateTransparencyLoggingPreference"CertificateTransparencyLoggingPreference.of_jsoninmake?export?certificateTransparencyLoggingPreference()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Structure that contains options for your certificate. You can use this structure to specify whether to opt in to or out of certificate transparency logging and export your certificate. Some browsers require that public certificates issued for your domain be recorded in a log. Certificates that are not logged typically generate a browser error. Transparency makes it possible for you to detect SSL/TLS certificates that have been mistakenly or maliciously issued for your domain. For general information, see Certificate Transparency Logging. You can export public ACM certificates to use with Amazon Web Services services as well as outside Amazon Web Services Cloud. For more information, see Certificate Manager exportable public certificate."]moduleCertificateDetail=structtypenonrect={certificateArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference."];domainName:DomainNameString.toption[@ocaml.doc"The fully qualified domain name for the certificate, such as www.example.com or example.com."];subjectAlternativeNames:DomainList.toption[@ocaml.doc"One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website."];managedBy:CertificateManagedBy.toption[@ocaml.doc"Identifies the Amazon Web Services service that manages the certificate issued by ACM."];domainValidationOptions:DomainValidationList.toption[@ocaml.doc"Contains information about the initial validation of each domain name that occurs as a result of the RequestCertificate request. This field exists only when the certificate type is AMAZON_ISSUED."];serial:String_.toption[@ocaml.doc"The serial number of the certificate."];subject:String_.toption[@ocaml.doc"The name of the entity that is associated with the public key contained in the certificate."];issuer:String_.toption[@ocaml.doc"The name of the certificate authority that issued and signed the certificate."];createdAt:TStamp.toption[@ocaml.doc"The time at which the certificate was requested."];issuedAt:TStamp.toption[@ocaml.doc"The time at which the certificate was issued. This value exists only when the certificate type is AMAZON_ISSUED."];importedAt:TStamp.toption[@ocaml.doc"The date and time when the certificate was imported. This value exists only when the certificate type is IMPORTED."];status:CertificateStatus.toption[@ocaml.doc"The status of the certificate. A certificate enters status PENDING_VALIDATION upon being requested, unless it fails for any of the reasons given in the troubleshooting topic Certificate request fails. ACM makes repeated attempts to validate a certificate for 72 hours and then times out. If a certificate shows status FAILED or VALIDATION_TIMED_OUT, delete the request, correct the issue with DNS validation or Email validation, and try again. If validation succeeds, the certificate enters status ISSUED."];revokedAt:TStamp.toption[@ocaml.doc"The time at which the certificate was revoked. This value exists only when the certificate status is REVOKED."];revocationReason:RevocationReason.toption[@ocaml.doc"The reason the certificate was revoked. This value exists only when the certificate status is REVOKED."];notBefore:TStamp.toption[@ocaml.doc"The time before which the certificate is not valid."];notAfter:TStamp.toption[@ocaml.doc"The time after which the certificate is not valid."];keyAlgorithm:KeyAlgorithm.toption[@ocaml.doc"The algorithm that was used to generate the public-private key pair."];signatureAlgorithm:String_.toption[@ocaml.doc"The algorithm that was used to sign the certificate."];inUseBy:InUseList.toption[@ocaml.doc"A list of ARNs for the Amazon Web Services resources that are using the certificate. A certificate can be used by multiple Amazon Web Services resources."];failureReason:FailureReason.toption[@ocaml.doc"The reason the certificate request failed. This value exists only when the certificate status is FAILED. For more information, see Certificate Request Failed in the Certificate Manager User Guide."];type_:CertificateType.toption[@ocaml.doc"The source of the certificate. For certificates provided by ACM, this value is AMAZON_ISSUED. For certificates that you imported with ImportCertificate, this value is IMPORTED. ACM does not provide managed renewal for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see Importing Certificates in the Certificate Manager User Guide."];renewalSummary:RenewalSummary.toption[@ocaml.doc"Contains information about the status of ACM's managed renewal for the certificate. This field exists only when the certificate type is AMAZON_ISSUED."];keyUsages:KeyUsageList.toption[@ocaml.doc"A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more."];extendedKeyUsages:ExtendedKeyUsageList.toption[@ocaml.doc"Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID)."];certificateAuthorityArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the private certificate authority (CA) that issued the certificate. This has the following format: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012"];renewalEligibility:RenewalEligibility.toption[@ocaml.doc"Specifies whether the certificate is eligible for renewal. At this time, only exported private certificates can be renewed with the RenewCertificate command."];options:CertificateOptions.toption[@ocaml.doc"Value that specifies whether to add the certificate to a transparency log. Certificate transparency makes it possible to detect SSL certificates that have been mistakenly or maliciously issued. A browser might respond to certificate that has not been logged by showing an error message. The logs are cryptographically secure."]}letmake?certificateArn=fun?domainName->fun?subjectAlternativeNames->fun?managedBy->fun?domainValidationOptions->fun?serial->fun?subject->fun?issuer->fun?createdAt->fun?issuedAt->fun?importedAt->fun?status->fun?revokedAt->fun?revocationReason->fun?notBefore->fun?notAfter->fun?keyAlgorithm->fun?signatureAlgorithm->fun?inUseBy->fun?failureReason->fun?type_->fun?renewalSummary->fun?keyUsages->fun?extendedKeyUsages->fun?certificateAuthorityArn->fun?renewalEligibility->fun?options->fun()->{certificateArn;domainName;subjectAlternativeNames;managedBy;domainValidationOptions;serial;subject;issuer;createdAt;issuedAt;importedAt;status;revokedAt;revocationReason;notBefore;notAfter;keyAlgorithm;signatureAlgorithm;inUseBy;failureReason;type_;renewalSummary;keyUsages;extendedKeyUsages;certificateAuthorityArn;renewalEligibility;options}letto_valuex=structure_to_value[("CertificateArn",(Option.mapx.certificateArn~f:Arn.to_value));("DomainName",(Option.mapx.domainName~f:DomainNameString.to_value));("SubjectAlternativeNames",(Option.mapx.subjectAlternativeNames~f:DomainList.to_value));("ManagedBy",(Option.mapx.managedBy~f:CertificateManagedBy.to_value));("DomainValidationOptions",(Option.mapx.domainValidationOptions~f:DomainValidationList.to_value));("Serial",(Option.mapx.serial~f:String_.to_value));("Subject",(Option.mapx.subject~f:String_.to_value));("Issuer",(Option.mapx.issuer~f:String_.to_value));("CreatedAt",(Option.mapx.createdAt~f:TStamp.to_value));("IssuedAt",(Option.mapx.issuedAt~f:TStamp.to_value));("ImportedAt",(Option.mapx.importedAt~f:TStamp.to_value));("Status",(Option.mapx.status~f:CertificateStatus.to_value));("RevokedAt",(Option.mapx.revokedAt~f:TStamp.to_value));("RevocationReason",(Option.mapx.revocationReason~f:RevocationReason.to_value));("NotBefore",(Option.mapx.notBefore~f:TStamp.to_value));("NotAfter",(Option.mapx.notAfter~f:TStamp.to_value));("KeyAlgorithm",(Option.mapx.keyAlgorithm~f:KeyAlgorithm.to_value));("SignatureAlgorithm",(Option.mapx.signatureAlgorithm~f:String_.to_value));("InUseBy",(Option.mapx.inUseBy~f:InUseList.to_value));("FailureReason",(Option.mapx.failureReason~f:FailureReason.to_value));("Type",(Option.mapx.type_~f:CertificateType.to_value));("RenewalSummary",(Option.mapx.renewalSummary~f:RenewalSummary.to_value));("KeyUsages",(Option.mapx.keyUsages~f:KeyUsageList.to_value));("ExtendedKeyUsages",(Option.mapx.extendedKeyUsages~f:ExtendedKeyUsageList.to_value));("CertificateAuthorityArn",(Option.mapx.certificateAuthorityArn~f:Arn.to_value));("RenewalEligibility",(Option.mapx.renewalEligibility~f:RenewalEligibility.to_value));("Options",(Option.mapx.options~f:CertificateOptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptions=(Option.map~f:CertificateOptions.of_xml)(Xml.childxml_arg0"Options")inletrenewalEligibility=(Option.map~f:RenewalEligibility.of_xml)(Xml.childxml_arg0"RenewalEligibility")inletcertificateAuthorityArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"CertificateAuthorityArn")inletextendedKeyUsages=(Option.map~f:ExtendedKeyUsageList.of_xml)(Xml.childxml_arg0"ExtendedKeyUsages")inletkeyUsages=(Option.map~f:KeyUsageList.of_xml)(Xml.childxml_arg0"KeyUsages")inletrenewalSummary=(Option.map~f:RenewalSummary.of_xml)(Xml.childxml_arg0"RenewalSummary")inlettype_=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"Type")inletfailureReason=(Option.map~f:FailureReason.of_xml)(Xml.childxml_arg0"FailureReason")inletinUseBy=(Option.map~f:InUseList.of_xml)(Xml.childxml_arg0"InUseBy")inletsignatureAlgorithm=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SignatureAlgorithm")inletkeyAlgorithm=(Option.map~f:KeyAlgorithm.of_xml)(Xml.childxml_arg0"KeyAlgorithm")inletnotAfter=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"NotAfter")inletnotBefore=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"NotBefore")inletrevocationReason=(Option.map~f:RevocationReason.of_xml)(Xml.childxml_arg0"RevocationReason")inletrevokedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"RevokedAt")inletstatus=(Option.map~f:CertificateStatus.of_xml)(Xml.childxml_arg0"Status")inletimportedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"ImportedAt")inletissuedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"IssuedAt")inletcreatedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"CreatedAt")inletissuer=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Issuer")inletsubject=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Subject")inletserial=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Serial")inletdomainValidationOptions=(Option.map~f:DomainValidationList.of_xml)(Xml.childxml_arg0"DomainValidationOptions")inletmanagedBy=(Option.map~f:CertificateManagedBy.of_xml)(Xml.childxml_arg0"ManagedBy")inletsubjectAlternativeNames=(Option.map~f:DomainList.of_xml)(Xml.childxml_arg0"SubjectAlternativeNames")inletdomainName=(Option.map~f:DomainNameString.of_xml)(Xml.childxml_arg0"DomainName")inletcertificateArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"CertificateArn")inmake?options?renewalEligibility?certificateAuthorityArn?extendedKeyUsages?keyUsages?renewalSummary?type_?failureReason?inUseBy?signatureAlgorithm?keyAlgorithm?notAfter?notBefore?revocationReason?revokedAt?status?importedAt?issuedAt?createdAt?issuer?subject?serial?domainValidationOptions?managedBy?subjectAlternativeNames?domainName?certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptions=field_mapjson__"Options"CertificateOptions.of_jsoninletrenewalEligibility=field_mapjson__"RenewalEligibility"RenewalEligibility.of_jsoninletcertificateAuthorityArn=field_mapjson__"CertificateAuthorityArn"Arn.of_jsoninletextendedKeyUsages=field_mapjson__"ExtendedKeyUsages"ExtendedKeyUsageList.of_jsoninletkeyUsages=field_mapjson__"KeyUsages"KeyUsageList.of_jsoninletrenewalSummary=field_mapjson__"RenewalSummary"RenewalSummary.of_jsoninlettype_=field_mapjson__"Type"CertificateType.of_jsoninletfailureReason=field_mapjson__"FailureReason"FailureReason.of_jsoninletinUseBy=field_mapjson__"InUseBy"InUseList.of_jsoninletsignatureAlgorithm=field_mapjson__"SignatureAlgorithm"String_.of_jsoninletkeyAlgorithm=field_mapjson__"KeyAlgorithm"KeyAlgorithm.of_jsoninletnotAfter=field_mapjson__"NotAfter"TStamp.of_jsoninletnotBefore=field_mapjson__"NotBefore"TStamp.of_jsoninletrevocationReason=field_mapjson__"RevocationReason"RevocationReason.of_jsoninletrevokedAt=field_mapjson__"RevokedAt"TStamp.of_jsoninletstatus=field_mapjson__"Status"CertificateStatus.of_jsoninletimportedAt=field_mapjson__"ImportedAt"TStamp.of_jsoninletissuedAt=field_mapjson__"IssuedAt"TStamp.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"TStamp.of_jsoninletissuer=field_mapjson__"Issuer"String_.of_jsoninletsubject=field_mapjson__"Subject"String_.of_jsoninletserial=field_mapjson__"Serial"String_.of_jsoninletdomainValidationOptions=field_mapjson__"DomainValidationOptions"DomainValidationList.of_jsoninletmanagedBy=field_mapjson__"ManagedBy"CertificateManagedBy.of_jsoninletsubjectAlternativeNames=field_mapjson__"SubjectAlternativeNames"DomainList.of_jsoninletdomainName=field_mapjson__"DomainName"DomainNameString.of_jsoninletcertificateArn=field_mapjson__"CertificateArn"Arn.of_jsoninmake?options?renewalEligibility?certificateAuthorityArn?extendedKeyUsages?keyUsages?renewalSummary?type_?failureReason?inUseBy?signatureAlgorithm?keyAlgorithm?notAfter?notBefore?revocationReason?revokedAt?status?importedAt?issuedAt?createdAt?issuer?subject?serial?domainValidationOptions?managedBy?subjectAlternativeNames?domainName?certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains metadata about an ACM certificate. This structure is returned in the response to a DescribeCertificate request."]moduleTimestampRange=structtypenonrect={start:TStamp.toption[@ocaml.doc"The start of the time range. This value is inclusive."];end_:TStamp.toption[@ocaml.doc"The end of the time range. This value is inclusive."]}letmake?start=fun?end_->fun()->{start;end_}letto_valuex=structure_to_value[("Start",(Option.mapx.start~f:TStamp.to_value));("End",(Option.mapx.end_~f:TStamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letend_=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"End")inletstart=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"Start")inmake?end_?start()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letend_=field_mapjson__"End"TStamp.of_jsoninletstart=field_mapjson__"Start"TStamp.of_jsoninmake?end_?start()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies a time range for filtering certificates."]moduleFilterString=structtypenonrect=stringletcontext_="FilterString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(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:"FilterString"jletto_json=simple_to_jsonto_valueendmoduleComparisonOperator=structtypenonrect=|CONTAINS|EQUALS|Non_static_idofstringletmakei=iletto_string=function|CONTAINS->"CONTAINS"|EQUALS->"EQUALS"|Non_static_ids->sletof_string=function|"CONTAINS"->CONTAINS|"EQUALS"->EQUALS|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 ComparisonOperator"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ComparisonOperator"j)letto_json=simple_to_jsonto_valueendmoduleCommonNameFilter=structtypenonrect={value:FilterString.t[@ocaml.doc"The value to match against."];comparisonOperator:ComparisonOperator.t[@ocaml.doc"The comparison operator to use."]}letcontext_="CommonNameFilter"letmake~value=fun~comparisonOperator->fun()->{value;comparisonOperator}letto_valuex=structure_to_value[("Value",(Some(FilterString.to_valuex.value)));("ComparisonOperator",(Some(ComparisonOperator.to_valuex.comparisonOperator)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomparisonOperator=ComparisonOperator.of_xml(Xml.child_exn~context:context_xml_arg0"ComparisonOperator")inletvalue=FilterString.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inmake~comparisonOperator~value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomparisonOperator=field_map_exnjson__"ComparisonOperator"ComparisonOperator.of_jsoninletvalue=field_map_exnjson__"Value"FilterString.of_jsoninmake~comparisonOperator~value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Filters certificates by common name."]moduleSubjectFilter=structtypenonrect={commonName:CommonNameFilter.toption[@ocaml.doc"Filter by common name in the subject."]}letmake?commonName=fun()->{commonName}letto_valuex=structure_to_value[("CommonName",(Option.mapx.commonName~f:CommonNameFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcommonName=(Option.map~f:CommonNameFilter.of_xml)(Xml.childxml_arg0"CommonName")inmake?commonName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcommonName=field_mapjson__"CommonName"CommonNameFilter.of_jsoninmake?commonName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Filters certificates by subject attributes."]moduleDnsNameFilter=structtypenonrect={value:FilterString.t[@ocaml.doc"The DNS name value to match against."];comparisonOperator:ComparisonOperator.t[@ocaml.doc"The comparison operator to use."]}letcontext_="DnsNameFilter"letmake~value=fun~comparisonOperator->fun()->{value;comparisonOperator}letto_valuex=structure_to_value[("Value",(Some(FilterString.to_valuex.value)));("ComparisonOperator",(Some(ComparisonOperator.to_valuex.comparisonOperator)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomparisonOperator=ComparisonOperator.of_xml(Xml.child_exn~context:context_xml_arg0"ComparisonOperator")inletvalue=FilterString.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inmake~comparisonOperator~value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomparisonOperator=field_map_exnjson__"ComparisonOperator"ComparisonOperator.of_jsoninletvalue=field_map_exnjson__"Value"FilterString.of_jsoninmake~comparisonOperator~value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Filters certificates by DNS name."]moduleSubjectAlternativeNameFilter=structtypenonrect={dnsName:DnsNameFilter.toption[@ocaml.doc"Filter by DNS name in subject alternative names."]}letmake?dnsName=fun()->{dnsName}letto_valuex=structure_to_value[("DnsName",(Option.mapx.dnsName~f:DnsNameFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdnsName=(Option.map~f:DnsNameFilter.of_xml)(Xml.childxml_arg0"DnsName")inmake?dnsName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdnsName=field_mapjson__"DnsName"DnsNameFilter.of_jsoninmake?dnsName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Filters certificates by subject alternative name attributes."]moduleSerialNumber=structtypenonrect=stringletcontext_="SerialNumber"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:59)>>=(fun()->check_patterni~pattern:"[0-9a-f]{2}(:[0-9a-f]{2}){1,19}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SerialNumber"jletto_json=simple_to_jsonto_valueendmoduleX509AttributeFilter=structtypenonrect={subject:SubjectFilter.toption[@ocaml.doc"Filter by certificate subject."];subjectAlternativeName:SubjectAlternativeNameFilter.toption[@ocaml.doc"Filter by subject alternative names."];extendedKeyUsage:ExtendedKeyUsageName.toption[@ocaml.doc"Filter by extended key usage."];keyUsage:KeyUsageName.toption[@ocaml.doc"Filter by key usage."];keyAlgorithm:KeyAlgorithm.toption[@ocaml.doc"Filter by key algorithm."];serialNumber:SerialNumber.toption[@ocaml.doc"Filter by serial number."];notAfter:TimestampRange.toption[@ocaml.doc"Filter by certificate expiration date. The start date is inclusive."];notBefore:TimestampRange.toption[@ocaml.doc"Filter by certificate validity start date. The start date is inclusive."]}letmake?subject=fun?subjectAlternativeName->fun?extendedKeyUsage->fun?keyUsage->fun?keyAlgorithm->fun?serialNumber->fun?notAfter->fun?notBefore->fun()->{subject;subjectAlternativeName;extendedKeyUsage;keyUsage;keyAlgorithm;serialNumber;notAfter;notBefore}letto_valuex=structure_to_value[("Subject",(Option.mapx.subject~f:SubjectFilter.to_value));("SubjectAlternativeName",(Option.mapx.subjectAlternativeName~f:SubjectAlternativeNameFilter.to_value));("ExtendedKeyUsage",(Option.mapx.extendedKeyUsage~f:ExtendedKeyUsageName.to_value));("KeyUsage",(Option.mapx.keyUsage~f:KeyUsageName.to_value));("KeyAlgorithm",(Option.mapx.keyAlgorithm~f:KeyAlgorithm.to_value));("SerialNumber",(Option.mapx.serialNumber~f:SerialNumber.to_value));("NotAfter",(Option.mapx.notAfter~f:TimestampRange.to_value));("NotBefore",(Option.mapx.notBefore~f:TimestampRange.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotBefore=(Option.map~f:TimestampRange.of_xml)(Xml.childxml_arg0"NotBefore")inletnotAfter=(Option.map~f:TimestampRange.of_xml)(Xml.childxml_arg0"NotAfter")inletserialNumber=(Option.map~f:SerialNumber.of_xml)(Xml.childxml_arg0"SerialNumber")inletkeyAlgorithm=(Option.map~f:KeyAlgorithm.of_xml)(Xml.childxml_arg0"KeyAlgorithm")inletkeyUsage=(Option.map~f:KeyUsageName.of_xml)(Xml.childxml_arg0"KeyUsage")inletextendedKeyUsage=(Option.map~f:ExtendedKeyUsageName.of_xml)(Xml.childxml_arg0"ExtendedKeyUsage")inletsubjectAlternativeName=(Option.map~f:SubjectAlternativeNameFilter.of_xml)(Xml.childxml_arg0"SubjectAlternativeName")inletsubject=(Option.map~f:SubjectFilter.of_xml)(Xml.childxml_arg0"Subject")inmake?notBefore?notAfter?serialNumber?keyAlgorithm?keyUsage?extendedKeyUsage?subjectAlternativeName?subject()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotBefore=field_mapjson__"NotBefore"TimestampRange.of_jsoninletnotAfter=field_mapjson__"NotAfter"TimestampRange.of_jsoninletserialNumber=field_mapjson__"SerialNumber"SerialNumber.of_jsoninletkeyAlgorithm=field_mapjson__"KeyAlgorithm"KeyAlgorithm.of_jsoninletkeyUsage=field_mapjson__"KeyUsage"KeyUsageName.of_jsoninletextendedKeyUsage=field_mapjson__"ExtendedKeyUsage"ExtendedKeyUsageName.of_jsoninletsubjectAlternativeName=field_mapjson__"SubjectAlternativeName"SubjectAlternativeNameFilter.of_jsoninletsubject=field_mapjson__"Subject"SubjectFilter.of_jsoninmake?notBefore?notAfter?serialNumber?keyAlgorithm?keyUsage?extendedKeyUsage?subjectAlternativeName?subject()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Filters certificates by X.509 attributes."]moduleCertificateFilter=structtypenonrect={certificateArn:Arn.toption[@ocaml.doc"Filter by certificate ARN."];x509AttributeFilter:X509AttributeFilter.toption[@ocaml.doc"Filter by X.509 certificate attributes."];acmCertificateMetadataFilter:AcmCertificateMetadataFilter.toption[@ocaml.doc"Filter by ACM certificate metadata."]}letmake?certificateArn=fun?x509AttributeFilter->fun?acmCertificateMetadataFilter->fun()->{certificateArn;x509AttributeFilter;acmCertificateMetadataFilter}letto_valuex=structure_to_value[("CertificateArn",(Option.mapx.certificateArn~f:Arn.to_value));("X509AttributeFilter",(Option.mapx.x509AttributeFilter~f:X509AttributeFilter.to_value));("AcmCertificateMetadataFilter",(Option.mapx.acmCertificateMetadataFilter~f:AcmCertificateMetadataFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letacmCertificateMetadataFilter=(Option.map~f:AcmCertificateMetadataFilter.of_xml)(Xml.childxml_arg0"AcmCertificateMetadataFilter")inletx509AttributeFilter=(Option.map~f:X509AttributeFilter.of_xml)(Xml.childxml_arg0"X509AttributeFilter")inletcertificateArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"CertificateArn")inmake?acmCertificateMetadataFilter?x509AttributeFilter?certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letacmCertificateMetadataFilter=field_mapjson__"AcmCertificateMetadataFilter"AcmCertificateMetadataFilter.of_jsoninletx509AttributeFilter=field_mapjson__"X509AttributeFilter"X509AttributeFilter.of_jsoninletcertificateArn=field_mapjson__"CertificateArn"Arn.of_jsoninmake?acmCertificateMetadataFilter?x509AttributeFilter?certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines a filter for searching certificates by ARN, X.509 attributes, or ACM metadata."]modulerecCertificateFilterStatement:sigtypenonrect={and_:CertificateFilterStatementList.toption[@ocaml.doc"A list of filter statements that must all be true."];or_:CertificateFilterStatementList.toption[@ocaml.doc"A list of filter statements where at least one must be true."];not:CertificateFilterStatement.toption[@ocaml.doc"A filter statement that must not be true."];filter:CertificateFilter.toption[@ocaml.doc"A single certificate filter."]}valmake:?and_:CertificateFilterStatementList.t->?or_:CertificateFilterStatementList.t->?not:CertificateFilterStatement.t->?filter:CertificateFilter.t->unit->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->tvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tend=structtypenonrect={and_:CertificateFilterStatementList.toption[@ocaml.doc"A list of filter statements that must all be true."];or_:CertificateFilterStatementList.toption[@ocaml.doc"A list of filter statements where at least one must be true."];not:CertificateFilterStatement.toption[@ocaml.doc"A filter statement that must not be true."];filter:CertificateFilter.toption[@ocaml.doc"A single certificate filter."]}letmake?and_=fun?or_->fun?not->fun?filter->fun()->{and_;or_;not;filter}letto_valuex=structure_to_value[("And",(Option.mapx.and_~f:CertificateFilterStatementList.to_value));("Or",(Option.mapx.or_~f:CertificateFilterStatementList.to_value));("Not",(Option.mapx.not~f:CertificateFilterStatement.to_value));("Filter",(Option.mapx.filter~f:CertificateFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilter=(Option.map~f:CertificateFilter.of_xml)(Xml.childxml_arg0"Filter")inletnot=(Option.map~f:CertificateFilterStatement.of_xml)(Xml.childxml_arg0"Not")inletor_=(Option.map~f:CertificateFilterStatementList.of_xml)(Xml.childxml_arg0"Or")inletand_=(Option.map~f:CertificateFilterStatementList.of_xml)(Xml.childxml_arg0"And")inmake?filter?not?or_?and_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilter=field_mapjson__"Filter"CertificateFilter.of_jsoninletnot=field_mapjson__"Not"CertificateFilterStatement.of_jsoninletor_=field_mapjson__"Or"CertificateFilterStatementList.of_jsoninletand_=field_mapjson__"And"CertificateFilterStatementList.of_jsoninmake?filter?not?or_?and_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter statement used to search for certificates. Can contain AND, OR, NOT logical operators or a single filter."]andCertificateFilterStatementList:sigtypenonrect=CertificateFilterStatement.tlistvalmake:CertificateFilterStatement.tlist->tvalto_value:t->Botodata.valuevalto_query:t->Client.Query.tvalof_xml:Xml.t->CertificateFilterStatement.tlistvalof_json:Yojson.Safe.t->tvalto_json:t->Yojson.Safe.tvalto_header:t->stringend=structtypenonrect=CertificateFilterStatement.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:15)>>=(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:CertificateFilterStatement.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:CertificateFilterStatement.of_xml)letof_jsonj=list_of_json~kind:"CertificateFilterStatementList"~of_json:CertificateFilterStatement.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCertificateMetadata=structtypenonrect={acmCertificateMetadata:AcmCertificateMetadata.toption[@ocaml.doc"Metadata for an ACM certificate."]}letmake?acmCertificateMetadata=fun()->{acmCertificateMetadata}letto_valuex=structure_to_value[("AcmCertificateMetadata",(Option.mapx.acmCertificateMetadata~f:AcmCertificateMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letacmCertificateMetadata=(Option.map~f:AcmCertificateMetadata.of_xml)(Xml.childxml_arg0"AcmCertificateMetadata")inmake?acmCertificateMetadata()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letacmCertificateMetadata=field_mapjson__"AcmCertificateMetadata"AcmCertificateMetadata.of_jsoninmake?acmCertificateMetadata()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains metadata about a certificate. Currently supports ACM certificate metadata."]moduleKeyUsageNames=structtypenonrect=KeyUsageName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KeyUsageName.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:KeyUsageName.of_xml)letof_jsonj=list_of_json~kind:"KeyUsageNames"~of_json:KeyUsageName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOtherName=structtypenonrect={objectIdentifier:String_.toption[@ocaml.doc"Specifies an OID."];value:String_.toption[@ocaml.doc"Specifies an OID value."]}letmake?objectIdentifier=fun?value->fun()->{objectIdentifier;value}letto_valuex=structure_to_value[("ObjectIdentifier",(Option.mapx.objectIdentifier~f:String_.to_value));("Value",(Option.mapx.value~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Value")inletobjectIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ObjectIdentifier")inmake?value?objectIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"String_.of_jsoninletobjectIdentifier=field_mapjson__"ObjectIdentifier"String_.of_jsoninmake?value?objectIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines a custom ASN.1 X.400 GeneralName using an object identifier (OID) and value. For more information, see NIST's definition of Object Identifier (OID)."]moduleDomainComponentList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"DomainComponentList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCustomAttribute=structtypenonrect={objectIdentifier:String_.toption[@ocaml.doc"Specifies the object identifier (OID) of the attribute type of the relative distinguished name (RDN)."];value:String_.toption[@ocaml.doc"Specifies the attribute value of relative distinguished name (RDN)."]}letmake?objectIdentifier=fun?value->fun()->{objectIdentifier;value}letto_valuex=structure_to_value[("ObjectIdentifier",(Option.mapx.objectIdentifier~f:String_.to_value));("Value",(Option.mapx.value~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Value")inletobjectIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ObjectIdentifier")inmake?value?objectIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"String_.of_jsoninletobjectIdentifier=field_mapjson__"ObjectIdentifier"String_.of_jsoninmake?value?objectIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines the X.500 relative distinguished name (RDN)."]moduleCustomAttributeList=structtypenonrect=CustomAttribute.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CustomAttribute.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:CustomAttribute.of_xml)letof_jsonj=list_of_json~kind:"CustomAttributeList"~of_json:CustomAttribute.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDistinguishedName=structtypenonrect={commonName:String_.toption[@ocaml.doc"The common name (CN) attribute."];domainComponents:DomainComponentList.toption[@ocaml.doc"The domain component attributes."];country:String_.toption[@ocaml.doc"The country (C) attribute."];customAttributes:CustomAttributeList.toption[@ocaml.doc"A list of custom attributes in the distinguished name. Each custom attribute contains an object identifier (OID) and its corresponding value."];distinguishedNameQualifier:String_.toption[@ocaml.doc"The distinguished name qualifier attribute."];generationQualifier:String_.toption[@ocaml.doc"The generation qualifier attribute."];givenName:String_.toption[@ocaml.doc"The given name attribute."];initials:String_.toption[@ocaml.doc"The initials attribute."];locality:String_.toption[@ocaml.doc"The locality (L) attribute."];organization:String_.toption[@ocaml.doc"The organization (O) attribute."];organizationalUnit:String_.toption[@ocaml.doc"The organizational unit (OU) attribute."];pseudonym:String_.toption[@ocaml.doc"The pseudonym attribute."];serialNumber:String_.toption[@ocaml.doc"The serial number attribute."];state:String_.toption[@ocaml.doc"The state or province (ST) attribute."];surname:String_.toption[@ocaml.doc"The surname attribute."];title:String_.toption[@ocaml.doc"The title attribute."]}letmake?commonName=fun?domainComponents->fun?country->fun?customAttributes->fun?distinguishedNameQualifier->fun?generationQualifier->fun?givenName->fun?initials->fun?locality->fun?organization->fun?organizationalUnit->fun?pseudonym->fun?serialNumber->fun?state->fun?surname->fun?title->fun()->{commonName;domainComponents;country;customAttributes;distinguishedNameQualifier;generationQualifier;givenName;initials;locality;organization;organizationalUnit;pseudonym;serialNumber;state;surname;title}letto_valuex=structure_to_value[("CommonName",(Option.mapx.commonName~f:String_.to_value));("DomainComponents",(Option.mapx.domainComponents~f:DomainComponentList.to_value));("Country",(Option.mapx.country~f:String_.to_value));("CustomAttributes",(Option.mapx.customAttributes~f:CustomAttributeList.to_value));("DistinguishedNameQualifier",(Option.mapx.distinguishedNameQualifier~f:String_.to_value));("GenerationQualifier",(Option.mapx.generationQualifier~f:String_.to_value));("GivenName",(Option.mapx.givenName~f:String_.to_value));("Initials",(Option.mapx.initials~f:String_.to_value));("Locality",(Option.mapx.locality~f:String_.to_value));("Organization",(Option.mapx.organization~f:String_.to_value));("OrganizationalUnit",(Option.mapx.organizationalUnit~f:String_.to_value));("Pseudonym",(Option.mapx.pseudonym~f:String_.to_value));("SerialNumber",(Option.mapx.serialNumber~f:String_.to_value));("State",(Option.mapx.state~f:String_.to_value));("Surname",(Option.mapx.surname~f:String_.to_value));("Title",(Option.mapx.title~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettitle=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Title")inletsurname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Surname")inletstate=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"State")inletserialNumber=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SerialNumber")inletpseudonym=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Pseudonym")inletorganizationalUnit=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"OrganizationalUnit")inletorganization=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Organization")inletlocality=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Locality")inletinitials=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Initials")inletgivenName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"GivenName")inletgenerationQualifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"GenerationQualifier")inletdistinguishedNameQualifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DistinguishedNameQualifier")inletcustomAttributes=(Option.map~f:CustomAttributeList.of_xml)(Xml.childxml_arg0"CustomAttributes")inletcountry=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Country")inletdomainComponents=(Option.map~f:DomainComponentList.of_xml)(Xml.childxml_arg0"DomainComponents")inletcommonName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"CommonName")inmake?title?surname?state?serialNumber?pseudonym?organizationalUnit?organization?locality?initials?givenName?generationQualifier?distinguishedNameQualifier?customAttributes?country?domainComponents?commonName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettitle=field_mapjson__"Title"String_.of_jsoninletsurname=field_mapjson__"Surname"String_.of_jsoninletstate=field_mapjson__"State"String_.of_jsoninletserialNumber=field_mapjson__"SerialNumber"String_.of_jsoninletpseudonym=field_mapjson__"Pseudonym"String_.of_jsoninletorganizationalUnit=field_mapjson__"OrganizationalUnit"String_.of_jsoninletorganization=field_mapjson__"Organization"String_.of_jsoninletlocality=field_mapjson__"Locality"String_.of_jsoninletinitials=field_mapjson__"Initials"String_.of_jsoninletgivenName=field_mapjson__"GivenName"String_.of_jsoninletgenerationQualifier=field_mapjson__"GenerationQualifier"String_.of_jsoninletdistinguishedNameQualifier=field_mapjson__"DistinguishedNameQualifier"String_.of_jsoninletcustomAttributes=field_mapjson__"CustomAttributes"CustomAttributeList.of_jsoninletcountry=field_mapjson__"Country"String_.of_jsoninletdomainComponents=field_mapjson__"DomainComponents"DomainComponentList.of_jsoninletcommonName=field_mapjson__"CommonName"String_.of_jsoninmake?title?surname?state?serialNumber?pseudonym?organizationalUnit?organization?locality?initials?givenName?generationQualifier?distinguishedNameQualifier?customAttributes?country?domainComponents?commonName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains X.500 distinguished name information."]moduleGeneralName=structtypenonrect={directoryName:DistinguishedName.toption[@ocaml.doc"Contains information about the certificate subject. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate."];dnsName:String_.toption[@ocaml.doc"Represents GeneralName as a DNS name."];ipAddress:String_.toption[@ocaml.doc"Represents GeneralName as an IPv4 or IPv6 address."];otherName:OtherName.toption[@ocaml.doc"Represents GeneralName using an OtherName object."];registeredId:String_.toption[@ocaml.doc"Represents GeneralName as an object identifier (OID)."];rfc822Name:String_.toption[@ocaml.doc"Represents GeneralName as an RFC 822 email address."];uniformResourceIdentifier:String_.toption[@ocaml.doc"Represents GeneralName as a URI."]}letmake?directoryName=fun?dnsName->fun?ipAddress->fun?otherName->fun?registeredId->fun?rfc822Name->fun?uniformResourceIdentifier->fun()->{directoryName;dnsName;ipAddress;otherName;registeredId;rfc822Name;uniformResourceIdentifier}letto_valuex=structure_to_value[("DirectoryName",(Option.mapx.directoryName~f:DistinguishedName.to_value));("DnsName",(Option.mapx.dnsName~f:String_.to_value));("IpAddress",(Option.mapx.ipAddress~f:String_.to_value));("OtherName",(Option.mapx.otherName~f:OtherName.to_value));("RegisteredId",(Option.mapx.registeredId~f:String_.to_value));("Rfc822Name",(Option.mapx.rfc822Name~f:String_.to_value));("UniformResourceIdentifier",(Option.mapx.uniformResourceIdentifier~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuniformResourceIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"UniformResourceIdentifier")inletrfc822Name=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Rfc822Name")inletregisteredId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"RegisteredId")inletotherName=(Option.map~f:OtherName.of_xml)(Xml.childxml_arg0"OtherName")inletipAddress=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"IpAddress")inletdnsName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DnsName")inletdirectoryName=(Option.map~f:DistinguishedName.of_xml)(Xml.childxml_arg0"DirectoryName")inmake?uniformResourceIdentifier?rfc822Name?registeredId?otherName?ipAddress?dnsName?directoryName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuniformResourceIdentifier=field_mapjson__"UniformResourceIdentifier"String_.of_jsoninletrfc822Name=field_mapjson__"Rfc822Name"String_.of_jsoninletregisteredId=field_mapjson__"RegisteredId"String_.of_jsoninletotherName=field_mapjson__"OtherName"OtherName.of_jsoninletipAddress=field_mapjson__"IpAddress"String_.of_jsoninletdnsName=field_mapjson__"DnsName"String_.of_jsoninletdirectoryName=field_mapjson__"DirectoryName"DistinguishedName.of_jsoninmake?uniformResourceIdentifier?rfc822Name?registeredId?otherName?ipAddress?dnsName?directoryName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes an ASN.1 X.400 GeneralName as defined in RFC 5280. Only one of the following naming options should be provided."]moduleGeneralNameList=structtypenonrect=GeneralName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:GeneralName.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:GeneralName.of_xml)letof_jsonj=list_of_json~kind:"GeneralNameList"~of_json:GeneralName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExtendedKeyUsageNames=structtypenonrect=ExtendedKeyUsageName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ExtendedKeyUsageName.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:ExtendedKeyUsageName.of_xml)letof_jsonj=list_of_json~kind:"ExtendedKeyUsageNames"~of_json:ExtendedKeyUsageName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleX509Attributes=structtypenonrect={issuer:DistinguishedName.toption[@ocaml.doc"The distinguished name of the certificate issuer."];subject:DistinguishedName.toption[@ocaml.doc"The distinguished name of the certificate subject."];subjectAlternativeNames:GeneralNameList.toption[@ocaml.doc"One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website."];extendedKeyUsages:ExtendedKeyUsageNames.toption[@ocaml.doc"Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID)."];keyAlgorithm:KeyAlgorithm.toption[@ocaml.doc"The algorithm that was used to generate the public-private key pair."];keyUsages:KeyUsageNames.toption[@ocaml.doc"A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more."];serialNumber:SerialNumber.toption[@ocaml.doc"The serial number assigned by the certificate authority."];notAfter:TStamp.toption[@ocaml.doc"The time after which the certificate is not valid."];notBefore:TStamp.toption[@ocaml.doc"The time before which the certificate is not valid."]}letmake?issuer=fun?subject->fun?subjectAlternativeNames->fun?extendedKeyUsages->fun?keyAlgorithm->fun?keyUsages->fun?serialNumber->fun?notAfter->fun?notBefore->fun()->{issuer;subject;subjectAlternativeNames;extendedKeyUsages;keyAlgorithm;keyUsages;serialNumber;notAfter;notBefore}letto_valuex=structure_to_value[("Issuer",(Option.mapx.issuer~f:DistinguishedName.to_value));("Subject",(Option.mapx.subject~f:DistinguishedName.to_value));("SubjectAlternativeNames",(Option.mapx.subjectAlternativeNames~f:GeneralNameList.to_value));("ExtendedKeyUsages",(Option.mapx.extendedKeyUsages~f:ExtendedKeyUsageNames.to_value));("KeyAlgorithm",(Option.mapx.keyAlgorithm~f:KeyAlgorithm.to_value));("KeyUsages",(Option.mapx.keyUsages~f:KeyUsageNames.to_value));("SerialNumber",(Option.mapx.serialNumber~f:SerialNumber.to_value));("NotAfter",(Option.mapx.notAfter~f:TStamp.to_value));("NotBefore",(Option.mapx.notBefore~f:TStamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotBefore=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"NotBefore")inletnotAfter=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"NotAfter")inletserialNumber=(Option.map~f:SerialNumber.of_xml)(Xml.childxml_arg0"SerialNumber")inletkeyUsages=(Option.map~f:KeyUsageNames.of_xml)(Xml.childxml_arg0"KeyUsages")inletkeyAlgorithm=(Option.map~f:KeyAlgorithm.of_xml)(Xml.childxml_arg0"KeyAlgorithm")inletextendedKeyUsages=(Option.map~f:ExtendedKeyUsageNames.of_xml)(Xml.childxml_arg0"ExtendedKeyUsages")inletsubjectAlternativeNames=(Option.map~f:GeneralNameList.of_xml)(Xml.childxml_arg0"SubjectAlternativeNames")inletsubject=(Option.map~f:DistinguishedName.of_xml)(Xml.childxml_arg0"Subject")inletissuer=(Option.map~f:DistinguishedName.of_xml)(Xml.childxml_arg0"Issuer")inmake?notBefore?notAfter?serialNumber?keyUsages?keyAlgorithm?extendedKeyUsages?subjectAlternativeNames?subject?issuer()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotBefore=field_mapjson__"NotBefore"TStamp.of_jsoninletnotAfter=field_mapjson__"NotAfter"TStamp.of_jsoninletserialNumber=field_mapjson__"SerialNumber"SerialNumber.of_jsoninletkeyUsages=field_mapjson__"KeyUsages"KeyUsageNames.of_jsoninletkeyAlgorithm=field_mapjson__"KeyAlgorithm"KeyAlgorithm.of_jsoninletextendedKeyUsages=field_mapjson__"ExtendedKeyUsages"ExtendedKeyUsageNames.of_jsoninletsubjectAlternativeNames=field_mapjson__"SubjectAlternativeNames"GeneralNameList.of_jsoninletsubject=field_mapjson__"Subject"DistinguishedName.of_jsoninletissuer=field_mapjson__"Issuer"DistinguishedName.of_jsoninmake?notBefore?notAfter?serialNumber?keyUsages?keyAlgorithm?extendedKeyUsages?subjectAlternativeNames?subject?issuer()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains X.509 certificate attributes extracted from the certificate."]moduleCertificateSearchResult=structtypenonrect={certificateArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the certificate."];x509Attributes:X509Attributes.toption[@ocaml.doc"X.509 certificate attributes such as subject, issuer, and validity period."];certificateMetadata:CertificateMetadata.toption[@ocaml.doc"ACM-specific metadata about the certificate."]}letmake?certificateArn=fun?x509Attributes->fun?certificateMetadata->fun()->{certificateArn;x509Attributes;certificateMetadata}letto_valuex=structure_to_value[("CertificateArn",(Option.mapx.certificateArn~f:Arn.to_value));("X509Attributes",(Option.mapx.x509Attributes~f:X509Attributes.to_value));("CertificateMetadata",(Option.mapx.certificateMetadata~f:CertificateMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateMetadata=(Option.map~f:CertificateMetadata.of_xml)(Xml.childxml_arg0"CertificateMetadata")inletx509Attributes=(Option.map~f:X509Attributes.of_xml)(Xml.childxml_arg0"X509Attributes")inletcertificateArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"CertificateArn")inmake?certificateMetadata?x509Attributes?certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateMetadata=field_mapjson__"CertificateMetadata"CertificateMetadata.of_jsoninletx509Attributes=field_mapjson__"X509Attributes"X509Attributes.of_jsoninletcertificateArn=field_mapjson__"CertificateArn"Arn.of_jsoninmake?certificateMetadata?x509Attributes?certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about a certificate returned by the SearchCertificates action. This structure includes the certificate ARN, X.509 attributes, and ACM metadata."]moduleCertificateSearchResultList=structtypenonrect=CertificateSearchResult.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CertificateSearchResult.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:CertificateSearchResult.of_xml)letof_jsonj=list_of_json~kind:"CertificateSearchResultList"~of_json:CertificateSearchResult.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCertificateStatuses=structtypenonrect=CertificateStatus.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CertificateStatus.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:CertificateStatus.of_xml)letof_jsonj=list_of_json~kind:"CertificateStatuses"~of_json:CertificateStatus.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCertificateSummary=structtypenonrect={certificateArn:Arn.toption[@ocaml.doc"Amazon Resource Name (ARN) of the certificate. This is of the form: arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 For more information about ARNs, see Amazon Resource Names (ARNs)."];domainName:DomainNameString.toption[@ocaml.doc"Fully qualified domain name (FQDN), such as www.example.com or example.com, for the certificate."];subjectAlternativeNameSummaries:DomainList.toption[@ocaml.doc"One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website. When called by ListCertificates, this parameter will only return the first 100 subject alternative names included in the certificate. To display the full list of subject alternative names, use DescribeCertificate."];hasAdditionalSubjectAlternativeNames:NullableBoolean.toption[@ocaml.doc"When called by ListCertificates, indicates whether the full list of subject alternative names has been included in the response. If false, the response includes all of the subject alternative names included in the certificate. If true, the response only includes the first 100 subject alternative names included in the certificate. To display the full list of subject alternative names, use DescribeCertificate."];status:CertificateStatus.toption[@ocaml.doc"The status of the certificate. A certificate enters status PENDING_VALIDATION upon being requested, unless it fails for any of the reasons given in the troubleshooting topic Certificate request fails. ACM makes repeated attempts to validate a certificate for 72 hours and then times out. If a certificate shows status FAILED or VALIDATION_TIMED_OUT, delete the request, correct the issue with DNS validation or Email validation, and try again. If validation succeeds, the certificate enters status ISSUED."];type_:CertificateType.toption[@ocaml.doc"The source of the certificate. For certificates provided by ACM, this value is AMAZON_ISSUED. For certificates that you imported with ImportCertificate, this value is IMPORTED. ACM does not provide managed renewal for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see Importing Certificates in the Certificate Manager User Guide."];keyAlgorithm:KeyAlgorithm.toption[@ocaml.doc"The algorithm that was used to generate the public-private key pair."];keyUsages:KeyUsageNames.toption[@ocaml.doc"A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more."];extendedKeyUsages:ExtendedKeyUsageNames.toption[@ocaml.doc"Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID)."];exportOption:CertificateExport.toption[@ocaml.doc"Indicates if export is enabled for the certificate."];inUse:NullableBoolean.toption[@ocaml.doc"Indicates whether the certificate is currently in use by any Amazon Web Services resources."];exported:NullableBoolean.toption[@ocaml.doc"Indicates whether the certificate has been exported. This value exists only when the certificate type is PRIVATE."];renewalEligibility:RenewalEligibility.toption[@ocaml.doc"Specifies whether the certificate is eligible for renewal. At this time, only exported private certificates can be renewed with the RenewCertificate command."];notBefore:TStamp.toption[@ocaml.doc"The time before which the certificate is not valid."];notAfter:TStamp.toption[@ocaml.doc"The time after which the certificate is not valid."];createdAt:TStamp.toption[@ocaml.doc"The time at which the certificate was requested."];issuedAt:TStamp.toption[@ocaml.doc"The time at which the certificate was issued. This value exists only when the certificate type is AMAZON_ISSUED."];importedAt:TStamp.toption[@ocaml.doc"The date and time when the certificate was imported. This value exists only when the certificate type is IMPORTED."];revokedAt:TStamp.toption[@ocaml.doc"The time at which the certificate was revoked. This value exists only when the certificate status is REVOKED."];managedBy:CertificateManagedBy.toption[@ocaml.doc"Identifies the Amazon Web Services service that manages the certificate issued by ACM."]}letmake?certificateArn=fun?domainName->fun?subjectAlternativeNameSummaries->fun?hasAdditionalSubjectAlternativeNames->fun?status->fun?type_->fun?keyAlgorithm->fun?keyUsages->fun?extendedKeyUsages->fun?exportOption->fun?inUse->fun?exported->fun?renewalEligibility->fun?notBefore->fun?notAfter->fun?createdAt->fun?issuedAt->fun?importedAt->fun?revokedAt->fun?managedBy->fun()->{certificateArn;domainName;subjectAlternativeNameSummaries;hasAdditionalSubjectAlternativeNames;status;type_;keyAlgorithm;keyUsages;extendedKeyUsages;exportOption;inUse;exported;renewalEligibility;notBefore;notAfter;createdAt;issuedAt;importedAt;revokedAt;managedBy}letto_valuex=structure_to_value[("CertificateArn",(Option.mapx.certificateArn~f:Arn.to_value));("DomainName",(Option.mapx.domainName~f:DomainNameString.to_value));("SubjectAlternativeNameSummaries",(Option.mapx.subjectAlternativeNameSummaries~f:DomainList.to_value));("HasAdditionalSubjectAlternativeNames",(Option.mapx.hasAdditionalSubjectAlternativeNames~f:NullableBoolean.to_value));("Status",(Option.mapx.status~f:CertificateStatus.to_value));("Type",(Option.mapx.type_~f:CertificateType.to_value));("KeyAlgorithm",(Option.mapx.keyAlgorithm~f:KeyAlgorithm.to_value));("KeyUsages",(Option.mapx.keyUsages~f:KeyUsageNames.to_value));("ExtendedKeyUsages",(Option.mapx.extendedKeyUsages~f:ExtendedKeyUsageNames.to_value));("ExportOption",(Option.mapx.exportOption~f:CertificateExport.to_value));("InUse",(Option.mapx.inUse~f:NullableBoolean.to_value));("Exported",(Option.mapx.exported~f:NullableBoolean.to_value));("RenewalEligibility",(Option.mapx.renewalEligibility~f:RenewalEligibility.to_value));("NotBefore",(Option.mapx.notBefore~f:TStamp.to_value));("NotAfter",(Option.mapx.notAfter~f:TStamp.to_value));("CreatedAt",(Option.mapx.createdAt~f:TStamp.to_value));("IssuedAt",(Option.mapx.issuedAt~f:TStamp.to_value));("ImportedAt",(Option.mapx.importedAt~f:TStamp.to_value));("RevokedAt",(Option.mapx.revokedAt~f:TStamp.to_value));("ManagedBy",(Option.mapx.managedBy~f:CertificateManagedBy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmanagedBy=(Option.map~f:CertificateManagedBy.of_xml)(Xml.childxml_arg0"ManagedBy")inletrevokedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"RevokedAt")inletimportedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"ImportedAt")inletissuedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"IssuedAt")inletcreatedAt=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"CreatedAt")inletnotAfter=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"NotAfter")inletnotBefore=(Option.map~f:TStamp.of_xml)(Xml.childxml_arg0"NotBefore")inletrenewalEligibility=(Option.map~f:RenewalEligibility.of_xml)(Xml.childxml_arg0"RenewalEligibility")inletexported=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"Exported")inletinUse=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"InUse")inletexportOption=(Option.map~f:CertificateExport.of_xml)(Xml.childxml_arg0"ExportOption")inletextendedKeyUsages=(Option.map~f:ExtendedKeyUsageNames.of_xml)(Xml.childxml_arg0"ExtendedKeyUsages")inletkeyUsages=(Option.map~f:KeyUsageNames.of_xml)(Xml.childxml_arg0"KeyUsages")inletkeyAlgorithm=(Option.map~f:KeyAlgorithm.of_xml)(Xml.childxml_arg0"KeyAlgorithm")inlettype_=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"Type")inletstatus=(Option.map~f:CertificateStatus.of_xml)(Xml.childxml_arg0"Status")inlethasAdditionalSubjectAlternativeNames=(Option.map~f:NullableBoolean.of_xml)(Xml.childxml_arg0"HasAdditionalSubjectAlternativeNames")inletsubjectAlternativeNameSummaries=(Option.map~f:DomainList.of_xml)(Xml.childxml_arg0"SubjectAlternativeNameSummaries")inletdomainName=(Option.map~f:DomainNameString.of_xml)(Xml.childxml_arg0"DomainName")inletcertificateArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"CertificateArn")inmake?managedBy?revokedAt?importedAt?issuedAt?createdAt?notAfter?notBefore?renewalEligibility?exported?inUse?exportOption?extendedKeyUsages?keyUsages?keyAlgorithm?type_?status?hasAdditionalSubjectAlternativeNames?subjectAlternativeNameSummaries?domainName?certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmanagedBy=field_mapjson__"ManagedBy"CertificateManagedBy.of_jsoninletrevokedAt=field_mapjson__"RevokedAt"TStamp.of_jsoninletimportedAt=field_mapjson__"ImportedAt"TStamp.of_jsoninletissuedAt=field_mapjson__"IssuedAt"TStamp.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"TStamp.of_jsoninletnotAfter=field_mapjson__"NotAfter"TStamp.of_jsoninletnotBefore=field_mapjson__"NotBefore"TStamp.of_jsoninletrenewalEligibility=field_mapjson__"RenewalEligibility"RenewalEligibility.of_jsoninletexported=field_mapjson__"Exported"NullableBoolean.of_jsoninletinUse=field_mapjson__"InUse"NullableBoolean.of_jsoninletexportOption=field_mapjson__"ExportOption"CertificateExport.of_jsoninletextendedKeyUsages=field_mapjson__"ExtendedKeyUsages"ExtendedKeyUsageNames.of_jsoninletkeyUsages=field_mapjson__"KeyUsages"KeyUsageNames.of_jsoninletkeyAlgorithm=field_mapjson__"KeyAlgorithm"KeyAlgorithm.of_jsoninlettype_=field_mapjson__"Type"CertificateType.of_jsoninletstatus=field_mapjson__"Status"CertificateStatus.of_jsoninlethasAdditionalSubjectAlternativeNames=field_mapjson__"HasAdditionalSubjectAlternativeNames"NullableBoolean.of_jsoninletsubjectAlternativeNameSummaries=field_mapjson__"SubjectAlternativeNameSummaries"DomainList.of_jsoninletdomainName=field_mapjson__"DomainName"DomainNameString.of_jsoninletcertificateArn=field_mapjson__"CertificateArn"Arn.of_jsoninmake?managedBy?revokedAt?importedAt?issuedAt?createdAt?notAfter?notBefore?renewalEligibility?exported?inUse?exportOption?extendedKeyUsages?keyUsages?keyAlgorithm?type_?status?hasAdditionalSubjectAlternativeNames?subjectAlternativeNameSummaries?domainName?certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure is returned in the response object of ListCertificates action."]moduleCertificateSummaryList=structtypenonrect=CertificateSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CertificateSummary.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:CertificateSummary.of_xml)letof_jsonj=list_of_json~kind:"CertificateSummaryList"~of_json:CertificateSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConflictException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You are trying to update a resource or configuration that is already being created or updated. Wait for the previous operation to finish and try again."]moduleCoralAvailabilityThrottledResource=structtypenonrect=stringletcontext_="CoralAvailabilityThrottledResource"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:"CoralAvailabilityThrottledResource"jletto_json=simple_to_jsonto_valueendmoduleCoralAvailabilityThrottlingReason=structtypenonrect=stringletcontext_="CoralAvailabilityThrottlingReason"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:"CoralAvailabilityThrottlingReason"jletto_json=simple_to_jsonto_valueendmoduleDeleteCertificateRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"String that contains the ARN of the ACM certificate to be deleted. This must be of the form: arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 For more information about ARNs, see Amazon Resource Names (ARNs)."]}letcontext_="DeleteCertificateRequest"letmake~certificateArn=fun()->{certificateArn}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a certificate and its associated private key. If this action succeeds, the certificate is not available for use by Amazon Web Services services integrated with ACM. Deleting a certificate is eventually consistent. The may be a short delay before the certificate no longer appears in the list that can be displayed by calling the ListCertificates action or be retrieved by calling the GetCertificate action. You cannot delete an ACM certificate that is being used by another Amazon Web Services service. To delete a certificate that is in use, you must first remove the certificate association using the console or the CLI for the associated service. Deleting a certificate issued by a private certificate authority (CA) has no effect on the CA. You will continue to be charged for the CA until it is deleted. For more information, see Deleting Your Private CA in the Private Certificate Authority User Guide. Deleting a certificate issued by a private certificate authority (CA) has no effect on the CA. You will continue to be charged for the CA until it is deleted. For more information, see Deleting your private CA in the Amazon Web Services Private Certificate Authority User Guide."]moduleDescribeCertificateRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form: arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 For more information about ARNs, see Amazon Resource Names (ARNs)."]}letcontext_="DescribeCertificateRequest"letmake~certificateArn=fun()->{certificateArn}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns detailed metadata about the specified ACM certificate. If you have just created a certificate using the RequestCertificate action, there is a delay of several seconds before you can retrieve information about it."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified certificate cannot be found in the caller's account or the caller's account cannot be found."]moduleInvalidArnException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested Amazon Resource Name (ARN) does not refer to an existing resource."]moduleDescribeCertificateResponse=structtypenonrect={certificate:CertificateDetail.toption[@ocaml.doc"Metadata about an ACM certificate."]}typenonrecerror=[`InvalidArnExceptionofInvalidArnException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?certificate=fun()->{certificate}leterror_of_jsonnamejson=matchnamewith|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArnException"->`InvalidArnException(InvalidArnException.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|`InvalidArnExceptione->`Assoc[("error",(`String"InvalidArnException"));("details",(InvalidArnException.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[("Certificate",(Option.mapx.certificate~f:CertificateDetail.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificate=(Option.map~f:CertificateDetail.of_xml)(Xml.childxml_arg0"Certificate")inmake?certificate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificate=field_mapjson__"Certificate"CertificateDetail.of_jsoninmake?certificate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns detailed metadata about the specified ACM certificate. If you have just created a certificate using the RequestCertificate action, there is a delay of several seconds before you can retrieve information about it."]moduleDomainValidationOption=structtypenonrect={domainName:DomainNameString.t[@ocaml.doc"A fully qualified domain name (FQDN) in the certificate request."];validationDomain:DomainNameString.t[@ocaml.doc"The domain name that you want ACM to use to send you validation emails. This domain name is the suffix of the email addresses that you want ACM to use. This must be the same as the DomainName value or a superdomain of the DomainName value. For example, if you request a certificate for testing.example.com, you can specify example.com for this value. In that case, ACM sends domain validation emails to the following five addresses: admin\\@example.com administrator\\@example.com hostmaster\\@example.com postmaster\\@example.com webmaster\\@example.com"]}letcontext_="DomainValidationOption"letmake~domainName=fun~validationDomain->fun()->{domainName;validationDomain}letto_valuex=structure_to_value[("DomainName",(Some(DomainNameString.to_valuex.domainName)));("ValidationDomain",(Some(DomainNameString.to_valuex.validationDomain)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidationDomain=DomainNameString.of_xml(Xml.child_exn~context:context_xml_arg0"ValidationDomain")inletdomainName=DomainNameString.of_xml(Xml.child_exn~context:context_xml_arg0"DomainName")inmake~validationDomain~domainName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidationDomain=field_map_exnjson__"ValidationDomain"DomainNameString.of_jsoninletdomainName=field_map_exnjson__"DomainName"DomainNameString.of_jsoninmake~validationDomain~domainName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about the domain names that you want ACM to use to send you emails that enable you to validate domain ownership."]moduleDomainValidationOptionList=structtypenonrect=DomainValidationOption.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(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:DomainValidationOption.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:DomainValidationOption.of_xml)letof_jsonj=list_of_json~kind:"DomainValidationOptionList"~of_json:DomainValidationOption.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePositiveInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:1);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for PositiveInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleExpiryEventsConfiguration=structtypenonrect={daysBeforeExpiry:PositiveInteger.toption[@ocaml.doc"Specifies the number of days prior to certificate expiration when ACM starts generating EventBridge events. ACM sends one event per day per certificate until the certificate expires. By default, accounts receive events starting 45 days before certificate expiration."]}letmake?daysBeforeExpiry=fun()->{daysBeforeExpiry}letto_valuex=structure_to_value[("DaysBeforeExpiry",(Option.mapx.daysBeforeExpiry~f:PositiveInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdaysBeforeExpiry=(Option.map~f:PositiveInteger.of_xml)(Xml.childxml_arg0"DaysBeforeExpiry")inmake?daysBeforeExpiry()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdaysBeforeExpiry=field_mapjson__"DaysBeforeExpiry"PositiveInteger.of_jsoninmake?daysBeforeExpiry()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object containing expiration events options associated with an Amazon Web Services account."]modulePassphraseBlob=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleExportCertificateRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"An Amazon Resource Name (ARN) of the issued certificate. This must be of the form: arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012"];passphrase:PassphraseBlob.t[@ocaml.doc"Passphrase to associate with the encrypted exported private key. When creating your passphrase, you can use any ASCII character except #, $, or %. If you want to later decrypt the private key, you must have the passphrase. You can use the following OpenSSL command to decrypt a private key. After entering the command, you are prompted for the passphrase. openssl rsa -in encrypted_key.pem -out decrypted_key.pem"]}letcontext_="ExportCertificateRequest"letmake~certificateArn=fun~passphrase->fun()->{certificateArn;passphrase}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)));("Passphrase",(Some(PassphraseBlob.to_valuex.passphrase)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpassphrase=PassphraseBlob.of_xml(Xml.child_exn~context:context_xml_arg0"Passphrase")inletcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~passphrase~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpassphrase=field_map_exnjson__"Passphrase"PassphraseBlob.of_jsoninletcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~passphrase~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exports a private certificate issued by a private certificate authority (CA) or a public certificate for use anywhere. The exported file contains the certificate, the certificate chain, and the encrypted private key associated with the public key that is embedded in the certificate. For security, you must assign a passphrase for the private key when exporting it. For information about exporting and formatting a certificate using the ACM console or CLI, see Export a private certificate and Export a public certificate. ACM public certificates created prior to June 17, 2025 cannot be exported."]moduleThrottlingReason=structtypenonrect={reason:CoralAvailabilityThrottlingReason.toption[@ocaml.doc"A description of why a request was throttled."];resource:CoralAvailabilityThrottledResource.toption[@ocaml.doc"The resource that causes the request to be throttled."]}letmake?reason=fun?resource->fun()->{reason;resource}letto_valuex=structure_to_value[("reason",(Option.mapx.reason~f:CoralAvailabilityThrottlingReason.to_value));("resource",(Option.mapx.resource~f:CoralAvailabilityThrottledResource.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresource=(Option.map~f:CoralAvailabilityThrottledResource.of_xml)(Xml.childxml_arg0"resource")inletreason=(Option.map~f:CoralAvailabilityThrottlingReason.of_xml)(Xml.childxml_arg0"reason")inmake?resource?reason()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresource=field_mapjson__"resource"CoralAvailabilityThrottledResource.of_jsoninletreason=field_mapjson__"reason"CoralAvailabilityThrottlingReason.of_jsoninmake?resource?reason()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A description of why a request was throttled."]moduleThrottlingReasonList=structtypenonrect=ThrottlingReason.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ThrottlingReason.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:ThrottlingReason.of_xml)letof_jsonj=list_of_json~kind:"ThrottlingReasonList"~of_json:ThrottlingReason.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleThrottlingException=structtypenonrect={message:AvailabilityErrorMessage.toption;throttlingReasons:ThrottlingReasonList.toption[@ocaml.doc"One or more reasons why the request was throttled."]}letmake?message=fun?throttlingReasons->fun()->{message;throttlingReasons}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:AvailabilityErrorMessage.to_value));("throttlingReasons",(Option.mapx.throttlingReasons~f:ThrottlingReasonList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letthrottlingReasons=(Option.map~f:ThrottlingReasonList.of_xml)(Xml.childxml_arg0"throttlingReasons")inletmessage=(Option.map~f:AvailabilityErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?throttlingReasons?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letthrottlingReasons=field_mapjson__"throttlingReasons"ThrottlingReasonList.of_jsoninletmessage=field_mapjson__"message"AvailabilityErrorMessage.of_jsoninmake?throttlingReasons?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied because it exceeded a quota."]moduleRequestInProgressException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The certificate request is in process and the certificate in your account has not yet been issued."]modulePrivateKey=structtypenonrect=stringletcontext_="PrivateKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:524288)>>=(fun()->check_patterni~pattern:"-{5}BEGIN PRIVATE KEY-{5}\\u000D?\\u000A([A-Za-z0-9/+]{64}\\u000D?\\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\\u000D?\\u000A-{5}END PRIVATE KEY-{5}(\\u000D?\\u000A)?")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PrivateKey"jletto_json=simple_to_jsonto_valueendmoduleExportCertificateResponse=structtypenonrect={certificate:CertificateBody.toption[@ocaml.doc"The base64 PEM-encoded certificate."];certificateChain:CertificateChain.toption[@ocaml.doc"The base64 PEM-encoded certificate chain. This does not include the certificate that you are exporting."];privateKey:PrivateKey.toption[@ocaml.doc"The encrypted private key associated with the public key in the certificate. The key is output in PKCS #8 format and is base64 PEM-encoded."]}typenonrecerror=[`InvalidArnExceptionofInvalidArnException.t|`RequestInProgressExceptionofRequestInProgressException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?certificate=fun?certificateChain->fun?privateKey->fun()->{certificate;certificateChain;privateKey}leterror_of_jsonnamejson=matchnamewith|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_jsonjson)|"RequestInProgressException"->`RequestInProgressException(RequestInProgressException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_xmlxml)|"RequestInProgressException"->`RequestInProgressException(RequestInProgressException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArnExceptione->`Assoc[("error",(`String"InvalidArnException"));("details",(InvalidArnException.to_jsone))]|`RequestInProgressExceptione->`Assoc[("error",(`String"RequestInProgressException"));("details",(RequestInProgressException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Certificate",(Option.mapx.certificate~f:CertificateBody.to_value));("CertificateChain",(Option.mapx.certificateChain~f:CertificateChain.to_value));("PrivateKey",(Option.mapx.privateKey~f:PrivateKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprivateKey=(Option.map~f:PrivateKey.of_xml)(Xml.childxml_arg0"PrivateKey")inletcertificateChain=(Option.map~f:CertificateChain.of_xml)(Xml.childxml_arg0"CertificateChain")inletcertificate=(Option.map~f:CertificateBody.of_xml)(Xml.childxml_arg0"Certificate")inmake?privateKey?certificateChain?certificate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprivateKey=field_mapjson__"PrivateKey"PrivateKey.of_jsoninletcertificateChain=field_mapjson__"CertificateChain"CertificateChain.of_jsoninletcertificate=field_mapjson__"Certificate"CertificateBody.of_jsoninmake?privateKey?certificateChain?certificate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exports a private certificate issued by a private certificate authority (CA) or a public certificate for use anywhere. The exported file contains the certificate, the certificate chain, and the encrypted private key associated with the public key that is embedded in the certificate. For security, you must assign a passphrase for the private key when exporting it. For information about exporting and formatting a certificate using the ACM console or CLI, see Export a private certificate and Export a public certificate. ACM public certificates created prior to June 17, 2025 cannot be exported."]moduleExtendedKeyUsageFilterList=structtypenonrect=ExtendedKeyUsageName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ExtendedKeyUsageName.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:ExtendedKeyUsageName.of_xml)letof_jsonj=list_of_json~kind:"ExtendedKeyUsageFilterList"~of_json:ExtendedKeyUsageName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKeyUsageFilterList=structtypenonrect=KeyUsageName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KeyUsageName.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:KeyUsageName.of_xml)letof_jsonj=list_of_json~kind:"KeyUsageFilterList"~of_json:KeyUsageName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKeyAlgorithmList=structtypenonrect=KeyAlgorithm.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KeyAlgorithm.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:KeyAlgorithm.of_xml)letof_jsonj=list_of_json~kind:"KeyAlgorithmList"~of_json:KeyAlgorithm.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFilters=structtypenonrect={extendedKeyUsage:ExtendedKeyUsageFilterList.toption[@ocaml.doc"Specify one or more ExtendedKeyUsage extension values."];keyUsage:KeyUsageFilterList.toption[@ocaml.doc"Specify one or more KeyUsage extension values."];keyTypes:KeyAlgorithmList.toption[@ocaml.doc"Specify one or more algorithms that can be used to generate key pairs. Default filtering returns only RSA_1024 and RSA_2048 certificates that have at least one domain. To return other certificate types, provide the desired type signatures in a comma-separated list. For example, \"keyTypes\": \\[\"RSA_2048\",\"RSA_4096\"\\] returns both RSA_2048 and RSA_4096 certificates."];exportOption:CertificateExport.toption[@ocaml.doc"Specify ENABLED or DISABLED to identify certificates that can be exported."];managedBy:CertificateManagedBy.toption[@ocaml.doc"Identifies the Amazon Web Services service that manages the certificate issued by ACM."]}letmake?extendedKeyUsage=fun?keyUsage->fun?keyTypes->fun?exportOption->fun?managedBy->fun()->{extendedKeyUsage;keyUsage;keyTypes;exportOption;managedBy}letto_valuex=structure_to_value[("extendedKeyUsage",(Option.mapx.extendedKeyUsage~f:ExtendedKeyUsageFilterList.to_value));("keyUsage",(Option.mapx.keyUsage~f:KeyUsageFilterList.to_value));("keyTypes",(Option.mapx.keyTypes~f:KeyAlgorithmList.to_value));("exportOption",(Option.mapx.exportOption~f:CertificateExport.to_value));("managedBy",(Option.mapx.managedBy~f:CertificateManagedBy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmanagedBy=(Option.map~f:CertificateManagedBy.of_xml)(Xml.childxml_arg0"managedBy")inletexportOption=(Option.map~f:CertificateExport.of_xml)(Xml.childxml_arg0"exportOption")inletkeyTypes=(Option.map~f:KeyAlgorithmList.of_xml)(Xml.childxml_arg0"keyTypes")inletkeyUsage=(Option.map~f:KeyUsageFilterList.of_xml)(Xml.childxml_arg0"keyUsage")inletextendedKeyUsage=(Option.map~f:ExtendedKeyUsageFilterList.of_xml)(Xml.childxml_arg0"extendedKeyUsage")inmake?managedBy?exportOption?keyTypes?keyUsage?extendedKeyUsage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmanagedBy=field_mapjson__"managedBy"CertificateManagedBy.of_jsoninletexportOption=field_mapjson__"exportOption"CertificateExport.of_jsoninletkeyTypes=field_mapjson__"keyTypes"KeyAlgorithmList.of_jsoninletkeyUsage=field_mapjson__"keyUsage"KeyUsageFilterList.of_jsoninletextendedKeyUsage=field_mapjson__"extendedKeyUsage"ExtendedKeyUsageFilterList.of_jsoninmake?managedBy?exportOption?keyTypes?keyUsage?extendedKeyUsage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure can be used in the ListCertificates action to filter the output of the certificate list."]moduleGetAccountConfigurationResponse=structtypenonrect={expiryEvents:ExpiryEventsConfiguration.toption[@ocaml.doc"Expiration events configuration options associated with the Amazon Web Services account."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?expiryEvents=fun()->{expiryEvents}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ExpiryEvents",(Option.mapx.expiryEvents~f:ExpiryEventsConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexpiryEvents=(Option.map~f:ExpiryEventsConfiguration.of_xml)(Xml.childxml_arg0"ExpiryEvents")inmake?expiryEvents()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexpiryEvents=field_mapjson__"ExpiryEvents"ExpiryEventsConfiguration.of_jsoninmake?expiryEvents()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the account configuration options associated with an Amazon Web Services account."]moduleGetCertificateRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"String that contains a certificate ARN in the following format: arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 For more information about ARNs, see Amazon Resource Names (ARNs)."]}letcontext_="GetCertificateRequest"letmake~certificateArn=fun()->{certificateArn}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a certificate and its certificate chain. The certificate may be either a public or private certificate issued using the ACM RequestCertificate action, or a certificate imported into ACM using the ImportCertificate action. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs. All of the certificates are base64 encoded. You can use OpenSSL to decode the certificates and inspect individual fields."]moduleGetCertificateResponse=structtypenonrect={certificate:CertificateBody.toption[@ocaml.doc"The ACM-issued certificate corresponding to the ARN specified as input."];certificateChain:CertificateChain.toption[@ocaml.doc"Certificates forming the requested certificate's chain of trust. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs."]}typenonrecerror=[`InvalidArnExceptionofInvalidArnException.t|`RequestInProgressExceptionofRequestInProgressException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?certificate=fun?certificateChain->fun()->{certificate;certificateChain}leterror_of_jsonnamejson=matchnamewith|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_jsonjson)|"RequestInProgressException"->`RequestInProgressException(RequestInProgressException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_xmlxml)|"RequestInProgressException"->`RequestInProgressException(RequestInProgressException.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|`InvalidArnExceptione->`Assoc[("error",(`String"InvalidArnException"));("details",(InvalidArnException.to_jsone))]|`RequestInProgressExceptione->`Assoc[("error",(`String"RequestInProgressException"));("details",(RequestInProgressException.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[("Certificate",(Option.mapx.certificate~f:CertificateBody.to_value));("CertificateChain",(Option.mapx.certificateChain~f:CertificateChain.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateChain=(Option.map~f:CertificateChain.of_xml)(Xml.childxml_arg0"CertificateChain")inletcertificate=(Option.map~f:CertificateBody.of_xml)(Xml.childxml_arg0"Certificate")inmake?certificateChain?certificate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateChain=field_mapjson__"CertificateChain"CertificateChain.of_jsoninletcertificate=field_mapjson__"Certificate"CertificateBody.of_jsoninmake?certificateChain?certificate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a certificate and its certificate chain. The certificate may be either a public or private certificate issued using the ACM RequestCertificate action, or a certificate imported into ACM using the ImportCertificate action. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs. All of the certificates are base64 encoded. You can use OpenSSL to decode the certificates and inspect individual fields."]moduleIdempotencyToken=structtypenonrect=stringletcontext_="IdempotencyToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:32)>>=(fun()->check_patterni~pattern:"\\w+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdempotencyToken"jletto_json=simple_to_jsonto_valueendmodulePrivateKeyBlob=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleImportCertificateRequest=structtypenonrect={certificateArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this field."];certificate:CertificateBodyBlob.t[@ocaml.doc"The certificate to import."];privateKey:PrivateKeyBlob.t[@ocaml.doc"The private key that matches the public key in the certificate."];certificateChain:CertificateChainBlob.toption[@ocaml.doc"The PEM encoded certificate chain."];tags:TagList.toption[@ocaml.doc"One or more resource tags to associate with the imported certificate. Note: You cannot apply tags when reimporting a certificate."]}letcontext_="ImportCertificateRequest"letmake?certificateArn=fun?certificateChain->fun?tags->fun~certificate->fun~privateKey->fun()->{certificateArn;certificateChain;tags;certificate;privateKey}letto_valuex=structure_to_value[("CertificateArn",(Option.mapx.certificateArn~f:Arn.to_value));("Certificate",(Some(CertificateBodyBlob.to_valuex.certificate)));("PrivateKey",(Some(PrivateKeyBlob.to_valuex.privateKey)));("CertificateChain",(Option.mapx.certificateChain~f:CertificateChainBlob.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")inletcertificateChain=(Option.map~f:CertificateChainBlob.of_xml)(Xml.childxml_arg0"CertificateChain")inletprivateKey=PrivateKeyBlob.of_xml(Xml.child_exn~context:context_xml_arg0"PrivateKey")inletcertificate=CertificateBodyBlob.of_xml(Xml.child_exn~context:context_xml_arg0"Certificate")inletcertificateArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"CertificateArn")inmake?tags?certificateChain~privateKey~certificate?certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninletcertificateChain=field_mapjson__"CertificateChain"CertificateChainBlob.of_jsoninletprivateKey=field_map_exnjson__"PrivateKey"PrivateKeyBlob.of_jsoninletcertificate=field_map_exnjson__"Certificate"CertificateBodyBlob.of_jsoninletcertificateArn=field_mapjson__"CertificateArn"Arn.of_jsoninmake?tags?certificateChain~privateKey~certificate?certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports a certificate into Certificate Manager (ACM) to use with services that are integrated with ACM. Note that integrated services allow only certificate types and keys they support to be associated with their resources. Further, their support differs depending on whether the certificate is imported into IAM or into ACM. For more information, see the documentation for each service. For more information about importing certificates into ACM, see Importing Certificates in the Certificate Manager User Guide. ACM does not provide managed renewal for certificates that you import. Note the following guidelines when importing third party certificates: You must enter the private key that matches the certificate you are importing. The private key must be unencrypted. You cannot import a private key that is protected by a password or a passphrase. The private key must be no larger than 5 KB (5,120 bytes). The certificate, private key, and certificate chain must be PEM-encoded. The current time must be between the Not Before and Not After certificate fields. The Issuer field must not be empty. The OCSP authority URL, if present, must not exceed 1000 characters. To import a new certificate, omit the CertificateArn argument. Include this argument only when you want to replace a previously imported certificate. When you import a certificate by using the CLI, you must specify the certificate, the certificate chain, and the private key by their file names preceded by fileb://. For example, you can specify a certificate saved in the C:\\temp folder as fileb://C:\\temp\\certificate_to_import.pem. If you are making an HTTP or HTTPS Query request, include these arguments as BLOBs. When you import a certificate by using an SDK, you must specify the certificate, the certificate chain, and the private key files in the manner required by the programming language you're using. The cryptographic algorithm of an imported certificate must match the algorithm of the signing CA. For example, if the signing CA key type is RSA, then the certificate key type must also be RSA. This operation returns the Amazon Resource Name (ARN) of the imported certificate."]moduleTooManyTagsException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request contains too many tags. Try the request again with fewer tags."]moduleTagPolicyException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A specified tag did not comply with an existing tag policy and was rejected."]moduleLimitExceededException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An ACM quota has been exceeded."]moduleInvalidTagException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One or both of the values that make up the key-value pair is not valid. For example, you cannot specify a tag value that begins with aws:."]moduleInvalidParameterException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An input parameter was invalid."]moduleImportCertificateResponse=structtypenonrect={certificateArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the imported certificate."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InvalidArnExceptionofInvalidArnException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidTagExceptionofInvalidTagException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TagPolicyExceptionofTagPolicyException.t|`TooManyTagsExceptionofTooManyTagsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?certificateArn=fun()->{certificateArn}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidTagException"->`InvalidTagException(InvalidTagException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_jsonjson)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidTagException"->`InvalidTagException(InvalidTagException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_xmlxml)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InvalidArnExceptione->`Assoc[("error",(`String"InvalidArnException"));("details",(InvalidArnException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidTagExceptione->`Assoc[("error",(`String"InvalidTagException"));("details",(InvalidTagException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TagPolicyExceptione->`Assoc[("error",(`String"TagPolicyException"));("details",(TagPolicyException.to_jsone))]|`TooManyTagsExceptione->`Assoc[("error",(`String"TooManyTagsException"));("details",(TooManyTagsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CertificateArn",(Option.mapx.certificateArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"CertificateArn")inmake?certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateArn=field_mapjson__"CertificateArn"Arn.of_jsoninmake?certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports a certificate into Certificate Manager (ACM) to use with services that are integrated with ACM. Note that integrated services allow only certificate types and keys they support to be associated with their resources. Further, their support differs depending on whether the certificate is imported into IAM or into ACM. For more information, see the documentation for each service. For more information about importing certificates into ACM, see Importing Certificates in the Certificate Manager User Guide. ACM does not provide managed renewal for certificates that you import. Note the following guidelines when importing third party certificates: You must enter the private key that matches the certificate you are importing. The private key must be unencrypted. You cannot import a private key that is protected by a password or a passphrase. The private key must be no larger than 5 KB (5,120 bytes). The certificate, private key, and certificate chain must be PEM-encoded. The current time must be between the Not Before and Not After certificate fields. The Issuer field must not be empty. The OCSP authority URL, if present, must not exceed 1000 characters. To import a new certificate, omit the CertificateArn argument. Include this argument only when you want to replace a previously imported certificate. When you import a certificate by using the CLI, you must specify the certificate, the certificate chain, and the private key by their file names preceded by fileb://. For example, you can specify a certificate saved in the C:\\temp folder as fileb://C:\\temp\\certificate_to_import.pem. If you are making an HTTP or HTTPS Query request, include these arguments as BLOBs. When you import a certificate by using an SDK, you must specify the certificate, the certificate chain, and the private key files in the manner required by the programming language you're using. The cryptographic algorithm of an imported certificate must match the algorithm of the signing CA. For example, if the signing CA key type is RSA, then the certificate key type must also be RSA. This operation returns the Amazon Resource Name (ARN) of the imported certificate."]moduleInvalidArgsException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One or more of request parameters specified is not valid."]moduleInvalidDomainValidationOptionsException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One or more values in the DomainValidationOption structure is incorrect."]moduleInvalidStateException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Processing has reached an invalid state."]moduleSortOrder=structtypenonrect=|ASCENDING|DESCENDING|Non_static_idofstringletmakei=iletto_string=function|ASCENDING->"ASCENDING"|DESCENDING->"DESCENDING"|Non_static_ids->sletof_string=function|"ASCENDING"->ASCENDING|"DESCENDING"->DESCENDING|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 SortOrder"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SortOrder"j)letto_json=simple_to_jsonto_valueendmoduleSortBy=structtypenonrect=|CREATED_AT|Non_static_idofstringletmakei=iletto_string=function|CREATED_AT->"CREATED_AT"|Non_static_ids->sletof_string=function|"CREATED_AT"->CREATED_AT|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 SortBy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SortBy"j)letto_json=simple_to_jsonto_valueendmoduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:10000)>>=(fun()->check_patterni~pattern:"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleMaxItems=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxItems"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListCertificatesRequest=structtypenonrect={certificateStatuses:CertificateStatuses.toption[@ocaml.doc"Filter the certificate list by status value."];includes:Filters.toption[@ocaml.doc"Filter the certificate list. For more information, see the Filters structure."];nextToken:NextToken.toption[@ocaml.doc"Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received."];maxItems:MaxItems.toption[@ocaml.doc"Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items."];sortBy:SortBy.toption[@ocaml.doc"Specifies the field to sort results by. If you specify SortBy, you must also specify SortOrder."];sortOrder:SortOrder.toption[@ocaml.doc"Specifies the order of sorted results. If you specify SortOrder, you must also specify SortBy."]}letmake?certificateStatuses=fun?includes->fun?nextToken->fun?maxItems->fun?sortBy->fun?sortOrder->fun()->{certificateStatuses;includes;nextToken;maxItems;sortBy;sortOrder}letto_valuex=structure_to_value[("CertificateStatuses",(Option.mapx.certificateStatuses~f:CertificateStatuses.to_value));("Includes",(Option.mapx.includes~f:Filters.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxItems",(Option.mapx.maxItems~f:MaxItems.to_value));("SortBy",(Option.mapx.sortBy~f:SortBy.to_value));("SortOrder",(Option.mapx.sortOrder~f:SortOrder.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsortOrder=(Option.map~f:SortOrder.of_xml)(Xml.childxml_arg0"SortOrder")inletsortBy=(Option.map~f:SortBy.of_xml)(Xml.childxml_arg0"SortBy")inletmaxItems=(Option.map~f:MaxItems.of_xml)(Xml.childxml_arg0"MaxItems")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletincludes=(Option.map~f:Filters.of_xml)(Xml.childxml_arg0"Includes")inletcertificateStatuses=(Option.map~f:CertificateStatuses.of_xml)(Xml.childxml_arg0"CertificateStatuses")inmake?sortOrder?sortBy?maxItems?nextToken?includes?certificateStatuses()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsortOrder=field_mapjson__"SortOrder"SortOrder.of_jsoninletsortBy=field_mapjson__"SortBy"SortBy.of_jsoninletmaxItems=field_mapjson__"MaxItems"MaxItems.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletincludes=field_mapjson__"Includes"Filters.of_jsoninletcertificateStatuses=field_mapjson__"CertificateStatuses"CertificateStatuses.of_jsoninmake?sortOrder?sortBy?maxItems?nextToken?includes?certificateStatuses()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of certificate ARNs and domain names. You can request that only certificates that match a specific status be listed. You can also filter by specific attributes of the certificate. Default filtering returns only RSA_2048 certificates. For more information, see Filters."]moduleValidationExceptionMessage=structtypenonrect=stringletcontext_="ValidationExceptionMessage"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:"ValidationExceptionMessage"jletto_json=simple_to_jsonto_valueendmoduleValidationException=structtypenonrect={message:ValidationExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ValidationExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ValidationExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ValidationExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The supplied input failed to satisfy constraints of an Amazon Web Services service."]moduleListCertificatesResponse=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"When the list is truncated, this value is present and contains the value to use for the NextToken parameter in a subsequent pagination request."];certificateSummaryList:CertificateSummaryList.toption[@ocaml.doc"A list of ACM certificates."]}typenonrecerror=[`InvalidArgsExceptionofInvalidArgsException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?certificateSummaryList->fun()->{nextToken;certificateSummaryList}leterror_of_jsonnamejson=matchnamewith|"InvalidArgsException"->`InvalidArgsException(InvalidArgsException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArgsException"->`InvalidArgsException(InvalidArgsException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArgsExceptione->`Assoc[("error",(`String"InvalidArgsException"));("details",(InvalidArgsException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("CertificateSummaryList",(Option.mapx.certificateSummaryList~f:CertificateSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateSummaryList=(Option.map~f:CertificateSummaryList.of_xml)(Xml.childxml_arg0"CertificateSummaryList")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?certificateSummaryList?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateSummaryList=field_mapjson__"CertificateSummaryList"CertificateSummaryList.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?certificateSummaryList?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of certificate ARNs and domain names. You can request that only certificates that match a specific status be listed. You can also filter by specific attributes of the certificate. Default filtering returns only RSA_2048 certificates. For more information, see Filters."]moduleListTagsForCertificateRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"String that contains the ARN of the ACM certificate for which you want to list the tags. This must have the following form: arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 For more information about ARNs, see Amazon Resource Names (ARNs)."]}letcontext_="ListTagsForCertificateRequest"letmake~certificateArn=fun()->{certificateArn}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags that have been applied to the ACM certificate. Use the certificate's Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, use the AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate action."]moduleListTagsForCertificateResponse=structtypenonrect={tags:TagList.toption[@ocaml.doc"The key-value pairs that define the applied tags."]}typenonrecerror=[`InvalidArnExceptionofInvalidArnException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArnException"->`InvalidArnException(InvalidArnException.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|`InvalidArnExceptione->`Assoc[("error",(`String"InvalidArnException"));("details",(InvalidArnException.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"Lists the tags that have been applied to the ACM certificate. Use the certificate's Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, use the AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate action."]modulePcaArn=structtypenonrect=stringletcontext_="PcaArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:[\\w+=/,.@-]+:acm-pca:[\\w+=/,.@-]*:[0-9]+:[\\w+=,.@-]+(/[\\w+=,.@-]+)*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PcaArn"jletto_json=simple_to_jsonto_valueendmodulePutAccountConfigurationRequest=structtypenonrect={expiryEvents:ExpiryEventsConfiguration.toption[@ocaml.doc"Specifies expiration events associated with an account."];idempotencyToken:IdempotencyToken.t[@ocaml.doc"Customer-chosen string used to distinguish between calls to PutAccountConfiguration. Idempotency tokens time out after one hour. If you call PutAccountConfiguration multiple times with the same unexpired idempotency token, ACM treats it as the same request and returns the original result. If you change the idempotency token for each call, ACM treats each call as a new request."]}letcontext_="PutAccountConfigurationRequest"letmake?expiryEvents=fun~idempotencyToken->fun()->{expiryEvents;idempotencyToken}letto_valuex=structure_to_value[("ExpiryEvents",(Option.mapx.expiryEvents~f:ExpiryEventsConfiguration.to_value));("IdempotencyToken",(Some(IdempotencyToken.to_valuex.idempotencyToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidempotencyToken=IdempotencyToken.of_xml(Xml.child_exn~context:context_xml_arg0"IdempotencyToken")inletexpiryEvents=(Option.map~f:ExpiryEventsConfiguration.of_xml)(Xml.childxml_arg0"ExpiryEvents")inmake~idempotencyToken?expiryEvents()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidempotencyToken=field_map_exnjson__"IdempotencyToken"IdempotencyToken.of_jsoninletexpiryEvents=field_mapjson__"ExpiryEvents"ExpiryEventsConfiguration.of_jsoninmake~idempotencyToken?expiryEvents()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or modifies account-level configurations in ACM. The supported configuration option is DaysBeforeExpiry. This option specifies the number of days prior to certificate expiration when ACM starts generating EventBridge events. ACM sends one event per day per certificate until the certificate expires. By default, accounts receive events starting 45 days before certificate expiration."]moduleRemoveTagsFromCertificateRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"String that contains the ARN of the ACM Certificate with one or more tags that you want to remove. This must be of the form: arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 For more information about ARNs, see Amazon Resource Names (ARNs)."];tags:TagList.t[@ocaml.doc"The key-value pair that defines the tag to remove."]}letcontext_="RemoveTagsFromCertificateRequest"letmake~certificateArn=fun~tags->fun()->{certificateArn;tags}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)));("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")inletcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~tags~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagList.of_jsoninletcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~tags~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. If you do not specify the value portion of the tag when calling this function, the tag will be removed regardless of value. If you specify a value, the tag is removed only if it is associated with the specified value. To add tags to a certificate, use the AddTagsToCertificate action. To view all of the tags that have been applied to a specific ACM certificate, use the ListTagsForCertificate action."]moduleRenewCertificateRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"String that contains the ARN of the ACM certificate to be renewed. This must be of the form: arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 For more information about ARNs, see Amazon Resource Names (ARNs)."]}letcontext_="RenewCertificateRequest"letmake~certificateArn=fun()->{certificateArn}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Renews an eligible ACM certificate. In order to renew your Amazon Web Services Private CA certificates with ACM, you must first grant the ACM service principal permission to do so. For more information, see Testing Managed Renewal in the ACM User Guide."]moduleRequestCertificateRequest=structtypenonrect={domainName:DomainNameString.t[@ocaml.doc"Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. In compliance with RFC 5280, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length."];validationMethod:ValidationMethod.toption[@ocaml.doc"The method you want to use if you are requesting a public certificate to validate that you own or control domain. You can validate with DNS or validate with email. We recommend that you use DNS validation."];subjectAlternativeNames:DomainList.toption[@ocaml.doc"Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. For example, add the name www.example.net to a certificate for which the DomainName field is www.example.com if users can reach your site by using either name. The maximum number of domain names that you can add to an ACM certificate is 100. However, the initial quota is 10 domain names. If you need more than 10 names, you must request a quota increase. For more information, see Quotas. The maximum length of a SAN DNS name is 253 octets. The name is made up of multiple labels separated by periods. No label can be longer than 63 octets. Consider the following examples: (63 octets).(63 octets).(63 octets).(61 octets) is legal because the total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets. (64 octets).(63 octets).(63 octets).(61 octets) is not legal because the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds 63 octets. (63 octets).(63 octets).(63 octets).(62 octets) is not legal because the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets."];idempotencyToken:IdempotencyToken.toption[@ocaml.doc"Customer chosen string that can be used to distinguish between calls to RequestCertificate. Idempotency tokens time out after one hour. Therefore, if you call RequestCertificate multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates."];domainValidationOptions:DomainValidationOptionList.toption[@ocaml.doc"The domain name that you want ACM to use to send you emails so that you can validate domain ownership."];options:CertificateOptions.toption[@ocaml.doc"You can use this parameter to specify whether to add the certificate to a certificate transparency log and export your certificate. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser. For more information, see Opting Out of Certificate Transparency Logging. You can export public ACM certificates to use with Amazon Web Services services as well as outside the Amazon Web Services Cloud. For more information, see Certificate Manager exportable public certificate."];certificateAuthorityArn:PcaArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. If you do not provide an ARN and you are trying to request a private certificate, ACM will attempt to issue a public certificate. For more information about private CAs, see the Amazon Web Services Private Certificate Authority user guide. The ARN must have the following form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012"];tags:TagList.toption[@ocaml.doc"One or more resource tags to associate with the certificate."];keyAlgorithm:KeyAlgorithm.toption[@ocaml.doc"Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not supported by all network clients. Some Amazon Web Services services may require RSA keys, or only support ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not broken. Check the requirements for the Amazon Web Services service where you plan to deploy your certificate. For more information about selecting an algorithm, see Key algorithms. Algorithms supported for an ACM certificate request include: RSA_2048 EC_prime256v1 EC_secp384r1 Other listed algorithms are for imported certificates only. When you request a private PKI certificate signed by a CA from Amazon Web Services Private CA, the specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key. Default: RSA_2048"];managedBy:CertificateManagedBy.toption[@ocaml.doc"Identifies the Amazon Web Services service that manages the certificate issued by ACM."]}letcontext_="RequestCertificateRequest"letmake?validationMethod=fun?subjectAlternativeNames->fun?idempotencyToken->fun?domainValidationOptions->fun?options->fun?certificateAuthorityArn->fun?tags->fun?keyAlgorithm->fun?managedBy->fun~domainName->fun()->{validationMethod;subjectAlternativeNames;idempotencyToken;domainValidationOptions;options;certificateAuthorityArn;tags;keyAlgorithm;managedBy;domainName}letto_valuex=structure_to_value[("DomainName",(Some(DomainNameString.to_valuex.domainName)));("ValidationMethod",(Option.mapx.validationMethod~f:ValidationMethod.to_value));("SubjectAlternativeNames",(Option.mapx.subjectAlternativeNames~f:DomainList.to_value));("IdempotencyToken",(Option.mapx.idempotencyToken~f:IdempotencyToken.to_value));("DomainValidationOptions",(Option.mapx.domainValidationOptions~f:DomainValidationOptionList.to_value));("Options",(Option.mapx.options~f:CertificateOptions.to_value));("CertificateAuthorityArn",(Option.mapx.certificateAuthorityArn~f:PcaArn.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value));("KeyAlgorithm",(Option.mapx.keyAlgorithm~f:KeyAlgorithm.to_value));("ManagedBy",(Option.mapx.managedBy~f:CertificateManagedBy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmanagedBy=(Option.map~f:CertificateManagedBy.of_xml)(Xml.childxml_arg0"ManagedBy")inletkeyAlgorithm=(Option.map~f:KeyAlgorithm.of_xml)(Xml.childxml_arg0"KeyAlgorithm")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletcertificateAuthorityArn=(Option.map~f:PcaArn.of_xml)(Xml.childxml_arg0"CertificateAuthorityArn")inletoptions=(Option.map~f:CertificateOptions.of_xml)(Xml.childxml_arg0"Options")inletdomainValidationOptions=(Option.map~f:DomainValidationOptionList.of_xml)(Xml.childxml_arg0"DomainValidationOptions")inletidempotencyToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"IdempotencyToken")inletsubjectAlternativeNames=(Option.map~f:DomainList.of_xml)(Xml.childxml_arg0"SubjectAlternativeNames")inletvalidationMethod=(Option.map~f:ValidationMethod.of_xml)(Xml.childxml_arg0"ValidationMethod")inletdomainName=DomainNameString.of_xml(Xml.child_exn~context:context_xml_arg0"DomainName")inmake?managedBy?keyAlgorithm?tags?certificateAuthorityArn?options?domainValidationOptions?idempotencyToken?subjectAlternativeNames?validationMethod~domainName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmanagedBy=field_mapjson__"ManagedBy"CertificateManagedBy.of_jsoninletkeyAlgorithm=field_mapjson__"KeyAlgorithm"KeyAlgorithm.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletcertificateAuthorityArn=field_mapjson__"CertificateAuthorityArn"PcaArn.of_jsoninletoptions=field_mapjson__"Options"CertificateOptions.of_jsoninletdomainValidationOptions=field_mapjson__"DomainValidationOptions"DomainValidationOptionList.of_jsoninletidempotencyToken=field_mapjson__"IdempotencyToken"IdempotencyToken.of_jsoninletsubjectAlternativeNames=field_mapjson__"SubjectAlternativeNames"DomainList.of_jsoninletvalidationMethod=field_mapjson__"ValidationMethod"ValidationMethod.of_jsoninletdomainName=field_map_exnjson__"DomainName"DomainNameString.of_jsoninmake?managedBy?keyAlgorithm?tags?certificateAuthorityArn?options?domainValidationOptions?idempotencyToken?subjectAlternativeNames?validationMethod~domainName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Requests an ACM certificate for use with other Amazon Web Services services. To request an ACM certificate, you must specify a fully qualified domain name (FQDN) in the DomainName parameter. You can also specify additional FQDNs in the SubjectAlternativeNames parameter. If you are requesting a private certificate, domain validation is not required. If you are requesting a public certificate, each domain name that you specify must be validated to verify that you own or control the domain. You can use DNS validation or email validation. We recommend that you use DNS validation. ACM behavior differs from the RFC 6125 specification of the certificate validation process. ACM first checks for a Subject Alternative Name, and, if it finds one, ignores the common name (CN). After successful completion of the RequestCertificate action, there is a delay of several seconds before you can retrieve information about the new certificate."]moduleRequestCertificateResponse=structtypenonrect={certificateArn:Arn.toption[@ocaml.doc"String that contains the ARN of the issued certificate. This must be of the form: arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012"]}typenonrecerror=[`InvalidArnExceptionofInvalidArnException.t|`InvalidDomainValidationOptionsExceptionofInvalidDomainValidationOptionsException.t|`InvalidParameterExceptionofInvalidParameterException.t|`InvalidTagExceptionofInvalidTagException.t|`LimitExceededExceptionofLimitExceededException.t|`TagPolicyExceptionofTagPolicyException.t|`TooManyTagsExceptionofTooManyTagsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?certificateArn=fun()->{certificateArn}leterror_of_jsonnamejson=matchnamewith|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_jsonjson)|"InvalidDomainValidationOptionsException"->`InvalidDomainValidationOptionsException(InvalidDomainValidationOptionsException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"InvalidTagException"->`InvalidTagException(InvalidTagException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_jsonjson)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_xmlxml)|"InvalidDomainValidationOptionsException"->`InvalidDomainValidationOptionsException(InvalidDomainValidationOptionsException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"InvalidTagException"->`InvalidTagException(InvalidTagException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"TagPolicyException"->`TagPolicyException(TagPolicyException.of_xmlxml)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArnExceptione->`Assoc[("error",(`String"InvalidArnException"));("details",(InvalidArnException.to_jsone))]|`InvalidDomainValidationOptionsExceptione->`Assoc[("error",(`String"InvalidDomainValidationOptionsException"));("details",(InvalidDomainValidationOptionsException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`InvalidTagExceptione->`Assoc[("error",(`String"InvalidTagException"));("details",(InvalidTagException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`TagPolicyExceptione->`Assoc[("error",(`String"TagPolicyException"));("details",(TagPolicyException.to_jsone))]|`TooManyTagsExceptione->`Assoc[("error",(`String"TooManyTagsException"));("details",(TooManyTagsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CertificateArn",(Option.mapx.certificateArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"CertificateArn")inmake?certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateArn=field_mapjson__"CertificateArn"Arn.of_jsoninmake?certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Requests an ACM certificate for use with other Amazon Web Services services. To request an ACM certificate, you must specify a fully qualified domain name (FQDN) in the DomainName parameter. You can also specify additional FQDNs in the SubjectAlternativeNames parameter. If you are requesting a private certificate, domain validation is not required. If you are requesting a public certificate, each domain name that you specify must be validated to verify that you own or control the domain. You can use DNS validation or email validation. We recommend that you use DNS validation. ACM behavior differs from the RFC 6125 specification of the certificate validation process. ACM first checks for a Subject Alternative Name, and, if it finds one, ignores the common name (CN). After successful completion of the RequestCertificate action, there is a delay of several seconds before you can retrieve information about the new certificate."]moduleResendValidationEmailRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"String that contains the ARN of the requested certificate. The certificate ARN is generated and returned by the RequestCertificate action as soon as the request is made. By default, using this parameter causes email to be sent to all top-level domains you specified in the certificate request. The ARN must be of the form: arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012"];domain:DomainNameString.t[@ocaml.doc"The fully qualified domain name (FQDN) of the certificate that needs to be validated."];validationDomain:DomainNameString.t[@ocaml.doc"The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the Domain value or a superdomain of the Domain value. For example, if you requested a certificate for site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com, ACM sends email to the the following five addresses: admin\\@subdomain.example.com administrator\\@subdomain.example.com hostmaster\\@subdomain.example.com postmaster\\@subdomain.example.com webmaster\\@subdomain.example.com"]}letcontext_="ResendValidationEmailRequest"letmake~certificateArn=fun~domain->fun~validationDomain->fun()->{certificateArn;domain;validationDomain}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)));("Domain",(Some(DomainNameString.to_valuex.domain)));("ValidationDomain",(Some(DomainNameString.to_valuex.validationDomain)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalidationDomain=DomainNameString.of_xml(Xml.child_exn~context:context_xml_arg0"ValidationDomain")inletdomain=DomainNameString.of_xml(Xml.child_exn~context:context_xml_arg0"Domain")inletcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~validationDomain~domain~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalidationDomain=field_map_exnjson__"ValidationDomain"DomainNameString.of_jsoninletdomain=field_map_exnjson__"Domain"DomainNameString.of_jsoninletcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~validationDomain~domain~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resends the email that requests domain ownership validation. The domain owner or an authorized representative must approve the ACM certificate before it can be issued. The certificate can be approved by clicking a link in the mail to navigate to the Amazon certificate approval website and then clicking I Approve. However, the validation email can be blocked by spam filters. Therefore, if you do not receive the original mail, you can request that the mail be resent within 72 hours of requesting the ACM certificate. If more than 72 hours have elapsed since your original request or since your last attempt to resend validation mail, you must request a new certificate. For more information about setting up your contact email addresses, see Configure Email for your Domain."]moduleResourceInUseException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_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")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The certificate is in use by another Amazon Web Services service in the caller's account. Remove the association and try again."]moduleRevokeCertificateRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the public or private certificate that will be revoked. The ARN must have the following form: arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012"];revocationReason:RevocationReason.t[@ocaml.doc"Specifies why you revoked the certificate."]}letcontext_="RevokeCertificateRequest"letmake~certificateArn=fun~revocationReason->fun()->{certificateArn;revocationReason}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)));("RevocationReason",(Some(RevocationReason.to_valuex.revocationReason)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrevocationReason=RevocationReason.of_xml(Xml.child_exn~context:context_xml_arg0"RevocationReason")inletcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~revocationReason~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrevocationReason=field_map_exnjson__"RevocationReason"RevocationReason.of_jsoninletcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~revocationReason~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Revokes a public ACM certificate. You can only revoke certificates that have been previously exported. Once a certificate is revoked, you cannot reuse the certificate. Revoking a certificate is permanent."]moduleRevokeCertificateResponse=structtypenonrect={certificateArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the public or private certificate that was revoked."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InvalidArnExceptionofInvalidArnException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?certificateArn=fun()->{certificateArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InvalidArnException"->`InvalidArnException(InvalidArnException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InvalidArnExceptione->`Assoc[("error",(`String"InvalidArnException"));("details",(InvalidArnException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CertificateArn",(Option.mapx.certificateArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"CertificateArn")inmake?certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateArn=field_mapjson__"CertificateArn"Arn.of_jsoninmake?certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Revokes a public ACM certificate. You can only revoke certificates that have been previously exported. Once a certificate is revoked, you cannot reuse the certificate. Revoking a certificate is permanent."]moduleSearchMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:500)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for SearchMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSearchCertificatesSortOrder=structtypenonrect=|ASCENDING|DESCENDING|Non_static_idofstringletmakei=iletto_string=function|ASCENDING->"ASCENDING"|DESCENDING->"DESCENDING"|Non_static_ids->sletof_string=function|"ASCENDING"->ASCENDING|"DESCENDING"->DESCENDING|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 SearchCertificatesSortOrder"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SearchCertificatesSortOrder"j)letto_json=simple_to_jsonto_valueendmoduleSearchCertificatesSortBy=structtypenonrect=|CREATED_AT|NOT_AFTER|STATUS|RENEWAL_STATUS|EXPORTED|IN_USE|NOT_BEFORE|KEY_ALGORITHM|TYPE|CERTIFICATE_ARN|COMMON_NAME|REVOKED_AT|RENEWAL_ELIGIBILITY|ISSUED_AT|MANAGED_BY|EXPORT_OPTION|VALIDATION_METHOD|IMPORTED_AT|Non_static_idofstringletmakei=iletto_string=function|CREATED_AT->"CREATED_AT"|NOT_AFTER->"NOT_AFTER"|STATUS->"STATUS"|RENEWAL_STATUS->"RENEWAL_STATUS"|EXPORTED->"EXPORTED"|IN_USE->"IN_USE"|NOT_BEFORE->"NOT_BEFORE"|KEY_ALGORITHM->"KEY_ALGORITHM"|TYPE->"TYPE"|CERTIFICATE_ARN->"CERTIFICATE_ARN"|COMMON_NAME->"COMMON_NAME"|REVOKED_AT->"REVOKED_AT"|RENEWAL_ELIGIBILITY->"RENEWAL_ELIGIBILITY"|ISSUED_AT->"ISSUED_AT"|MANAGED_BY->"MANAGED_BY"|EXPORT_OPTION->"EXPORT_OPTION"|VALIDATION_METHOD->"VALIDATION_METHOD"|IMPORTED_AT->"IMPORTED_AT"|Non_static_ids->sletof_string=function|"CREATED_AT"->CREATED_AT|"NOT_AFTER"->NOT_AFTER|"STATUS"->STATUS|"RENEWAL_STATUS"->RENEWAL_STATUS|"EXPORTED"->EXPORTED|"IN_USE"->IN_USE|"NOT_BEFORE"->NOT_BEFORE|"KEY_ALGORITHM"->KEY_ALGORITHM|"TYPE"->TYPE|"CERTIFICATE_ARN"->CERTIFICATE_ARN|"COMMON_NAME"->COMMON_NAME|"REVOKED_AT"->REVOKED_AT|"RENEWAL_ELIGIBILITY"->RENEWAL_ELIGIBILITY|"ISSUED_AT"->ISSUED_AT|"MANAGED_BY"->MANAGED_BY|"EXPORT_OPTION"->EXPORT_OPTION|"VALIDATION_METHOD"->VALIDATION_METHOD|"IMPORTED_AT"->IMPORTED_AT|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 SearchCertificatesSortBy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SearchCertificatesSortBy"j)letto_json=simple_to_jsonto_valueendmoduleSearchCertificatesRequest=structtypenonrect={filterStatement:CertificateFilterStatement.toption[@ocaml.doc"A filter statement that defines the search criteria. You can combine multiple filters using AND, OR, and NOT logical operators to create complex queries."];maxResults:SearchMaxResults.toption[@ocaml.doc"The maximum number of results to return in the response. Default is 100."];nextToken:NextToken.toption[@ocaml.doc"Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received."];sortBy:SearchCertificatesSortBy.toption[@ocaml.doc"Specifies the field to sort results by. Valid values are CREATED_AT, NOT_AFTER, STATUS, RENEWAL_STATUS, EXPORTED, IN_USE, NOT_BEFORE, KEY_ALGORITHM, TYPE, CERTIFICATE_ARN, COMMON_NAME, REVOKED_AT, RENEWAL_ELIGIBILITY, ISSUED_AT, MANAGED_BY, EXPORT_OPTION, VALIDATION_METHOD, and IMPORTED_AT."];sortOrder:SearchCertificatesSortOrder.toption[@ocaml.doc"Specifies the order of sorted results. Valid values are ASCENDING or DESCENDING."]}letmake?filterStatement=fun?maxResults->fun?nextToken->fun?sortBy->fun?sortOrder->fun()->{filterStatement;maxResults;nextToken;sortBy;sortOrder}letto_valuex=structure_to_value[("FilterStatement",(Option.mapx.filterStatement~f:CertificateFilterStatement.to_value));("MaxResults",(Option.mapx.maxResults~f:SearchMaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("SortBy",(Option.mapx.sortBy~f:SearchCertificatesSortBy.to_value));("SortOrder",(Option.mapx.sortOrder~f:SearchCertificatesSortOrder.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsortOrder=(Option.map~f:SearchCertificatesSortOrder.of_xml)(Xml.childxml_arg0"SortOrder")inletsortBy=(Option.map~f:SearchCertificatesSortBy.of_xml)(Xml.childxml_arg0"SortBy")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:SearchMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletfilterStatement=(Option.map~f:CertificateFilterStatement.of_xml)(Xml.childxml_arg0"FilterStatement")inmake?sortOrder?sortBy?nextToken?maxResults?filterStatement()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsortOrder=field_mapjson__"SortOrder"SearchCertificatesSortOrder.of_jsoninletsortBy=field_mapjson__"SortBy"SearchCertificatesSortBy.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"SearchMaxResults.of_jsoninletfilterStatement=field_mapjson__"FilterStatement"CertificateFilterStatement.of_jsoninmake?sortOrder?sortBy?nextToken?maxResults?filterStatement()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of certificates matching search criteria. You can filter certificates by X.509 attributes and ACM specific properties like certificate status, type and renewal eligibility. This operation provides more flexible filtering than ListCertificates by supporting complex filter statements."]moduleSearchCertificatesResponse=structtypenonrect={results:CertificateSearchResultList.toption[@ocaml.doc"A list of certificate search results containing certificate ARNs, X.509 attributes, and ACM metadata."];nextToken:NextToken.toption[@ocaml.doc"When the list is truncated, this value is present and contains the value to use for the NextToken parameter in a subsequent pagination request."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?results=fun?nextToken->fun()->{results;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Results",(Option.mapx.results~f:CertificateSearchResultList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletresults=(Option.map~f:CertificateSearchResultList.of_xml)(Xml.childxml_arg0"Results")inmake?nextToken?results()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletresults=field_mapjson__"Results"CertificateSearchResultList.of_jsoninmake?nextToken?results()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of certificates matching search criteria. You can filter certificates by X.509 attributes and ACM specific properties like certificate status, type and renewal eligibility. This operation provides more flexible filtering than ListCertificates by supporting complex filter statements."]moduleUpdateCertificateOptionsRequest=structtypenonrect={certificateArn:Arn.t[@ocaml.doc"ARN of the requested certificate to update. This must be of the form: arn:aws:acm:us-east-1:account:certificate/12345678-1234-1234-1234-123456789012"];options:CertificateOptions.t[@ocaml.doc"Use to update the options for your certificate. Currently, you can specify whether to add your certificate to a transparency log or export your certificate. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser."]}letcontext_="UpdateCertificateOptionsRequest"letmake~certificateArn=fun~options->fun()->{certificateArn;options}letto_valuex=structure_to_value[("CertificateArn",(Some(Arn.to_valuex.certificateArn)));("Options",(Some(CertificateOptions.to_valuex.options)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptions=CertificateOptions.of_xml(Xml.child_exn~context:context_xml_arg0"Options")inletcertificateArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateArn")inmake~options~certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptions=field_map_exnjson__"Options"CertificateOptions.of_jsoninletcertificateArn=field_map_exnjson__"CertificateArn"Arn.of_jsoninmake~options~certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a certificate. You can use this function to specify whether to opt in to or out of recording your certificate in a certificate transparency log and exporting. For more information, see Opting Out of Certificate Transparency Logging and Certificate Manager Exportable Managed Certificates."]