1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932(* 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.payment_cryptographyletapiVersion="2021-09-14"letendpointPrefix="controlplane.payment-cryptography"letserviceFullName="Payment Cryptography Control Plane"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"lettargetPrefix="PaymentCryptographyControlPlane"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[]))])modulePrimitiveBoolean=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_valueendmoduleOptionalBlockId=structtypenonrect=stringletcontext_="OptionalBlockId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:2)>>=(fun()->check_patterni~pattern:"[0-9A-Z]{2}+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"OptionalBlockId"jletto_json=simple_to_jsonto_valueendmoduleOptionalBlockValue=structtypenonrect=stringletcontext_="OptionalBlockValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:108)>>=(fun()->check_patterni~pattern:"[0-9a-zA-Z]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"OptionalBlockValue"jletto_json=simple_to_jsonto_valueendmoduleKeyReplicationState=structtypenonrect=|IN_PROGRESS|DELETE_IN_PROGRESS|FAILED|SYNCHRONIZED|Non_static_idofstringletmakei=iletto_string=function|IN_PROGRESS->"IN_PROGRESS"|DELETE_IN_PROGRESS->"DELETE_IN_PROGRESS"|FAILED->"FAILED"|SYNCHRONIZED->"SYNCHRONIZED"|Non_static_ids->sletof_string=function|"IN_PROGRESS"->IN_PROGRESS|"DELETE_IN_PROGRESS"->DELETE_IN_PROGRESS|"FAILED"->FAILED|"SYNCHRONIZED"->SYNCHRONIZED|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 KeyReplicationState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyReplicationState"j)letto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleKeyAlgorithm=structtypenonrect=|TDES_2KEY|TDES_3KEY|AES_128|AES_192|AES_256|HMAC_SHA256|HMAC_SHA384|HMAC_SHA512|HMAC_SHA224|RSA_2048|RSA_3072|RSA_4096|ECC_NIST_P256|ECC_NIST_P384|ECC_NIST_P521|Non_static_idofstringletmakei=iletto_string=function|TDES_2KEY->"TDES_2KEY"|TDES_3KEY->"TDES_3KEY"|AES_128->"AES_128"|AES_192->"AES_192"|AES_256->"AES_256"|HMAC_SHA256->"HMAC_SHA256"|HMAC_SHA384->"HMAC_SHA384"|HMAC_SHA512->"HMAC_SHA512"|HMAC_SHA224->"HMAC_SHA224"|RSA_2048->"RSA_2048"|RSA_3072->"RSA_3072"|RSA_4096->"RSA_4096"|ECC_NIST_P256->"ECC_NIST_P256"|ECC_NIST_P384->"ECC_NIST_P384"|ECC_NIST_P521->"ECC_NIST_P521"|Non_static_ids->sletof_string=function|"TDES_2KEY"->TDES_2KEY|"TDES_3KEY"->TDES_3KEY|"AES_128"->AES_128|"AES_192"->AES_192|"AES_256"->AES_256|"HMAC_SHA256"->HMAC_SHA256|"HMAC_SHA384"->HMAC_SHA384|"HMAC_SHA512"->HMAC_SHA512|"HMAC_SHA224"->HMAC_SHA224|"RSA_2048"->RSA_2048|"RSA_3072"->RSA_3072|"RSA_4096"->RSA_4096|"ECC_NIST_P256"->ECC_NIST_P256|"ECC_NIST_P384"->ECC_NIST_P384|"ECC_NIST_P521"->ECC_NIST_P521|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_valueendmoduleKeyClass=structtypenonrect=|SYMMETRIC_KEY|ASYMMETRIC_KEY_PAIR|PRIVATE_KEY|PUBLIC_KEY|Non_static_idofstringletmakei=iletto_string=function|SYMMETRIC_KEY->"SYMMETRIC_KEY"|ASYMMETRIC_KEY_PAIR->"ASYMMETRIC_KEY_PAIR"|PRIVATE_KEY->"PRIVATE_KEY"|PUBLIC_KEY->"PUBLIC_KEY"|Non_static_ids->sletof_string=function|"SYMMETRIC_KEY"->SYMMETRIC_KEY|"ASYMMETRIC_KEY_PAIR"->ASYMMETRIC_KEY_PAIR|"PRIVATE_KEY"->PRIVATE_KEY|"PUBLIC_KEY"->PUBLIC_KEY|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 KeyClass"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyClass"j)letto_json=simple_to_jsonto_valueendmoduleKeyModesOfUse=structtypenonrect={encrypt:PrimitiveBoolean.toption[@ocaml.doc"Speci\239\172\129es whether an Amazon Web Services Payment Cryptography key can be used to encrypt data."];decrypt:PrimitiveBoolean.toption[@ocaml.doc"Speci\239\172\129es whether an Amazon Web Services Payment Cryptography key can be used to decrypt data."];wrap:PrimitiveBoolean.toption[@ocaml.doc"Speci\239\172\129es whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys."];unwrap:PrimitiveBoolean.toption[@ocaml.doc"Speci\239\172\129es whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys."];generate:PrimitiveBoolean.toption[@ocaml.doc"Speci\239\172\129es whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys."];sign:PrimitiveBoolean.toption[@ocaml.doc"Speci\239\172\129es whether an Amazon Web Services Payment Cryptography key can be used for signing."];verify:PrimitiveBoolean.toption[@ocaml.doc"Speci\239\172\129es whether an Amazon Web Services Payment Cryptography key can be used to verify signatures."];deriveKey:PrimitiveBoolean.toption[@ocaml.doc"Speci\239\172\129es whether an Amazon Web Services Payment Cryptography key can be used to derive new keys."];noRestrictions:PrimitiveBoolean.toption[@ocaml.doc"Speci\239\172\129es whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage."]}letmake?encrypt=fun?decrypt->fun?wrap->fun?unwrap->fun?generate->fun?sign->fun?verify->fun?deriveKey->fun?noRestrictions->fun()->{encrypt;decrypt;wrap;unwrap;generate;sign;verify;deriveKey;noRestrictions}letto_valuex=structure_to_value[("Encrypt",(Option.mapx.encrypt~f:PrimitiveBoolean.to_value));("Decrypt",(Option.mapx.decrypt~f:PrimitiveBoolean.to_value));("Wrap",(Option.mapx.wrap~f:PrimitiveBoolean.to_value));("Unwrap",(Option.mapx.unwrap~f:PrimitiveBoolean.to_value));("Generate",(Option.mapx.generate~f:PrimitiveBoolean.to_value));("Sign",(Option.mapx.sign~f:PrimitiveBoolean.to_value));("Verify",(Option.mapx.verify~f:PrimitiveBoolean.to_value));("DeriveKey",(Option.mapx.deriveKey~f:PrimitiveBoolean.to_value));("NoRestrictions",(Option.mapx.noRestrictions~f:PrimitiveBoolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnoRestrictions=(Option.map~f:PrimitiveBoolean.of_xml)(Xml.childxml_arg0"NoRestrictions")inletderiveKey=(Option.map~f:PrimitiveBoolean.of_xml)(Xml.childxml_arg0"DeriveKey")inletverify=(Option.map~f:PrimitiveBoolean.of_xml)(Xml.childxml_arg0"Verify")inletsign=(Option.map~f:PrimitiveBoolean.of_xml)(Xml.childxml_arg0"Sign")inletgenerate=(Option.map~f:PrimitiveBoolean.of_xml)(Xml.childxml_arg0"Generate")inletunwrap=(Option.map~f:PrimitiveBoolean.of_xml)(Xml.childxml_arg0"Unwrap")inletwrap=(Option.map~f:PrimitiveBoolean.of_xml)(Xml.childxml_arg0"Wrap")inletdecrypt=(Option.map~f:PrimitiveBoolean.of_xml)(Xml.childxml_arg0"Decrypt")inletencrypt=(Option.map~f:PrimitiveBoolean.of_xml)(Xml.childxml_arg0"Encrypt")inmake?noRestrictions?deriveKey?verify?sign?generate?unwrap?wrap?decrypt?encrypt()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnoRestrictions=field_mapjson__"NoRestrictions"PrimitiveBoolean.of_jsoninletderiveKey=field_mapjson__"DeriveKey"PrimitiveBoolean.of_jsoninletverify=field_mapjson__"Verify"PrimitiveBoolean.of_jsoninletsign=field_mapjson__"Sign"PrimitiveBoolean.of_jsoninletgenerate=field_mapjson__"Generate"PrimitiveBoolean.of_jsoninletunwrap=field_mapjson__"Unwrap"PrimitiveBoolean.of_jsoninletwrap=field_mapjson__"Wrap"PrimitiveBoolean.of_jsoninletdecrypt=field_mapjson__"Decrypt"PrimitiveBoolean.of_jsoninletencrypt=field_mapjson__"Encrypt"PrimitiveBoolean.of_jsoninmake?noRestrictions?deriveKey?verify?sign?generate?unwrap?wrap?decrypt?encrypt()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The list of cryptographic operations that you can perform using the key. The modes of use are de\239\172\129ned in section A.5.3 of the TR-31 spec."]moduleKeyUsage=structtypenonrect=|TR31_B0_BASE_DERIVATION_KEY|TR31_C0_CARD_VERIFICATION_KEY|TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY|TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION|TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS|TR31_E1_EMV_MKEY_CONFIDENTIALITY|TR31_E2_EMV_MKEY_INTEGRITY|TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS|TR31_E5_EMV_MKEY_CARD_PERSONALIZATION|TR31_E6_EMV_MKEY_OTHER|TR31_K0_KEY_ENCRYPTION_KEY|TR31_K1_KEY_BLOCK_PROTECTION_KEY|TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT|TR31_M0_ISO_16609_MAC_KEY|TR31_M3_ISO_9797_3_MAC_KEY|TR31_M1_ISO_9797_1_MAC_KEY|TR31_M6_ISO_9797_5_CMAC_KEY|TR31_M7_HMAC_KEY|TR31_P0_PIN_ENCRYPTION_KEY|TR31_P1_PIN_GENERATION_KEY|TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE|TR31_V1_IBM3624_PIN_VERIFICATION_KEY|TR31_V2_VISA_PIN_VERIFICATION_KEY|TR31_K2_TR34_ASYMMETRIC_KEY|Non_static_idofstringletmakei=iletto_string=function|TR31_B0_BASE_DERIVATION_KEY->"TR31_B0_BASE_DERIVATION_KEY"|TR31_C0_CARD_VERIFICATION_KEY->"TR31_C0_CARD_VERIFICATION_KEY"|TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY->"TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY"|TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION->"TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION"|TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS->"TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS"|TR31_E1_EMV_MKEY_CONFIDENTIALITY->"TR31_E1_EMV_MKEY_CONFIDENTIALITY"|TR31_E2_EMV_MKEY_INTEGRITY->"TR31_E2_EMV_MKEY_INTEGRITY"|TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS->"TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS"|TR31_E5_EMV_MKEY_CARD_PERSONALIZATION->"TR31_E5_EMV_MKEY_CARD_PERSONALIZATION"|TR31_E6_EMV_MKEY_OTHER->"TR31_E6_EMV_MKEY_OTHER"|TR31_K0_KEY_ENCRYPTION_KEY->"TR31_K0_KEY_ENCRYPTION_KEY"|TR31_K1_KEY_BLOCK_PROTECTION_KEY->"TR31_K1_KEY_BLOCK_PROTECTION_KEY"|TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT->"TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT"|TR31_M0_ISO_16609_MAC_KEY->"TR31_M0_ISO_16609_MAC_KEY"|TR31_M3_ISO_9797_3_MAC_KEY->"TR31_M3_ISO_9797_3_MAC_KEY"|TR31_M1_ISO_9797_1_MAC_KEY->"TR31_M1_ISO_9797_1_MAC_KEY"|TR31_M6_ISO_9797_5_CMAC_KEY->"TR31_M6_ISO_9797_5_CMAC_KEY"|TR31_M7_HMAC_KEY->"TR31_M7_HMAC_KEY"|TR31_P0_PIN_ENCRYPTION_KEY->"TR31_P0_PIN_ENCRYPTION_KEY"|TR31_P1_PIN_GENERATION_KEY->"TR31_P1_PIN_GENERATION_KEY"|TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE->"TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE"|TR31_V1_IBM3624_PIN_VERIFICATION_KEY->"TR31_V1_IBM3624_PIN_VERIFICATION_KEY"|TR31_V2_VISA_PIN_VERIFICATION_KEY->"TR31_V2_VISA_PIN_VERIFICATION_KEY"|TR31_K2_TR34_ASYMMETRIC_KEY->"TR31_K2_TR34_ASYMMETRIC_KEY"|Non_static_ids->sletof_string=function|"TR31_B0_BASE_DERIVATION_KEY"->TR31_B0_BASE_DERIVATION_KEY|"TR31_C0_CARD_VERIFICATION_KEY"->TR31_C0_CARD_VERIFICATION_KEY|"TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY"->TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY|"TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION"->TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION|"TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS"->TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS|"TR31_E1_EMV_MKEY_CONFIDENTIALITY"->TR31_E1_EMV_MKEY_CONFIDENTIALITY|"TR31_E2_EMV_MKEY_INTEGRITY"->TR31_E2_EMV_MKEY_INTEGRITY|"TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS"->TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS|"TR31_E5_EMV_MKEY_CARD_PERSONALIZATION"->TR31_E5_EMV_MKEY_CARD_PERSONALIZATION|"TR31_E6_EMV_MKEY_OTHER"->TR31_E6_EMV_MKEY_OTHER|"TR31_K0_KEY_ENCRYPTION_KEY"->TR31_K0_KEY_ENCRYPTION_KEY|"TR31_K1_KEY_BLOCK_PROTECTION_KEY"->TR31_K1_KEY_BLOCK_PROTECTION_KEY|"TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT"->TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT|"TR31_M0_ISO_16609_MAC_KEY"->TR31_M0_ISO_16609_MAC_KEY|"TR31_M3_ISO_9797_3_MAC_KEY"->TR31_M3_ISO_9797_3_MAC_KEY|"TR31_M1_ISO_9797_1_MAC_KEY"->TR31_M1_ISO_9797_1_MAC_KEY|"TR31_M6_ISO_9797_5_CMAC_KEY"->TR31_M6_ISO_9797_5_CMAC_KEY|"TR31_M7_HMAC_KEY"->TR31_M7_HMAC_KEY|"TR31_P0_PIN_ENCRYPTION_KEY"->TR31_P0_PIN_ENCRYPTION_KEY|"TR31_P1_PIN_GENERATION_KEY"->TR31_P1_PIN_GENERATION_KEY|"TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE"->TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE|"TR31_V1_IBM3624_PIN_VERIFICATION_KEY"->TR31_V1_IBM3624_PIN_VERIFICATION_KEY|"TR31_V2_VISA_PIN_VERIFICATION_KEY"->TR31_V2_VISA_PIN_VERIFICATION_KEY|"TR31_K2_TR34_ASYMMETRIC_KEY"->TR31_K2_TR34_ASYMMETRIC_KEY|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 KeyUsage"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyUsage"j)letto_json=simple_to_jsonto_valueendmoduleSharedInformation=structtypenonrect=stringletcontext_="SharedInformation"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"(?:[0-9a-fA-F][0-9a-fA-F])+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SharedInformation"jletto_json=simple_to_jsonto_valueendmoduleKeyExportability=structtypenonrect=|EXPORTABLE|NON_EXPORTABLE|SENSITIVE|Non_static_idofstringletmakei=iletto_string=function|EXPORTABLE->"EXPORTABLE"|NON_EXPORTABLE->"NON_EXPORTABLE"|SENSITIVE->"SENSITIVE"|Non_static_ids->sletof_string=function|"EXPORTABLE"->EXPORTABLE|"NON_EXPORTABLE"->NON_EXPORTABLE|"SENSITIVE"->SENSITIVE|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 KeyExportability"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyExportability"j)letto_json=simple_to_jsonto_valueendmoduleKeyVersion=structtypenonrect=stringletcontext_="KeyVersion"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:2)>>=(fun()->check_patterni~pattern:"[0-9A-Z]{2}+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KeyVersion"jletto_json=simple_to_jsonto_valueendmoduleOptionalBlocks=structtypenonrect=(OptionalBlockId.t*OptionalBlockValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((OptionalBlockId.of_stringchopped),(OptionalBlockValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(OptionalBlockId.to_valuex)|>(funx->(OptionalBlockValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:OptionalBlockId.of_string~of_json:OptionalBlockValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min: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:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleMpaSessionArn=structtypenonrect=stringletcontext_="MpaSessionArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:aws(-[^:]+)?:mpa:[a-z0-9-]{1,20}:[0-9]{12}:session/[a-zA-Z0-9._-]+/[a-zA-Z0-9_-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MpaSessionArn"jletto_json=simple_to_jsonto_valueendmoduleMpaStatusMessage=structtypenonrect=stringletcontext_="MpaStatusMessage"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MpaStatusMessage"jletto_json=simple_to_jsonto_valueendmoduleSessionStatus=structtypenonrect=|PENDING|APPROVED|FAILED|CANCELLED|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|APPROVED->"APPROVED"|FAILED->"FAILED"|CANCELLED->"CANCELLED"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"APPROVED"->APPROVED|"FAILED"->FAILED|"CANCELLED"->CANCELLED|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 SessionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SessionStatus"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleRegion=structtypenonrect=string[@@ocaml.doc"An Amazon Web Services Region identifier in the standard format (e.g., us-east-1, eu-west-1). Used to specify regions for key replication operations. The region must be a valid Amazon Web Services Region where Amazon Web Services Payment Cryptography is available."]letcontext_="Region"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-z]{2}-[a-z]{1,16}-[0-9]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Region"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"An Amazon Web Services Region identifier in the standard format (e.g., us-east-1, eu-west-1). Used to specify regions for key replication operations. The region must be a valid Amazon Web Services Region where Amazon Web Services Payment Cryptography is available."]moduleReplicationStatusType=structtypenonrect={status:KeyReplicationState.toption[@ocaml.doc"The current status of key replication in this Amazon Web Services Region. This field indicates whether the key replication is in progress, completed successfully, or has encountered an error. Possible values include states such as SYNCRHONIZED, IN_PROGRESS, DELETE_IN_PROGRESS, or FAILED. This provides visibility into the replication process for monitoring and troubleshooting purposes."];statusMessage:String_.toption[@ocaml.doc"A message that provides additional information about the current replication status of the key. This field contains details about any issues or progress updates related to key replication operations. It may include information about replication failures, synchronization status, or other operational details."]}letmake?status=fun?statusMessage->fun()->{status;statusMessage}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:KeyReplicationState.to_value));("StatusMessage",(Option.mapx.statusMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StatusMessage")inletstatus=(Option.map~f:KeyReplicationState.of_xml)(Xml.childxml_arg0"Status")inmake?statusMessage?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusMessage=field_mapjson__"StatusMessage"String_.of_jsoninletstatus=field_mapjson__"Status"KeyReplicationState.of_jsoninmake?statusMessage?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the replication status information for a key in a replication region for Multi-Region key replication. This structure contains details about the current state of key replication, including any status messages and operational information about the replication process."]moduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleKeyArn=structtypenonrect=stringletcontext_="KeyArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:70)>>=(fun()->(check_string_maxi~max:150)>>=(fun()->check_patterni~pattern:"arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:key/[0-9a-zA-Z]{16,64}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KeyArn"jletto_json=simple_to_jsonto_valueendmoduleKeyAttributes=structtypenonrect={keyUsage:KeyUsage.t[@ocaml.doc"The cryptographic usage of an Amazon Web Services Payment Cryptography key as de\239\172\129ned in section A.5.2 of the TR-31 spec."];keyClass:KeyClass.t[@ocaml.doc"The type of Amazon Web Services Payment Cryptography key to create, which determines the classi\239\172\129cation of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair."];keyAlgorithm:KeyAlgorithm.t[@ocaml.doc"The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key. For symmetric keys, Amazon Web Services Payment Cryptography supports AES and TDES algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA and ECC_NIST algorithms."];keyModesOfUse:KeyModesOfUse.t[@ocaml.doc"The list of cryptographic operations that you can perform using the key."]}letcontext_="KeyAttributes"letmake~keyUsage=fun~keyClass->fun~keyAlgorithm->fun~keyModesOfUse->fun()->{keyUsage;keyClass;keyAlgorithm;keyModesOfUse}letto_valuex=structure_to_value[("KeyUsage",(Some(KeyUsage.to_valuex.keyUsage)));("KeyClass",(Some(KeyClass.to_valuex.keyClass)));("KeyAlgorithm",(Some(KeyAlgorithm.to_valuex.keyAlgorithm)));("KeyModesOfUse",(Some(KeyModesOfUse.to_valuex.keyModesOfUse)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyModesOfUse=KeyModesOfUse.of_xml(Xml.child_exn~context:context_xml_arg0"KeyModesOfUse")inletkeyAlgorithm=KeyAlgorithm.of_xml(Xml.child_exn~context:context_xml_arg0"KeyAlgorithm")inletkeyClass=KeyClass.of_xml(Xml.child_exn~context:context_xml_arg0"KeyClass")inletkeyUsage=KeyUsage.of_xml(Xml.child_exn~context:context_xml_arg0"KeyUsage")inmake~keyModesOfUse~keyAlgorithm~keyClass~keyUsage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyModesOfUse=field_map_exnjson__"KeyModesOfUse"KeyModesOfUse.of_jsoninletkeyAlgorithm=field_map_exnjson__"KeyAlgorithm"KeyAlgorithm.of_jsoninletkeyClass=field_map_exnjson__"KeyClass"KeyClass.of_jsoninletkeyUsage=field_map_exnjson__"KeyUsage"KeyUsage.of_jsoninmake~keyModesOfUse~keyAlgorithm~keyClass~keyUsage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created."]moduleKeyCheckValue=structtypenonrect=stringletcontext_="KeyCheckValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:4)>>=(fun()->(check_string_maxi~max:16)>>=(fun()->check_patterni~pattern:"[0-9a-fA-F]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KeyCheckValue"jletto_json=simple_to_jsonto_valueendmoduleKeyState=structtypenonrect=|CREATE_IN_PROGRESS|CREATE_COMPLETE|DELETE_PENDING|DELETE_COMPLETE|Non_static_idofstringletmakei=iletto_string=function|CREATE_IN_PROGRESS->"CREATE_IN_PROGRESS"|CREATE_COMPLETE->"CREATE_COMPLETE"|DELETE_PENDING->"DELETE_PENDING"|DELETE_COMPLETE->"DELETE_COMPLETE"|Non_static_ids->sletof_string=function|"CREATE_IN_PROGRESS"->CREATE_IN_PROGRESS|"CREATE_COMPLETE"->CREATE_COMPLETE|"DELETE_PENDING"->DELETE_PENDING|"DELETE_COMPLETE"->DELETE_COMPLETE|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 KeyState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyState"j)letto_json=simple_to_jsonto_valueendmoduleMultiRegionKeyType=structtypenonrect=|PRIMARY|REPLICA|Non_static_idofstringletmakei=iletto_string=function|PRIMARY->"PRIMARY"|REPLICA->"REPLICA"|Non_static_ids->sletof_string=function|"PRIMARY"->PRIMARY|"REPLICA"->REPLICA|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 MultiRegionKeyType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MultiRegionKeyType"j)letto_json=simple_to_jsonto_valueendmoduleAliasName=structtypenonrect=stringletcontext_="AliasName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:7)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"alias/[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:"AliasName"jletto_json=simple_to_jsonto_valueendmoduleAs2805KeyVariant=structtypenonrect=|TERMINAL_MAJOR_KEY_VARIANT_00|PIN_ENCRYPTION_KEY_VARIANT_28|MESSAGE_AUTHENTICATION_KEY_VARIANT_24|DATA_ENCRYPTION_KEY_VARIANT_22|Non_static_idofstringletmakei=iletto_string=function|TERMINAL_MAJOR_KEY_VARIANT_00->"TERMINAL_MAJOR_KEY_VARIANT_00"|PIN_ENCRYPTION_KEY_VARIANT_28->"PIN_ENCRYPTION_KEY_VARIANT_28"|MESSAGE_AUTHENTICATION_KEY_VARIANT_24->"MESSAGE_AUTHENTICATION_KEY_VARIANT_24"|DATA_ENCRYPTION_KEY_VARIANT_22->"DATA_ENCRYPTION_KEY_VARIANT_22"|Non_static_ids->sletof_string=function|"TERMINAL_MAJOR_KEY_VARIANT_00"->TERMINAL_MAJOR_KEY_VARIANT_00|"PIN_ENCRYPTION_KEY_VARIANT_28"->PIN_ENCRYPTION_KEY_VARIANT_28|"MESSAGE_AUTHENTICATION_KEY_VARIANT_24"->MESSAGE_AUTHENTICATION_KEY_VARIANT_24|"DATA_ENCRYPTION_KEY_VARIANT_22"->DATA_ENCRYPTION_KEY_VARIANT_22|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 As2805KeyVariant"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"As2805KeyVariant"j)letto_json=simple_to_jsonto_valueendmoduleKeyArnOrKeyAliasType=structtypenonrect=string[@@ocaml.doc"A key identifier that can be either a key ARN or an alias name. This allows flexible key identification in operations. When using a key ARN, it must be a fully qualified ARN in the format: arn:aws:payment-cryptography:region:account:key/key-id. When using an alias, it must begin with alias/ followed by the alias name. Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output."]letcontext_="KeyArnOrKeyAliasType"letmakei=letopenResultinok_or_failwith((check_string_mini~min:7)>>=(fun()->(check_string_maxi~max:322)>>=(fun()->check_patterni~pattern:"arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[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:"KeyArnOrKeyAliasType"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A key identifier that can be either a key ARN or an alias name. This allows flexible key identification in operations. When using a key ARN, it must be a fully qualified ARN in the format: arn:aws:payment-cryptography:region:account:key/key-id. When using an alias, it must begin with alias/ followed by the alias name. Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output."]moduleWrappedKeyCryptogram=structtypenonrect=stringletcontext_="WrappedKeyCryptogram"letmakei=letopenResultinok_or_failwith((check_string_mini~min:16)>>=(fun()->(check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"[0-9A-F]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WrappedKeyCryptogram"jletto_json=simple_to_jsonto_valueendmoduleCertificateType=structtypenonrect=stringletcontext_="CertificateType"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:32768)>>=(fun()->check_patterni~pattern:"[^\\[;\\]<>]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateType"jletto_json=simple_to_jsonto_valueendmoduleDiffieHellmanDerivationData=structtypenonrect={sharedInformation:SharedInformation.toption[@ocaml.doc"A string containing information that binds the ECDH derived key to the two parties involved or to the context of the key. It may include details like identities of the two parties deriving the key, context of the operation, session IDs, and optionally a nonce. It must not contain zero bytes. It is not recommended to reuse shared information for multiple ECDH key derivations, as it could result in derived key material being the same across different derivations."]}letmake?sharedInformation=fun()->{sharedInformation}letto_valuex=structure_to_value[("SharedInformation",(Option.mapx.sharedInformation~f:SharedInformation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsharedInformation=(Option.map~f:SharedInformation.of_xml)(Xml.childxml_arg0"SharedInformation")inmake?sharedInformation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsharedInformation=field_mapjson__"SharedInformation"SharedInformation.of_jsoninmake?sharedInformation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The shared information used when deriving a key using ECDH."]moduleKeyDerivationFunction=structtypenonrect=|NIST_SP800|ANSI_X963|Non_static_idofstringletmakei=iletto_string=function|NIST_SP800->"NIST_SP800"|ANSI_X963->"ANSI_X963"|Non_static_ids->sletof_string=function|"NIST_SP800"->NIST_SP800|"ANSI_X963"->ANSI_X963|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 KeyDerivationFunction"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyDerivationFunction"j)letto_json=simple_to_jsonto_valueendmoduleKeyDerivationHashAlgorithm=structtypenonrect=|SHA_256|SHA_384|SHA_512|Non_static_idofstringletmakei=iletto_string=function|SHA_256->"SHA_256"|SHA_384->"SHA_384"|SHA_512->"SHA_512"|Non_static_ids->sletof_string=function|"SHA_256"->SHA_256|"SHA_384"->SHA_384|"SHA_512"->SHA_512|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 KeyDerivationHashAlgorithm"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyDerivationHashAlgorithm"j)letto_json=simple_to_jsonto_valueendmoduleSymmetricKeyAlgorithm=structtypenonrect=|TDES_2KEY|TDES_3KEY|AES_128|AES_192|AES_256|HMAC_SHA256|HMAC_SHA384|HMAC_SHA512|HMAC_SHA224|Non_static_idofstringletmakei=iletto_string=function|TDES_2KEY->"TDES_2KEY"|TDES_3KEY->"TDES_3KEY"|AES_128->"AES_128"|AES_192->"AES_192"|AES_256->"AES_256"|HMAC_SHA256->"HMAC_SHA256"|HMAC_SHA384->"HMAC_SHA384"|HMAC_SHA512->"HMAC_SHA512"|HMAC_SHA224->"HMAC_SHA224"|Non_static_ids->sletof_string=function|"TDES_2KEY"->TDES_2KEY|"TDES_3KEY"->TDES_3KEY|"AES_128"->AES_128|"AES_192"->AES_192|"AES_256"->AES_256|"HMAC_SHA256"->HMAC_SHA256|"HMAC_SHA384"->HMAC_SHA384|"HMAC_SHA512"->HMAC_SHA512|"HMAC_SHA224"->HMAC_SHA224|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 SymmetricKeyAlgorithm"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SymmetricKeyAlgorithm"j)letto_json=simple_to_jsonto_valueendmoduleTr31WrappedKeyBlock=structtypenonrect=stringletcontext_="Tr31WrappedKeyBlock"letmakei=letopenResultinok_or_failwith((check_string_mini~min:56)>>=(fun()->(check_string_maxi~max:9984)>>=(fun()->check_patterni~pattern:"[0-9a-zA-Z]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Tr31WrappedKeyBlock"jletto_json=simple_to_jsonto_valueendmoduleImportTokenId=structtypenonrect=stringletcontext_="ImportTokenId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"(import-token-[0-9a-zA-Z]{16,64})?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ImportTokenId"jletto_json=simple_to_jsonto_valueendmoduleWrappingKeySpec=structtypenonrect=|RSA_OAEP_SHA_256|RSA_OAEP_SHA_512|Non_static_idofstringletmakei=iletto_string=function|RSA_OAEP_SHA_256->"RSA_OAEP_SHA_256"|RSA_OAEP_SHA_512->"RSA_OAEP_SHA_512"|Non_static_ids->sletof_string=function|"RSA_OAEP_SHA_256"->RSA_OAEP_SHA_256|"RSA_OAEP_SHA_512"->RSA_OAEP_SHA_512|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 WrappingKeySpec"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WrappingKeySpec"j)letto_json=simple_to_jsonto_valueendmoduleEvenHexLengthBetween16And32=structtypenonrect=stringletcontext_="EvenHexLengthBetween16And32"letmakei=letopenResultinok_or_failwith((check_string_mini~min:16)>>=(fun()->(check_string_maxi~max:32)>>=(fun()->check_patterni~pattern:"(?:[0-9a-fA-F][0-9a-fA-F])+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EvenHexLengthBetween16And32"jletto_json=simple_to_jsonto_valueendmoduleTr34KeyBlockFormat=structtypenonrect=|X9_TR34_2012|Non_static_idofstringletmakei=iletto_string=function|X9_TR34_2012->"X9_TR34_2012"|Non_static_ids->sletof_string=function|"X9_TR34_2012"->X9_TR34_2012|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 Tr34KeyBlockFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Tr34KeyBlockFormat"j)letto_json=simple_to_jsonto_valueendmoduleTr34WrappedKeyBlock=structtypenonrect=stringletcontext_="Tr34WrappedKeyBlock"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:4096)>>=(fun()->check_patterni~pattern:"[0-9A-F]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Tr34WrappedKeyBlock"jletto_json=simple_to_jsonto_valueendmoduleHexLength20Or24=structtypenonrect=stringletcontext_="HexLength20Or24"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:24)>>=(fun()->check_patterni~pattern:"[0-9A-F]{20}$|^[0-9A-F]{24}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"HexLength20Or24"jletto_json=simple_to_jsonto_valueendmoduleKeyBlockHeaders=structtypenonrect={keyModesOfUse:KeyModesOfUse.toption;keyExportability:KeyExportability.toption[@ocaml.doc"Specifies subsequent exportability of the key within the key block after it is received by the receiving party. It can be used to further restrict exportability of the key after export from Amazon Web Services Payment Cryptography. When set to EXPORTABLE, the key can be subsequently exported by the receiver under a KEK using TR-31 or TR-34 key block export only. When set to NON_EXPORTABLE, the key cannot be subsequently exported by the receiver. When set to SENSITIVE, the key can be exported by the receiver under a KEK using TR-31, TR-34, RSA wrap and unwrap cryptogram or using a symmetric cryptogram key export method. For further information refer to ANSI X9.143-2022."];keyVersion:KeyVersion.toption[@ocaml.doc"Parameter used to indicate the version of the key carried in the key block or indicate the value carried in the key block is a component of a key."];optionalBlocks:OptionalBlocks.toption[@ocaml.doc"Parameter used to indicate the type of optional data in key block headers. Refer to ANSI X9.143-2022 for information on allowed data type for optional blocks. Optional block character limit is 112 characters. For each optional block, 2 characters are reserved for optional block ID and 2 characters reserved for optional block length. More than one optional blocks can be included as long as the combined length does not increase 112 characters."]}letmake?keyModesOfUse=fun?keyExportability->fun?keyVersion->fun?optionalBlocks->fun()->{keyModesOfUse;keyExportability;keyVersion;optionalBlocks}letto_valuex=structure_to_value[("KeyModesOfUse",(Option.mapx.keyModesOfUse~f:KeyModesOfUse.to_value));("KeyExportability",(Option.mapx.keyExportability~f:KeyExportability.to_value));("KeyVersion",(Option.mapx.keyVersion~f:KeyVersion.to_value));("OptionalBlocks",(Option.mapx.optionalBlocks~f:OptionalBlocks.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptionalBlocks=(Option.map~f:OptionalBlocks.of_xml)(Xml.childxml_arg0"OptionalBlocks")inletkeyVersion=(Option.map~f:KeyVersion.of_xml)(Xml.childxml_arg0"KeyVersion")inletkeyExportability=(Option.map~f:KeyExportability.of_xml)(Xml.childxml_arg0"KeyExportability")inletkeyModesOfUse=(Option.map~f:KeyModesOfUse.of_xml)(Xml.childxml_arg0"KeyModesOfUse")inmake?optionalBlocks?keyVersion?keyExportability?keyModesOfUse()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptionalBlocks=field_mapjson__"OptionalBlocks"OptionalBlocks.of_jsoninletkeyVersion=field_mapjson__"KeyVersion"KeyVersion.of_jsoninletkeyExportability=field_mapjson__"KeyExportability"KeyExportability.of_jsoninletkeyModesOfUse=field_mapjson__"KeyModesOfUse"KeyModesOfUse.of_jsoninmake?optionalBlocks?keyVersion?keyExportability?keyModesOfUse()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Optional metadata for export associated with the key material. This data is signed but transmitted in clear text."]moduleExportTokenId=structtypenonrect=stringletcontext_="ExportTokenId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"(export-token-[0-9a-zA-Z]{16,64})?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ExportTokenId"jletto_json=simple_to_jsonto_valueendmoduleTag=structtypenonrect={key:TagKey.t[@ocaml.doc"The key of the tag."];value:TagValue.t[@ocaml.doc"The value of the tag."]}letcontext_="Tag"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Some(TagValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=TagValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake~value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about a tag."]moduleDeriveKeyUsage=structtypenonrect=|TR31_B0_BASE_DERIVATION_KEY|TR31_C0_CARD_VERIFICATION_KEY|TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY|TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS|TR31_E1_EMV_MKEY_CONFIDENTIALITY|TR31_E2_EMV_MKEY_INTEGRITY|TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS|TR31_E5_EMV_MKEY_CARD_PERSONALIZATION|TR31_E6_EMV_MKEY_OTHER|TR31_K0_KEY_ENCRYPTION_KEY|TR31_K1_KEY_BLOCK_PROTECTION_KEY|TR31_M3_ISO_9797_3_MAC_KEY|TR31_M1_ISO_9797_1_MAC_KEY|TR31_M6_ISO_9797_5_CMAC_KEY|TR31_M7_HMAC_KEY|TR31_P0_PIN_ENCRYPTION_KEY|TR31_P1_PIN_GENERATION_KEY|TR31_V1_IBM3624_PIN_VERIFICATION_KEY|TR31_V2_VISA_PIN_VERIFICATION_KEY|Non_static_idofstringletmakei=iletto_string=function|TR31_B0_BASE_DERIVATION_KEY->"TR31_B0_BASE_DERIVATION_KEY"|TR31_C0_CARD_VERIFICATION_KEY->"TR31_C0_CARD_VERIFICATION_KEY"|TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY->"TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY"|TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS->"TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS"|TR31_E1_EMV_MKEY_CONFIDENTIALITY->"TR31_E1_EMV_MKEY_CONFIDENTIALITY"|TR31_E2_EMV_MKEY_INTEGRITY->"TR31_E2_EMV_MKEY_INTEGRITY"|TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS->"TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS"|TR31_E5_EMV_MKEY_CARD_PERSONALIZATION->"TR31_E5_EMV_MKEY_CARD_PERSONALIZATION"|TR31_E6_EMV_MKEY_OTHER->"TR31_E6_EMV_MKEY_OTHER"|TR31_K0_KEY_ENCRYPTION_KEY->"TR31_K0_KEY_ENCRYPTION_KEY"|TR31_K1_KEY_BLOCK_PROTECTION_KEY->"TR31_K1_KEY_BLOCK_PROTECTION_KEY"|TR31_M3_ISO_9797_3_MAC_KEY->"TR31_M3_ISO_9797_3_MAC_KEY"|TR31_M1_ISO_9797_1_MAC_KEY->"TR31_M1_ISO_9797_1_MAC_KEY"|TR31_M6_ISO_9797_5_CMAC_KEY->"TR31_M6_ISO_9797_5_CMAC_KEY"|TR31_M7_HMAC_KEY->"TR31_M7_HMAC_KEY"|TR31_P0_PIN_ENCRYPTION_KEY->"TR31_P0_PIN_ENCRYPTION_KEY"|TR31_P1_PIN_GENERATION_KEY->"TR31_P1_PIN_GENERATION_KEY"|TR31_V1_IBM3624_PIN_VERIFICATION_KEY->"TR31_V1_IBM3624_PIN_VERIFICATION_KEY"|TR31_V2_VISA_PIN_VERIFICATION_KEY->"TR31_V2_VISA_PIN_VERIFICATION_KEY"|Non_static_ids->sletof_string=function|"TR31_B0_BASE_DERIVATION_KEY"->TR31_B0_BASE_DERIVATION_KEY|"TR31_C0_CARD_VERIFICATION_KEY"->TR31_C0_CARD_VERIFICATION_KEY|"TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY"->TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY|"TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS"->TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS|"TR31_E1_EMV_MKEY_CONFIDENTIALITY"->TR31_E1_EMV_MKEY_CONFIDENTIALITY|"TR31_E2_EMV_MKEY_INTEGRITY"->TR31_E2_EMV_MKEY_INTEGRITY|"TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS"->TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS|"TR31_E5_EMV_MKEY_CARD_PERSONALIZATION"->TR31_E5_EMV_MKEY_CARD_PERSONALIZATION|"TR31_E6_EMV_MKEY_OTHER"->TR31_E6_EMV_MKEY_OTHER|"TR31_K0_KEY_ENCRYPTION_KEY"->TR31_K0_KEY_ENCRYPTION_KEY|"TR31_K1_KEY_BLOCK_PROTECTION_KEY"->TR31_K1_KEY_BLOCK_PROTECTION_KEY|"TR31_M3_ISO_9797_3_MAC_KEY"->TR31_M3_ISO_9797_3_MAC_KEY|"TR31_M1_ISO_9797_1_MAC_KEY"->TR31_M1_ISO_9797_1_MAC_KEY|"TR31_M6_ISO_9797_5_CMAC_KEY"->TR31_M6_ISO_9797_5_CMAC_KEY|"TR31_M7_HMAC_KEY"->TR31_M7_HMAC_KEY|"TR31_P0_PIN_ENCRYPTION_KEY"->TR31_P0_PIN_ENCRYPTION_KEY|"TR31_P1_PIN_GENERATION_KEY"->TR31_P1_PIN_GENERATION_KEY|"TR31_V1_IBM3624_PIN_VERIFICATION_KEY"->TR31_V1_IBM3624_PIN_VERIFICATION_KEY|"TR31_V2_VISA_PIN_VERIFICATION_KEY"->TR31_V2_VISA_PIN_VERIFICATION_KEY|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 DeriveKeyUsage"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DeriveKeyUsage"j)letto_json=simple_to_jsonto_valueendmoduleKeyCheckValueAlgorithm=structtypenonrect=|CMAC|ANSI_X9_24|HMAC|SHA_1|Non_static_idofstringletmakei=iletto_string=function|CMAC->"CMAC"|ANSI_X9_24->"ANSI_X9_24"|HMAC->"HMAC"|SHA_1->"SHA_1"|Non_static_ids->sletof_string=function|"CMAC"->CMAC|"ANSI_X9_24"->ANSI_X9_24|"HMAC"->HMAC|"SHA_1"->SHA_1|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration KeyCheckValueAlgorithm"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyCheckValueAlgorithm"j)letto_json=simple_to_jsonto_valueendmoduleKeyOrigin=structtypenonrect=|EXTERNAL|AWS_PAYMENT_CRYPTOGRAPHY|Non_static_idofstringletmakei=iletto_string=function|EXTERNAL->"EXTERNAL"|AWS_PAYMENT_CRYPTOGRAPHY->"AWS_PAYMENT_CRYPTOGRAPHY"|Non_static_ids->sletof_string=function|"EXTERNAL"->EXTERNAL|"AWS_PAYMENT_CRYPTOGRAPHY"->AWS_PAYMENT_CRYPTOGRAPHY|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 KeyOrigin"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyOrigin"j)letto_json=simple_to_jsonto_valueendmoduleMpaStatus=structtypenonrect={mpaSessionArn:MpaSessionArn.toption[@ocaml.doc"The ARN of the MPA session."];status:SessionStatus.toption[@ocaml.doc"The current status of the MPA session."];initiationDate:Timestamp.toption[@ocaml.doc"The date and time when the MPA session was initiated."];statusMessage:MpaStatusMessage.toption[@ocaml.doc"The message providing additional information about the MPA session status."]}letmake?mpaSessionArn=fun?status->fun?initiationDate->fun?statusMessage->fun()->{mpaSessionArn;status;initiationDate;statusMessage}letto_valuex=structure_to_value[("MpaSessionArn",(Option.mapx.mpaSessionArn~f:MpaSessionArn.to_value));("Status",(Option.mapx.status~f:SessionStatus.to_value));("InitiationDate",(Option.mapx.initiationDate~f:Timestamp.to_value));("StatusMessage",(Option.mapx.statusMessage~f:MpaStatusMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusMessage=(Option.map~f:MpaStatusMessage.of_xml)(Xml.childxml_arg0"StatusMessage")inletinitiationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"InitiationDate")inletstatus=(Option.map~f:SessionStatus.of_xml)(Xml.childxml_arg0"Status")inletmpaSessionArn=(Option.map~f:MpaSessionArn.of_xml)(Xml.childxml_arg0"MpaSessionArn")inmake?statusMessage?initiationDate?status?mpaSessionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusMessage=field_mapjson__"StatusMessage"MpaStatusMessage.of_jsoninletinitiationDate=field_mapjson__"InitiationDate"Timestamp.of_jsoninletstatus=field_mapjson__"Status"SessionStatus.of_jsoninletmpaSessionArn=field_mapjson__"MpaSessionArn"MpaSessionArn.of_jsoninmake?statusMessage?initiationDate?status?mpaSessionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The status of an MPA session."]moduleReplicationStatus=structtypenonrect=(Region.t*ReplicationStatusType.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types Region ReplicationStatusType"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(Region.to_valuex)|>(funx->(ReplicationStatusType.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:Region.of_string~of_json:ReplicationStatusType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKeySummary=structtypenonrect={keyArn:KeyArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the key."];keyState:KeyState.toption[@ocaml.doc"The state of an Amazon Web Services Payment Cryptography that is being created or deleted."];keyAttributes:KeyAttributes.toption[@ocaml.doc"The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created."];keyCheckValue:KeyCheckValue.toption[@ocaml.doc"The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed."];exportable:Boolean.toption[@ocaml.doc"Specifies whether the key is exportable. This data is immutable after the key is created."];enabled:Boolean.toption[@ocaml.doc"Specifies whether the key is enabled."];multiRegionKeyType:MultiRegionKeyType.toption[@ocaml.doc"Indicates whether this key is a Multi-Region key and its role in the Multi-Region key hierarchy. Multi-Region replication keys allow the same key material to be used across multiple Amazon Web Services Regions. This field specifies whether the key is a Primary Region key (PRK) (which can be replicated to other Amazon Web Services Regions) or a Replica Region key (RRK) (which is a copy of a PRK in another Region). For more information, see Multi-Region key replication."];primaryRegion:Region.toption}letmake?keyArn=fun?keyState->fun?keyAttributes->fun?keyCheckValue->fun?exportable->fun?enabled->fun?multiRegionKeyType->fun?primaryRegion->fun()->{keyArn;keyState;keyAttributes;keyCheckValue;exportable;enabled;multiRegionKeyType;primaryRegion}letto_valuex=structure_to_value[("KeyArn",(Option.mapx.keyArn~f:KeyArn.to_value));("KeyState",(Option.mapx.keyState~f:KeyState.to_value));("KeyAttributes",(Option.mapx.keyAttributes~f:KeyAttributes.to_value));("KeyCheckValue",(Option.mapx.keyCheckValue~f:KeyCheckValue.to_value));("Exportable",(Option.mapx.exportable~f:Boolean.to_value));("Enabled",(Option.mapx.enabled~f:Boolean.to_value));("MultiRegionKeyType",(Option.mapx.multiRegionKeyType~f:MultiRegionKeyType.to_value));("PrimaryRegion",(Option.mapx.primaryRegion~f:Region.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprimaryRegion=(Option.map~f:Region.of_xml)(Xml.childxml_arg0"PrimaryRegion")inletmultiRegionKeyType=(Option.map~f:MultiRegionKeyType.of_xml)(Xml.childxml_arg0"MultiRegionKeyType")inletenabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"Enabled")inletexportable=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"Exportable")inletkeyCheckValue=(Option.map~f:KeyCheckValue.of_xml)(Xml.childxml_arg0"KeyCheckValue")inletkeyAttributes=(Option.map~f:KeyAttributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inletkeyState=(Option.map~f:KeyState.of_xml)(Xml.childxml_arg0"KeyState")inletkeyArn=(Option.map~f:KeyArn.of_xml)(Xml.childxml_arg0"KeyArn")inmake?primaryRegion?multiRegionKeyType?enabled?exportable?keyCheckValue?keyAttributes?keyState?keyArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprimaryRegion=field_mapjson__"PrimaryRegion"Region.of_jsoninletmultiRegionKeyType=field_mapjson__"MultiRegionKeyType"MultiRegionKeyType.of_jsoninletenabled=field_mapjson__"Enabled"Boolean.of_jsoninletexportable=field_mapjson__"Exportable"Boolean.of_jsoninletkeyCheckValue=field_mapjson__"KeyCheckValue"KeyCheckValue.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"KeyAttributes.of_jsoninletkeyState=field_mapjson__"KeyState"KeyState.of_jsoninletkeyArn=field_mapjson__"KeyArn"KeyArn.of_jsoninmake?primaryRegion?multiRegionKeyType?enabled?exportable?keyCheckValue?keyAttributes?keyState?keyArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Metadata about an Amazon Web Services Payment Cryptography key."]moduleAlias=structtypenonrect={aliasName:AliasName.toption[@ocaml.doc"A friendly name that you can use to refer to a key. The value must begin with alias/. Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output."];keyArn:KeyArn.toption[@ocaml.doc"The KeyARN of the key associated with the alias."]}letmake?aliasName=fun?keyArn->fun()->{aliasName;keyArn}letto_valuex=structure_to_value[("AliasName",(Option.mapx.aliasName~f:AliasName.to_value));("KeyArn",(Option.mapx.keyArn~f:KeyArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyArn=(Option.map~f:KeyArn.of_xml)(Xml.childxml_arg0"KeyArn")inletaliasName=(Option.map~f:AliasName.of_xml)(Xml.childxml_arg0"AliasName")inmake?keyArn?aliasName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyArn=field_mapjson__"KeyArn"KeyArn.of_jsoninletaliasName=field_mapjson__"AliasName"AliasName.of_jsoninmake?keyArn?aliasName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about an alias."]moduleImportAs2805KeyCryptogram=structtypenonrect={as2805KeyVariant:As2805KeyVariant.t[@ocaml.doc"The cryptographic usage of the key under import."];keyModesOfUse:KeyModesOfUse.t;keyAlgorithm:KeyAlgorithm.t[@ocaml.doc"The key algorithm of the key under import."];exportable:Boolean.t[@ocaml.doc"Specified whether the key is exportable. This data is immutable after the key is imported."];wrappingKeyIdentifier:KeyArnOrKeyAliasType.t;wrappedKeyCryptogram:WrappedKeyCryptogram.t[@ocaml.doc"The wrapped key cryptogram under import."]}letcontext_="ImportAs2805KeyCryptogram"letmake~as2805KeyVariant=fun~keyModesOfUse->fun~keyAlgorithm->fun~exportable->fun~wrappingKeyIdentifier->fun~wrappedKeyCryptogram->fun()->{as2805KeyVariant;keyModesOfUse;keyAlgorithm;exportable;wrappingKeyIdentifier;wrappedKeyCryptogram}letto_valuex=structure_to_value[("As2805KeyVariant",(Some(As2805KeyVariant.to_valuex.as2805KeyVariant)));("KeyModesOfUse",(Some(KeyModesOfUse.to_valuex.keyModesOfUse)));("KeyAlgorithm",(Some(KeyAlgorithm.to_valuex.keyAlgorithm)));("Exportable",(Some(Boolean.to_valuex.exportable)));("WrappingKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.wrappingKeyIdentifier)));("WrappedKeyCryptogram",(Some(WrappedKeyCryptogram.to_valuex.wrappedKeyCryptogram)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwrappedKeyCryptogram=WrappedKeyCryptogram.of_xml(Xml.child_exn~context:context_xml_arg0"WrappedKeyCryptogram")inletwrappingKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"WrappingKeyIdentifier")inletexportable=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"Exportable")inletkeyAlgorithm=KeyAlgorithm.of_xml(Xml.child_exn~context:context_xml_arg0"KeyAlgorithm")inletkeyModesOfUse=KeyModesOfUse.of_xml(Xml.child_exn~context:context_xml_arg0"KeyModesOfUse")inletas2805KeyVariant=As2805KeyVariant.of_xml(Xml.child_exn~context:context_xml_arg0"As2805KeyVariant")inmake~wrappedKeyCryptogram~wrappingKeyIdentifier~exportable~keyAlgorithm~keyModesOfUse~as2805KeyVariant()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwrappedKeyCryptogram=field_map_exnjson__"WrappedKeyCryptogram"WrappedKeyCryptogram.of_jsoninletwrappingKeyIdentifier=field_map_exnjson__"WrappingKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninletexportable=field_map_exnjson__"Exportable"Boolean.of_jsoninletkeyAlgorithm=field_map_exnjson__"KeyAlgorithm"KeyAlgorithm.of_jsoninletkeyModesOfUse=field_map_exnjson__"KeyModesOfUse"KeyModesOfUse.of_jsoninletas2805KeyVariant=field_map_exnjson__"As2805KeyVariant"As2805KeyVariant.of_jsoninmake~wrappedKeyCryptogram~wrappingKeyIdentifier~exportable~keyAlgorithm~keyModesOfUse~as2805KeyVariant()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for key material import using AS2805 key cryptogram format."]moduleImportDiffieHellmanTr31KeyBlock=structtypenonrect={privateKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The keyARN of the asymmetric ECC key created within Amazon Web Services Payment Cryptography."];certificateAuthorityPublicKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The keyARN of the CA that signed the PublicKeyCertificate for the client's receiving ECC key pair."];publicKeyCertificate:CertificateType.t[@ocaml.doc"The public key certificate of the client's receiving ECC key pair, in PEM format (base64 encoded), to use for ECDH key derivation."];deriveKeyAlgorithm:SymmetricKeyAlgorithm.t[@ocaml.doc"The key algorithm of the shared derived ECDH key."];keyDerivationFunction:KeyDerivationFunction.t[@ocaml.doc"The key derivation function to use when deriving a key using ECDH."];keyDerivationHashAlgorithm:KeyDerivationHashAlgorithm.t[@ocaml.doc"The hash type to use when deriving a key using ECDH."];derivationData:DiffieHellmanDerivationData.t[@ocaml.doc"The shared information used when deriving a key using ECDH."];wrappedKeyBlock:Tr31WrappedKeyBlock.t[@ocaml.doc"The ECDH wrapped key block to import."]}letcontext_="ImportDiffieHellmanTr31KeyBlock"letmake~privateKeyIdentifier=fun~certificateAuthorityPublicKeyIdentifier->fun~publicKeyCertificate->fun~deriveKeyAlgorithm->fun~keyDerivationFunction->fun~keyDerivationHashAlgorithm->fun~derivationData->fun~wrappedKeyBlock->fun()->{privateKeyIdentifier;certificateAuthorityPublicKeyIdentifier;publicKeyCertificate;deriveKeyAlgorithm;keyDerivationFunction;keyDerivationHashAlgorithm;derivationData;wrappedKeyBlock}letto_valuex=structure_to_value[("PrivateKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.privateKeyIdentifier)));("CertificateAuthorityPublicKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.certificateAuthorityPublicKeyIdentifier)));("PublicKeyCertificate",(Some(CertificateType.to_valuex.publicKeyCertificate)));("DeriveKeyAlgorithm",(Some(SymmetricKeyAlgorithm.to_valuex.deriveKeyAlgorithm)));("KeyDerivationFunction",(Some(KeyDerivationFunction.to_valuex.keyDerivationFunction)));("KeyDerivationHashAlgorithm",(Some(KeyDerivationHashAlgorithm.to_valuex.keyDerivationHashAlgorithm)));("DerivationData",(Some(DiffieHellmanDerivationData.to_valuex.derivationData)));("WrappedKeyBlock",(Some(Tr31WrappedKeyBlock.to_valuex.wrappedKeyBlock)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwrappedKeyBlock=Tr31WrappedKeyBlock.of_xml(Xml.child_exn~context:context_xml_arg0"WrappedKeyBlock")inletderivationData=DiffieHellmanDerivationData.of_xml(Xml.child_exn~context:context_xml_arg0"DerivationData")inletkeyDerivationHashAlgorithm=KeyDerivationHashAlgorithm.of_xml(Xml.child_exn~context:context_xml_arg0"KeyDerivationHashAlgorithm")inletkeyDerivationFunction=KeyDerivationFunction.of_xml(Xml.child_exn~context:context_xml_arg0"KeyDerivationFunction")inletderiveKeyAlgorithm=SymmetricKeyAlgorithm.of_xml(Xml.child_exn~context:context_xml_arg0"DeriveKeyAlgorithm")inletpublicKeyCertificate=CertificateType.of_xml(Xml.child_exn~context:context_xml_arg0"PublicKeyCertificate")inletcertificateAuthorityPublicKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateAuthorityPublicKeyIdentifier")inletprivateKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"PrivateKeyIdentifier")inmake~wrappedKeyBlock~derivationData~keyDerivationHashAlgorithm~keyDerivationFunction~deriveKeyAlgorithm~publicKeyCertificate~certificateAuthorityPublicKeyIdentifier~privateKeyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwrappedKeyBlock=field_map_exnjson__"WrappedKeyBlock"Tr31WrappedKeyBlock.of_jsoninletderivationData=field_map_exnjson__"DerivationData"DiffieHellmanDerivationData.of_jsoninletkeyDerivationHashAlgorithm=field_map_exnjson__"KeyDerivationHashAlgorithm"KeyDerivationHashAlgorithm.of_jsoninletkeyDerivationFunction=field_map_exnjson__"KeyDerivationFunction"KeyDerivationFunction.of_jsoninletderiveKeyAlgorithm=field_map_exnjson__"DeriveKeyAlgorithm"SymmetricKeyAlgorithm.of_jsoninletpublicKeyCertificate=field_map_exnjson__"PublicKeyCertificate"CertificateType.of_jsoninletcertificateAuthorityPublicKeyIdentifier=field_map_exnjson__"CertificateAuthorityPublicKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninletprivateKeyIdentifier=field_map_exnjson__"PrivateKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~wrappedKeyBlock~derivationData~keyDerivationHashAlgorithm~keyDerivationFunction~deriveKeyAlgorithm~publicKeyCertificate~certificateAuthorityPublicKeyIdentifier~privateKeyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Key derivation parameter information for key material import using asymmetric ECDH key exchange method."]moduleImportKeyCryptogram=structtypenonrect={keyAttributes:KeyAttributes.t;exportable:Boolean.t[@ocaml.doc"Specifies whether the key is exportable from the service."];wrappedKeyCryptogram:WrappedKeyCryptogram.t[@ocaml.doc"The RSA wrapped key cryptogram under import."];importToken:ImportTokenId.t[@ocaml.doc"The import token that initiates key import using the asymmetric RSA wrap and unwrap key exchange method into AWS Payment Cryptography. It expires after 30 days. You can use the same import token to import multiple keys to the same service account."];wrappingSpec:WrappingKeySpec.toption[@ocaml.doc"The wrapping spec for the wrapped key cryptogram."]}letcontext_="ImportKeyCryptogram"letmake?wrappingSpec=fun~keyAttributes->fun~exportable->fun~wrappedKeyCryptogram->fun~importToken->fun()->{wrappingSpec;keyAttributes;exportable;wrappedKeyCryptogram;importToken}letto_valuex=structure_to_value[("KeyAttributes",(Some(KeyAttributes.to_valuex.keyAttributes)));("Exportable",(Some(Boolean.to_valuex.exportable)));("WrappedKeyCryptogram",(Some(WrappedKeyCryptogram.to_valuex.wrappedKeyCryptogram)));("ImportToken",(Some(ImportTokenId.to_valuex.importToken)));("WrappingSpec",(Option.mapx.wrappingSpec~f:WrappingKeySpec.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwrappingSpec=(Option.map~f:WrappingKeySpec.of_xml)(Xml.childxml_arg0"WrappingSpec")inletimportToken=ImportTokenId.of_xml(Xml.child_exn~context:context_xml_arg0"ImportToken")inletwrappedKeyCryptogram=WrappedKeyCryptogram.of_xml(Xml.child_exn~context:context_xml_arg0"WrappedKeyCryptogram")inletexportable=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"Exportable")inletkeyAttributes=KeyAttributes.of_xml(Xml.child_exn~context:context_xml_arg0"KeyAttributes")inmake?wrappingSpec~importToken~wrappedKeyCryptogram~exportable~keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwrappingSpec=field_mapjson__"WrappingSpec"WrappingKeySpec.of_jsoninletimportToken=field_map_exnjson__"ImportToken"ImportTokenId.of_jsoninletwrappedKeyCryptogram=field_map_exnjson__"WrappedKeyCryptogram"WrappedKeyCryptogram.of_jsoninletexportable=field_map_exnjson__"Exportable"Boolean.of_jsoninletkeyAttributes=field_map_exnjson__"KeyAttributes"KeyAttributes.of_jsoninmake?wrappingSpec~importToken~wrappedKeyCryptogram~exportable~keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for key material import using asymmetric RSA wrap and unwrap key exchange method."]moduleImportTr31KeyBlock=structtypenonrect={wrappingKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the key that will decrypt or unwrap a TR-31 key block during import."];wrappedKeyBlock:Tr31WrappedKeyBlock.t[@ocaml.doc"The TR-31 wrapped key block to import."]}letcontext_="ImportTr31KeyBlock"letmake~wrappingKeyIdentifier=fun~wrappedKeyBlock->fun()->{wrappingKeyIdentifier;wrappedKeyBlock}letto_valuex=structure_to_value[("WrappingKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.wrappingKeyIdentifier)));("WrappedKeyBlock",(Some(Tr31WrappedKeyBlock.to_valuex.wrappedKeyBlock)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwrappedKeyBlock=Tr31WrappedKeyBlock.of_xml(Xml.child_exn~context:context_xml_arg0"WrappedKeyBlock")inletwrappingKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"WrappingKeyIdentifier")inmake~wrappedKeyBlock~wrappingKeyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwrappedKeyBlock=field_map_exnjson__"WrappedKeyBlock"Tr31WrappedKeyBlock.of_jsoninletwrappingKeyIdentifier=field_map_exnjson__"WrappingKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~wrappedKeyBlock~wrappingKeyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for key material import using symmetric TR-31 key exchange method."]moduleImportTr34KeyBlock=structtypenonrect={certificateAuthorityPublicKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the certificate chain that signs the signing key certificate during TR-34 key import."];signingKeyCertificate:CertificateType.t[@ocaml.doc"The public key component in PEM certificate format of the private key that signs the KDH TR-34 WrappedKeyBlock."];importToken:ImportTokenId.toption[@ocaml.doc"The import token that initiates key import using the asymmetric TR-34 key exchange method into Amazon Web Services Payment Cryptography. It expires after 30 days. You can use the same import token to import multiple keys to the same service account."];wrappingKeyIdentifier:KeyArnOrKeyAliasType.toption[@ocaml.doc"Key Identifier used for unwrapping the import key"];wrappingKeyCertificate:CertificateType.toption[@ocaml.doc"The certificate used to wrap the TR-34 key block."];wrappedKeyBlock:Tr34WrappedKeyBlock.t[@ocaml.doc"The TR-34 wrapped key block to import."];keyBlockFormat:Tr34KeyBlockFormat.t[@ocaml.doc"The key block format to use during key import. The only value allowed is X9_TR34_2012."];randomNonce:EvenHexLengthBetween16And32.toption[@ocaml.doc"A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass."]}letcontext_="ImportTr34KeyBlock"letmake?importToken=fun?wrappingKeyIdentifier->fun?wrappingKeyCertificate->fun?randomNonce->fun~certificateAuthorityPublicKeyIdentifier->fun~signingKeyCertificate->fun~wrappedKeyBlock->fun~keyBlockFormat->fun()->{importToken;wrappingKeyIdentifier;wrappingKeyCertificate;randomNonce;certificateAuthorityPublicKeyIdentifier;signingKeyCertificate;wrappedKeyBlock;keyBlockFormat}letto_valuex=structure_to_value[("CertificateAuthorityPublicKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.certificateAuthorityPublicKeyIdentifier)));("SigningKeyCertificate",(Some(CertificateType.to_valuex.signingKeyCertificate)));("ImportToken",(Option.mapx.importToken~f:ImportTokenId.to_value));("WrappingKeyIdentifier",(Option.mapx.wrappingKeyIdentifier~f:KeyArnOrKeyAliasType.to_value));("WrappingKeyCertificate",(Option.mapx.wrappingKeyCertificate~f:CertificateType.to_value));("WrappedKeyBlock",(Some(Tr34WrappedKeyBlock.to_valuex.wrappedKeyBlock)));("KeyBlockFormat",(Some(Tr34KeyBlockFormat.to_valuex.keyBlockFormat)));("RandomNonce",(Option.mapx.randomNonce~f:EvenHexLengthBetween16And32.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrandomNonce=(Option.map~f:EvenHexLengthBetween16And32.of_xml)(Xml.childxml_arg0"RandomNonce")inletkeyBlockFormat=Tr34KeyBlockFormat.of_xml(Xml.child_exn~context:context_xml_arg0"KeyBlockFormat")inletwrappedKeyBlock=Tr34WrappedKeyBlock.of_xml(Xml.child_exn~context:context_xml_arg0"WrappedKeyBlock")inletwrappingKeyCertificate=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"WrappingKeyCertificate")inletwrappingKeyIdentifier=(Option.map~f:KeyArnOrKeyAliasType.of_xml)(Xml.childxml_arg0"WrappingKeyIdentifier")inletimportToken=(Option.map~f:ImportTokenId.of_xml)(Xml.childxml_arg0"ImportToken")inletsigningKeyCertificate=CertificateType.of_xml(Xml.child_exn~context:context_xml_arg0"SigningKeyCertificate")inletcertificateAuthorityPublicKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateAuthorityPublicKeyIdentifier")inmake?randomNonce~keyBlockFormat~wrappedKeyBlock?wrappingKeyCertificate?wrappingKeyIdentifier?importToken~signingKeyCertificate~certificateAuthorityPublicKeyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrandomNonce=field_mapjson__"RandomNonce"EvenHexLengthBetween16And32.of_jsoninletkeyBlockFormat=field_map_exnjson__"KeyBlockFormat"Tr34KeyBlockFormat.of_jsoninletwrappedKeyBlock=field_map_exnjson__"WrappedKeyBlock"Tr34WrappedKeyBlock.of_jsoninletwrappingKeyCertificate=field_mapjson__"WrappingKeyCertificate"CertificateType.of_jsoninletwrappingKeyIdentifier=field_mapjson__"WrappingKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninletimportToken=field_mapjson__"ImportToken"ImportTokenId.of_jsoninletsigningKeyCertificate=field_map_exnjson__"SigningKeyCertificate"CertificateType.of_jsoninletcertificateAuthorityPublicKeyIdentifier=field_map_exnjson__"CertificateAuthorityPublicKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake?randomNonce~keyBlockFormat~wrappedKeyBlock?wrappingKeyCertificate?wrappingKeyIdentifier?importToken~signingKeyCertificate~certificateAuthorityPublicKeyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for key material import using the asymmetric TR-34 key exchange method."]moduleRootCertificatePublicKey=structtypenonrect={keyAttributes:KeyAttributes.t[@ocaml.doc"The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the root public key is imported."];publicKeyCertificate:CertificateType.t[@ocaml.doc"Parameter information for root public key certificate import."]}letcontext_="RootCertificatePublicKey"letmake~keyAttributes=fun~publicKeyCertificate->fun()->{keyAttributes;publicKeyCertificate}letto_valuex=structure_to_value[("KeyAttributes",(Some(KeyAttributes.to_valuex.keyAttributes)));("PublicKeyCertificate",(Some(CertificateType.to_valuex.publicKeyCertificate)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpublicKeyCertificate=CertificateType.of_xml(Xml.child_exn~context:context_xml_arg0"PublicKeyCertificate")inletkeyAttributes=KeyAttributes.of_xml(Xml.child_exn~context:context_xml_arg0"KeyAttributes")inmake~publicKeyCertificate~keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpublicKeyCertificate=field_map_exnjson__"PublicKeyCertificate"CertificateType.of_jsoninletkeyAttributes=field_map_exnjson__"KeyAttributes"KeyAttributes.of_jsoninmake~publicKeyCertificate~keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for root public key certificate import."]moduleTrustedCertificatePublicKey=structtypenonrect={keyAttributes:KeyAttributes.t[@ocaml.doc"The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after a trusted public key is imported."];publicKeyCertificate:CertificateType.t[@ocaml.doc"Parameter information for trusted public key certificate import."];certificateAuthorityPublicKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the root public key certificate or certificate chain that signs the trusted public key certificate import."]}letcontext_="TrustedCertificatePublicKey"letmake~keyAttributes=fun~publicKeyCertificate->fun~certificateAuthorityPublicKeyIdentifier->fun()->{keyAttributes;publicKeyCertificate;certificateAuthorityPublicKeyIdentifier}letto_valuex=structure_to_value[("KeyAttributes",(Some(KeyAttributes.to_valuex.keyAttributes)));("PublicKeyCertificate",(Some(CertificateType.to_valuex.publicKeyCertificate)));("CertificateAuthorityPublicKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.certificateAuthorityPublicKeyIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateAuthorityPublicKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateAuthorityPublicKeyIdentifier")inletpublicKeyCertificate=CertificateType.of_xml(Xml.child_exn~context:context_xml_arg0"PublicKeyCertificate")inletkeyAttributes=KeyAttributes.of_xml(Xml.child_exn~context:context_xml_arg0"KeyAttributes")inmake~certificateAuthorityPublicKeyIdentifier~publicKeyCertificate~keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateAuthorityPublicKeyIdentifier=field_map_exnjson__"CertificateAuthorityPublicKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninletpublicKeyCertificate=field_map_exnjson__"PublicKeyCertificate"CertificateType.of_jsoninletkeyAttributes=field_map_exnjson__"KeyAttributes"KeyAttributes.of_jsoninmake~certificateAuthorityPublicKeyIdentifier~publicKeyCertificate~keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for trusted public key certificate import."]moduleAssociationState=structtypenonrect=|ACTIVE|UPDATE_PENDING|DELETE_PENDING|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|UPDATE_PENDING->"UPDATE_PENDING"|DELETE_PENDING->"DELETE_PENDING"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"UPDATE_PENDING"->UPDATE_PENDING|"DELETE_PENDING"->DELETE_PENDING|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AssociationState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AssociationState"j)letto_json=simple_to_jsonto_valueendmoduleMpaOperation=structtypenonrect=|IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE|Non_static_idofstringletmakei=iletto_string=function|IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE->"IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE"|Non_static_ids->sletof_string=function|"IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE"->IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE|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 MpaOperation"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MpaOperation"j)letto_json=simple_to_jsonto_valueendmoduleMpaTeamArn=structtypenonrect=stringletcontext_="MpaTeamArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:aws(-[^:]+)?:mpa:[a-z0-9-]{1,20}:[0-9]{12}:approval-team/[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:"MpaTeamArn"jletto_json=simple_to_jsonto_valueendmoduleCertificateSubjectTypeCityString=structtypenonrect=stringletcontext_="CertificateSubjectTypeCityString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[^\\[;\\]<>]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateSubjectTypeCityString"jletto_json=simple_to_jsonto_valueendmoduleCertificateSubjectTypeCommonNameString=structtypenonrect=stringletcontext_="CertificateSubjectTypeCommonNameString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[^\\[;\\]<>]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateSubjectTypeCommonNameString"jletto_json=simple_to_jsonto_valueendmoduleCertificateSubjectTypeCountryString=structtypenonrect=stringletcontext_="CertificateSubjectTypeCountryString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:2)>>=(fun()->check_patterni~pattern:"[A-Za-z]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateSubjectTypeCountryString"jletto_json=simple_to_jsonto_valueendmoduleCertificateSubjectTypeEmailAddressString=structtypenonrect=stringletcontext_="CertificateSubjectTypeEmailAddressString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9.!#$%&\226\128\153*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateSubjectTypeEmailAddressString"jletto_json=simple_to_jsonto_valueendmoduleCertificateSubjectTypeOrganizationString=structtypenonrect=stringletcontext_="CertificateSubjectTypeOrganizationString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[^\\[;\\]<>]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateSubjectTypeOrganizationString"jletto_json=simple_to_jsonto_valueendmoduleCertificateSubjectTypeOrganizationUnitString=structtypenonrect=stringletcontext_="CertificateSubjectTypeOrganizationUnitString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[^\\[;\\]<>]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateSubjectTypeOrganizationUnitString"jletto_json=simple_to_jsonto_valueendmoduleCertificateSubjectTypeStateOrProvinceString=structtypenonrect=stringletcontext_="CertificateSubjectTypeStateOrProvinceString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[^\\[;\\]<>]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateSubjectTypeStateOrProvinceString"jletto_json=simple_to_jsonto_valueendmoduleKeyMaterial=structtypenonrect=stringletcontext_="KeyMaterial"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:16384)>>=(fun()->check_string_mini~min:32));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KeyMaterial"jletto_json=simple_to_jsonto_valueendmoduleWrappedKeyMaterialFormat=structtypenonrect=|KEY_CRYPTOGRAM|TR31_KEY_BLOCK|TR34_KEY_BLOCK|Non_static_idofstringletmakei=iletto_string=function|KEY_CRYPTOGRAM->"KEY_CRYPTOGRAM"|TR31_KEY_BLOCK->"TR31_KEY_BLOCK"|TR34_KEY_BLOCK->"TR34_KEY_BLOCK"|Non_static_ids->sletof_string=function|"KEY_CRYPTOGRAM"->KEY_CRYPTOGRAM|"TR31_KEY_BLOCK"->TR31_KEY_BLOCK|"TR34_KEY_BLOCK"->TR34_KEY_BLOCK|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration WrappedKeyMaterialFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WrappedKeyMaterialFormat"j)letto_json=simple_to_jsonto_valueendmoduleExportDukptInitialKey=structtypenonrect={keySerialNumber:HexLength20Or24.t[@ocaml.doc"The KSN for IPEK generation using DUKPT. KSN must be padded before sending to Amazon Web Services Payment Cryptography. KSN hex length should be 20 for a TDES_2KEY key or 24 for an AES key."]}letcontext_="ExportDukptInitialKey"letmake~keySerialNumber=fun()->{keySerialNumber}letto_valuex=structure_to_value[("KeySerialNumber",(Some(HexLength20Or24.to_valuex.keySerialNumber)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeySerialNumber=HexLength20Or24.of_xml(Xml.child_exn~context:context_xml_arg0"KeySerialNumber")inmake~keySerialNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeySerialNumber=field_map_exnjson__"KeySerialNumber"HexLength20Or24.of_jsoninmake~keySerialNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for IPEK generation during export."]moduleExportAs2805KeyCryptogram=structtypenonrect={wrappingKeyIdentifier:KeyArnOrKeyAliasType.t;as2805KeyVariant:As2805KeyVariant.t[@ocaml.doc"The cryptographic usage of the key under export."]}letcontext_="ExportAs2805KeyCryptogram"letmake~wrappingKeyIdentifier=fun~as2805KeyVariant->fun()->{wrappingKeyIdentifier;as2805KeyVariant}letto_valuex=structure_to_value[("WrappingKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.wrappingKeyIdentifier)));("As2805KeyVariant",(Some(As2805KeyVariant.to_valuex.as2805KeyVariant)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letas2805KeyVariant=As2805KeyVariant.of_xml(Xml.child_exn~context:context_xml_arg0"As2805KeyVariant")inletwrappingKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"WrappingKeyIdentifier")inmake~as2805KeyVariant~wrappingKeyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letas2805KeyVariant=field_map_exnjson__"As2805KeyVariant"As2805KeyVariant.of_jsoninletwrappingKeyIdentifier=field_map_exnjson__"WrappingKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~as2805KeyVariant~wrappingKeyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for key material export using AS2805 key cryptogram format."]moduleExportDiffieHellmanTr31KeyBlock=structtypenonrect={privateKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The keyARN of the asymmetric ECC key created within Amazon Web Services Payment Cryptography."];certificateAuthorityPublicKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The keyARN of the CA that signed the PublicKeyCertificate for the client's receiving ECC key pair."];publicKeyCertificate:CertificateType.t[@ocaml.doc"The public key certificate of the client's receiving ECC key pair, in PEM format (base64 encoded), to use for ECDH key derivation."];deriveKeyAlgorithm:SymmetricKeyAlgorithm.t[@ocaml.doc"The key algorithm of the shared derived ECDH key."];keyDerivationFunction:KeyDerivationFunction.t[@ocaml.doc"The key derivation function to use when deriving a key using ECDH."];keyDerivationHashAlgorithm:KeyDerivationHashAlgorithm.t[@ocaml.doc"The hash type to use when deriving a key using ECDH."];derivationData:DiffieHellmanDerivationData.t[@ocaml.doc"The shared information used when deriving a key using ECDH."];keyBlockHeaders:KeyBlockHeaders.toption}letcontext_="ExportDiffieHellmanTr31KeyBlock"letmake?keyBlockHeaders=fun~privateKeyIdentifier->fun~certificateAuthorityPublicKeyIdentifier->fun~publicKeyCertificate->fun~deriveKeyAlgorithm->fun~keyDerivationFunction->fun~keyDerivationHashAlgorithm->fun~derivationData->fun()->{keyBlockHeaders;privateKeyIdentifier;certificateAuthorityPublicKeyIdentifier;publicKeyCertificate;deriveKeyAlgorithm;keyDerivationFunction;keyDerivationHashAlgorithm;derivationData}letto_valuex=structure_to_value[("PrivateKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.privateKeyIdentifier)));("CertificateAuthorityPublicKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.certificateAuthorityPublicKeyIdentifier)));("PublicKeyCertificate",(Some(CertificateType.to_valuex.publicKeyCertificate)));("DeriveKeyAlgorithm",(Some(SymmetricKeyAlgorithm.to_valuex.deriveKeyAlgorithm)));("KeyDerivationFunction",(Some(KeyDerivationFunction.to_valuex.keyDerivationFunction)));("KeyDerivationHashAlgorithm",(Some(KeyDerivationHashAlgorithm.to_valuex.keyDerivationHashAlgorithm)));("DerivationData",(Some(DiffieHellmanDerivationData.to_valuex.derivationData)));("KeyBlockHeaders",(Option.mapx.keyBlockHeaders~f:KeyBlockHeaders.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyBlockHeaders=(Option.map~f:KeyBlockHeaders.of_xml)(Xml.childxml_arg0"KeyBlockHeaders")inletderivationData=DiffieHellmanDerivationData.of_xml(Xml.child_exn~context:context_xml_arg0"DerivationData")inletkeyDerivationHashAlgorithm=KeyDerivationHashAlgorithm.of_xml(Xml.child_exn~context:context_xml_arg0"KeyDerivationHashAlgorithm")inletkeyDerivationFunction=KeyDerivationFunction.of_xml(Xml.child_exn~context:context_xml_arg0"KeyDerivationFunction")inletderiveKeyAlgorithm=SymmetricKeyAlgorithm.of_xml(Xml.child_exn~context:context_xml_arg0"DeriveKeyAlgorithm")inletpublicKeyCertificate=CertificateType.of_xml(Xml.child_exn~context:context_xml_arg0"PublicKeyCertificate")inletcertificateAuthorityPublicKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateAuthorityPublicKeyIdentifier")inletprivateKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"PrivateKeyIdentifier")inmake?keyBlockHeaders~derivationData~keyDerivationHashAlgorithm~keyDerivationFunction~deriveKeyAlgorithm~publicKeyCertificate~certificateAuthorityPublicKeyIdentifier~privateKeyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyBlockHeaders=field_mapjson__"KeyBlockHeaders"KeyBlockHeaders.of_jsoninletderivationData=field_map_exnjson__"DerivationData"DiffieHellmanDerivationData.of_jsoninletkeyDerivationHashAlgorithm=field_map_exnjson__"KeyDerivationHashAlgorithm"KeyDerivationHashAlgorithm.of_jsoninletkeyDerivationFunction=field_map_exnjson__"KeyDerivationFunction"KeyDerivationFunction.of_jsoninletderiveKeyAlgorithm=field_map_exnjson__"DeriveKeyAlgorithm"SymmetricKeyAlgorithm.of_jsoninletpublicKeyCertificate=field_map_exnjson__"PublicKeyCertificate"CertificateType.of_jsoninletcertificateAuthorityPublicKeyIdentifier=field_map_exnjson__"CertificateAuthorityPublicKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninletprivateKeyIdentifier=field_map_exnjson__"PrivateKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake?keyBlockHeaders~derivationData~keyDerivationHashAlgorithm~keyDerivationFunction~deriveKeyAlgorithm~publicKeyCertificate~certificateAuthorityPublicKeyIdentifier~privateKeyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Key derivation parameter information for key material export using asymmetric ECDH key exchange method."]moduleExportKeyCryptogram=structtypenonrect={certificateAuthorityPublicKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the certificate chain that signs the wrapping key certificate during RSA wrap and unwrap key export."];wrappingKeyCertificate:CertificateType.t[@ocaml.doc"The wrapping key certificate in PEM format (base64 encoded). Amazon Web Services Payment Cryptography uses this certificate to wrap the key under export."];wrappingSpec:WrappingKeySpec.toption[@ocaml.doc"The wrapping spec for the key under export."]}letcontext_="ExportKeyCryptogram"letmake?wrappingSpec=fun~certificateAuthorityPublicKeyIdentifier->fun~wrappingKeyCertificate->fun()->{wrappingSpec;certificateAuthorityPublicKeyIdentifier;wrappingKeyCertificate}letto_valuex=structure_to_value[("CertificateAuthorityPublicKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.certificateAuthorityPublicKeyIdentifier)));("WrappingKeyCertificate",(Some(CertificateType.to_valuex.wrappingKeyCertificate)));("WrappingSpec",(Option.mapx.wrappingSpec~f:WrappingKeySpec.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwrappingSpec=(Option.map~f:WrappingKeySpec.of_xml)(Xml.childxml_arg0"WrappingSpec")inletwrappingKeyCertificate=CertificateType.of_xml(Xml.child_exn~context:context_xml_arg0"WrappingKeyCertificate")inletcertificateAuthorityPublicKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateAuthorityPublicKeyIdentifier")inmake?wrappingSpec~wrappingKeyCertificate~certificateAuthorityPublicKeyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwrappingSpec=field_mapjson__"WrappingSpec"WrappingKeySpec.of_jsoninletwrappingKeyCertificate=field_map_exnjson__"WrappingKeyCertificate"CertificateType.of_jsoninletcertificateAuthorityPublicKeyIdentifier=field_map_exnjson__"CertificateAuthorityPublicKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake?wrappingSpec~wrappingKeyCertificate~certificateAuthorityPublicKeyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for key material export using asymmetric RSA wrap and unwrap key exchange method."]moduleExportTr31KeyBlock=structtypenonrect={wrappingKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the the wrapping key. This key encrypts or wraps the key under export for TR-31 key block generation."];keyBlockHeaders:KeyBlockHeaders.toption[@ocaml.doc"Optional metadata for export associated with the key material. This data is signed but transmitted in clear text."]}letcontext_="ExportTr31KeyBlock"letmake?keyBlockHeaders=fun~wrappingKeyIdentifier->fun()->{keyBlockHeaders;wrappingKeyIdentifier}letto_valuex=structure_to_value[("WrappingKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.wrappingKeyIdentifier)));("KeyBlockHeaders",(Option.mapx.keyBlockHeaders~f:KeyBlockHeaders.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyBlockHeaders=(Option.map~f:KeyBlockHeaders.of_xml)(Xml.childxml_arg0"KeyBlockHeaders")inletwrappingKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"WrappingKeyIdentifier")inmake?keyBlockHeaders~wrappingKeyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyBlockHeaders=field_mapjson__"KeyBlockHeaders"KeyBlockHeaders.of_jsoninletwrappingKeyIdentifier=field_map_exnjson__"WrappingKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake?keyBlockHeaders~wrappingKeyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for key material export using symmetric TR-31 key exchange method."]moduleExportTr34KeyBlock=structtypenonrect={certificateAuthorityPublicKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the certificate chain that signs the wrapping key certificate during TR-34 key export."];wrappingKeyCertificate:CertificateType.t[@ocaml.doc"The KeyARN of the wrapping key certificate. Amazon Web Services Payment Cryptography uses this certificate to wrap the key under export."];exportToken:ExportTokenId.toption[@ocaml.doc"The export token to initiate key export from Amazon Web Services Payment Cryptography. It also contains the signing key certificate that will sign the wrapped key during TR-34 key block generation. Call GetParametersForExport to receive an export token. It expires after 30 days. You can use the same export token to export multiple keys from the same service account."];signingKeyIdentifier:KeyArnOrKeyAliasType.toption[@ocaml.doc"Key Identifier used for signing the export key"];signingKeyCertificate:CertificateType.toption[@ocaml.doc"The certificate used to sign the TR-34 key block."];keyBlockFormat:Tr34KeyBlockFormat.t[@ocaml.doc"The format of key block that Amazon Web Services Payment Cryptography will use during key export."];randomNonce:EvenHexLengthBetween16And32.toption[@ocaml.doc"A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass."];keyBlockHeaders:KeyBlockHeaders.toption[@ocaml.doc"Optional metadata for export associated with the key material. This data is signed but transmitted in clear text."]}letcontext_="ExportTr34KeyBlock"letmake?exportToken=fun?signingKeyIdentifier->fun?signingKeyCertificate->fun?randomNonce->fun?keyBlockHeaders->fun~certificateAuthorityPublicKeyIdentifier->fun~wrappingKeyCertificate->fun~keyBlockFormat->fun()->{exportToken;signingKeyIdentifier;signingKeyCertificate;randomNonce;keyBlockHeaders;certificateAuthorityPublicKeyIdentifier;wrappingKeyCertificate;keyBlockFormat}letto_valuex=structure_to_value[("CertificateAuthorityPublicKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.certificateAuthorityPublicKeyIdentifier)));("WrappingKeyCertificate",(Some(CertificateType.to_valuex.wrappingKeyCertificate)));("ExportToken",(Option.mapx.exportToken~f:ExportTokenId.to_value));("SigningKeyIdentifier",(Option.mapx.signingKeyIdentifier~f:KeyArnOrKeyAliasType.to_value));("SigningKeyCertificate",(Option.mapx.signingKeyCertificate~f:CertificateType.to_value));("KeyBlockFormat",(Some(Tr34KeyBlockFormat.to_valuex.keyBlockFormat)));("RandomNonce",(Option.mapx.randomNonce~f:EvenHexLengthBetween16And32.to_value));("KeyBlockHeaders",(Option.mapx.keyBlockHeaders~f:KeyBlockHeaders.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyBlockHeaders=(Option.map~f:KeyBlockHeaders.of_xml)(Xml.childxml_arg0"KeyBlockHeaders")inletrandomNonce=(Option.map~f:EvenHexLengthBetween16And32.of_xml)(Xml.childxml_arg0"RandomNonce")inletkeyBlockFormat=Tr34KeyBlockFormat.of_xml(Xml.child_exn~context:context_xml_arg0"KeyBlockFormat")inletsigningKeyCertificate=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"SigningKeyCertificate")inletsigningKeyIdentifier=(Option.map~f:KeyArnOrKeyAliasType.of_xml)(Xml.childxml_arg0"SigningKeyIdentifier")inletexportToken=(Option.map~f:ExportTokenId.of_xml)(Xml.childxml_arg0"ExportToken")inletwrappingKeyCertificate=CertificateType.of_xml(Xml.child_exn~context:context_xml_arg0"WrappingKeyCertificate")inletcertificateAuthorityPublicKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateAuthorityPublicKeyIdentifier")inmake?keyBlockHeaders?randomNonce~keyBlockFormat?signingKeyCertificate?signingKeyIdentifier?exportToken~wrappingKeyCertificate~certificateAuthorityPublicKeyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyBlockHeaders=field_mapjson__"KeyBlockHeaders"KeyBlockHeaders.of_jsoninletrandomNonce=field_mapjson__"RandomNonce"EvenHexLengthBetween16And32.of_jsoninletkeyBlockFormat=field_map_exnjson__"KeyBlockFormat"Tr34KeyBlockFormat.of_jsoninletsigningKeyCertificate=field_mapjson__"SigningKeyCertificate"CertificateType.of_jsoninletsigningKeyIdentifier=field_mapjson__"SigningKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninletexportToken=field_mapjson__"ExportToken"ExportTokenId.of_jsoninletwrappingKeyCertificate=field_map_exnjson__"WrappingKeyCertificate"CertificateType.of_jsoninletcertificateAuthorityPublicKeyIdentifier=field_map_exnjson__"CertificateAuthorityPublicKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake?keyBlockHeaders?randomNonce~keyBlockFormat?signingKeyCertificate?signingKeyIdentifier?exportToken~wrappingKeyCertificate~certificateAuthorityPublicKeyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for key material export using the asymmetric TR-34 key exchange method."]moduleAccessDeniedException=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 do not have sufficient access to perform this action. This exception is thrown when the caller lacks the necessary IAM permissions to perform the requested operation. Verify that your IAM policy includes the required permissions for the specific Amazon Web Services Payment Cryptography action you're attempting."]moduleConflictException=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"This request can cause an inconsistent state for the resource. The requested operation conflicts with the current state of the resource. For example, attempting to delete a key that is currently being used, or trying to create a resource that already exists."]moduleInternalServerException=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 processing has failed because of an unknown error, exception, or failure. This indicates a server-side error within the Amazon Web Services Payment Cryptography service. If this error persists, contact support for assistance."]moduleResourceNotFoundException=structtypenonrect={resourceId:String_.toption[@ocaml.doc"The identifier of the resource that was not found. This field contains the specific resource identifier (such as a key ARN or alias name) that could not be located."]}letmake?resourceId=fun()->{resourceId}letto_valuex=structure_to_value[("ResourceId",(Option.mapx.resourceId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourceId")inmake?resourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceId=field_mapjson__"ResourceId"String_.of_jsoninmake?resourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to resource not found. The specified key, alias, or other resource does not exist in your account or region. Verify that the resource identifier is correct and that the resource exists in the expected region."]moduleServiceUnavailableException=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 service cannot complete the request. The Amazon Web Services Payment Cryptography service is temporarily unavailable. This is typically a temporary condition - retry your request after a brief delay."]moduleThrottlingException=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 was denied due to request throttling. You have exceeded the rate limits for Amazon Web Services Payment Cryptography API calls. Implement exponential backoff and retry logic in your application to handle throttling gracefully."]moduleValidationException=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 was denied due to an invalid request error. One or more parameters in your request are invalid. Check the parameter values, formats, and constraints specified in the API documentation."]moduleResourceArn=structtypenonrect=stringletcontext_="ResourceArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:70)>>=(fun()->(check_string_maxi~max:150)>>=(fun()->check_patterni~pattern:"arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:key/[0-9a-zA-Z]{16,64}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceArn"jletto_json=simple_to_jsonto_valueendmoduleTagKeys=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeys"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceQuotaExceededException=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"This request would cause a service quota to be exceeded. You have reached the maximum number of keys, aliases, or other resources allowed in your account. Review your current usage and consider deleting unused resources or requesting a quota increase."]moduleTags=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"Tags"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKey=structtypenonrect={keyArn:KeyArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the key."];keyAttributes:KeyAttributes.toption[@ocaml.doc"The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created."];keyCheckValue:KeyCheckValue.toption[@ocaml.doc"The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed."];keyCheckValueAlgorithm:KeyCheckValueAlgorithm.toption[@ocaml.doc"The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity. For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result."];enabled:Boolean.toption[@ocaml.doc"Specifies whether the key is enabled."];exportable:Boolean.toption[@ocaml.doc"Specifies whether the key is exportable. This data is immutable after the key is created."];keyState:KeyState.toption[@ocaml.doc"The state of key that is being created or deleted."];keyOrigin:KeyOrigin.toption[@ocaml.doc"The source of the key material. For keys created within Amazon Web Services Payment Cryptography, the value is AWS_PAYMENT_CRYPTOGRAPHY. For keys imported into Amazon Web Services Payment Cryptography, the value is EXTERNAL."];createTimestamp:Timestamp.toption[@ocaml.doc"The date and time when the key was created."];usageStartTimestamp:Timestamp.toption[@ocaml.doc"The date and time after which Amazon Web Services Payment Cryptography will start using the key material for cryptographic operations."];usageStopTimestamp:Timestamp.toption[@ocaml.doc"The date and time after which Amazon Web Services Payment Cryptography will stop using the key material for cryptographic operations."];deletePendingTimestamp:Timestamp.toption[@ocaml.doc"The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when KeyState is DELETE_PENDING and the key is scheduled for deletion."];deleteTimestamp:Timestamp.toption[@ocaml.doc"The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when when the KeyState is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography key is deleted."];deriveKeyUsage:DeriveKeyUsage.toption[@ocaml.doc"The cryptographic usage of an ECDH derived key as de\239\172\129ned in section A.5.2 of the TR-31 spec."];multiRegionKeyType:MultiRegionKeyType.toption[@ocaml.doc"Indicates whether this key is a Multi-Region key and its role in the Multi-Region key hierarchy. Multi-Region replication keys allow the same key material to be used across multiple Amazon Web Services Regions. This field specifies whether the key is a Primary Region key (PRK) (which can be replicated to other Amazon Web Services Regions) or a Replica Region key (RRK) (which is a copy of a PRK in another Region). For more information, see Multi-Region key replication."];primaryRegion:Region.toption;replicationStatus:ReplicationStatus.toption[@ocaml.doc"Information about the replication status of the key across different Amazon Web Services Regions. This field provides details about the current state of key replication, including any status messages or operational information. It helps track the progress and health of key replication operations."];usingDefaultReplicationRegions:Boolean.toption[@ocaml.doc"Indicates whether this key is using the account's default replication regions configuration for Multi-Region key replication. When set to true, the key automatically replicates to the regions specified in the account's default replication settings. When set to false, the key has a custom replication configuration that overrides the account defaults."];mpaStatus:MpaStatus.toption[@ocaml.doc"The Multi-Party Approval (MPA) status for the key, if applicable."]}letmake?keyArn=fun?keyAttributes->fun?keyCheckValue->fun?keyCheckValueAlgorithm->fun?enabled->fun?exportable->fun?keyState->fun?keyOrigin->fun?createTimestamp->fun?usageStartTimestamp->fun?usageStopTimestamp->fun?deletePendingTimestamp->fun?deleteTimestamp->fun?deriveKeyUsage->fun?multiRegionKeyType->fun?primaryRegion->fun?replicationStatus->fun?usingDefaultReplicationRegions->fun?mpaStatus->fun()->{keyArn;keyAttributes;keyCheckValue;keyCheckValueAlgorithm;enabled;exportable;keyState;keyOrigin;createTimestamp;usageStartTimestamp;usageStopTimestamp;deletePendingTimestamp;deleteTimestamp;deriveKeyUsage;multiRegionKeyType;primaryRegion;replicationStatus;usingDefaultReplicationRegions;mpaStatus}letto_valuex=structure_to_value[("KeyArn",(Option.mapx.keyArn~f:KeyArn.to_value));("KeyAttributes",(Option.mapx.keyAttributes~f:KeyAttributes.to_value));("KeyCheckValue",(Option.mapx.keyCheckValue~f:KeyCheckValue.to_value));("KeyCheckValueAlgorithm",(Option.mapx.keyCheckValueAlgorithm~f:KeyCheckValueAlgorithm.to_value));("Enabled",(Option.mapx.enabled~f:Boolean.to_value));("Exportable",(Option.mapx.exportable~f:Boolean.to_value));("KeyState",(Option.mapx.keyState~f:KeyState.to_value));("KeyOrigin",(Option.mapx.keyOrigin~f:KeyOrigin.to_value));("CreateTimestamp",(Option.mapx.createTimestamp~f:Timestamp.to_value));("UsageStartTimestamp",(Option.mapx.usageStartTimestamp~f:Timestamp.to_value));("UsageStopTimestamp",(Option.mapx.usageStopTimestamp~f:Timestamp.to_value));("DeletePendingTimestamp",(Option.mapx.deletePendingTimestamp~f:Timestamp.to_value));("DeleteTimestamp",(Option.mapx.deleteTimestamp~f:Timestamp.to_value));("DeriveKeyUsage",(Option.mapx.deriveKeyUsage~f:DeriveKeyUsage.to_value));("MultiRegionKeyType",(Option.mapx.multiRegionKeyType~f:MultiRegionKeyType.to_value));("PrimaryRegion",(Option.mapx.primaryRegion~f:Region.to_value));("ReplicationStatus",(Option.mapx.replicationStatus~f:ReplicationStatus.to_value));("UsingDefaultReplicationRegions",(Option.mapx.usingDefaultReplicationRegions~f:Boolean.to_value));("MpaStatus",(Option.mapx.mpaStatus~f:MpaStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmpaStatus=(Option.map~f:MpaStatus.of_xml)(Xml.childxml_arg0"MpaStatus")inletusingDefaultReplicationRegions=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"UsingDefaultReplicationRegions")inletreplicationStatus=(Option.map~f:ReplicationStatus.of_xml)(Xml.childxml_arg0"ReplicationStatus")inletprimaryRegion=(Option.map~f:Region.of_xml)(Xml.childxml_arg0"PrimaryRegion")inletmultiRegionKeyType=(Option.map~f:MultiRegionKeyType.of_xml)(Xml.childxml_arg0"MultiRegionKeyType")inletderiveKeyUsage=(Option.map~f:DeriveKeyUsage.of_xml)(Xml.childxml_arg0"DeriveKeyUsage")inletdeleteTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"DeleteTimestamp")inletdeletePendingTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"DeletePendingTimestamp")inletusageStopTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"UsageStopTimestamp")inletusageStartTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"UsageStartTimestamp")inletcreateTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreateTimestamp")inletkeyOrigin=(Option.map~f:KeyOrigin.of_xml)(Xml.childxml_arg0"KeyOrigin")inletkeyState=(Option.map~f:KeyState.of_xml)(Xml.childxml_arg0"KeyState")inletexportable=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"Exportable")inletenabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"Enabled")inletkeyCheckValueAlgorithm=(Option.map~f:KeyCheckValueAlgorithm.of_xml)(Xml.childxml_arg0"KeyCheckValueAlgorithm")inletkeyCheckValue=(Option.map~f:KeyCheckValue.of_xml)(Xml.childxml_arg0"KeyCheckValue")inletkeyAttributes=(Option.map~f:KeyAttributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inletkeyArn=(Option.map~f:KeyArn.of_xml)(Xml.childxml_arg0"KeyArn")inmake?mpaStatus?usingDefaultReplicationRegions?replicationStatus?primaryRegion?multiRegionKeyType?deriveKeyUsage?deleteTimestamp?deletePendingTimestamp?usageStopTimestamp?usageStartTimestamp?createTimestamp?keyOrigin?keyState?exportable?enabled?keyCheckValueAlgorithm?keyCheckValue?keyAttributes?keyArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmpaStatus=field_mapjson__"MpaStatus"MpaStatus.of_jsoninletusingDefaultReplicationRegions=field_mapjson__"UsingDefaultReplicationRegions"Boolean.of_jsoninletreplicationStatus=field_mapjson__"ReplicationStatus"ReplicationStatus.of_jsoninletprimaryRegion=field_mapjson__"PrimaryRegion"Region.of_jsoninletmultiRegionKeyType=field_mapjson__"MultiRegionKeyType"MultiRegionKeyType.of_jsoninletderiveKeyUsage=field_mapjson__"DeriveKeyUsage"DeriveKeyUsage.of_jsoninletdeleteTimestamp=field_mapjson__"DeleteTimestamp"Timestamp.of_jsoninletdeletePendingTimestamp=field_mapjson__"DeletePendingTimestamp"Timestamp.of_jsoninletusageStopTimestamp=field_mapjson__"UsageStopTimestamp"Timestamp.of_jsoninletusageStartTimestamp=field_mapjson__"UsageStartTimestamp"Timestamp.of_jsoninletcreateTimestamp=field_mapjson__"CreateTimestamp"Timestamp.of_jsoninletkeyOrigin=field_mapjson__"KeyOrigin"KeyOrigin.of_jsoninletkeyState=field_mapjson__"KeyState"KeyState.of_jsoninletexportable=field_mapjson__"Exportable"Boolean.of_jsoninletenabled=field_mapjson__"Enabled"Boolean.of_jsoninletkeyCheckValueAlgorithm=field_mapjson__"KeyCheckValueAlgorithm"KeyCheckValueAlgorithm.of_jsoninletkeyCheckValue=field_mapjson__"KeyCheckValue"KeyCheckValue.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"KeyAttributes.of_jsoninletkeyArn=field_mapjson__"KeyArn"KeyArn.of_jsoninmake?mpaStatus?usingDefaultReplicationRegions?replicationStatus?primaryRegion?multiRegionKeyType?deriveKeyUsage?deleteTimestamp?deletePendingTimestamp?usageStopTimestamp?usageStartTimestamp?createTimestamp?keyOrigin?keyState?exportable?enabled?keyCheckValueAlgorithm?keyCheckValue?keyAttributes?keyArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Metadata about an Amazon Web Services Payment Cryptography key."]moduleRegions=structtypenonrect=Region.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Region.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:Region.of_xml)letof_jsonj=list_of_json~kind:"Regions"~of_json:Region.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePublicPolicyException=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 resource-based policy would grant public access to the key. Modify the policy to restrict access to specific principals and resubmit the request."]moduleResourcePolicy=structtypenonrect=stringletcontext_="ResourcePolicy"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:20480)>>=(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:"ResourcePolicy"jletto_json=simple_to_jsonto_valueendmoduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:8192)>>=(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:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleKeySummaryList=structtypenonrect=KeySummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KeySummary.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:KeySummary.of_xml)letof_jsonj=list_of_json~kind:"KeySummaryList"~of_json:KeySummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAliases=structtypenonrect=Alias.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Alias.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:Alias.of_xml)letof_jsonj=list_of_json~kind:"Aliases"~of_json:Alias.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleImportKeyMaterial=structtypenonrect={rootCertificatePublicKey:RootCertificatePublicKey.toption[@ocaml.doc"Parameter information for root public key certificate import."];trustedCertificatePublicKey:TrustedCertificatePublicKey.toption[@ocaml.doc"Parameter information for trusted public key certificate import."];tr31KeyBlock:ImportTr31KeyBlock.toption[@ocaml.doc"Parameter information for key material import using symmetric TR-31 key exchange method."];tr34KeyBlock:ImportTr34KeyBlock.toption[@ocaml.doc"Parameter information for key material import using the asymmetric TR-34 key exchange method."];keyCryptogram:ImportKeyCryptogram.toption[@ocaml.doc"Parameter information for key material import using asymmetric RSA wrap and unwrap key exchange method."];diffieHellmanTr31KeyBlock:ImportDiffieHellmanTr31KeyBlock.toption[@ocaml.doc"Key derivation parameter information for key material import using asymmetric ECDH key exchange method."];as2805KeyCryptogram:ImportAs2805KeyCryptogram.toption[@ocaml.doc"Parameter information for key material import using AS2805 key cryptogram format."]}letmake?rootCertificatePublicKey=fun?trustedCertificatePublicKey->fun?tr31KeyBlock->fun?tr34KeyBlock->fun?keyCryptogram->fun?diffieHellmanTr31KeyBlock->fun?as2805KeyCryptogram->fun()->{rootCertificatePublicKey;trustedCertificatePublicKey;tr31KeyBlock;tr34KeyBlock;keyCryptogram;diffieHellmanTr31KeyBlock;as2805KeyCryptogram}letto_valuex=structure_to_value[("RootCertificatePublicKey",(Option.mapx.rootCertificatePublicKey~f:RootCertificatePublicKey.to_value));("TrustedCertificatePublicKey",(Option.mapx.trustedCertificatePublicKey~f:TrustedCertificatePublicKey.to_value));("Tr31KeyBlock",(Option.mapx.tr31KeyBlock~f:ImportTr31KeyBlock.to_value));("Tr34KeyBlock",(Option.mapx.tr34KeyBlock~f:ImportTr34KeyBlock.to_value));("KeyCryptogram",(Option.mapx.keyCryptogram~f:ImportKeyCryptogram.to_value));("DiffieHellmanTr31KeyBlock",(Option.mapx.diffieHellmanTr31KeyBlock~f:ImportDiffieHellmanTr31KeyBlock.to_value));("As2805KeyCryptogram",(Option.mapx.as2805KeyCryptogram~f:ImportAs2805KeyCryptogram.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letas2805KeyCryptogram=(Option.map~f:ImportAs2805KeyCryptogram.of_xml)(Xml.childxml_arg0"As2805KeyCryptogram")inletdiffieHellmanTr31KeyBlock=(Option.map~f:ImportDiffieHellmanTr31KeyBlock.of_xml)(Xml.childxml_arg0"DiffieHellmanTr31KeyBlock")inletkeyCryptogram=(Option.map~f:ImportKeyCryptogram.of_xml)(Xml.childxml_arg0"KeyCryptogram")inlettr34KeyBlock=(Option.map~f:ImportTr34KeyBlock.of_xml)(Xml.childxml_arg0"Tr34KeyBlock")inlettr31KeyBlock=(Option.map~f:ImportTr31KeyBlock.of_xml)(Xml.childxml_arg0"Tr31KeyBlock")inlettrustedCertificatePublicKey=(Option.map~f:TrustedCertificatePublicKey.of_xml)(Xml.childxml_arg0"TrustedCertificatePublicKey")inletrootCertificatePublicKey=(Option.map~f:RootCertificatePublicKey.of_xml)(Xml.childxml_arg0"RootCertificatePublicKey")inmake?as2805KeyCryptogram?diffieHellmanTr31KeyBlock?keyCryptogram?tr34KeyBlock?tr31KeyBlock?trustedCertificatePublicKey?rootCertificatePublicKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letas2805KeyCryptogram=field_mapjson__"As2805KeyCryptogram"ImportAs2805KeyCryptogram.of_jsoninletdiffieHellmanTr31KeyBlock=field_mapjson__"DiffieHellmanTr31KeyBlock"ImportDiffieHellmanTr31KeyBlock.of_jsoninletkeyCryptogram=field_mapjson__"KeyCryptogram"ImportKeyCryptogram.of_jsoninlettr34KeyBlock=field_mapjson__"Tr34KeyBlock"ImportTr34KeyBlock.of_jsoninlettr31KeyBlock=field_mapjson__"Tr31KeyBlock"ImportTr31KeyBlock.of_jsoninlettrustedCertificatePublicKey=field_mapjson__"TrustedCertificatePublicKey"TrustedCertificatePublicKey.of_jsoninletrootCertificatePublicKey=field_mapjson__"RootCertificatePublicKey"RootCertificatePublicKey.of_jsoninmake?as2805KeyCryptogram?diffieHellmanTr31KeyBlock?keyCryptogram?tr34KeyBlock?tr31KeyBlock?trustedCertificatePublicKey?rootCertificatePublicKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for key material import into Amazon Web Services Payment Cryptography using TR-31 or TR-34 or RSA wrap and unwrap key exchange method."]moduleMpaRequesterComment=structtypenonrect=stringletcontext_="MpaRequesterComment"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:200)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MpaRequesterComment"jletto_json=simple_to_jsonto_valueendmoduleKeyMaterialType=structtypenonrect=|TR34_KEY_BLOCK|TR31_KEY_BLOCK|ROOT_PUBLIC_KEY_CERTIFICATE|TRUSTED_PUBLIC_KEY_CERTIFICATE|KEY_CRYPTOGRAM|Non_static_idofstringletmakei=iletto_string=function|TR34_KEY_BLOCK->"TR34_KEY_BLOCK"|TR31_KEY_BLOCK->"TR31_KEY_BLOCK"|ROOT_PUBLIC_KEY_CERTIFICATE->"ROOT_PUBLIC_KEY_CERTIFICATE"|TRUSTED_PUBLIC_KEY_CERTIFICATE->"TRUSTED_PUBLIC_KEY_CERTIFICATE"|KEY_CRYPTOGRAM->"KEY_CRYPTOGRAM"|Non_static_ids->sletof_string=function|"TR34_KEY_BLOCK"->TR34_KEY_BLOCK|"TR31_KEY_BLOCK"->TR31_KEY_BLOCK|"ROOT_PUBLIC_KEY_CERTIFICATE"->ROOT_PUBLIC_KEY_CERTIFICATE|"TRUSTED_PUBLIC_KEY_CERTIFICATE"->TRUSTED_PUBLIC_KEY_CERTIFICATE|"KEY_CRYPTOGRAM"->KEY_CRYPTOGRAM|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 KeyMaterialType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KeyMaterialType"j)letto_json=simple_to_jsonto_valueendmoduleMpaTeamAssociation=structtypenonrect={action:MpaOperation.toption[@ocaml.doc"The protected operation associated with the MPA team."];mpaTeamArn:MpaTeamArn.toption[@ocaml.doc"The ARN of the MPA team."];associationState:AssociationState.toption[@ocaml.doc"The state of the MPA team association."];mpaStatus:MpaStatus.toption[@ocaml.doc"The MPA session status for the association, if applicable."]}letmake?action=fun?mpaTeamArn->fun?associationState->fun?mpaStatus->fun()->{action;mpaTeamArn;associationState;mpaStatus}letto_valuex=structure_to_value[("Action",(Option.mapx.action~f:MpaOperation.to_value));("MpaTeamArn",(Option.mapx.mpaTeamArn~f:MpaTeamArn.to_value));("AssociationState",(Option.mapx.associationState~f:AssociationState.to_value));("MpaStatus",(Option.mapx.mpaStatus~f:MpaStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmpaStatus=(Option.map~f:MpaStatus.of_xml)(Xml.childxml_arg0"MpaStatus")inletassociationState=(Option.map~f:AssociationState.of_xml)(Xml.childxml_arg0"AssociationState")inletmpaTeamArn=(Option.map~f:MpaTeamArn.of_xml)(Xml.childxml_arg0"MpaTeamArn")inletaction=(Option.map~f:MpaOperation.of_xml)(Xml.childxml_arg0"Action")inmake?mpaStatus?associationState?mpaTeamArn?action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmpaStatus=field_mapjson__"MpaStatus"MpaStatus.of_jsoninletassociationState=field_mapjson__"AssociationState"AssociationState.of_jsoninletmpaTeamArn=field_mapjson__"MpaTeamArn"MpaTeamArn.of_jsoninletaction=field_mapjson__"Action"MpaOperation.of_jsoninmake?mpaStatus?associationState?mpaTeamArn?action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of an MPA team association with a protected operation."]moduleCertificateSigningRequestType=structtypenonrect=stringletcontext_="CertificateSigningRequestType"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:32768)>>=(fun()->check_patterni~pattern:"[^\\[;\\]<>]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateSigningRequestType"jletto_json=simple_to_jsonto_valueendmoduleCertificateSubjectType=structtypenonrect={commonName:CertificateSubjectTypeCommonNameString.t[@ocaml.doc"The name you provide to create the certificate signing request."];organizationUnit:CertificateSubjectTypeOrganizationUnitString.toption[@ocaml.doc"The organization unit you provide to create the certificate signing request."];organization:CertificateSubjectTypeOrganizationString.toption[@ocaml.doc"The organization you provide to create the certificate signing request."];city:CertificateSubjectTypeCityString.toption[@ocaml.doc"The city you provide to create the certificate signing request."];country:CertificateSubjectTypeCountryString.toption[@ocaml.doc"The country you provide to create the certificate signing request."];stateOrProvince:CertificateSubjectTypeStateOrProvinceString.toption[@ocaml.doc"The state or province you provide to create the certificate signing request."];emailAddress:CertificateSubjectTypeEmailAddressString.toption[@ocaml.doc"The email address you provide to create the certificate signing request."]}letcontext_="CertificateSubjectType"letmake?organizationUnit=fun?organization->fun?city->fun?country->fun?stateOrProvince->fun?emailAddress->fun~commonName->fun()->{organizationUnit;organization;city;country;stateOrProvince;emailAddress;commonName}letto_valuex=structure_to_value[("CommonName",(Some(CertificateSubjectTypeCommonNameString.to_valuex.commonName)));("OrganizationUnit",(Option.mapx.organizationUnit~f:CertificateSubjectTypeOrganizationUnitString.to_value));("Organization",(Option.mapx.organization~f:CertificateSubjectTypeOrganizationString.to_value));("City",(Option.mapx.city~f:CertificateSubjectTypeCityString.to_value));("Country",(Option.mapx.country~f:CertificateSubjectTypeCountryString.to_value));("StateOrProvince",(Option.mapx.stateOrProvince~f:CertificateSubjectTypeStateOrProvinceString.to_value));("EmailAddress",(Option.mapx.emailAddress~f:CertificateSubjectTypeEmailAddressString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letemailAddress=(Option.map~f:CertificateSubjectTypeEmailAddressString.of_xml)(Xml.childxml_arg0"EmailAddress")inletstateOrProvince=(Option.map~f:CertificateSubjectTypeStateOrProvinceString.of_xml)(Xml.childxml_arg0"StateOrProvince")inletcountry=(Option.map~f:CertificateSubjectTypeCountryString.of_xml)(Xml.childxml_arg0"Country")inletcity=(Option.map~f:CertificateSubjectTypeCityString.of_xml)(Xml.childxml_arg0"City")inletorganization=(Option.map~f:CertificateSubjectTypeOrganizationString.of_xml)(Xml.childxml_arg0"Organization")inletorganizationUnit=(Option.map~f:CertificateSubjectTypeOrganizationUnitString.of_xml)(Xml.childxml_arg0"OrganizationUnit")inletcommonName=CertificateSubjectTypeCommonNameString.of_xml(Xml.child_exn~context:context_xml_arg0"CommonName")inmake?emailAddress?stateOrProvince?country?city?organization?organizationUnit~commonName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letemailAddress=field_mapjson__"EmailAddress"CertificateSubjectTypeEmailAddressString.of_jsoninletstateOrProvince=field_mapjson__"StateOrProvince"CertificateSubjectTypeStateOrProvinceString.of_jsoninletcountry=field_mapjson__"Country"CertificateSubjectTypeCountryString.of_jsoninletcity=field_mapjson__"City"CertificateSubjectTypeCityString.of_jsoninletorganization=field_mapjson__"Organization"CertificateSubjectTypeOrganizationString.of_jsoninletorganizationUnit=field_mapjson__"OrganizationUnit"CertificateSubjectTypeOrganizationUnitString.of_jsoninletcommonName=field_map_exnjson__"CommonName"CertificateSubjectTypeCommonNameString.of_jsoninmake?emailAddress?stateOrProvince?country?city?organization?organizationUnit~commonName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The metadata used to create the certificate signing request."]moduleSigningAlgorithmType=structtypenonrect=|SHA224|SHA256|SHA384|SHA512|Non_static_idofstringletmakei=iletto_string=function|SHA224->"SHA224"|SHA256->"SHA256"|SHA384->"SHA384"|SHA512->"SHA512"|Non_static_ids->sletof_string=function|"SHA224"->SHA224|"SHA256"->SHA256|"SHA384"->SHA384|"SHA512"->SHA512|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 SigningAlgorithmType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SigningAlgorithmType"j)letto_json=simple_to_jsonto_valueendmoduleWrappedKey=structtypenonrect={wrappingKeyArn:KeyArn.toption[@ocaml.doc"The KeyARN of the wrapped key."];wrappedKeyMaterialFormat:WrappedKeyMaterialFormat.toption[@ocaml.doc"The key block format of a wrapped key."];keyMaterial:KeyMaterial.toption[@ocaml.doc"Parameter information for generating a wrapped key using TR-31 or TR-34 skey exchange method."];keyCheckValue:KeyCheckValue.toption[@ocaml.doc"The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed."];keyCheckValueAlgorithm:KeyCheckValueAlgorithm.toption[@ocaml.doc"The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity. For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result."]}letmake?wrappingKeyArn=fun?wrappedKeyMaterialFormat->fun?keyMaterial->fun?keyCheckValue->fun?keyCheckValueAlgorithm->fun()->{wrappingKeyArn;wrappedKeyMaterialFormat;keyMaterial;keyCheckValue;keyCheckValueAlgorithm}letto_valuex=structure_to_value[("WrappingKeyArn",(Option.mapx.wrappingKeyArn~f:KeyArn.to_value));("WrappedKeyMaterialFormat",(Option.mapx.wrappedKeyMaterialFormat~f:WrappedKeyMaterialFormat.to_value));("KeyMaterial",(Option.mapx.keyMaterial~f:KeyMaterial.to_value));("KeyCheckValue",(Option.mapx.keyCheckValue~f:KeyCheckValue.to_value));("KeyCheckValueAlgorithm",(Option.mapx.keyCheckValueAlgorithm~f:KeyCheckValueAlgorithm.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyCheckValueAlgorithm=(Option.map~f:KeyCheckValueAlgorithm.of_xml)(Xml.childxml_arg0"KeyCheckValueAlgorithm")inletkeyCheckValue=(Option.map~f:KeyCheckValue.of_xml)(Xml.childxml_arg0"KeyCheckValue")inletkeyMaterial=(Option.map~f:KeyMaterial.of_xml)(Xml.childxml_arg0"KeyMaterial")inletwrappedKeyMaterialFormat=(Option.map~f:WrappedKeyMaterialFormat.of_xml)(Xml.childxml_arg0"WrappedKeyMaterialFormat")inletwrappingKeyArn=(Option.map~f:KeyArn.of_xml)(Xml.childxml_arg0"WrappingKeyArn")inmake?keyCheckValueAlgorithm?keyCheckValue?keyMaterial?wrappedKeyMaterialFormat?wrappingKeyArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyCheckValueAlgorithm=field_mapjson__"KeyCheckValueAlgorithm"KeyCheckValueAlgorithm.of_jsoninletkeyCheckValue=field_mapjson__"KeyCheckValue"KeyCheckValue.of_jsoninletkeyMaterial=field_mapjson__"KeyMaterial"KeyMaterial.of_jsoninletwrappedKeyMaterialFormat=field_mapjson__"WrappedKeyMaterialFormat"WrappedKeyMaterialFormat.of_jsoninletwrappingKeyArn=field_mapjson__"WrappingKeyArn"KeyArn.of_jsoninmake?keyCheckValueAlgorithm?keyCheckValue?keyMaterial?wrappedKeyMaterialFormat?wrappingKeyArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for generating a WrappedKeyBlock for key exchange."]moduleExportAttributes=structtypenonrect={exportDukptInitialKey:ExportDukptInitialKey.toption[@ocaml.doc"Parameter information for IPEK export."];keyCheckValueAlgorithm:KeyCheckValueAlgorithm.toption[@ocaml.doc"The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity. Specify KCV for IPEK export only. For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result."]}letmake?exportDukptInitialKey=fun?keyCheckValueAlgorithm->fun()->{exportDukptInitialKey;keyCheckValueAlgorithm}letto_valuex=structure_to_value[("ExportDukptInitialKey",(Option.mapx.exportDukptInitialKey~f:ExportDukptInitialKey.to_value));("KeyCheckValueAlgorithm",(Option.mapx.keyCheckValueAlgorithm~f:KeyCheckValueAlgorithm.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyCheckValueAlgorithm=(Option.map~f:KeyCheckValueAlgorithm.of_xml)(Xml.childxml_arg0"KeyCheckValueAlgorithm")inletexportDukptInitialKey=(Option.map~f:ExportDukptInitialKey.of_xml)(Xml.childxml_arg0"ExportDukptInitialKey")inmake?keyCheckValueAlgorithm?exportDukptInitialKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyCheckValueAlgorithm=field_mapjson__"KeyCheckValueAlgorithm"KeyCheckValueAlgorithm.of_jsoninletexportDukptInitialKey=field_mapjson__"ExportDukptInitialKey"ExportDukptInitialKey.of_jsoninmake?keyCheckValueAlgorithm?exportDukptInitialKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The attributes for IPEK generation during export."]moduleExportKeyMaterial=structtypenonrect={tr31KeyBlock:ExportTr31KeyBlock.toption[@ocaml.doc"Parameter information for key material export using symmetric TR-31 key exchange method."];tr34KeyBlock:ExportTr34KeyBlock.toption[@ocaml.doc"Parameter information for key material export using the asymmetric TR-34 key exchange method."];keyCryptogram:ExportKeyCryptogram.toption[@ocaml.doc"Parameter information for key material export using asymmetric RSA wrap and unwrap key exchange method"];diffieHellmanTr31KeyBlock:ExportDiffieHellmanTr31KeyBlock.toption[@ocaml.doc"Key derivation parameter information for key material export using asymmetric ECDH key exchange method."];as2805KeyCryptogram:ExportAs2805KeyCryptogram.toption[@ocaml.doc"Parameter information for key material export using AS2805 key cryptogram format."]}letmake?tr31KeyBlock=fun?tr34KeyBlock->fun?keyCryptogram->fun?diffieHellmanTr31KeyBlock->fun?as2805KeyCryptogram->fun()->{tr31KeyBlock;tr34KeyBlock;keyCryptogram;diffieHellmanTr31KeyBlock;as2805KeyCryptogram}letto_valuex=structure_to_value[("Tr31KeyBlock",(Option.mapx.tr31KeyBlock~f:ExportTr31KeyBlock.to_value));("Tr34KeyBlock",(Option.mapx.tr34KeyBlock~f:ExportTr34KeyBlock.to_value));("KeyCryptogram",(Option.mapx.keyCryptogram~f:ExportKeyCryptogram.to_value));("DiffieHellmanTr31KeyBlock",(Option.mapx.diffieHellmanTr31KeyBlock~f:ExportDiffieHellmanTr31KeyBlock.to_value));("As2805KeyCryptogram",(Option.mapx.as2805KeyCryptogram~f:ExportAs2805KeyCryptogram.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letas2805KeyCryptogram=(Option.map~f:ExportAs2805KeyCryptogram.of_xml)(Xml.childxml_arg0"As2805KeyCryptogram")inletdiffieHellmanTr31KeyBlock=(Option.map~f:ExportDiffieHellmanTr31KeyBlock.of_xml)(Xml.childxml_arg0"DiffieHellmanTr31KeyBlock")inletkeyCryptogram=(Option.map~f:ExportKeyCryptogram.of_xml)(Xml.childxml_arg0"KeyCryptogram")inlettr34KeyBlock=(Option.map~f:ExportTr34KeyBlock.of_xml)(Xml.childxml_arg0"Tr34KeyBlock")inlettr31KeyBlock=(Option.map~f:ExportTr31KeyBlock.of_xml)(Xml.childxml_arg0"Tr31KeyBlock")inmake?as2805KeyCryptogram?diffieHellmanTr31KeyBlock?keyCryptogram?tr34KeyBlock?tr31KeyBlock()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letas2805KeyCryptogram=field_mapjson__"As2805KeyCryptogram"ExportAs2805KeyCryptogram.of_jsoninletdiffieHellmanTr31KeyBlock=field_mapjson__"DiffieHellmanTr31KeyBlock"ExportDiffieHellmanTr31KeyBlock.of_jsoninletkeyCryptogram=field_mapjson__"KeyCryptogram"ExportKeyCryptogram.of_jsoninlettr34KeyBlock=field_mapjson__"Tr34KeyBlock"ExportTr34KeyBlock.of_jsoninlettr31KeyBlock=field_mapjson__"Tr31KeyBlock"ExportTr31KeyBlock.of_jsoninmake?as2805KeyCryptogram?diffieHellmanTr31KeyBlock?keyCryptogram?tr34KeyBlock?tr31KeyBlock()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameter information for key material export from Amazon Web Services Payment Cryptography using TR-31 or TR-34 or RSA wrap and unwrap key exchange method."]moduleDeleteKeyInputDeleteKeyInDaysInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:180)>>=(fun()->check_int_mini~min:3));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for DeleteKeyInputDeleteKeyInDaysInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleUpdateAliasOutput=structtypenonrect={alias:Alias.toption[@ocaml.doc"The alias name."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?alias=fun()->{alias}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Alias",(Option.mapx.alias~f:Alias.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letalias=(Option.map~f:Alias.of_xml)(Xml.childxml_arg0"Alias")inmake?alias()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letalias=field_mapjson__"Alias"Alias.of_jsoninmake?alias()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates an existing Amazon Web Services Payment Cryptography alias with a different key. Each alias is associated with only one Amazon Web Services Payment Cryptography key at a time, although a key can have multiple aliases. The alias and the Amazon Web Services Payment Cryptography key must be in the same Amazon Web Services account and Amazon Web Services Region Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: CreateAlias DeleteAlias GetAlias ListAliases"]moduleUpdateAliasInput=structtypenonrect={aliasName:AliasName.t[@ocaml.doc"The alias whose associated key is changing."];keyArn:KeyArn.toption[@ocaml.doc"The KeyARN for the key that you are updating or removing from the alias."]}letcontext_="UpdateAliasInput"letmake?keyArn=fun~aliasName->fun()->{keyArn;aliasName}letto_valuex=structure_to_value[("AliasName",(Some(AliasName.to_valuex.aliasName)));("KeyArn",(Option.mapx.keyArn~f:KeyArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyArn=(Option.map~f:KeyArn.of_xml)(Xml.childxml_arg0"KeyArn")inletaliasName=AliasName.of_xml(Xml.child_exn~context:context_xml_arg0"AliasName")inmake?keyArn~aliasName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyArn=field_mapjson__"KeyArn"KeyArn.of_jsoninletaliasName=field_map_exnjson__"AliasName"AliasName.of_jsoninmake?keyArn~aliasName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates an existing Amazon Web Services Payment Cryptography alias with a different key. Each alias is associated with only one Amazon Web Services Payment Cryptography key at a time, although a key can have multiple aliases. The alias and the Amazon Web Services Payment Cryptography key must be in the same Amazon Web Services account and Amazon Web Services Region Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: CreateAlias DeleteAlias GetAlias ListAliases"]moduleUntagResourceOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a tag from an Amazon Web Services Payment Cryptography key. Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: ListTagsForResource TagResource"]moduleUntagResourceInput=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The KeyARN of the key whose tags are being removed."];tagKeys:TagKeys.t[@ocaml.doc"One or more tag keys. Don't include the tag values. If the Amazon Web Services Payment Cryptography key doesn't have the specified tag key, Amazon Web Services Payment Cryptography doesn't throw an exception or return a response. To confirm that the operation succeeded, use the ListTagsForResource operation."]}letcontext_="UntagResourceInput"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("ResourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("TagKeys",(Some(TagKeys.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeys.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeys.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a tag from an Amazon Web Services Payment Cryptography key. Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: ListTagsForResource TagResource"]moduleTagResourceOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or edits tags on an Amazon Web Services Payment Cryptography key. Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key. Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value. You can also add tags to an Amazon Web Services Payment Cryptography key when you create it with CreateKey. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: ListTagsForResource UntagResource"]moduleTagResourceInput=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The KeyARN of the key whose tags are being updated."];tags:Tags.t[@ocaml.doc"One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the new one. Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output. To use this parameter, you must have TagResource permission in an IAM policy. Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output."]}letcontext_="TagResourceInput"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("ResourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("Tags",(Some(Tags.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=Tags.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"Tags.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or edits tags on an Amazon Web Services Payment Cryptography key. Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key. Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value. You can also add tags to an Amazon Web Services Payment Cryptography key when you create it with CreateKey. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: ListTagsForResource UntagResource"]moduleStopKeyUsageOutput=structtypenonrect={key:Key.toption[@ocaml.doc"The KeyARN of the key."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?key=fun()->{key}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"Key"Key.of_jsoninmake?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disables an Amazon Web Services Payment Cryptography key, which makes it inactive within Amazon Web Services Payment Cryptography. You can use this operation instead of DeleteKey to deactivate a key. You can enable the key in the future by calling StartKeyUsage. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: DeleteKey StartKeyUsage"]moduleStopKeyUsageInput=structtypenonrect={keyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyArn of the key."]}letcontext_="StopKeyUsageInput"letmake~keyIdentifier=fun()->{keyIdentifier}letto_valuex=structure_to_value[("KeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.keyIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyIdentifier")inmake~keyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyIdentifier=field_map_exnjson__"KeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~keyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disables an Amazon Web Services Payment Cryptography key, which makes it inactive within Amazon Web Services Payment Cryptography. You can use this operation instead of DeleteKey to deactivate a key. You can enable the key in the future by calling StartKeyUsage. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: DeleteKey StartKeyUsage"]moduleStartKeyUsageOutput=structtypenonrect={key:Key.toption[@ocaml.doc"The KeyARN of the Amazon Web Services Payment Cryptography key activated for use."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?key=fun()->{key}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"Key"Key.of_jsoninmake?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Enables an Amazon Web Services Payment Cryptography key, which makes it active for cryptographic operations within Amazon Web Services Payment Cryptography Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: StopKeyUsage"]moduleStartKeyUsageInput=structtypenonrect={keyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyArn of the key."]}letcontext_="StartKeyUsageInput"letmake~keyIdentifier=fun()->{keyIdentifier}letto_valuex=structure_to_value[("KeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.keyIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyIdentifier")inmake~keyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyIdentifier=field_map_exnjson__"KeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~keyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Enables an Amazon Web Services Payment Cryptography key, which makes it active for cryptographic operations within Amazon Web Services Payment Cryptography Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: StopKeyUsage"]moduleRestoreKeyOutput=structtypenonrect={key:Key.toption[@ocaml.doc"The key material of the restored key. The KeyState will change to CREATE_COMPLETE and value for DeletePendingTimestamp gets removed."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?key=fun()->{key}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"Key"Key.of_jsoninmake?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels a scheduled key deletion during the waiting period. Use this operation to restore a Key that is scheduled for deletion. During the waiting period, the KeyState is DELETE_PENDING and deletePendingTimestamp contains the date and time after which the Key will be deleted. After Key is restored, the KeyState is CREATE_COMPLETE, and the value for deletePendingTimestamp is removed. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: DeleteKey StartKeyUsage StopKeyUsage"]moduleRestoreKeyInput=structtypenonrect={keyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the key to be restored within Amazon Web Services Payment Cryptography."]}letcontext_="RestoreKeyInput"letmake~keyIdentifier=fun()->{keyIdentifier}letto_valuex=structure_to_value[("KeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.keyIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyIdentifier")inmake~keyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyIdentifier=field_map_exnjson__"KeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~keyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels a scheduled key deletion during the waiting period. Use this operation to restore a Key that is scheduled for deletion. During the waiting period, the KeyState is DELETE_PENDING and deletePendingTimestamp contains the date and time after which the Key will be deleted. After Key is restored, the KeyState is CREATE_COMPLETE, and the value for deletePendingTimestamp is removed. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: DeleteKey StartKeyUsage StopKeyUsage"]moduleRemoveKeyReplicationRegionsOutput=structtypenonrect={key:Key.toption[@ocaml.doc"The updated key metadata after removing the replication regions. This reflects the current state of the key and its updated replication configuration."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?key=fun()->{key}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("Key",(Option.mapx.key~f:Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"Key"Key.of_jsoninmake?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output from removing replication regions from a key."]moduleRemoveKeyReplicationRegionsInput=structtypenonrect={keyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The key identifier (ARN or alias) of the key from which to remove replication regions. This key must exist and have replication enabled in the specified regions."];replicationRegions:Regions.t[@ocaml.doc"The list of Amazon Web Services Regions to remove from the key's replication configuration. The key will no longer be available for cryptographic operations in these regions after removal. Ensure no active operations depend on the key in these regions before removal."]}letcontext_="RemoveKeyReplicationRegionsInput"letmake~keyIdentifier=fun~replicationRegions->fun()->{keyIdentifier;replicationRegions}letto_valuex=structure_to_value[("KeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.keyIdentifier)));("ReplicationRegions",(Some(Regions.to_valuex.replicationRegions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreplicationRegions=Regions.of_xml(Xml.child_exn~context:context_xml_arg0"ReplicationRegions")inletkeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyIdentifier")inmake~replicationRegions~keyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreplicationRegions=field_map_exnjson__"ReplicationRegions"Regions.of_jsoninletkeyIdentifier=field_map_exnjson__"KeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~replicationRegions~keyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input parameters for removing replication regions from a specific key."]modulePutResourcePolicyOutput=structtypenonrect={resourceArn:ResourceArn.toption[@ocaml.doc"The KeyARN of the key that the resource-based policy was attached to."];policy:ResourcePolicy.toption[@ocaml.doc"The resource-based policy that was attached to the key."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`PublicPolicyExceptionofPublicPolicyException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun?policy->fun()->{resourceArn;policy}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"PublicPolicyException"->`PublicPolicyException(PublicPolicyException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"PublicPolicyException"->`PublicPolicyException(PublicPolicyException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`PublicPolicyExceptione->`Assoc[("error",(`String"PublicPolicyException"));("details",(PublicPolicyException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ResourceArn",(Option.mapx.resourceArn~f:ResourceArn.to_value));("Policy",(Option.mapx.policy~f:ResourcePolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=(Option.map~f:ResourcePolicy.of_xml)(Xml.childxml_arg0"Policy")inletresourceArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"ResourceArn")inmake?policy?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_mapjson__"Policy"ResourcePolicy.of_jsoninletresourceArn=field_mapjson__"ResourceArn"ResourceArn.of_jsoninmake?policy?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Attaches or replaces a resource-based policy on an Amazon Web Services Payment Cryptography key. A resource-based policy can grant cross-account access to your key. If the policy would grant public access, the request fails with a PublicPolicyException. To remove a resource-based policy from a key, use DeleteResourcePolicy. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: GetResourcePolicy DeleteResourcePolicy"]modulePutResourcePolicyInput=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The KeyARN of the key to attach the resource-based policy to."];policy:ResourcePolicy.t[@ocaml.doc"The resource-based policy to attach to the key, in JSON format."]}letcontext_="PutResourcePolicyInput"letmake~resourceArn=fun~policy->fun()->{resourceArn;policy}letto_valuex=structure_to_value[("ResourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("Policy",(Some(ResourcePolicy.to_valuex.policy)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=ResourcePolicy.of_xml(Xml.child_exn~context:context_xml_arg0"Policy")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~policy~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_map_exnjson__"Policy"ResourcePolicy.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake~policy~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Attaches or replaces a resource-based policy on an Amazon Web Services Payment Cryptography key. A resource-based policy can grant cross-account access to your key. If the policy would grant public access, the request fails with a PublicPolicyException. To remove a resource-based policy from a key, use DeleteResourcePolicy. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: GetResourcePolicy DeleteResourcePolicy"]moduleListTagsForResourceOutput=structtypenonrect={tags:Tags.toption[@ocaml.doc"The list of tags associated with a ResourceArn. Each tag will list the key-value pair contained within that tag."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results, or an empty or null value if there are no more results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun?nextToken->fun()->{tags;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:Tags.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"Tags")inmake?nextToken?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninlettags=field_mapjson__"Tags"Tags.of_jsoninmake?nextToken?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags for an Amazon Web Services resource. This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken value. Use this value in a subsequent ListTagsForResource request to get more tags. When you receive a response with no NextToken (or an empty or null value), that means there are no more tags to get. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: TagResource UntagResource"]moduleListTagsForResourceInput=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The KeyARN of the key whose tags you are getting."];nextToken:NextToken.toption[@ocaml.doc"Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the truncated response you just received."];maxResults:MaxResults.toption[@ocaml.doc"Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer. This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50."]}letcontext_="ListTagsForResourceInput"letmake?nextToken=fun?maxResults->fun~resourceArn->fun()->{nextToken;maxResults;resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake?maxResults?nextToken~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake?maxResults?nextToken~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags for an Amazon Web Services resource. This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken value. Use this value in a subsequent ListTagsForResource request to get more tags. When you receive a response with no NextToken (or an empty or null value), that means there are no more tags to get. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: TagResource UntagResource"]moduleListKeysOutput=structtypenonrect={keys:KeySummaryList.toption[@ocaml.doc"The list of keys created within the caller's Amazon Web Services account and Amazon Web Services Region."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results, or an empty or null value if there are no more results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keys=fun?nextToken->fun()->{keys;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Keys",(Option.mapx.keys~f:KeySummaryList.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")inletkeys=(Option.map~f:KeySummaryList.of_xml)(Xml.childxml_arg0"Keys")inmake?nextToken?keys()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletkeys=field_mapjson__"Keys"KeySummaryList.of_jsoninmake?nextToken?keys()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the list of keys. This is a paginated operation, which means that each response might contain only a subset of all the keys. When the response contains only a subset of keys, it includes a NextToken value. Use this value in a subsequent ListKeys request to get more keys. When you receive a response with no NextToken (or an empty or null value), that means there are no more keys to get. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: CreateKey DeleteKey GetKey"]moduleListKeysInput=structtypenonrect={keyState:KeyState.toption[@ocaml.doc"The key state of the keys you want to list."];nextToken:NextToken.toption[@ocaml.doc"Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the truncated response you just received."];maxResults:MaxResults.toption[@ocaml.doc"Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer. This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50."]}letmake?keyState=fun?nextToken->fun?maxResults->fun()->{keyState;nextToken;maxResults}letto_valuex=structure_to_value[("KeyState",(Option.mapx.keyState~f:KeyState.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletkeyState=(Option.map~f:KeyState.of_xml)(Xml.childxml_arg0"KeyState")inmake?maxResults?nextToken?keyState()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletkeyState=field_mapjson__"KeyState"KeyState.of_jsoninmake?maxResults?nextToken?keyState()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the list of keys. This is a paginated operation, which means that each response might contain only a subset of all the keys. When the response contains only a subset of keys, it includes a NextToken value. Use this value in a subsequent ListKeys request to get more keys. When you receive a response with no NextToken (or an empty or null value), that means there are no more keys to get. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: CreateKey DeleteKey GetKey"]moduleListAliasesOutput=structtypenonrect={aliases:Aliases.toption[@ocaml.doc"The list of aliases. Each alias describes the KeyArn contained within."];nextToken:NextToken.toption[@ocaml.doc"The token for the next set of results, or an empty or null value if there are no more results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?aliases=fun?nextToken->fun()->{aliases;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Aliases",(Option.mapx.aliases~f:Aliases.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")inletaliases=(Option.map~f:Aliases.of_xml)(Xml.childxml_arg0"Aliases")inmake?nextToken?aliases()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletaliases=field_mapjson__"Aliases"Aliases.of_jsoninmake?nextToken?aliases()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the aliases by keyARN. For more information, see Using aliases in the Amazon Web Services Payment Cryptography User Guide. This is a paginated operation, which means that each response might contain only a subset of all the aliases. When the response contains only a subset of aliases, it includes a NextToken value. Use this value in a subsequent ListAliases request to get more aliases. When you receive a response with no NextToken (or an empty or null value), that means there are no more aliases to get. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: CreateAlias DeleteAlias GetAlias UpdateAlias"]moduleListAliasesInput=structtypenonrect={keyArn:KeyArn.toption[@ocaml.doc"The keyARN for which you want to list all aliases."];nextToken:NextToken.toption[@ocaml.doc"Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the truncated response you just received."];maxResults:MaxResults.toption[@ocaml.doc"Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer. This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50."]}letmake?keyArn=fun?nextToken->fun?maxResults->fun()->{keyArn;nextToken;maxResults}letto_valuex=structure_to_value[("KeyArn",(Option.mapx.keyArn~f:KeyArn.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletkeyArn=(Option.map~f:KeyArn.of_xml)(Xml.childxml_arg0"KeyArn")inmake?maxResults?nextToken?keyArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletkeyArn=field_mapjson__"KeyArn"KeyArn.of_jsoninmake?maxResults?nextToken?keyArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the aliases by keyARN. For more information, see Using aliases in the Amazon Web Services Payment Cryptography User Guide. This is a paginated operation, which means that each response might contain only a subset of all the aliases. When the response contains only a subset of aliases, it includes a NextToken value. Use this value in a subsequent ListAliases request to get more aliases. When you receive a response with no NextToken (or an empty or null value), that means there are no more aliases to get. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: CreateAlias DeleteAlias GetAlias UpdateAlias"]moduleImportKeyOutput=structtypenonrect={key:Key.toption[@ocaml.doc"The KeyARN of the key material imported within Amazon Web Services Payment Cryptography."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?key=fun()->{key}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"Key"Key.of_jsoninmake?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports symmetric keys and public key certificates in PEM format (base64 encoded) into Amazon Web Services Payment Cryptography. Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With ImportKey you can import symmetric keys using either symmetric and asymmetric key exchange mechanisms. For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm, RSA unwrap, and ECDH (Elliptic Curve Diffie-Hellman) key exchange mechanisms. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK) or Zone Master Key (ZMK). After which you can import working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography. PCI requires specific minimum key strength of wrapping keys used to protect the keys being exchanged electronically. These requirements can change when PCI standards are revised. The rules specify that wrapping keys used for transport must be at least as strong as the key being protected. For more information on recommended key strength of wrapping keys and key exchange mechanism, see Importing and exporting keys in the Amazon Web Services Payment Cryptography User Guide. You can also import a root public key certificate, used to sign other public key certificates, or a trusted public key certificate under an already established root public key certificate. To import a public root key certificate Using this operation, you can import the public component (in PEM cerificate format) of your private root key. You can use the imported public root key certificate for digital signatures, for example signing wrapping key or signing key in TR-34, within your Amazon Web Services Payment Cryptography account. Set the following parameters: KeyMaterial: RootCertificatePublicKey KeyClass: PUBLIC_KEY KeyModesOfUse: Verify KeyUsage: TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE PublicKeyCertificate: The public key certificate in PEM format (base64 encoded) of the private root key under import. To import a trusted public key certificate The root public key certificate must be in place and operational before you import a trusted public key certificate. Set the following parameters: KeyMaterial: TrustedCertificatePublicKey CertificateAuthorityPublicKeyIdentifier: KeyArn of the RootCertificatePublicKey. KeyModesOfUse and KeyUsage: Corresponding to the cryptographic operations such as wrap, sign, or encrypt that you will allow the trusted public key certificate to perform. PublicKeyCertificate: The trusted public key certificate in PEM format (base64 encoded) under import. To import initial keys (KEK or ZMK or similar) using TR-34 Using this operation, you can import initial key using TR-34 asymmetric key exchange. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During the key import process, KDH is the user who initiates the key import and KRD is Amazon Web Services Payment Cryptography who receives the key. To initiate TR-34 key import, the KDH must obtain an import token by calling GetParametersForImport. This operation generates an encryption keypair for the purpose of key import, signs the key and returns back the wrapping key certificate (also known as KRD wrapping certificate) and the root certificate chain. The KDH must trust and install the KRD wrapping certificate on its HSM and use it to encrypt (wrap) the KDH key during TR-34 WrappedKeyBlock generation. The import token and associated KRD wrapping certificate expires after 30 days. Next the KDH generates a key pair for the purpose of signing the encrypted KDH key and provides the public certificate of the signing key to Amazon Web Services Payment Cryptography. The KDH will also need to import the root certificate chain of the KDH signing certificate by calling ImportKey for RootCertificatePublicKey. For more information on TR-34 key import, see section Importing symmetric keys in the Amazon Web Services Payment Cryptography User Guide. Set the following parameters: KeyMaterial: Use Tr34KeyBlock parameters. CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed the KDH signing key certificate. ImportToken: Obtained from KRD by calling GetParametersForImport. WrappedKeyBlock: The TR-34 wrapped key material from KDH. It contains the KDH key under import, wrapped with KRD wrapping certificate and signed by KDH signing private key. This TR-34 key block is typically generated by the KDH Hardware Security Module (HSM) outside of Amazon Web Services Payment Cryptography. SigningKeyCertificate: The public key certificate in PEM format (base64 encoded) of the KDH signing key generated under the root certificate (CertificateAuthorityPublicKeyIdentifier) imported in Amazon Web Services Payment Cryptography. To import initial keys (KEK or ZMK or similar) using RSA Wrap and Unwrap Using this operation, you can import initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate import, call GetParametersForImport with KeyMaterial set to KEY_CRYPTOGRAM to generate an import token. This operation also generates an encryption keypair for the purpose of key import, signs the key and returns back the wrapping key certificate in PEM format (base64 encoded) and its root certificate chain. The import token and associated KRD wrapping certificate expires after 30 days. You must trust and install the wrapping certificate and its certificate chain on the sending HSM and use it to wrap the key under export for WrappedKeyCryptogram generation. Next call ImportKey with KeyMaterial set to KEY_CRYPTOGRAM and provide the ImportToken and KeyAttributes for the key under import. To import working keys using TR-31 Amazon Web Services Payment Cryptography uses TR-31 symmetric key exchange norm to import working keys. A KEK must be established within Amazon Web Services Payment Cryptography by using TR-34 key import or by using CreateKey. To initiate a TR-31 key import, set the following parameters: KeyMaterial: Use Tr31KeyBlock parameters. WrappedKeyBlock: The TR-31 wrapped key material. It contains the key under import, encrypted using KEK. The TR-31 key block is typically generated by a HSM outside of Amazon Web Services Payment Cryptography. WrappingKeyIdentifier: The KeyArn of the KEK that Amazon Web Services Payment Cryptography uses to decrypt or unwrap the key under import. To import working keys using ECDH You can also use ECDH key agreement to import working keys as a TR-31 keyblock, where the wrapping key is an ECDH derived key. To initiate a TR-31 key import using ECDH, both sides must create an ECC key pair with key usage K3 and exchange public key certificates. In Amazon Web Services Payment Cryptography, you can do this by calling CreateKey and then GetPublicKeyCertificate to retrieve its public key certificate. Next, you can then generate a TR-31 WrappedKeyBlock using your own ECC key pair, the public certificate of the service's ECC key pair, and the key derivation parameters including key derivation function, hash algorithm, derivation data, and key algorithm. If you have not already done so, you must import the CA chain that issued the receiving public key certificate by calling ImportKey with input RootCertificatePublicKey for root CA or TrustedPublicKey for intermediate CA. To complete the TR-31 key import, you can use the following parameters. It is important that the ECDH key derivation parameters you use should match those used during import to derive the same shared wrapping key within Amazon Web Services Payment Cryptography. KeyMaterial: Use DiffieHellmanTr31KeyBlock parameters. PrivateKeyIdentifier: The KeyArn of the ECC key pair created within Amazon Web Services Payment Cryptography to derive a shared KEK. PublicKeyCertificate: The public key certificate of the receiving ECC key pair in PEM format (base64 encoded) to derive a shared KEK. CertificateAuthorityPublicKeyIdentifier: The keyARN of the CA that signed the public key certificate of the receiving ECC key pair. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: ExportKey GetParametersForImport"]moduleImportKeyInput=structtypenonrect={keyMaterial:ImportKeyMaterial.t[@ocaml.doc"The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey."];keyCheckValueAlgorithm:KeyCheckValueAlgorithm.toption[@ocaml.doc"The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity. For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result."];enabled:Boolean.toption[@ocaml.doc"Specifies whether import key is enabled."];tags:Tags.toption[@ocaml.doc"Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is imported. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one. Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output. Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key."];replicationRegions:Regions.toption;requesterComment:MpaRequesterComment.toption[@ocaml.doc"The comment from the requester explaining the reason for the import. Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output."]}letcontext_="ImportKeyInput"letmake?keyCheckValueAlgorithm=fun?enabled->fun?tags->fun?replicationRegions->fun?requesterComment->fun~keyMaterial->fun()->{keyCheckValueAlgorithm;enabled;tags;replicationRegions;requesterComment;keyMaterial}letto_valuex=structure_to_value[("KeyMaterial",(Some(ImportKeyMaterial.to_valuex.keyMaterial)));("KeyCheckValueAlgorithm",(Option.mapx.keyCheckValueAlgorithm~f:KeyCheckValueAlgorithm.to_value));("Enabled",(Option.mapx.enabled~f:Boolean.to_value));("Tags",(Option.mapx.tags~f:Tags.to_value));("ReplicationRegions",(Option.mapx.replicationRegions~f:Regions.to_value));("RequesterComment",(Option.mapx.requesterComment~f:MpaRequesterComment.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrequesterComment=(Option.map~f:MpaRequesterComment.of_xml)(Xml.childxml_arg0"RequesterComment")inletreplicationRegions=(Option.map~f:Regions.of_xml)(Xml.childxml_arg0"ReplicationRegions")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"Tags")inletenabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"Enabled")inletkeyCheckValueAlgorithm=(Option.map~f:KeyCheckValueAlgorithm.of_xml)(Xml.childxml_arg0"KeyCheckValueAlgorithm")inletkeyMaterial=ImportKeyMaterial.of_xml(Xml.child_exn~context:context_xml_arg0"KeyMaterial")inmake?requesterComment?replicationRegions?tags?enabled?keyCheckValueAlgorithm~keyMaterial()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrequesterComment=field_mapjson__"RequesterComment"MpaRequesterComment.of_jsoninletreplicationRegions=field_mapjson__"ReplicationRegions"Regions.of_jsoninlettags=field_mapjson__"Tags"Tags.of_jsoninletenabled=field_mapjson__"Enabled"Boolean.of_jsoninletkeyCheckValueAlgorithm=field_mapjson__"KeyCheckValueAlgorithm"KeyCheckValueAlgorithm.of_jsoninletkeyMaterial=field_map_exnjson__"KeyMaterial"ImportKeyMaterial.of_jsoninmake?requesterComment?replicationRegions?tags?enabled?keyCheckValueAlgorithm~keyMaterial()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports symmetric keys and public key certificates in PEM format (base64 encoded) into Amazon Web Services Payment Cryptography. Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With ImportKey you can import symmetric keys using either symmetric and asymmetric key exchange mechanisms. For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm, RSA unwrap, and ECDH (Elliptic Curve Diffie-Hellman) key exchange mechanisms. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK) or Zone Master Key (ZMK). After which you can import working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography. PCI requires specific minimum key strength of wrapping keys used to protect the keys being exchanged electronically. These requirements can change when PCI standards are revised. The rules specify that wrapping keys used for transport must be at least as strong as the key being protected. For more information on recommended key strength of wrapping keys and key exchange mechanism, see Importing and exporting keys in the Amazon Web Services Payment Cryptography User Guide. You can also import a root public key certificate, used to sign other public key certificates, or a trusted public key certificate under an already established root public key certificate. To import a public root key certificate Using this operation, you can import the public component (in PEM cerificate format) of your private root key. You can use the imported public root key certificate for digital signatures, for example signing wrapping key or signing key in TR-34, within your Amazon Web Services Payment Cryptography account. Set the following parameters: KeyMaterial: RootCertificatePublicKey KeyClass: PUBLIC_KEY KeyModesOfUse: Verify KeyUsage: TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE PublicKeyCertificate: The public key certificate in PEM format (base64 encoded) of the private root key under import. To import a trusted public key certificate The root public key certificate must be in place and operational before you import a trusted public key certificate. Set the following parameters: KeyMaterial: TrustedCertificatePublicKey CertificateAuthorityPublicKeyIdentifier: KeyArn of the RootCertificatePublicKey. KeyModesOfUse and KeyUsage: Corresponding to the cryptographic operations such as wrap, sign, or encrypt that you will allow the trusted public key certificate to perform. PublicKeyCertificate: The trusted public key certificate in PEM format (base64 encoded) under import. To import initial keys (KEK or ZMK or similar) using TR-34 Using this operation, you can import initial key using TR-34 asymmetric key exchange. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During the key import process, KDH is the user who initiates the key import and KRD is Amazon Web Services Payment Cryptography who receives the key. To initiate TR-34 key import, the KDH must obtain an import token by calling GetParametersForImport. This operation generates an encryption keypair for the purpose of key import, signs the key and returns back the wrapping key certificate (also known as KRD wrapping certificate) and the root certificate chain. The KDH must trust and install the KRD wrapping certificate on its HSM and use it to encrypt (wrap) the KDH key during TR-34 WrappedKeyBlock generation. The import token and associated KRD wrapping certificate expires after 30 days. Next the KDH generates a key pair for the purpose of signing the encrypted KDH key and provides the public certificate of the signing key to Amazon Web Services Payment Cryptography. The KDH will also need to import the root certificate chain of the KDH signing certificate by calling ImportKey for RootCertificatePublicKey. For more information on TR-34 key import, see section Importing symmetric keys in the Amazon Web Services Payment Cryptography User Guide. Set the following parameters: KeyMaterial: Use Tr34KeyBlock parameters. CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed the KDH signing key certificate. ImportToken: Obtained from KRD by calling GetParametersForImport. WrappedKeyBlock: The TR-34 wrapped key material from KDH. It contains the KDH key under import, wrapped with KRD wrapping certificate and signed by KDH signing private key. This TR-34 key block is typically generated by the KDH Hardware Security Module (HSM) outside of Amazon Web Services Payment Cryptography. SigningKeyCertificate: The public key certificate in PEM format (base64 encoded) of the KDH signing key generated under the root certificate (CertificateAuthorityPublicKeyIdentifier) imported in Amazon Web Services Payment Cryptography. To import initial keys (KEK or ZMK or similar) using RSA Wrap and Unwrap Using this operation, you can import initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate import, call GetParametersForImport with KeyMaterial set to KEY_CRYPTOGRAM to generate an import token. This operation also generates an encryption keypair for the purpose of key import, signs the key and returns back the wrapping key certificate in PEM format (base64 encoded) and its root certificate chain. The import token and associated KRD wrapping certificate expires after 30 days. You must trust and install the wrapping certificate and its certificate chain on the sending HSM and use it to wrap the key under export for WrappedKeyCryptogram generation. Next call ImportKey with KeyMaterial set to KEY_CRYPTOGRAM and provide the ImportToken and KeyAttributes for the key under import. To import working keys using TR-31 Amazon Web Services Payment Cryptography uses TR-31 symmetric key exchange norm to import working keys. A KEK must be established within Amazon Web Services Payment Cryptography by using TR-34 key import or by using CreateKey. To initiate a TR-31 key import, set the following parameters: KeyMaterial: Use Tr31KeyBlock parameters. WrappedKeyBlock: The TR-31 wrapped key material. It contains the key under import, encrypted using KEK. The TR-31 key block is typically generated by a HSM outside of Amazon Web Services Payment Cryptography. WrappingKeyIdentifier: The KeyArn of the KEK that Amazon Web Services Payment Cryptography uses to decrypt or unwrap the key under import. To import working keys using ECDH You can also use ECDH key agreement to import working keys as a TR-31 keyblock, where the wrapping key is an ECDH derived key. To initiate a TR-31 key import using ECDH, both sides must create an ECC key pair with key usage K3 and exchange public key certificates. In Amazon Web Services Payment Cryptography, you can do this by calling CreateKey and then GetPublicKeyCertificate to retrieve its public key certificate. Next, you can then generate a TR-31 WrappedKeyBlock using your own ECC key pair, the public certificate of the service's ECC key pair, and the key derivation parameters including key derivation function, hash algorithm, derivation data, and key algorithm. If you have not already done so, you must import the CA chain that issued the receiving public key certificate by calling ImportKey with input RootCertificatePublicKey for root CA or TrustedPublicKey for intermediate CA. To complete the TR-31 key import, you can use the following parameters. It is important that the ECDH key derivation parameters you use should match those used during import to derive the same shared wrapping key within Amazon Web Services Payment Cryptography. KeyMaterial: Use DiffieHellmanTr31KeyBlock parameters. PrivateKeyIdentifier: The KeyArn of the ECC key pair created within Amazon Web Services Payment Cryptography to derive a shared KEK. PublicKeyCertificate: The public key certificate of the receiving ECC key pair in PEM format (base64 encoded) to derive a shared KEK. CertificateAuthorityPublicKeyIdentifier: The keyARN of the CA that signed the public key certificate of the receiving ECC key pair. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: ExportKey GetParametersForImport"]moduleGetResourcePolicyOutput=structtypenonrect={resourceArn:ResourceArn.toption[@ocaml.doc"The KeyARN of the key."];policy:ResourcePolicy.toption[@ocaml.doc"The resource-based policy attached to the key, in JSON format."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun?policy->fun()->{resourceArn;policy}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ResourceArn",(Option.mapx.resourceArn~f:ResourceArn.to_value));("Policy",(Option.mapx.policy~f:ResourcePolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=(Option.map~f:ResourcePolicy.of_xml)(Xml.childxml_arg0"Policy")inletresourceArn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"ResourceArn")inmake?policy?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_mapjson__"Policy"ResourcePolicy.of_jsoninletresourceArn=field_mapjson__"ResourceArn"ResourceArn.of_jsoninmake?policy?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the resource-based policy attached to an Amazon Web Services Payment Cryptography key. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: PutResourcePolicy DeleteResourcePolicy"]moduleGetResourcePolicyInput=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The KeyARN of the key whose resource-based policy you want to retrieve."]}letcontext_="GetResourcePolicyInput"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(ResourceArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the resource-based policy attached to an Amazon Web Services Payment Cryptography key. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: PutResourcePolicy DeleteResourcePolicy"]moduleGetPublicKeyCertificateOutput=structtypenonrect={keyCertificate:CertificateType.toption[@ocaml.doc"The public key component of the asymmetric key pair in a certificate PEM format (base64 encoded). It is signed by the root certificate authority (CA). The certificate is valid for 90 days from the time it is issued. The service returns a cached certificate if one exists with at least 30 days of remaining validity. Otherwise, a new 90-day certificate is issued."];keyCertificateChain:CertificateType.toption[@ocaml.doc"The root certificate authority (CA) that signed the public key certificate in PEM format (base64 encoded) of the asymmetric key pair."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keyCertificate=fun?keyCertificateChain->fun()->{keyCertificate;keyCertificateChain}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("KeyCertificate",(Option.mapx.keyCertificate~f:CertificateType.to_value));("KeyCertificateChain",(Option.mapx.keyCertificateChain~f:CertificateType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyCertificateChain=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"KeyCertificateChain")inletkeyCertificate=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"KeyCertificate")inmake?keyCertificateChain?keyCertificate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyCertificateChain=field_mapjson__"KeyCertificateChain"CertificateType.of_jsoninletkeyCertificate=field_mapjson__"KeyCertificate"CertificateType.of_jsoninmake?keyCertificateChain?keyCertificate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the public key certificate of the asymmetric key pair that exists within Amazon Web Services Payment Cryptography. Unlike the private key of an asymmetric key, which never leaves Amazon Web Services Payment Cryptography unencrypted, callers with GetPublicKeyCertificate permission can download the public key certificate of the asymmetric key. You can share the public key certificate to allow others to encrypt messages and verify signatures outside of Amazon Web Services Payment Cryptography Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies."]moduleGetPublicKeyCertificateInput=structtypenonrect={keyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the asymmetric key pair."]}letcontext_="GetPublicKeyCertificateInput"letmake~keyIdentifier=fun()->{keyIdentifier}letto_valuex=structure_to_value[("KeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.keyIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyIdentifier")inmake~keyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyIdentifier=field_map_exnjson__"KeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~keyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the public key certificate of the asymmetric key pair that exists within Amazon Web Services Payment Cryptography. Unlike the private key of an asymmetric key, which never leaves Amazon Web Services Payment Cryptography unencrypted, callers with GetPublicKeyCertificate permission can download the public key certificate of the asymmetric key. You can share the public key certificate to allow others to encrypt messages and verify signatures outside of Amazon Web Services Payment Cryptography Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies."]moduleGetParametersForImportOutput=structtypenonrect={wrappingKeyCertificate:CertificateType.toption[@ocaml.doc"The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 key block. The certificate expires in 30 days."];wrappingKeyCertificateChain:CertificateType.toption[@ocaml.doc"The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key certificate in PEM format (base64 encoded)."];wrappingKeyAlgorithm:KeyAlgorithm.toption[@ocaml.doc"The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram."];importToken:ImportTokenId.toption[@ocaml.doc"The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token expires after 30 days. You can use the same import token to import multiple keys to the same service account."];parametersValidUntilTimestamp:Timestamp.toption[@ocaml.doc"The validity period of the import token."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?wrappingKeyCertificate=fun?wrappingKeyCertificateChain->fun?wrappingKeyAlgorithm->fun?importToken->fun?parametersValidUntilTimestamp->fun()->{wrappingKeyCertificate;wrappingKeyCertificateChain;wrappingKeyAlgorithm;importToken;parametersValidUntilTimestamp}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("WrappingKeyCertificate",(Option.mapx.wrappingKeyCertificate~f:CertificateType.to_value));("WrappingKeyCertificateChain",(Option.mapx.wrappingKeyCertificateChain~f:CertificateType.to_value));("WrappingKeyAlgorithm",(Option.mapx.wrappingKeyAlgorithm~f:KeyAlgorithm.to_value));("ImportToken",(Option.mapx.importToken~f:ImportTokenId.to_value));("ParametersValidUntilTimestamp",(Option.mapx.parametersValidUntilTimestamp~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letparametersValidUntilTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ParametersValidUntilTimestamp")inletimportToken=(Option.map~f:ImportTokenId.of_xml)(Xml.childxml_arg0"ImportToken")inletwrappingKeyAlgorithm=(Option.map~f:KeyAlgorithm.of_xml)(Xml.childxml_arg0"WrappingKeyAlgorithm")inletwrappingKeyCertificateChain=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"WrappingKeyCertificateChain")inletwrappingKeyCertificate=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"WrappingKeyCertificate")inmake?parametersValidUntilTimestamp?importToken?wrappingKeyAlgorithm?wrappingKeyCertificateChain?wrappingKeyCertificate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letparametersValidUntilTimestamp=field_mapjson__"ParametersValidUntilTimestamp"Timestamp.of_jsoninletimportToken=field_mapjson__"ImportToken"ImportTokenId.of_jsoninletwrappingKeyAlgorithm=field_mapjson__"WrappingKeyAlgorithm"KeyAlgorithm.of_jsoninletwrappingKeyCertificateChain=field_mapjson__"WrappingKeyCertificateChain"CertificateType.of_jsoninletwrappingKeyCertificate=field_mapjson__"WrappingKeyCertificate"CertificateType.of_jsoninmake?parametersValidUntilTimestamp?importToken?wrappingKeyAlgorithm?wrappingKeyCertificateChain?wrappingKeyCertificate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the import token and the wrapping key certificate in PEM format (base64 encoded) to initiate a TR-34 WrappedKeyBlock or a RSA WrappedKeyCryptogram import into Amazon Web Services Payment Cryptography. The wrapping key certificate wraps the key under import. The import token and wrapping key certificate must be in place and operational before calling ImportKey. The import token expires in 30 days. You can use the same import token to import multiple keys into your service account. To return a previously generated import token and wrapping key certificate instead of generating new ones, set ReuseLastGeneratedToken to true. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: GetParametersForExport ImportKey"]moduleGetParametersForImportInput=structtypenonrect={keyMaterialType:KeyMaterialType.t[@ocaml.doc"The method to use for key material import. Import token is only required for TR-34 WrappedKeyBlock (TR34_KEY_BLOCK) and RSA WrappedKeyCryptogram (KEY_CRYPTOGRAM). Import token is not required for TR-31, root public key cerificate or trusted public key certificate."];wrappingKeyAlgorithm:KeyAlgorithm.t[@ocaml.doc"The wrapping key algorithm to generate a wrapping key certificate. This certificate wraps the key under import. At this time, RSA_2048 is the allowed algorithm for TR-34 WrappedKeyBlock import. Additionally, RSA_2048, RSA_3072, RSA_4096 are the allowed algorithms for RSA WrappedKeyCryptogram import."];reuseLastGeneratedToken:Boolean.toption[@ocaml.doc"Specifies whether to reuse the existing import token and wrapping key certificate. If set to true and a valid import token exists for the same key material type and wrapping key algorithm with at least 7 days of remaining validity, the existing token and wrapping key certificate are returned. Otherwise, a new import token and wrapping key certificate are generated. The default value is false, which generates a new import token and wrapping key certificate on every call."]}letcontext_="GetParametersForImportInput"letmake?reuseLastGeneratedToken=fun~keyMaterialType->fun~wrappingKeyAlgorithm->fun()->{reuseLastGeneratedToken;keyMaterialType;wrappingKeyAlgorithm}letto_valuex=structure_to_value[("KeyMaterialType",(Some(KeyMaterialType.to_valuex.keyMaterialType)));("WrappingKeyAlgorithm",(Some(KeyAlgorithm.to_valuex.wrappingKeyAlgorithm)));("ReuseLastGeneratedToken",(Option.mapx.reuseLastGeneratedToken~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreuseLastGeneratedToken=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"ReuseLastGeneratedToken")inletwrappingKeyAlgorithm=KeyAlgorithm.of_xml(Xml.child_exn~context:context_xml_arg0"WrappingKeyAlgorithm")inletkeyMaterialType=KeyMaterialType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyMaterialType")inmake?reuseLastGeneratedToken~wrappingKeyAlgorithm~keyMaterialType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreuseLastGeneratedToken=field_mapjson__"ReuseLastGeneratedToken"Boolean.of_jsoninletwrappingKeyAlgorithm=field_map_exnjson__"WrappingKeyAlgorithm"KeyAlgorithm.of_jsoninletkeyMaterialType=field_map_exnjson__"KeyMaterialType"KeyMaterialType.of_jsoninmake?reuseLastGeneratedToken~wrappingKeyAlgorithm~keyMaterialType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the import token and the wrapping key certificate in PEM format (base64 encoded) to initiate a TR-34 WrappedKeyBlock or a RSA WrappedKeyCryptogram import into Amazon Web Services Payment Cryptography. The wrapping key certificate wraps the key under import. The import token and wrapping key certificate must be in place and operational before calling ImportKey. The import token expires in 30 days. You can use the same import token to import multiple keys into your service account. To return a previously generated import token and wrapping key certificate instead of generating new ones, set ReuseLastGeneratedToken to true. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: GetParametersForExport ImportKey"]moduleGetParametersForExportOutput=structtypenonrect={signingKeyCertificate:CertificateType.toption[@ocaml.doc"The signing key certificate in PEM format (base64 encoded) of the public key for signature within the TR-34 key block. The certificate expires after 30 days."];signingKeyCertificateChain:CertificateType.toption[@ocaml.doc"The root certificate authority (CA) that signed the signing key certificate in PEM format (base64 encoded)."];signingKeyAlgorithm:KeyAlgorithm.toption[@ocaml.doc"The algorithm of the signing key certificate for use in TR-34 key block generation. RSA_2048 is the only signing key algorithm allowed."];exportToken:ExportTokenId.toption[@ocaml.doc"The export token to initiate key export from Amazon Web Services Payment Cryptography. The export token expires after 30 days. You can use the same export token to export multiple keys from the same service account."];parametersValidUntilTimestamp:Timestamp.toption[@ocaml.doc"The validity period of the export token."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?signingKeyCertificate=fun?signingKeyCertificateChain->fun?signingKeyAlgorithm->fun?exportToken->fun?parametersValidUntilTimestamp->fun()->{signingKeyCertificate;signingKeyCertificateChain;signingKeyAlgorithm;exportToken;parametersValidUntilTimestamp}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("SigningKeyCertificate",(Option.mapx.signingKeyCertificate~f:CertificateType.to_value));("SigningKeyCertificateChain",(Option.mapx.signingKeyCertificateChain~f:CertificateType.to_value));("SigningKeyAlgorithm",(Option.mapx.signingKeyAlgorithm~f:KeyAlgorithm.to_value));("ExportToken",(Option.mapx.exportToken~f:ExportTokenId.to_value));("ParametersValidUntilTimestamp",(Option.mapx.parametersValidUntilTimestamp~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letparametersValidUntilTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ParametersValidUntilTimestamp")inletexportToken=(Option.map~f:ExportTokenId.of_xml)(Xml.childxml_arg0"ExportToken")inletsigningKeyAlgorithm=(Option.map~f:KeyAlgorithm.of_xml)(Xml.childxml_arg0"SigningKeyAlgorithm")inletsigningKeyCertificateChain=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"SigningKeyCertificateChain")inletsigningKeyCertificate=(Option.map~f:CertificateType.of_xml)(Xml.childxml_arg0"SigningKeyCertificate")inmake?parametersValidUntilTimestamp?exportToken?signingKeyAlgorithm?signingKeyCertificateChain?signingKeyCertificate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letparametersValidUntilTimestamp=field_mapjson__"ParametersValidUntilTimestamp"Timestamp.of_jsoninletexportToken=field_mapjson__"ExportToken"ExportTokenId.of_jsoninletsigningKeyAlgorithm=field_mapjson__"SigningKeyAlgorithm"KeyAlgorithm.of_jsoninletsigningKeyCertificateChain=field_mapjson__"SigningKeyCertificateChain"CertificateType.of_jsoninletsigningKeyCertificate=field_mapjson__"SigningKeyCertificate"CertificateType.of_jsoninmake?parametersValidUntilTimestamp?exportToken?signingKeyAlgorithm?signingKeyCertificateChain?signingKeyCertificate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the export token and the signing key certificate to initiate a TR-34 key export from Amazon Web Services Payment Cryptography. The signing key certificate signs the wrapped key under export within the TR-34 key payload. The export token and signing key certificate must be in place and operational before calling ExportKey. The export token expires in 30 days. You can use the same export token to export multiple keys from your service account. To return a previously generated export token and signing key certificate instead of generating new ones, set ReuseLastGeneratedToken to true. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: ExportKey GetParametersForImport"]moduleGetParametersForExportInput=structtypenonrect={keyMaterialType:KeyMaterialType.t[@ocaml.doc"The key block format type (for example, TR-34 or TR-31) to use during key material export. Export token is only required for a TR-34 key export, TR34_KEY_BLOCK. Export token is not required for TR-31 key export."];signingKeyAlgorithm:KeyAlgorithm.t[@ocaml.doc"The signing key algorithm to generate a signing key certificate. This certificate signs the wrapped key under export within the TR-34 key block. RSA_2048 is the only signing key algorithm allowed."];reuseLastGeneratedToken:Boolean.toption[@ocaml.doc"Specifies whether to reuse the existing export token and signing key certificate. If set to true and a valid export token exists for the same key material type and signing key algorithm with at least 7 days of remaining validity, the existing token and signing key certificate are returned. Otherwise, a new export token and signing key certificate are generated. The default value is false, which generates a new export token and signing key certificate on every call."]}letcontext_="GetParametersForExportInput"letmake?reuseLastGeneratedToken=fun~keyMaterialType->fun~signingKeyAlgorithm->fun()->{reuseLastGeneratedToken;keyMaterialType;signingKeyAlgorithm}letto_valuex=structure_to_value[("KeyMaterialType",(Some(KeyMaterialType.to_valuex.keyMaterialType)));("SigningKeyAlgorithm",(Some(KeyAlgorithm.to_valuex.signingKeyAlgorithm)));("ReuseLastGeneratedToken",(Option.mapx.reuseLastGeneratedToken~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreuseLastGeneratedToken=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"ReuseLastGeneratedToken")inletsigningKeyAlgorithm=KeyAlgorithm.of_xml(Xml.child_exn~context:context_xml_arg0"SigningKeyAlgorithm")inletkeyMaterialType=KeyMaterialType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyMaterialType")inmake?reuseLastGeneratedToken~signingKeyAlgorithm~keyMaterialType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreuseLastGeneratedToken=field_mapjson__"ReuseLastGeneratedToken"Boolean.of_jsoninletsigningKeyAlgorithm=field_map_exnjson__"SigningKeyAlgorithm"KeyAlgorithm.of_jsoninletkeyMaterialType=field_map_exnjson__"KeyMaterialType"KeyMaterialType.of_jsoninmake?reuseLastGeneratedToken~signingKeyAlgorithm~keyMaterialType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the export token and the signing key certificate to initiate a TR-34 key export from Amazon Web Services Payment Cryptography. The signing key certificate signs the wrapped key under export within the TR-34 key payload. The export token and signing key certificate must be in place and operational before calling ExportKey. The export token expires in 30 days. You can use the same export token to export multiple keys from your service account. To return a previously generated export token and signing key certificate instead of generating new ones, set ReuseLastGeneratedToken to true. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: ExportKey GetParametersForImport"]moduleGetMpaTeamAssociationOutput=structtypenonrect={mpaTeamAssociation:MpaTeamAssociation.toption[@ocaml.doc"The details of the MPA team association."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?mpaTeamAssociation=fun()->{mpaTeamAssociation}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MpaTeamAssociation",(Option.mapx.mpaTeamAssociation~f:MpaTeamAssociation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmpaTeamAssociation=(Option.map~f:MpaTeamAssociation.of_xml)(Xml.childxml_arg0"MpaTeamAssociation")inmake?mpaTeamAssociation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmpaTeamAssociation=field_mapjson__"MpaTeamAssociation"MpaTeamAssociation.of_jsoninmake?mpaTeamAssociation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the Multi-Party Approval (MPA) team association for a protected operation. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: AssociateMpaTeam DisassociateMpaTeam"]moduleGetMpaTeamAssociationInput=structtypenonrect={action:MpaOperation.t[@ocaml.doc"The protected operation whose MPA team association you want to retrieve. Currently, the only supported value is IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE."]}letcontext_="GetMpaTeamAssociationInput"letmake~action=fun()->{action}letto_valuex=structure_to_value[("Action",(Some(MpaOperation.to_valuex.action)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaction=MpaOperation.of_xml(Xml.child_exn~context:context_xml_arg0"Action")inmake~action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaction=field_map_exnjson__"Action"MpaOperation.of_jsoninmake~action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the Multi-Party Approval (MPA) team association for a protected operation. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: AssociateMpaTeam DisassociateMpaTeam"]moduleGetKeyOutput=structtypenonrect={key:Key.toption[@ocaml.doc"Contains the key metadata, including both immutable and mutable attributes for the key, but does not include actual cryptographic key material."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?key=fun()->{key}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"Key"Key.of_jsoninmake?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the key metadata for an Amazon Web Services Payment Cryptography key, including the immutable and mutable attributes specified when the key was created. Returns key metadata including attributes, state, and timestamps, but does not return the actual cryptographic key material. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: CreateKey DeleteKey ListKeys"]moduleGetKeyInput=structtypenonrect={keyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the Amazon Web Services Payment Cryptography key."]}letcontext_="GetKeyInput"letmake~keyIdentifier=fun()->{keyIdentifier}letto_valuex=structure_to_value[("KeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.keyIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyIdentifier")inmake~keyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyIdentifier=field_map_exnjson__"KeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~keyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the key metadata for an Amazon Web Services Payment Cryptography key, including the immutable and mutable attributes specified when the key was created. Returns key metadata including attributes, state, and timestamps, but does not return the actual cryptographic key material. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: CreateKey DeleteKey ListKeys"]moduleGetDefaultKeyReplicationRegionsOutput=structtypenonrect={enabledReplicationRegions:Regions.toption[@ocaml.doc"The list of regions where default key replication is currently enabled for the account. New keys created in this account will automatically be replicated to these regions unless explicitly configured otherwise during key creation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?enabledReplicationRegions=fun()->{enabledReplicationRegions}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("EnabledReplicationRegions",(Option.mapx.enabledReplicationRegions~f:Regions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenabledReplicationRegions=(Option.map~f:Regions.of_xml)(Xml.childxml_arg0"EnabledReplicationRegions")inmake?enabledReplicationRegions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenabledReplicationRegions=field_mapjson__"EnabledReplicationRegions"Regions.of_jsoninmake?enabledReplicationRegions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the account's current default key replication configuration."]moduleGetDefaultKeyReplicationRegionsInput=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input parameters for retrieving the account's default key replication regions. This operation requires no input parameters."]moduleGetCertificateSigningRequestOutput=structtypenonrect={certificateSigningRequest:CertificateSigningRequestType.toption[@ocaml.doc"The certificate signing request generated using the key pair associated with the key identifier."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?certificateSigningRequest=fun()->{certificateSigningRequest}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("CertificateSigningRequest",(Option.mapx.certificateSigningRequest~f:CertificateSigningRequestType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateSigningRequest=(Option.map~f:CertificateSigningRequestType.of_xml)(Xml.childxml_arg0"CertificateSigningRequest")inmake?certificateSigningRequest()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateSigningRequest=field_mapjson__"CertificateSigningRequest"CertificateSigningRequestType.of_jsoninmake?certificateSigningRequest()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a certificate signing request (CSR) from a key pair."]moduleGetCertificateSigningRequestInput=structtypenonrect={keyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"Asymmetric key used for generating the certificate signing request"];signingAlgorithm:SigningAlgorithmType.t[@ocaml.doc"The cryptographic algorithm used to sign your CSR."];certificateSubject:CertificateSubjectType.t[@ocaml.doc"The metadata used to create the CSR."]}letcontext_="GetCertificateSigningRequestInput"letmake~keyIdentifier=fun~signingAlgorithm->fun~certificateSubject->fun()->{keyIdentifier;signingAlgorithm;certificateSubject}letto_valuex=structure_to_value[("KeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.keyIdentifier)));("SigningAlgorithm",(Some(SigningAlgorithmType.to_valuex.signingAlgorithm)));("CertificateSubject",(Some(CertificateSubjectType.to_valuex.certificateSubject)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateSubject=CertificateSubjectType.of_xml(Xml.child_exn~context:context_xml_arg0"CertificateSubject")inletsigningAlgorithm=SigningAlgorithmType.of_xml(Xml.child_exn~context:context_xml_arg0"SigningAlgorithm")inletkeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyIdentifier")inmake~certificateSubject~signingAlgorithm~keyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateSubject=field_map_exnjson__"CertificateSubject"CertificateSubjectType.of_jsoninletsigningAlgorithm=field_map_exnjson__"SigningAlgorithm"SigningAlgorithmType.of_jsoninletkeyIdentifier=field_map_exnjson__"KeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~certificateSubject~signingAlgorithm~keyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a certificate signing request (CSR) from a key pair."]moduleGetAliasOutput=structtypenonrect={alias:Alias.toption[@ocaml.doc"The alias of the Amazon Web Services Payment Cryptography key."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?alias=fun()->{alias}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Alias",(Option.mapx.alias~f:Alias.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letalias=(Option.map~f:Alias.of_xml)(Xml.childxml_arg0"Alias")inmake?alias()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letalias=field_mapjson__"Alias"Alias.of_jsoninmake?alias()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the Amazon Web Services Payment Cryptography key associated with the alias. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: CreateAlias DeleteAlias ListAliases UpdateAlias"]moduleGetAliasInput=structtypenonrect={aliasName:AliasName.t[@ocaml.doc"The alias of the Amazon Web Services Payment Cryptography key."]}letcontext_="GetAliasInput"letmake~aliasName=fun()->{aliasName}letto_valuex=structure_to_value[("AliasName",(Some(AliasName.to_valuex.aliasName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaliasName=AliasName.of_xml(Xml.child_exn~context:context_xml_arg0"AliasName")inmake~aliasName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaliasName=field_map_exnjson__"AliasName"AliasName.of_jsoninmake~aliasName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the Amazon Web Services Payment Cryptography key associated with the alias. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: CreateAlias DeleteAlias ListAliases UpdateAlias"]moduleExportKeyOutput=structtypenonrect={wrappedKey:WrappedKey.toption[@ocaml.doc"The key material under export as a TR-34 WrappedKeyBlock or a TR-31 WrappedKeyBlock. or a RSA WrappedKeyCryptogram."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?wrappedKey=fun()->{wrappedKey}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("WrappedKey",(Option.mapx.wrappedKey~f:WrappedKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwrappedKey=(Option.map~f:WrappedKey.of_xml)(Xml.childxml_arg0"WrappedKey")inmake?wrappedKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwrappedKey=field_mapjson__"WrappedKey"WrappedKey.of_jsoninmake?wrappedKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exports a key from Amazon Web Services Payment Cryptography. Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With ExportKey you can export symmetric keys using either symmetric and asymmetric key exchange mechanisms. Using this operation, you can share your Amazon Web Services Payment Cryptography generated keys with other service partners to perform cryptographic operations outside of Amazon Web Services Payment Cryptography For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm, RSA unwrap, and ECDH (Elliptic Curve Diffie-Hellman) key exchange mechanisms. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK). After which you can export working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography. PCI requires specific minimum key strength of wrapping keys used to protect the keys being exchanged electronically. These requirements can change when PCI standards are revised. The rules specify that wrapping keys used for transport must be at least as strong as the key being protected. For more information on recommended key strength of wrapping keys and key exchange mechanism, see Importing and exporting keys in the Amazon Web Services Payment Cryptography User Guide. You can also use ExportKey functionality to generate and export an IPEK (Initial Pin Encryption Key) from Amazon Web Services Payment Cryptography using either TR-31 or TR-34 export key exchange. IPEK is generated from BDK (Base Derivation Key) and ExportDukptInitialKey attribute KSN (KeySerialNumber). The generated IPEK does not persist within Amazon Web Services Payment Cryptography and has to be re-generated each time during export. For key exchange using TR-31 or TR-34 key blocks, you can also export optional blocks within the key block header which contain additional attribute information about the key. The KeyVersion within KeyBlockHeaders indicates the version of the key within the key block. Furthermore, KeyExportability within KeyBlockHeaders can be used to further restrict exportability of the key after export from Amazon Web Services Payment Cryptography. The OptionalBlocks contain the additional data related to the key. For information on data type that can be included within optional blocks, refer to ASC X9.143-2022. Data included in key block headers is signed but transmitted in clear text. Sensitive or confidential information should not be included in optional blocks. Refer to ASC X9.143-2022 standard for information on allowed data type. To export initial keys (KEK) or IPEK using TR-34 Using this operation, you can export initial key using TR-34 asymmetric key exchange. You can only export KEK generated within Amazon Web Services Payment Cryptography. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During key export process, KDH is Amazon Web Services Payment Cryptography which initiates key export and KRD is the user receiving the key. To initiate TR-34 key export, the KRD must obtain an export token by calling GetParametersForExport. This operation also generates a key pair for the purpose of key export, signs the key and returns back the signing public key certificate (also known as KDH signing certificate) and root certificate chain. The KDH uses the private key to sign the the export payload and the signing public key certificate is provided to KRD to verify the signature. The KRD can import the root certificate into its Hardware Security Module (HSM), as required. The export token and the associated KDH signing certificate expires after 30 days. Next the KRD generates a key pair for the the purpose of encrypting the KDH key and provides the public key cerificate (also known as KRD wrapping certificate) back to KDH. The KRD will also import the root cerificate chain into Amazon Web Services Payment Cryptography by calling ImportKey for RootCertificatePublicKey. The KDH, Amazon Web Services Payment Cryptography, will use the KRD wrapping cerificate to encrypt (wrap) the key under export and signs it with signing private key to generate a TR-34 WrappedKeyBlock. For more information on TR-34 key export, see section Exporting symmetric keys in the Amazon Web Services Payment Cryptography User Guide. Set the following parameters: ExportAttributes: Specify export attributes in case of IPEK export. This parameter is optional for KEK export. ExportKeyIdentifier: The KeyARN of the KEK or BDK (in case of IPEK) under export. KeyMaterial: Use Tr34KeyBlock parameters. CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed the KRD wrapping key certificate. ExportToken: Obtained from KDH by calling GetParametersForImport. WrappingKeyCertificate: The public key certificate in PEM format (base64 encoded) of the KRD wrapping key Amazon Web Services Payment Cryptography uses for encryption of the TR-34 export payload. This certificate must be signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography. When this operation is successful, Amazon Web Services Payment Cryptography returns the KEK or IPEK as a TR-34 WrappedKeyBlock. To export initial keys (KEK) or IPEK using RSA Wrap and Unwrap Using this operation, you can export initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate export, generate an asymmetric key pair on the receiving HSM and obtain the public key certificate in PEM format (base64 encoded) for the purpose of wrapping and the root certifiate chain. Import the root certificate into Amazon Web Services Payment Cryptography by calling ImportKey for RootCertificatePublicKey. Next call ExportKey and set the following parameters: CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed wrapping key certificate. KeyMaterial: Set to KeyCryptogram. WrappingKeyCertificate: The public key certificate in PEM format (base64 encoded) obtained by the receiving HSM and signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography. The receiving HSM uses its private key component to unwrap the WrappedKeyCryptogram. When this operation is successful, Amazon Web Services Payment Cryptography returns the WrappedKeyCryptogram. To export working keys or IPEK using TR-31 Using this operation, you can export working keys or IPEK using TR-31 symmetric key exchange. In TR-31, you must use an initial key such as KEK to encrypt or wrap the key under export. To establish a KEK, you can use CreateKey or ImportKey. Set the following parameters: ExportAttributes: Specify export attributes in case of IPEK export. This parameter is optional for KEK export. ExportKeyIdentifier: The KeyARN of the KEK or BDK (in case of IPEK) under export. KeyMaterial: Use Tr31KeyBlock parameters. To export working keys using ECDH You can also use ECDH key agreement to export working keys in a TR-31 keyblock, where the wrapping key is an ECDH derived key. To initiate a TR-31 key export using ECDH, both sides must create an ECC key pair with key usage K3 and exchange public key certificates. In Amazon Web Services Payment Cryptography, you can do this by calling CreateKey. If you have not already done so, you must import the CA chain that issued the receiving public key certificate by calling ImportKey with input RootCertificatePublicKey for root CA or TrustedPublicKey for intermediate CA. You can then complete a TR-31 key export by deriving a shared wrapping key using the service ECC key pair, public certificate of your ECC key pair outside of Amazon Web Services Payment Cryptography, and the key derivation parameters including key derivation function, hash algorithm, derivation data, key algorithm. KeyMaterial: Use DiffieHellmanTr31KeyBlock parameters. PrivateKeyIdentifier: The KeyArn of the ECC key pair created within Amazon Web Services Payment Cryptography to derive a shared KEK. PublicKeyCertificate: The public key certificate of the receiving ECC key pair in PEM format (base64 encoded) to derive a shared KEK. CertificateAuthorityPublicKeyIdentifier: The keyARN of the CA that signed the public key certificate of the receiving ECC key pair. When this operation is successful, Amazon Web Services Payment Cryptography returns the working key as a TR-31 WrappedKeyBlock, where the wrapping key is the ECDH derived key. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: GetParametersForExport ImportKey"]moduleExportKeyInput=structtypenonrect={keyMaterial:ExportKeyMaterial.t[@ocaml.doc"The key block format type, for example, TR-34 or TR-31, to use during key material export."];exportKeyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the key under export from Amazon Web Services Payment Cryptography."];exportAttributes:ExportAttributes.toption[@ocaml.doc"The attributes for IPEK generation during export."]}letcontext_="ExportKeyInput"letmake?exportAttributes=fun~keyMaterial->fun~exportKeyIdentifier->fun()->{exportAttributes;keyMaterial;exportKeyIdentifier}letto_valuex=structure_to_value[("KeyMaterial",(Some(ExportKeyMaterial.to_valuex.keyMaterial)));("ExportKeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.exportKeyIdentifier)));("ExportAttributes",(Option.mapx.exportAttributes~f:ExportAttributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexportAttributes=(Option.map~f:ExportAttributes.of_xml)(Xml.childxml_arg0"ExportAttributes")inletexportKeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"ExportKeyIdentifier")inletkeyMaterial=ExportKeyMaterial.of_xml(Xml.child_exn~context:context_xml_arg0"KeyMaterial")inmake?exportAttributes~exportKeyIdentifier~keyMaterial()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexportAttributes=field_mapjson__"ExportAttributes"ExportAttributes.of_jsoninletexportKeyIdentifier=field_map_exnjson__"ExportKeyIdentifier"KeyArnOrKeyAliasType.of_jsoninletkeyMaterial=field_map_exnjson__"KeyMaterial"ExportKeyMaterial.of_jsoninmake?exportAttributes~exportKeyIdentifier~keyMaterial()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exports a key from Amazon Web Services Payment Cryptography. Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With ExportKey you can export symmetric keys using either symmetric and asymmetric key exchange mechanisms. Using this operation, you can share your Amazon Web Services Payment Cryptography generated keys with other service partners to perform cryptographic operations outside of Amazon Web Services Payment Cryptography For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm, RSA unwrap, and ECDH (Elliptic Curve Diffie-Hellman) key exchange mechanisms. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK). After which you can export working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography. PCI requires specific minimum key strength of wrapping keys used to protect the keys being exchanged electronically. These requirements can change when PCI standards are revised. The rules specify that wrapping keys used for transport must be at least as strong as the key being protected. For more information on recommended key strength of wrapping keys and key exchange mechanism, see Importing and exporting keys in the Amazon Web Services Payment Cryptography User Guide. You can also use ExportKey functionality to generate and export an IPEK (Initial Pin Encryption Key) from Amazon Web Services Payment Cryptography using either TR-31 or TR-34 export key exchange. IPEK is generated from BDK (Base Derivation Key) and ExportDukptInitialKey attribute KSN (KeySerialNumber). The generated IPEK does not persist within Amazon Web Services Payment Cryptography and has to be re-generated each time during export. For key exchange using TR-31 or TR-34 key blocks, you can also export optional blocks within the key block header which contain additional attribute information about the key. The KeyVersion within KeyBlockHeaders indicates the version of the key within the key block. Furthermore, KeyExportability within KeyBlockHeaders can be used to further restrict exportability of the key after export from Amazon Web Services Payment Cryptography. The OptionalBlocks contain the additional data related to the key. For information on data type that can be included within optional blocks, refer to ASC X9.143-2022. Data included in key block headers is signed but transmitted in clear text. Sensitive or confidential information should not be included in optional blocks. Refer to ASC X9.143-2022 standard for information on allowed data type. To export initial keys (KEK) or IPEK using TR-34 Using this operation, you can export initial key using TR-34 asymmetric key exchange. You can only export KEK generated within Amazon Web Services Payment Cryptography. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During key export process, KDH is Amazon Web Services Payment Cryptography which initiates key export and KRD is the user receiving the key. To initiate TR-34 key export, the KRD must obtain an export token by calling GetParametersForExport. This operation also generates a key pair for the purpose of key export, signs the key and returns back the signing public key certificate (also known as KDH signing certificate) and root certificate chain. The KDH uses the private key to sign the the export payload and the signing public key certificate is provided to KRD to verify the signature. The KRD can import the root certificate into its Hardware Security Module (HSM), as required. The export token and the associated KDH signing certificate expires after 30 days. Next the KRD generates a key pair for the the purpose of encrypting the KDH key and provides the public key cerificate (also known as KRD wrapping certificate) back to KDH. The KRD will also import the root cerificate chain into Amazon Web Services Payment Cryptography by calling ImportKey for RootCertificatePublicKey. The KDH, Amazon Web Services Payment Cryptography, will use the KRD wrapping cerificate to encrypt (wrap) the key under export and signs it with signing private key to generate a TR-34 WrappedKeyBlock. For more information on TR-34 key export, see section Exporting symmetric keys in the Amazon Web Services Payment Cryptography User Guide. Set the following parameters: ExportAttributes: Specify export attributes in case of IPEK export. This parameter is optional for KEK export. ExportKeyIdentifier: The KeyARN of the KEK or BDK (in case of IPEK) under export. KeyMaterial: Use Tr34KeyBlock parameters. CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed the KRD wrapping key certificate. ExportToken: Obtained from KDH by calling GetParametersForImport. WrappingKeyCertificate: The public key certificate in PEM format (base64 encoded) of the KRD wrapping key Amazon Web Services Payment Cryptography uses for encryption of the TR-34 export payload. This certificate must be signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography. When this operation is successful, Amazon Web Services Payment Cryptography returns the KEK or IPEK as a TR-34 WrappedKeyBlock. To export initial keys (KEK) or IPEK using RSA Wrap and Unwrap Using this operation, you can export initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate export, generate an asymmetric key pair on the receiving HSM and obtain the public key certificate in PEM format (base64 encoded) for the purpose of wrapping and the root certifiate chain. Import the root certificate into Amazon Web Services Payment Cryptography by calling ImportKey for RootCertificatePublicKey. Next call ExportKey and set the following parameters: CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed wrapping key certificate. KeyMaterial: Set to KeyCryptogram. WrappingKeyCertificate: The public key certificate in PEM format (base64 encoded) obtained by the receiving HSM and signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography. The receiving HSM uses its private key component to unwrap the WrappedKeyCryptogram. When this operation is successful, Amazon Web Services Payment Cryptography returns the WrappedKeyCryptogram. To export working keys or IPEK using TR-31 Using this operation, you can export working keys or IPEK using TR-31 symmetric key exchange. In TR-31, you must use an initial key such as KEK to encrypt or wrap the key under export. To establish a KEK, you can use CreateKey or ImportKey. Set the following parameters: ExportAttributes: Specify export attributes in case of IPEK export. This parameter is optional for KEK export. ExportKeyIdentifier: The KeyARN of the KEK or BDK (in case of IPEK) under export. KeyMaterial: Use Tr31KeyBlock parameters. To export working keys using ECDH You can also use ECDH key agreement to export working keys in a TR-31 keyblock, where the wrapping key is an ECDH derived key. To initiate a TR-31 key export using ECDH, both sides must create an ECC key pair with key usage K3 and exchange public key certificates. In Amazon Web Services Payment Cryptography, you can do this by calling CreateKey. If you have not already done so, you must import the CA chain that issued the receiving public key certificate by calling ImportKey with input RootCertificatePublicKey for root CA or TrustedPublicKey for intermediate CA. You can then complete a TR-31 key export by deriving a shared wrapping key using the service ECC key pair, public certificate of your ECC key pair outside of Amazon Web Services Payment Cryptography, and the key derivation parameters including key derivation function, hash algorithm, derivation data, key algorithm. KeyMaterial: Use DiffieHellmanTr31KeyBlock parameters. PrivateKeyIdentifier: The KeyArn of the ECC key pair created within Amazon Web Services Payment Cryptography to derive a shared KEK. PublicKeyCertificate: The public key certificate of the receiving ECC key pair in PEM format (base64 encoded) to derive a shared KEK. CertificateAuthorityPublicKeyIdentifier: The keyARN of the CA that signed the public key certificate of the receiving ECC key pair. When this operation is successful, Amazon Web Services Payment Cryptography returns the working key as a TR-31 WrappedKeyBlock, where the wrapping key is the ECDH derived key. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: GetParametersForExport ImportKey"]moduleEnableDefaultKeyReplicationRegionsOutput=structtypenonrect={enabledReplicationRegions:Regions.toption[@ocaml.doc"The complete list of regions where default key replication is now enabled for the account. This includes both previously enabled regions and the newly added regions from this operation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?enabledReplicationRegions=fun()->{enabledReplicationRegions}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("EnabledReplicationRegions",(Option.mapx.enabledReplicationRegions~f:Regions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenabledReplicationRegions=(Option.map~f:Regions.of_xml)(Xml.childxml_arg0"EnabledReplicationRegions")inmake?enabledReplicationRegions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenabledReplicationRegions=field_mapjson__"EnabledReplicationRegions"Regions.of_jsoninmake?enabledReplicationRegions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output from enabling default key replication regions for the account."]moduleEnableDefaultKeyReplicationRegionsInput=structtypenonrect={replicationRegions:Regions.t[@ocaml.doc"The list of Amazon Web Services Regions to enable as default replication regions for the Amazon Web Services account for Multi-Region key replication. New keys created in this account will automatically be replicated to these regions unless explicitly overridden during key creation."]}letcontext_="EnableDefaultKeyReplicationRegionsInput"letmake~replicationRegions=fun()->{replicationRegions}letto_valuex=structure_to_value[("ReplicationRegions",(Some(Regions.to_valuex.replicationRegions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreplicationRegions=Regions.of_xml(Xml.child_exn~context:context_xml_arg0"ReplicationRegions")inmake~replicationRegions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreplicationRegions=field_map_exnjson__"ReplicationRegions"Regions.of_jsoninmake~replicationRegions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input parameters for enabling default key replication regions for the account."]moduleDisassociateMpaTeamOutput=structtypenonrect={mpaTeamAssociation:MpaTeamAssociation.toption[@ocaml.doc"The details of the MPA team association."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?mpaTeamAssociation=fun()->{mpaTeamAssociation}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MpaTeamAssociation",(Option.mapx.mpaTeamAssociation~f:MpaTeamAssociation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmpaTeamAssociation=(Option.map~f:MpaTeamAssociation.of_xml)(Xml.childxml_arg0"MpaTeamAssociation")inmake?mpaTeamAssociation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmpaTeamAssociation=field_mapjson__"MpaTeamAssociation"MpaTeamAssociation.of_jsoninmake?mpaTeamAssociation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the association between a Multi-Party Approval (MPA) team and a protected operation. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: AssociateMpaTeam GetMpaTeamAssociation"]moduleDisassociateMpaTeamInput=structtypenonrect={action:MpaOperation.t[@ocaml.doc"The protected operation to disassociate from the MPA team. Currently, the only supported value is IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE."];requesterComment:MpaRequesterComment.toption[@ocaml.doc"The comment from the requester explaining the reason for the disassociation. Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output."]}letcontext_="DisassociateMpaTeamInput"letmake?requesterComment=fun~action->fun()->{requesterComment;action}letto_valuex=structure_to_value[("Action",(Some(MpaOperation.to_valuex.action)));("RequesterComment",(Option.mapx.requesterComment~f:MpaRequesterComment.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrequesterComment=(Option.map~f:MpaRequesterComment.of_xml)(Xml.childxml_arg0"RequesterComment")inletaction=MpaOperation.of_xml(Xml.child_exn~context:context_xml_arg0"Action")inmake?requesterComment~action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrequesterComment=field_mapjson__"RequesterComment"MpaRequesterComment.of_jsoninletaction=field_map_exnjson__"Action"MpaOperation.of_jsoninmake?requesterComment~action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the association between a Multi-Party Approval (MPA) team and a protected operation. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: AssociateMpaTeam GetMpaTeamAssociation"]moduleDisableDefaultKeyReplicationRegionsOutput=structtypenonrect={enabledReplicationRegions:Regions.toption[@ocaml.doc"The remaining list of regions where default key replication is still enabled for the account. This reflects the account's default replication configuration after removing the specified regions."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?enabledReplicationRegions=fun()->{enabledReplicationRegions}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("EnabledReplicationRegions",(Option.mapx.enabledReplicationRegions~f:Regions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenabledReplicationRegions=(Option.map~f:Regions.of_xml)(Xml.childxml_arg0"EnabledReplicationRegions")inmake?enabledReplicationRegions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenabledReplicationRegions=field_mapjson__"EnabledReplicationRegions"Regions.of_jsoninmake?enabledReplicationRegions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output from disabling default key replication regions for the account."]moduleDisableDefaultKeyReplicationRegionsInput=structtypenonrect={replicationRegions:Regions.t[@ocaml.doc"The list of Amazon Web Services Regions to remove from the account's default replication regions. New keys created after this operation will not automatically be replicated to these regions, though existing keys with replication to these regions will be unaffected."]}letcontext_="DisableDefaultKeyReplicationRegionsInput"letmake~replicationRegions=fun()->{replicationRegions}letto_valuex=structure_to_value[("ReplicationRegions",(Some(Regions.to_valuex.replicationRegions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreplicationRegions=Regions.of_xml(Xml.child_exn~context:context_xml_arg0"ReplicationRegions")inmake~replicationRegions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreplicationRegions=field_map_exnjson__"ReplicationRegions"Regions.of_jsoninmake~replicationRegions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input parameters for disabling default key replication regions for the account."]moduleDeleteResourcePolicyOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the resource-based policy attached to an Amazon Web Services Payment Cryptography key. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: PutResourcePolicy GetResourcePolicy"]moduleDeleteResourcePolicyInput=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The KeyARN of the key whose resource-based policy you want to delete."]}letcontext_="DeleteResourcePolicyInput"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(ResourceArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"ResourceArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the resource-based policy attached to an Amazon Web Services Payment Cryptography key. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: PutResourcePolicy GetResourcePolicy"]moduleDeleteKeyOutput=structtypenonrect={key:Key.toption[@ocaml.doc"The KeyARN of the key that is scheduled for deletion."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?key=fun()->{key}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"Key"Key.of_jsoninmake?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the key material and metadata associated with Amazon Web Services Payment Cryptography key. Key deletion is irreversible. After a key is deleted, you can't perform cryptographic operations using the key. For example, you can't decrypt data that was encrypted by a deleted Amazon Web Services Payment Cryptography key, and the data may become unrecoverable. Because key deletion is destructive, Amazon Web Services Payment Cryptography has a safety mechanism to prevent accidental deletion of a key. When you call this operation, Amazon Web Services Payment Cryptography disables the specified key but doesn't delete it until after a waiting period set using DeleteKeyInDays. The default waiting period is 7 days. During the waiting period, the KeyState is DELETE_PENDING. After the key is deleted, the KeyState is DELETE_COMPLETE. You should delete a key only when you are sure that you don't need to use it anymore and no other parties are utilizing this key. If you aren't sure, consider deactivating it instead by calling StopKeyUsage. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: RestoreKey StartKeyUsage StopKeyUsage"]moduleDeleteKeyInput=structtypenonrect={keyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The KeyARN of the key that is scheduled for deletion."];deleteKeyInDays:DeleteKeyInputDeleteKeyInDaysInteger.toption[@ocaml.doc"The waiting period for key deletion. The default value is seven days."]}letcontext_="DeleteKeyInput"letmake?deleteKeyInDays=fun~keyIdentifier->fun()->{deleteKeyInDays;keyIdentifier}letto_valuex=structure_to_value[("KeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.keyIdentifier)));("DeleteKeyInDays",(Option.mapx.deleteKeyInDays~f:DeleteKeyInputDeleteKeyInDaysInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeleteKeyInDays=(Option.map~f:DeleteKeyInputDeleteKeyInDaysInteger.of_xml)(Xml.childxml_arg0"DeleteKeyInDays")inletkeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyIdentifier")inmake?deleteKeyInDays~keyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeleteKeyInDays=field_mapjson__"DeleteKeyInDays"DeleteKeyInputDeleteKeyInDaysInteger.of_jsoninletkeyIdentifier=field_map_exnjson__"KeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake?deleteKeyInDays~keyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the key material and metadata associated with Amazon Web Services Payment Cryptography key. Key deletion is irreversible. After a key is deleted, you can't perform cryptographic operations using the key. For example, you can't decrypt data that was encrypted by a deleted Amazon Web Services Payment Cryptography key, and the data may become unrecoverable. Because key deletion is destructive, Amazon Web Services Payment Cryptography has a safety mechanism to prevent accidental deletion of a key. When you call this operation, Amazon Web Services Payment Cryptography disables the specified key but doesn't delete it until after a waiting period set using DeleteKeyInDays. The default waiting period is 7 days. During the waiting period, the KeyState is DELETE_PENDING. After the key is deleted, the KeyState is DELETE_COMPLETE. You should delete a key only when you are sure that you don't need to use it anymore and no other parties are utilizing this key. If you aren't sure, consider deactivating it instead by calling StopKeyUsage. Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies. Related operations: RestoreKey StartKeyUsage StopKeyUsage"]moduleDeleteAliasOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the alias, but doesn't affect the underlying key. Each key can have multiple aliases. To get the aliases of all keys, use the UpdateAlias operation. To change the alias of a key, first use DeleteAlias to delete the current alias and then use CreateAlias to create a new alias. To associate an existing alias with a different key, call UpdateAlias. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: CreateAlias GetAlias ListAliases UpdateAlias"]moduleDeleteAliasInput=structtypenonrect={aliasName:AliasName.t[@ocaml.doc"A friendly name that you can use to refer Amazon Web Services Payment Cryptography key. This value must begin with alias/ followed by a name, such as alias/ExampleAlias."]}letcontext_="DeleteAliasInput"letmake~aliasName=fun()->{aliasName}letto_valuex=structure_to_value[("AliasName",(Some(AliasName.to_valuex.aliasName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaliasName=AliasName.of_xml(Xml.child_exn~context:context_xml_arg0"AliasName")inmake~aliasName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaliasName=field_map_exnjson__"AliasName"AliasName.of_jsoninmake~aliasName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the alias, but doesn't affect the underlying key. Each key can have multiple aliases. To get the aliases of all keys, use the UpdateAlias operation. To change the alias of a key, first use DeleteAlias to delete the current alias and then use CreateAlias to create a new alias. To associate an existing alias with a different key, call UpdateAlias. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: CreateAlias GetAlias ListAliases UpdateAlias"]moduleCreateKeyOutput=structtypenonrect={key:Key.toption[@ocaml.doc"The key material that contains all the key attributes."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?key=fun()->{key}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"Key"Key.of_jsoninmake?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Amazon Web Services Payment Cryptography key, a logical representation of a cryptographic key, that is unique in your account and Amazon Web Services Region. You use keys for cryptographic functions such as encryption and decryption. In addition to the key material used in cryptographic operations, an Amazon Web Services Payment Cryptography key includes metadata such as the key ARN, key usage, key origin, creation date, description, and key state. When you create a key, you specify both immutable and mutable data about the key. The immutable data contains key attributes that define the scope and cryptographic operations that you can perform using the key, for example key class (example: SYMMETRIC_KEY), key algorithm (example: TDES_2KEY), key usage (example: TR31_P0_PIN_ENCRYPTION_KEY) and key modes of use (example: Encrypt). Amazon Web Services Payment Cryptography binds key attributes to keys using key blocks when you store or export them. Amazon Web Services Payment Cryptography stores the key contents wrapped and never stores or transmits them in the clear. For information about valid combinations of key attributes, see Understanding key attributes in the Amazon Web Services Payment Cryptography User Guide. The mutable data contained within a key includes usage timestamp and key deletion timestamp and can be modified after creation. You can use the CreateKey operation to generate an ECC (Elliptic Curve Cryptography) key pair used for establishing an ECDH (Elliptic Curve Diffie-Hellman) key agreement between two parties. In the ECDH key agreement process, both parties generate their own ECC key pair with key usage K3 and exchange the public keys. Each party then use their private key, the received public key from the other party, and the key derivation parameters including key derivation function, hash algorithm, derivation data, and key algorithm to derive a shared key. To maintain the single-use principle of cryptographic keys in payments, ECDH derived keys should not be used for multiple purposes, such as a TR31_P0_PIN_ENCRYPTION_KEY and TR31_K1_KEY_BLOCK_PROTECTION_KEY. When creating ECC key pairs in Amazon Web Services Payment Cryptography you can optionally set the DeriveKeyUsage parameter, which defines the key usage bound to the symmetric key that will be derived using the ECC key pair. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: DeleteKey GetKey ListKeys"]moduleCreateKeyInput=structtypenonrect={keyAttributes:KeyAttributes.t[@ocaml.doc"The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created."];keyCheckValueAlgorithm:KeyCheckValueAlgorithm.toption[@ocaml.doc"The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity. For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result."];exportable:Boolean.t[@ocaml.doc"Specifies whether the key is exportable from the service."];enabled:Boolean.toption[@ocaml.doc"Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key is not enabled, then it is created but not activated. The default value is enabled."];tags:Tags.toption[@ocaml.doc"Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is created. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output. Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key."];deriveKeyUsage:DeriveKeyUsage.toption[@ocaml.doc"The intended cryptographic usage of keys derived from the ECC key pair to be created. After creating an ECC key pair, you cannot change the intended cryptographic usage of keys derived from it using ECDH."];replicationRegions:Regions.toption}letcontext_="CreateKeyInput"letmake?keyCheckValueAlgorithm=fun?enabled->fun?tags->fun?deriveKeyUsage->fun?replicationRegions->fun~keyAttributes->fun~exportable->fun()->{keyCheckValueAlgorithm;enabled;tags;deriveKeyUsage;replicationRegions;keyAttributes;exportable}letto_valuex=structure_to_value[("KeyAttributes",(Some(KeyAttributes.to_valuex.keyAttributes)));("KeyCheckValueAlgorithm",(Option.mapx.keyCheckValueAlgorithm~f:KeyCheckValueAlgorithm.to_value));("Exportable",(Some(Boolean.to_valuex.exportable)));("Enabled",(Option.mapx.enabled~f:Boolean.to_value));("Tags",(Option.mapx.tags~f:Tags.to_value));("DeriveKeyUsage",(Option.mapx.deriveKeyUsage~f:DeriveKeyUsage.to_value));("ReplicationRegions",(Option.mapx.replicationRegions~f:Regions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreplicationRegions=(Option.map~f:Regions.of_xml)(Xml.childxml_arg0"ReplicationRegions")inletderiveKeyUsage=(Option.map~f:DeriveKeyUsage.of_xml)(Xml.childxml_arg0"DeriveKeyUsage")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"Tags")inletenabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"Enabled")inletexportable=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"Exportable")inletkeyCheckValueAlgorithm=(Option.map~f:KeyCheckValueAlgorithm.of_xml)(Xml.childxml_arg0"KeyCheckValueAlgorithm")inletkeyAttributes=KeyAttributes.of_xml(Xml.child_exn~context:context_xml_arg0"KeyAttributes")inmake?replicationRegions?deriveKeyUsage?tags?enabled~exportable?keyCheckValueAlgorithm~keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreplicationRegions=field_mapjson__"ReplicationRegions"Regions.of_jsoninletderiveKeyUsage=field_mapjson__"DeriveKeyUsage"DeriveKeyUsage.of_jsoninlettags=field_mapjson__"Tags"Tags.of_jsoninletenabled=field_mapjson__"Enabled"Boolean.of_jsoninletexportable=field_map_exnjson__"Exportable"Boolean.of_jsoninletkeyCheckValueAlgorithm=field_mapjson__"KeyCheckValueAlgorithm"KeyCheckValueAlgorithm.of_jsoninletkeyAttributes=field_map_exnjson__"KeyAttributes"KeyAttributes.of_jsoninmake?replicationRegions?deriveKeyUsage?tags?enabled~exportable?keyCheckValueAlgorithm~keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Amazon Web Services Payment Cryptography key, a logical representation of a cryptographic key, that is unique in your account and Amazon Web Services Region. You use keys for cryptographic functions such as encryption and decryption. In addition to the key material used in cryptographic operations, an Amazon Web Services Payment Cryptography key includes metadata such as the key ARN, key usage, key origin, creation date, description, and key state. When you create a key, you specify both immutable and mutable data about the key. The immutable data contains key attributes that define the scope and cryptographic operations that you can perform using the key, for example key class (example: SYMMETRIC_KEY), key algorithm (example: TDES_2KEY), key usage (example: TR31_P0_PIN_ENCRYPTION_KEY) and key modes of use (example: Encrypt). Amazon Web Services Payment Cryptography binds key attributes to keys using key blocks when you store or export them. Amazon Web Services Payment Cryptography stores the key contents wrapped and never stores or transmits them in the clear. For information about valid combinations of key attributes, see Understanding key attributes in the Amazon Web Services Payment Cryptography User Guide. The mutable data contained within a key includes usage timestamp and key deletion timestamp and can be modified after creation. You can use the CreateKey operation to generate an ECC (Elliptic Curve Cryptography) key pair used for establishing an ECDH (Elliptic Curve Diffie-Hellman) key agreement between two parties. In the ECDH key agreement process, both parties generate their own ECC key pair with key usage K3 and exchange the public keys. Each party then use their private key, the received public key from the other party, and the key derivation parameters including key derivation function, hash algorithm, derivation data, and key algorithm to derive a shared key. To maintain the single-use principle of cryptographic keys in payments, ECDH derived keys should not be used for multiple purposes, such as a TR31_P0_PIN_ENCRYPTION_KEY and TR31_K1_KEY_BLOCK_PROTECTION_KEY. When creating ECC key pairs in Amazon Web Services Payment Cryptography you can optionally set the DeriveKeyUsage parameter, which defines the key usage bound to the symmetric key that will be derived using the ECC key pair. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: DeleteKey GetKey ListKeys"]moduleCreateAliasOutput=structtypenonrect={alias:Alias.toption[@ocaml.doc"The alias for the key."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?alias=fun()->{alias}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Alias",(Option.mapx.alias~f:Alias.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letalias=(Option.map~f:Alias.of_xml)(Xml.childxml_arg0"Alias")inmake?alias()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letalias=field_mapjson__"Alias"Alias.of_jsoninmake?alias()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an alias, or a friendly name, for an Amazon Web Services Payment Cryptography key. You can use an alias to identify a key in the console and when you call cryptographic operations such as EncryptData or DecryptData. You can associate the alias with any key in the same Amazon Web Services Region. Each alias is associated with only one key at a time, but a key can have multiple aliases. You can't create an alias without a key. The alias must be unique in the account and Amazon Web Services Region, but you can create another alias with the same name in a different Amazon Web Services Region. To change the key that's associated with the alias, call UpdateAlias. To delete the alias, call DeleteAlias. These operations don't affect the underlying key. To get the alias that you created, call ListAliases. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: DeleteAlias GetAlias ListAliases UpdateAlias"]moduleCreateAliasInput=structtypenonrect={aliasName:AliasName.t[@ocaml.doc"A friendly name that you can use to refer to a key. An alias must begin with alias/ followed by a name, for example alias/ExampleAlias. It can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output."];keyArn:KeyArn.toption[@ocaml.doc"The KeyARN of the key to associate with the alias."]}letcontext_="CreateAliasInput"letmake?keyArn=fun~aliasName->fun()->{keyArn;aliasName}letto_valuex=structure_to_value[("AliasName",(Some(AliasName.to_valuex.aliasName)));("KeyArn",(Option.mapx.keyArn~f:KeyArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyArn=(Option.map~f:KeyArn.of_xml)(Xml.childxml_arg0"KeyArn")inletaliasName=AliasName.of_xml(Xml.child_exn~context:context_xml_arg0"AliasName")inmake?keyArn~aliasName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyArn=field_mapjson__"KeyArn"KeyArn.of_jsoninletaliasName=field_map_exnjson__"AliasName"AliasName.of_jsoninmake?keyArn~aliasName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an alias, or a friendly name, for an Amazon Web Services Payment Cryptography key. You can use an alias to identify a key in the console and when you call cryptographic operations such as EncryptData or DecryptData. You can associate the alias with any key in the same Amazon Web Services Region. Each alias is associated with only one key at a time, but a key can have multiple aliases. You can't create an alias without a key. The alias must be unique in the account and Amazon Web Services Region, but you can create another alias with the same name in a different Amazon Web Services Region. To change the key that's associated with the alias, call UpdateAlias. To delete the alias, call DeleteAlias. These operations don't affect the underlying key. To get the alias that you created, call ListAliases. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: DeleteAlias GetAlias ListAliases UpdateAlias"]moduleAssociateMpaTeamOutput=structtypenonrect={mpaTeamAssociation:MpaTeamAssociation.toption[@ocaml.doc"The details of the MPA team association."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?mpaTeamAssociation=fun()->{mpaTeamAssociation}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MpaTeamAssociation",(Option.mapx.mpaTeamAssociation~f:MpaTeamAssociation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmpaTeamAssociation=(Option.map~f:MpaTeamAssociation.of_xml)(Xml.childxml_arg0"MpaTeamAssociation")inmake?mpaTeamAssociation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmpaTeamAssociation=field_mapjson__"MpaTeamAssociation"MpaTeamAssociation.of_jsoninmake?mpaTeamAssociation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates a Multi-Party Approval (MPA) team with a protected operation. For more information, see Multi-Party Approval in the Amazon Web Services Payment Cryptography User Guide. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: DisassociateMpaTeam GetMpaTeamAssociation"]moduleAssociateMpaTeamInput=structtypenonrect={action:MpaOperation.t[@ocaml.doc"The protected operation to associate with the MPA team. Currently, the only supported value is IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE."];mpaTeamArn:MpaTeamArn.t[@ocaml.doc"The ARN of the MPA team to associate with the protected operation."];requesterComment:MpaRequesterComment.toption[@ocaml.doc"The comment from the requester explaining the reason for the association. Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output."]}letcontext_="AssociateMpaTeamInput"letmake?requesterComment=fun~action->fun~mpaTeamArn->fun()->{requesterComment;action;mpaTeamArn}letto_valuex=structure_to_value[("Action",(Some(MpaOperation.to_valuex.action)));("MpaTeamArn",(Some(MpaTeamArn.to_valuex.mpaTeamArn)));("RequesterComment",(Option.mapx.requesterComment~f:MpaRequesterComment.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrequesterComment=(Option.map~f:MpaRequesterComment.of_xml)(Xml.childxml_arg0"RequesterComment")inletmpaTeamArn=MpaTeamArn.of_xml(Xml.child_exn~context:context_xml_arg0"MpaTeamArn")inletaction=MpaOperation.of_xml(Xml.child_exn~context:context_xml_arg0"Action")inmake?requesterComment~mpaTeamArn~action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrequesterComment=field_mapjson__"RequesterComment"MpaRequesterComment.of_jsoninletmpaTeamArn=field_map_exnjson__"MpaTeamArn"MpaTeamArn.of_jsoninletaction=field_map_exnjson__"Action"MpaOperation.of_jsoninmake?requesterComment~mpaTeamArn~action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Associates a Multi-Party Approval (MPA) team with a protected operation. For more information, see Multi-Party Approval in the Amazon Web Services Payment Cryptography User Guide. Cross-account use: This operation can't be used across different Amazon Web Services accounts. Related operations: DisassociateMpaTeam GetMpaTeamAssociation"]moduleAddKeyReplicationRegionsOutput=structtypenonrect={key:Key.toption[@ocaml.doc"The updated key metadata after adding the replication regions. This includes the current state of the key and its replication configuration."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?key=fun()->{key}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`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[("Key",(Option.mapx.key~f:Key.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_mapjson__"Key"Key.of_jsoninmake?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output from adding replication regions to a key."]moduleAddKeyReplicationRegionsInput=structtypenonrect={keyIdentifier:KeyArnOrKeyAliasType.t[@ocaml.doc"The key identifier (ARN or alias) of the key for which to add replication regions. This key must exist and be in a valid state for replication operations."];replicationRegions:Regions.t[@ocaml.doc"The list of Amazon Web Services Regions to add to the key's replication configuration. Each region must be a valid Amazon Web Services Region where Amazon Web Services Payment Cryptography is available. The key will be replicated to these regions, allowing cryptographic operations to be performed closer to your applications."]}letcontext_="AddKeyReplicationRegionsInput"letmake~keyIdentifier=fun~replicationRegions->fun()->{keyIdentifier;replicationRegions}letto_valuex=structure_to_value[("KeyIdentifier",(Some(KeyArnOrKeyAliasType.to_valuex.keyIdentifier)));("ReplicationRegions",(Some(Regions.to_valuex.replicationRegions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreplicationRegions=Regions.of_xml(Xml.child_exn~context:context_xml_arg0"ReplicationRegions")inletkeyIdentifier=KeyArnOrKeyAliasType.of_xml(Xml.child_exn~context:context_xml_arg0"KeyIdentifier")inmake~replicationRegions~keyIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreplicationRegions=field_map_exnjson__"ReplicationRegions"Regions.of_jsoninletkeyIdentifier=field_map_exnjson__"KeyIdentifier"KeyArnOrKeyAliasType.of_jsoninmake~replicationRegions~keyIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input parameters for adding replication regions to a specific key."]