123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135(* 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.cloudhsmletapiVersion="2014-05-30"letendpointPrefix="cloudhsm"letserviceFullName="Amazon CloudHSM"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="CloudHSM"lettargetPrefix="CloudHsmFrontendService"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[]))])moduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleBoolean=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_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[\\w :+=./\\\\-]*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmodulePartitionSerial=structtypenonrect=stringletcontext_="PartitionSerial"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"\\d{6,12}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PartitionSerial"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 key-value pair that identifies or specifies metadata about an AWS CloudHSM resource."]moduleClientArn=structtypenonrect=stringletcontext_="ClientArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:aws(-iso)?:cloudhsm:[a-zA-Z0-9\\-]*:[0-9]{12}:client-[0-9a-f]{8}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientArn"jletto_json=simple_to_jsonto_valueendmoduleHsmArn=structtypenonrect=string[@@ocaml.doc"An ARN that identifies an HSM."]letcontext_="HsmArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:aws(-iso)?:cloudhsm:[a-zA-Z0-9\\-]*:[0-9]{12}:hsm-[0-9a-f]{8}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"HsmArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"An ARN that identifies an HSM."]moduleHapgArn=structtypenonrect=stringletcontext_="HapgArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:aws(-iso)?:cloudhsm:[a-zA-Z0-9\\-]*:[0-9]{12}:hapg-[0-9a-f]{8}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"HapgArn"jletto_json=simple_to_jsonto_valueendmoduleAZ=structtypenonrect=stringletcontext_="AZ"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9\\-]*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AZ"jletto_json=simple_to_jsonto_valueendmodulePartitionArn=structtypenonrect=stringletcontext_="PartitionArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:aws(-iso)?:cloudhsm:[a-zA-Z0-9\\-]*:[0-9]{12}:hsm-[0-9a-f]{8}/partition-[0-9]{6,12}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PartitionArn"jletto_json=simple_to_jsonto_valueendmoduleCloudHsmInternalException=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"Indicates that an internal error occurred."]moduleCloudHsmServiceException=structtypenonrect={message:String_.toption[@ocaml.doc"Additional information about the error."];retryable:Boolean.toption[@ocaml.doc"Indicates if the action can be retried."]}letmake?message=fun?retryable->fun()->{message;retryable}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("retryable",(Option.mapx.retryable~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryable=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"retryable")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryable?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryable=field_mapjson__"retryable"Boolean.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryable?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates that an exception occurred in the AWS CloudHSM service."]moduleInvalidRequestException=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"Indicates that one or more of the request parameters are not valid."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCertificate=structtypenonrect=stringletcontext_="Certificate"letmakei=letopenResultinok_or_failwith((check_string_mini~min:600)>>=(fun()->(check_string_maxi~max:2400)>>=(fun()->check_patterni~pattern:"[\\w :+=./\\n-]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Certificate"jletto_json=simple_to_jsonto_valueendmoduleExternalId=structtypenonrect=stringletcontext_="ExternalId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[\\w :+=./-]*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ExternalId"jletto_json=simple_to_jsonto_valueendmoduleIamRoleArn=structtypenonrect=stringletcontext_="IamRoleArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:aws(-iso)?:iam::[0-9]{12}:role/[a-zA-Z0-9_\\+=,\\.\\-@]{1,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:"IamRoleArn"jletto_json=simple_to_jsonto_valueendmoduleIpAddress=structtypenonrect=stringletcontext_="IpAddress"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IpAddress"jletto_json=simple_to_jsonto_valueendmoduleSubnetId=structtypenonrect=stringletcontext_="SubnetId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"subnet-[0-9a-f]{8}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SubnetId"jletto_json=simple_to_jsonto_valueendmoduleLabel=structtypenonrect=stringletcontext_="Label"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9_.-]{1,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:"Label"jletto_json=simple_to_jsonto_valueendmodulePartitionSerialList=structtypenonrect=PartitionSerial.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PartitionSerial.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:PartitionSerial.of_xml)letof_jsonj=list_of_json~kind:"PartitionSerialList"~of_json:PartitionSerial.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagList=structtypenonrect=Tag.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleClientList=structtypenonrect=ClientArn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ClientArn.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:ClientArn.of_xml)letof_jsonj=list_of_json~kind:"ClientList"~of_json:ClientArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9+/]*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PaginationToken"jletto_json=simple_to_jsonto_valueendmoduleHsmList=structtypenonrect=HsmArn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:HsmArn.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:HsmArn.of_xml)letof_jsonj=list_of_json~kind:"HsmList"~of_json:HsmArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleHapgList=structtypenonrect=HapgArn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:HapgArn.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:HapgArn.of_xml)letof_jsonj=list_of_json~kind:"HapgList"~of_json:HapgArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAZList=structtypenonrect=AZ.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AZ.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:AZ.of_xml)letof_jsonj=list_of_json~kind:"AZList"~of_json:AZ.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleClientVersion=structtypenonrect=|Zz5_1|Zz5_3|Non_static_idofstringletmakei=iletto_string=function|Zz5_1->"5.1"|Zz5_3->"5.3"|Non_static_ids->sletof_string=function|"5.1"->Zz5_1|"5.3"->Zz5_3|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 ClientVersion"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ClientVersion"j)letto_json=simple_to_jsonto_valueendmoduleCertificateFingerprint=structtypenonrect=stringletcontext_="CertificateFingerprint"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"([0-9a-fA-F][0-9a-fA-F]:){15}[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:"CertificateFingerprint"jletto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletcontext_="Timestamp"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"\\d*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Timestamp"jletto_json=simple_to_jsonto_valueendmoduleEniId=structtypenonrect=stringletcontext_="EniId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"eni-[0-9a-f]{8}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EniId"jletto_json=simple_to_jsonto_valueendmoduleHsmSerialNumber=structtypenonrect=stringletcontext_="HsmSerialNumber"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"\\d{1,16}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"HsmSerialNumber"jletto_json=simple_to_jsonto_valueendmoduleHsmStatus=structtypenonrect=|PENDING|RUNNING|UPDATING|SUSPENDED|TERMINATING|TERMINATED|DEGRADED|Non_static_idofstringletmakei=iletto_string=function|PENDING->"PENDING"|RUNNING->"RUNNING"|UPDATING->"UPDATING"|SUSPENDED->"SUSPENDED"|TERMINATING->"TERMINATING"|TERMINATED->"TERMINATED"|DEGRADED->"DEGRADED"|Non_static_ids->sletof_string=function|"PENDING"->PENDING|"RUNNING"->RUNNING|"UPDATING"->UPDATING|"SUSPENDED"->SUSPENDED|"TERMINATING"->TERMINATING|"TERMINATED"->TERMINATED|"DEGRADED"->DEGRADED|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 HsmStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"HsmStatus"j)letto_json=simple_to_jsonto_valueendmodulePartitionList=structtypenonrect=PartitionArn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PartitionArn.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:PartitionArn.of_xml)letof_jsonj=list_of_json~kind:"PartitionList"~of_json:PartitionArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSshKey=structtypenonrect=stringletcontext_="SshKey"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9+/= ._:\\\\@-]*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SshKey"jletto_json=simple_to_jsonto_valueendmoduleSubscriptionType=structtypenonrect=|PRODUCTION|Non_static_idofstringletmakei=iletto_string=function|PRODUCTION->"PRODUCTION"|Non_static_ids->sletof_string=function|"PRODUCTION"->PRODUCTION|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 SubscriptionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SubscriptionType"j)letto_json=simple_to_jsonto_valueendmoduleVpcId=structtypenonrect=stringletcontext_="VpcId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"vpc-[0-9a-f]{8}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"VpcId"jletto_json=simple_to_jsonto_valueendmoduleCloudHsmObjectState=structtypenonrect=|READY|UPDATING|DEGRADED|Non_static_idofstringletmakei=iletto_string=function|READY->"READY"|UPDATING->"UPDATING"|DEGRADED->"DEGRADED"|Non_static_ids->sletof_string=function|"READY"->READY|"UPDATING"->UPDATING|"DEGRADED"->DEGRADED|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 CloudHsmObjectState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CloudHsmObjectState"j)letto_json=simple_to_jsonto_valueendmoduleClientLabel=structtypenonrect=stringletcontext_="ClientLabel"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9_.-]{2,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:"ClientLabel"jletto_json=simple_to_jsonto_valueendmoduleClientToken=structtypenonrect=stringletcontext_="ClientToken"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9]{1,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:"ClientToken"jletto_json=simple_to_jsonto_valueendmoduleRemoveTagsFromResourceResponse=structtypenonrect={status:String_.toption[@ocaml.doc"The status of the operation."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?status=fun()->{status}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Status")inmake?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"String_.of_jsoninmake?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Removes one or more tags from the specified AWS CloudHSM resource. To remove a tag, specify only the tag key to remove (not the value). To overwrite the value for an existing tag, use AddTagsToResource."]moduleRemoveTagsFromResourceRequest=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the AWS CloudHSM resource."];tagKeyList:TagKeyList.t[@ocaml.doc"The tag key or keys to remove. Specify only the tag key to remove (not the value). To overwrite the value for an existing tag, use AddTagsToResource."]}letcontext_="RemoveTagsFromResourceRequest"letmake~resourceArn=fun~tagKeyList->fun()->{resourceArn;tagKeyList}letto_valuex=structure_to_value[("ResourceArn",(Some(String_.to_valuex.resourceArn)));("TagKeyList",(Some(TagKeyList.to_valuex.tagKeyList)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeyList=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeyList")inletresourceArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tagKeyList~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeyList=field_map_exnjson__"TagKeyList"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"String_.of_jsoninmake~tagKeyList~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Removes one or more tags from the specified AWS CloudHSM resource. To remove a tag, specify only the tag key to remove (not the value). To overwrite the value for an existing tag, use AddTagsToResource."]moduleModifyLunaClientResponse=structtypenonrect={clientArn:ClientArn.toption[@ocaml.doc"The ARN of the client."]}typenonrecerror=[`CloudHsmServiceExceptionofCloudHsmServiceException.t|`Unknown_operation_errorof(string*stringoption)]letmake?clientArn=fun()->{clientArn}leterror_of_jsonnamejson=matchnamewith|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ClientArn",(Option.mapx.clientArn~f:ClientArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientArn=(Option.map~f:ClientArn.of_xml)(Xml.childxml_arg0"ClientArn")inmake?clientArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientArn=field_mapjson__"ClientArn"ClientArn.of_jsoninmake?clientArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Modifies the certificate used by the client. This action can potentially start a workflow to install the new certificate on the client's HSMs."]moduleModifyLunaClientRequest=structtypenonrect={clientArn:ClientArn.t[@ocaml.doc"The ARN of the client."];certificate:Certificate.t[@ocaml.doc"The new certificate for the client."]}letcontext_="ModifyLunaClientRequest"letmake~clientArn=fun~certificate->fun()->{clientArn;certificate}letto_valuex=structure_to_value[("ClientArn",(Some(ClientArn.to_valuex.clientArn)));("Certificate",(Some(Certificate.to_valuex.certificate)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificate=Certificate.of_xml(Xml.child_exn~context:context_xml_arg0"Certificate")inletclientArn=ClientArn.of_xml(Xml.child_exn~context:context_xml_arg0"ClientArn")inmake~certificate~clientArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificate=field_map_exnjson__"Certificate"Certificate.of_jsoninletclientArn=field_map_exnjson__"ClientArn"ClientArn.of_jsoninmake~certificate~clientArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Modifies the certificate used by the client. This action can potentially start a workflow to install the new certificate on the client's HSMs."]moduleModifyHsmResponse=structtypenonrect={hsmArn:HsmArn.toption[@ocaml.doc"The ARN of the HSM."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?hsmArn=fun()->{hsmArn}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("HsmArn",(Option.mapx.hsmArn~f:HsmArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethsmArn=(Option.map~f:HsmArn.of_xml)(Xml.childxml_arg0"HsmArn")inmake?hsmArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethsmArn=field_mapjson__"HsmArn"HsmArn.of_jsoninmake?hsmArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the output of the ModifyHsm operation."]moduleModifyHsmRequest=structtypenonrect={hsmArn:HsmArn.t[@ocaml.doc"The ARN of the HSM to modify."];subnetId:SubnetId.toption[@ocaml.doc"The new identifier of the subnet that the HSM is in. The new subnet must be in the same Availability Zone as the current subnet."];eniIp:IpAddress.toption[@ocaml.doc"The new IP address for the elastic network interface (ENI) attached to the HSM. If the HSM is moved to a different subnet, and an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the new subnet."];iamRoleArn:IamRoleArn.toption[@ocaml.doc"The new IAM role ARN."];externalId:ExternalId.toption[@ocaml.doc"The new external ID."];syslogIp:IpAddress.toption[@ocaml.doc"The new IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server."]}letcontext_="ModifyHsmRequest"letmake?subnetId=fun?eniIp->fun?iamRoleArn->fun?externalId->fun?syslogIp->fun~hsmArn->fun()->{subnetId;eniIp;iamRoleArn;externalId;syslogIp;hsmArn}letto_valuex=structure_to_value[("HsmArn",(Some(HsmArn.to_valuex.hsmArn)));("SubnetId",(Option.mapx.subnetId~f:SubnetId.to_value));("EniIp",(Option.mapx.eniIp~f:IpAddress.to_value));("IamRoleArn",(Option.mapx.iamRoleArn~f:IamRoleArn.to_value));("ExternalId",(Option.mapx.externalId~f:ExternalId.to_value));("SyslogIp",(Option.mapx.syslogIp~f:IpAddress.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsyslogIp=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"SyslogIp")inletexternalId=(Option.map~f:ExternalId.of_xml)(Xml.childxml_arg0"ExternalId")inletiamRoleArn=(Option.map~f:IamRoleArn.of_xml)(Xml.childxml_arg0"IamRoleArn")inleteniIp=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"EniIp")inletsubnetId=(Option.map~f:SubnetId.of_xml)(Xml.childxml_arg0"SubnetId")inlethsmArn=HsmArn.of_xml(Xml.child_exn~context:context_xml_arg0"HsmArn")inmake?syslogIp?externalId?iamRoleArn?eniIp?subnetId~hsmArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsyslogIp=field_mapjson__"SyslogIp"IpAddress.of_jsoninletexternalId=field_mapjson__"ExternalId"ExternalId.of_jsoninletiamRoleArn=field_mapjson__"IamRoleArn"IamRoleArn.of_jsoninleteniIp=field_mapjson__"EniIp"IpAddress.of_jsoninletsubnetId=field_mapjson__"SubnetId"SubnetId.of_jsoninlethsmArn=field_map_exnjson__"HsmArn"HsmArn.of_jsoninmake?syslogIp?externalId?iamRoleArn?eniIp?subnetId~hsmArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the inputs for the ModifyHsm operation."]moduleModifyHapgResponse=structtypenonrect={hapgArn:HapgArn.toption[@ocaml.doc"The ARN of the high-availability partition group."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?hapgArn=fun()->{hapgArn}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("HapgArn",(Option.mapx.hapgArn~f:HapgArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethapgArn=(Option.map~f:HapgArn.of_xml)(Xml.childxml_arg0"HapgArn")inmake?hapgArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethapgArn=field_mapjson__"HapgArn"HapgArn.of_jsoninmake?hapgArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Modifies an existing high-availability partition group."]moduleModifyHapgRequest=structtypenonrect={hapgArn:HapgArn.t[@ocaml.doc"The ARN of the high-availability partition group to modify."];label:Label.toption[@ocaml.doc"The new label for the high-availability partition group."];partitionSerialList:PartitionSerialList.toption[@ocaml.doc"The list of partition serial numbers to make members of the high-availability partition group."]}letcontext_="ModifyHapgRequest"letmake?label=fun?partitionSerialList->fun~hapgArn->fun()->{label;partitionSerialList;hapgArn}letto_valuex=structure_to_value[("HapgArn",(Some(HapgArn.to_valuex.hapgArn)));("Label",(Option.mapx.label~f:Label.to_value));("PartitionSerialList",(Option.mapx.partitionSerialList~f:PartitionSerialList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpartitionSerialList=(Option.map~f:PartitionSerialList.of_xml)(Xml.childxml_arg0"PartitionSerialList")inletlabel=(Option.map~f:Label.of_xml)(Xml.childxml_arg0"Label")inlethapgArn=HapgArn.of_xml(Xml.child_exn~context:context_xml_arg0"HapgArn")inmake?partitionSerialList?label~hapgArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpartitionSerialList=field_mapjson__"PartitionSerialList"PartitionSerialList.of_jsoninletlabel=field_mapjson__"Label"Label.of_jsoninlethapgArn=field_map_exnjson__"HapgArn"HapgArn.of_jsoninmake?partitionSerialList?label~hapgArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Modifies an existing high-availability partition group."]moduleListTagsForResourceResponse=structtypenonrect={tagList:TagList.toption[@ocaml.doc"One or more tags."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tagList=fun()->{tagList}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("TagList",(Option.mapx.tagList~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagList=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"TagList")inmake?tagList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagList=field_mapjson__"TagList"TagList.of_jsoninmake?tagList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Returns a list of all tags for the specified AWS CloudHSM resource."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the AWS CloudHSM resource."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(String_.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=String_.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"String_.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Returns a list of all tags for the specified AWS CloudHSM resource."]moduleListLunaClientsResponse=structtypenonrect={clientList:ClientList.toption[@ocaml.doc"The list of clients."];nextToken:PaginationToken.toption[@ocaml.doc"If not null, more results are available. Pass this to ListLunaClients to retrieve the next set of items."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?clientList=fun?nextToken->fun()->{clientList;nextToken}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ClientList",(Option.mapx.clientList~f:ClientList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletclientList=(Option.map~f:ClientList.of_xml)(Xml.childxml_arg0"ClientList")inmake?nextToken?clientList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletclientList=field_mapjson__"ClientList"ClientList.of_jsoninmake?nextToken?clientList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Lists all of the clients. This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListLunaClients to retrieve the next set of items."]moduleListLunaClientsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The NextToken value from a previous call to ListLunaClients. Pass null if this is the first call."]}letmake?nextToken=fun()->{nextToken}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Lists all of the clients. This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListLunaClients to retrieve the next set of items."]moduleListHsmsResponse=structtypenonrect={hsmList:HsmList.toption[@ocaml.doc"The list of ARNs that identify the HSMs."];nextToken:PaginationToken.toption[@ocaml.doc"If not null, more results are available. Pass this value to ListHsms to retrieve the next set of items."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?hsmList=fun?nextToken->fun()->{hsmList;nextToken}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("HsmList",(Option.mapx.hsmList~f:HsmList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inlethsmList=(Option.map~f:HsmList.of_xml)(Xml.childxml_arg0"HsmList")inmake?nextToken?hsmList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninlethsmList=field_mapjson__"HsmList"HsmList.of_jsoninmake?nextToken?hsmList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the output of the ListHsms operation."]moduleListHsmsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The NextToken value from a previous call to ListHsms. Pass null if this is the first call."]}letmake?nextToken=fun()->{nextToken}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Retrieves the identifiers of all of the HSMs provisioned for the current customer. This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHsms to retrieve the next set of items."]moduleListHapgsResponse=structtypenonrect={hapgList:HapgList.toption[@ocaml.doc"The list of high-availability partition groups."];nextToken:PaginationToken.toption[@ocaml.doc"If not null, more results are available. Pass this value to ListHapgs to retrieve the next set of items."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?hapgList=fun?nextToken->fun()->{hapgList;nextToken}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("HapgList",(Option.mapx.hapgList~f:HapgList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inlethapgList=(Option.map~f:HapgList.of_xml)(Xml.childxml_arg0"HapgList")inmake?nextToken?hapgList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninlethapgList=field_mapjson__"HapgList"HapgList.of_jsoninmake?nextToken?hapgList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Lists the high-availability partition groups for the account. This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHapgs to retrieve the next set of items."]moduleListHapgsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The NextToken value from a previous call to ListHapgs. Pass null if this is the first call."]}letmake?nextToken=fun()->{nextToken}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Lists the high-availability partition groups for the account. This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHapgs to retrieve the next set of items."]moduleListAvailableZonesResponse=structtypenonrect={aZList:AZList.toption[@ocaml.doc"The list of Availability Zones that have available AWS CloudHSM capacity."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?aZList=fun()->{aZList}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AZList",(Option.mapx.aZList~f:AZList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaZList=(Option.map~f:AZList.of_xml)(Xml.childxml_arg0"AZList")inmake?aZList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaZList=field_mapjson__"AZList"AZList.of_jsoninmake?aZList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Lists the Availability Zones that have available AWS CloudHSM capacity."]moduleListAvailableZonesRequest=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"Contains the inputs for the ListAvailableZones action."]moduleGetConfigResponse=structtypenonrect={configType:String_.toption[@ocaml.doc"The type of credentials."];configFile:String_.toption[@ocaml.doc"The chrystoki.conf configuration file."];configCred:String_.toption[@ocaml.doc"The certificate file containing the server.pem files of the HSMs."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?configType=fun?configFile->fun?configCred->fun()->{configType;configFile;configCred}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ConfigType",(Option.mapx.configType~f:String_.to_value));("ConfigFile",(Option.mapx.configFile~f:String_.to_value));("ConfigCred",(Option.mapx.configCred~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfigCred=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ConfigCred")inletconfigFile=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ConfigFile")inletconfigType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ConfigType")inmake?configCred?configFile?configType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfigCred=field_mapjson__"ConfigCred"String_.of_jsoninletconfigFile=field_mapjson__"ConfigFile"String_.of_jsoninletconfigType=field_mapjson__"ConfigType"String_.of_jsoninmake?configCred?configFile?configType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Gets the configuration files necessary to connect to all high availability partition groups the client is associated with."]moduleGetConfigRequest=structtypenonrect={clientArn:ClientArn.t[@ocaml.doc"The ARN of the client."];clientVersion:ClientVersion.t[@ocaml.doc"The client version."];hapgList:HapgList.t[@ocaml.doc"A list of ARNs that identify the high-availability partition groups that are associated with the client."]}letcontext_="GetConfigRequest"letmake~clientArn=fun~clientVersion->fun~hapgList->fun()->{clientArn;clientVersion;hapgList}letto_valuex=structure_to_value[("ClientArn",(Some(ClientArn.to_valuex.clientArn)));("ClientVersion",(Some(ClientVersion.to_valuex.clientVersion)));("HapgList",(Some(HapgList.to_valuex.hapgList)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethapgList=HapgList.of_xml(Xml.child_exn~context:context_xml_arg0"HapgList")inletclientVersion=ClientVersion.of_xml(Xml.child_exn~context:context_xml_arg0"ClientVersion")inletclientArn=ClientArn.of_xml(Xml.child_exn~context:context_xml_arg0"ClientArn")inmake~hapgList~clientVersion~clientArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethapgList=field_map_exnjson__"HapgList"HapgList.of_jsoninletclientVersion=field_map_exnjson__"ClientVersion"ClientVersion.of_jsoninletclientArn=field_map_exnjson__"ClientArn"ClientArn.of_jsoninmake~hapgList~clientVersion~clientArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Gets the configuration files necessary to connect to all high availability partition groups the client is associated with."]moduleDescribeLunaClientResponse=structtypenonrect={clientArn:ClientArn.toption[@ocaml.doc"The ARN of the client."];certificate:Certificate.toption[@ocaml.doc"The certificate installed on the HSMs used by this client."];certificateFingerprint:CertificateFingerprint.toption[@ocaml.doc"The certificate fingerprint."];lastModifiedTimestamp:Timestamp.toption[@ocaml.doc"The date and time the client was last modified."];label:Label.toption[@ocaml.doc"The label of the client."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?clientArn=fun?certificate->fun?certificateFingerprint->fun?lastModifiedTimestamp->fun?label->fun()->{clientArn;certificate;certificateFingerprint;lastModifiedTimestamp;label}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ClientArn",(Option.mapx.clientArn~f:ClientArn.to_value));("Certificate",(Option.mapx.certificate~f:Certificate.to_value));("CertificateFingerprint",(Option.mapx.certificateFingerprint~f:CertificateFingerprint.to_value));("LastModifiedTimestamp",(Option.mapx.lastModifiedTimestamp~f:Timestamp.to_value));("Label",(Option.mapx.label~f:Label.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlabel=(Option.map~f:Label.of_xml)(Xml.childxml_arg0"Label")inletlastModifiedTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastModifiedTimestamp")inletcertificateFingerprint=(Option.map~f:CertificateFingerprint.of_xml)(Xml.childxml_arg0"CertificateFingerprint")inletcertificate=(Option.map~f:Certificate.of_xml)(Xml.childxml_arg0"Certificate")inletclientArn=(Option.map~f:ClientArn.of_xml)(Xml.childxml_arg0"ClientArn")inmake?label?lastModifiedTimestamp?certificateFingerprint?certificate?clientArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlabel=field_mapjson__"Label"Label.of_jsoninletlastModifiedTimestamp=field_mapjson__"LastModifiedTimestamp"Timestamp.of_jsoninletcertificateFingerprint=field_mapjson__"CertificateFingerprint"CertificateFingerprint.of_jsoninletcertificate=field_mapjson__"Certificate"Certificate.of_jsoninletclientArn=field_mapjson__"ClientArn"ClientArn.of_jsoninmake?label?lastModifiedTimestamp?certificateFingerprint?certificate?clientArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Retrieves information about an HSM client."]moduleDescribeLunaClientRequest=structtypenonrect={clientArn:ClientArn.toption[@ocaml.doc"The ARN of the client."];certificateFingerprint:CertificateFingerprint.toption[@ocaml.doc"The certificate fingerprint."]}letmake?clientArn=fun?certificateFingerprint->fun()->{clientArn;certificateFingerprint}letto_valuex=structure_to_value[("ClientArn",(Option.mapx.clientArn~f:ClientArn.to_value));("CertificateFingerprint",(Option.mapx.certificateFingerprint~f:CertificateFingerprint.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateFingerprint=(Option.map~f:CertificateFingerprint.of_xml)(Xml.childxml_arg0"CertificateFingerprint")inletclientArn=(Option.map~f:ClientArn.of_xml)(Xml.childxml_arg0"ClientArn")inmake?certificateFingerprint?clientArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateFingerprint=field_mapjson__"CertificateFingerprint"CertificateFingerprint.of_jsoninletclientArn=field_mapjson__"ClientArn"ClientArn.of_jsoninmake?certificateFingerprint?clientArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Retrieves information about an HSM client."]moduleDescribeHsmResponse=structtypenonrect={hsmArn:HsmArn.toption[@ocaml.doc"The ARN of the HSM."];status:HsmStatus.toption[@ocaml.doc"The status of the HSM."];statusDetails:String_.toption[@ocaml.doc"Contains additional information about the status of the HSM."];availabilityZone:AZ.toption[@ocaml.doc"The Availability Zone that the HSM is in."];eniId:EniId.toption[@ocaml.doc"The identifier of the elastic network interface (ENI) attached to the HSM."];eniIp:IpAddress.toption[@ocaml.doc"The IP address assigned to the HSM's ENI."];subscriptionType:SubscriptionType.toption;subscriptionStartDate:Timestamp.toption[@ocaml.doc"The subscription start date."];subscriptionEndDate:Timestamp.toption[@ocaml.doc"The subscription end date."];vpcId:VpcId.toption[@ocaml.doc"The identifier of the VPC that the HSM is in."];subnetId:SubnetId.toption[@ocaml.doc"The identifier of the subnet that the HSM is in."];iamRoleArn:IamRoleArn.toption[@ocaml.doc"The ARN of the IAM role assigned to the HSM."];serialNumber:HsmSerialNumber.toption[@ocaml.doc"The serial number of the HSM."];vendorName:String_.toption[@ocaml.doc"The name of the HSM vendor."];hsmType:String_.toption[@ocaml.doc"The HSM model type."];softwareVersion:String_.toption[@ocaml.doc"The HSM software version."];sshPublicKey:SshKey.toption[@ocaml.doc"The public SSH key."];sshKeyLastUpdated:Timestamp.toption[@ocaml.doc"The date and time that the SSH key was last updated."];serverCertUri:String_.toption[@ocaml.doc"The URI of the certificate server."];serverCertLastUpdated:Timestamp.toption[@ocaml.doc"The date and time that the server certificate was last updated."];partitions:PartitionList.toption[@ocaml.doc"The list of partitions on the HSM."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?hsmArn=fun?status->fun?statusDetails->fun?availabilityZone->fun?eniId->fun?eniIp->fun?subscriptionType->fun?subscriptionStartDate->fun?subscriptionEndDate->fun?vpcId->fun?subnetId->fun?iamRoleArn->fun?serialNumber->fun?vendorName->fun?hsmType->fun?softwareVersion->fun?sshPublicKey->fun?sshKeyLastUpdated->fun?serverCertUri->fun?serverCertLastUpdated->fun?partitions->fun()->{hsmArn;status;statusDetails;availabilityZone;eniId;eniIp;subscriptionType;subscriptionStartDate;subscriptionEndDate;vpcId;subnetId;iamRoleArn;serialNumber;vendorName;hsmType;softwareVersion;sshPublicKey;sshKeyLastUpdated;serverCertUri;serverCertLastUpdated;partitions}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("HsmArn",(Option.mapx.hsmArn~f:HsmArn.to_value));("Status",(Option.mapx.status~f:HsmStatus.to_value));("StatusDetails",(Option.mapx.statusDetails~f:String_.to_value));("AvailabilityZone",(Option.mapx.availabilityZone~f:AZ.to_value));("EniId",(Option.mapx.eniId~f:EniId.to_value));("EniIp",(Option.mapx.eniIp~f:IpAddress.to_value));("SubscriptionType",(Option.mapx.subscriptionType~f:SubscriptionType.to_value));("SubscriptionStartDate",(Option.mapx.subscriptionStartDate~f:Timestamp.to_value));("SubscriptionEndDate",(Option.mapx.subscriptionEndDate~f:Timestamp.to_value));("VpcId",(Option.mapx.vpcId~f:VpcId.to_value));("SubnetId",(Option.mapx.subnetId~f:SubnetId.to_value));("IamRoleArn",(Option.mapx.iamRoleArn~f:IamRoleArn.to_value));("SerialNumber",(Option.mapx.serialNumber~f:HsmSerialNumber.to_value));("VendorName",(Option.mapx.vendorName~f:String_.to_value));("HsmType",(Option.mapx.hsmType~f:String_.to_value));("SoftwareVersion",(Option.mapx.softwareVersion~f:String_.to_value));("SshPublicKey",(Option.mapx.sshPublicKey~f:SshKey.to_value));("SshKeyLastUpdated",(Option.mapx.sshKeyLastUpdated~f:Timestamp.to_value));("ServerCertUri",(Option.mapx.serverCertUri~f:String_.to_value));("ServerCertLastUpdated",(Option.mapx.serverCertLastUpdated~f:Timestamp.to_value));("Partitions",(Option.mapx.partitions~f:PartitionList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpartitions=(Option.map~f:PartitionList.of_xml)(Xml.childxml_arg0"Partitions")inletserverCertLastUpdated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ServerCertLastUpdated")inletserverCertUri=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ServerCertUri")inletsshKeyLastUpdated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"SshKeyLastUpdated")inletsshPublicKey=(Option.map~f:SshKey.of_xml)(Xml.childxml_arg0"SshPublicKey")inletsoftwareVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SoftwareVersion")inlethsmType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"HsmType")inletvendorName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VendorName")inletserialNumber=(Option.map~f:HsmSerialNumber.of_xml)(Xml.childxml_arg0"SerialNumber")inletiamRoleArn=(Option.map~f:IamRoleArn.of_xml)(Xml.childxml_arg0"IamRoleArn")inletsubnetId=(Option.map~f:SubnetId.of_xml)(Xml.childxml_arg0"SubnetId")inletvpcId=(Option.map~f:VpcId.of_xml)(Xml.childxml_arg0"VpcId")inletsubscriptionEndDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"SubscriptionEndDate")inletsubscriptionStartDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"SubscriptionStartDate")inletsubscriptionType=(Option.map~f:SubscriptionType.of_xml)(Xml.childxml_arg0"SubscriptionType")inleteniIp=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"EniIp")inleteniId=(Option.map~f:EniId.of_xml)(Xml.childxml_arg0"EniId")inletavailabilityZone=(Option.map~f:AZ.of_xml)(Xml.childxml_arg0"AvailabilityZone")inletstatusDetails=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"StatusDetails")inletstatus=(Option.map~f:HsmStatus.of_xml)(Xml.childxml_arg0"Status")inlethsmArn=(Option.map~f:HsmArn.of_xml)(Xml.childxml_arg0"HsmArn")inmake?partitions?serverCertLastUpdated?serverCertUri?sshKeyLastUpdated?sshPublicKey?softwareVersion?hsmType?vendorName?serialNumber?iamRoleArn?subnetId?vpcId?subscriptionEndDate?subscriptionStartDate?subscriptionType?eniIp?eniId?availabilityZone?statusDetails?status?hsmArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpartitions=field_mapjson__"Partitions"PartitionList.of_jsoninletserverCertLastUpdated=field_mapjson__"ServerCertLastUpdated"Timestamp.of_jsoninletserverCertUri=field_mapjson__"ServerCertUri"String_.of_jsoninletsshKeyLastUpdated=field_mapjson__"SshKeyLastUpdated"Timestamp.of_jsoninletsshPublicKey=field_mapjson__"SshPublicKey"SshKey.of_jsoninletsoftwareVersion=field_mapjson__"SoftwareVersion"String_.of_jsoninlethsmType=field_mapjson__"HsmType"String_.of_jsoninletvendorName=field_mapjson__"VendorName"String_.of_jsoninletserialNumber=field_mapjson__"SerialNumber"HsmSerialNumber.of_jsoninletiamRoleArn=field_mapjson__"IamRoleArn"IamRoleArn.of_jsoninletsubnetId=field_mapjson__"SubnetId"SubnetId.of_jsoninletvpcId=field_mapjson__"VpcId"VpcId.of_jsoninletsubscriptionEndDate=field_mapjson__"SubscriptionEndDate"Timestamp.of_jsoninletsubscriptionStartDate=field_mapjson__"SubscriptionStartDate"Timestamp.of_jsoninletsubscriptionType=field_mapjson__"SubscriptionType"SubscriptionType.of_jsoninleteniIp=field_mapjson__"EniIp"IpAddress.of_jsoninleteniId=field_mapjson__"EniId"EniId.of_jsoninletavailabilityZone=field_mapjson__"AvailabilityZone"AZ.of_jsoninletstatusDetails=field_mapjson__"StatusDetails"String_.of_jsoninletstatus=field_mapjson__"Status"HsmStatus.of_jsoninlethsmArn=field_mapjson__"HsmArn"HsmArn.of_jsoninmake?partitions?serverCertLastUpdated?serverCertUri?sshKeyLastUpdated?sshPublicKey?softwareVersion?hsmType?vendorName?serialNumber?iamRoleArn?subnetId?vpcId?subscriptionEndDate?subscriptionStartDate?subscriptionType?eniIp?eniId?availabilityZone?statusDetails?status?hsmArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the output of the DescribeHsm operation."]moduleDescribeHsmRequest=structtypenonrect={hsmArn:HsmArn.toption[@ocaml.doc"The ARN of the HSM. Either the HsmArn or the SerialNumber parameter must be specified."];hsmSerialNumber:HsmSerialNumber.toption[@ocaml.doc"The serial number of the HSM. Either the HsmArn or the HsmSerialNumber parameter must be specified."]}letmake?hsmArn=fun?hsmSerialNumber->fun()->{hsmArn;hsmSerialNumber}letto_valuex=structure_to_value[("HsmArn",(Option.mapx.hsmArn~f:HsmArn.to_value));("HsmSerialNumber",(Option.mapx.hsmSerialNumber~f:HsmSerialNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethsmSerialNumber=(Option.map~f:HsmSerialNumber.of_xml)(Xml.childxml_arg0"HsmSerialNumber")inlethsmArn=(Option.map~f:HsmArn.of_xml)(Xml.childxml_arg0"HsmArn")inmake?hsmSerialNumber?hsmArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethsmSerialNumber=field_mapjson__"HsmSerialNumber"HsmSerialNumber.of_jsoninlethsmArn=field_mapjson__"HsmArn"HsmArn.of_jsoninmake?hsmSerialNumber?hsmArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the inputs for the DescribeHsm operation."]moduleDescribeHapgResponse=structtypenonrect={hapgArn:HapgArn.toption[@ocaml.doc"The ARN of the high-availability partition group."];hapgSerial:String_.toption[@ocaml.doc"The serial number of the high-availability partition group."];hsmsLastActionFailed:HsmList.toption;hsmsPendingDeletion:HsmList.toption;hsmsPendingRegistration:HsmList.toption;label:Label.toption[@ocaml.doc"The label for the high-availability partition group."];lastModifiedTimestamp:Timestamp.toption[@ocaml.doc"The date and time the high-availability partition group was last modified."];partitionSerialList:PartitionSerialList.toption[@ocaml.doc"The list of partition serial numbers that belong to the high-availability partition group."];state:CloudHsmObjectState.toption[@ocaml.doc"The state of the high-availability partition group."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?hapgArn=fun?hapgSerial->fun?hsmsLastActionFailed->fun?hsmsPendingDeletion->fun?hsmsPendingRegistration->fun?label->fun?lastModifiedTimestamp->fun?partitionSerialList->fun?state->fun()->{hapgArn;hapgSerial;hsmsLastActionFailed;hsmsPendingDeletion;hsmsPendingRegistration;label;lastModifiedTimestamp;partitionSerialList;state}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("HapgArn",(Option.mapx.hapgArn~f:HapgArn.to_value));("HapgSerial",(Option.mapx.hapgSerial~f:String_.to_value));("HsmsLastActionFailed",(Option.mapx.hsmsLastActionFailed~f:HsmList.to_value));("HsmsPendingDeletion",(Option.mapx.hsmsPendingDeletion~f:HsmList.to_value));("HsmsPendingRegistration",(Option.mapx.hsmsPendingRegistration~f:HsmList.to_value));("Label",(Option.mapx.label~f:Label.to_value));("LastModifiedTimestamp",(Option.mapx.lastModifiedTimestamp~f:Timestamp.to_value));("PartitionSerialList",(Option.mapx.partitionSerialList~f:PartitionSerialList.to_value));("State",(Option.mapx.state~f:CloudHsmObjectState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:CloudHsmObjectState.of_xml)(Xml.childxml_arg0"State")inletpartitionSerialList=(Option.map~f:PartitionSerialList.of_xml)(Xml.childxml_arg0"PartitionSerialList")inletlastModifiedTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastModifiedTimestamp")inletlabel=(Option.map~f:Label.of_xml)(Xml.childxml_arg0"Label")inlethsmsPendingRegistration=(Option.map~f:HsmList.of_xml)(Xml.childxml_arg0"HsmsPendingRegistration")inlethsmsPendingDeletion=(Option.map~f:HsmList.of_xml)(Xml.childxml_arg0"HsmsPendingDeletion")inlethsmsLastActionFailed=(Option.map~f:HsmList.of_xml)(Xml.childxml_arg0"HsmsLastActionFailed")inlethapgSerial=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"HapgSerial")inlethapgArn=(Option.map~f:HapgArn.of_xml)(Xml.childxml_arg0"HapgArn")inmake?state?partitionSerialList?lastModifiedTimestamp?label?hsmsPendingRegistration?hsmsPendingDeletion?hsmsLastActionFailed?hapgSerial?hapgArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"State"CloudHsmObjectState.of_jsoninletpartitionSerialList=field_mapjson__"PartitionSerialList"PartitionSerialList.of_jsoninletlastModifiedTimestamp=field_mapjson__"LastModifiedTimestamp"Timestamp.of_jsoninletlabel=field_mapjson__"Label"Label.of_jsoninlethsmsPendingRegistration=field_mapjson__"HsmsPendingRegistration"HsmList.of_jsoninlethsmsPendingDeletion=field_mapjson__"HsmsPendingDeletion"HsmList.of_jsoninlethsmsLastActionFailed=field_mapjson__"HsmsLastActionFailed"HsmList.of_jsoninlethapgSerial=field_mapjson__"HapgSerial"String_.of_jsoninlethapgArn=field_mapjson__"HapgArn"HapgArn.of_jsoninmake?state?partitionSerialList?lastModifiedTimestamp?label?hsmsPendingRegistration?hsmsPendingDeletion?hsmsLastActionFailed?hapgSerial?hapgArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the output of the DescribeHapg action."]moduleDescribeHapgRequest=structtypenonrect={hapgArn:HapgArn.t[@ocaml.doc"The ARN of the high-availability partition group to describe."]}letcontext_="DescribeHapgRequest"letmake~hapgArn=fun()->{hapgArn}letto_valuex=structure_to_value[("HapgArn",(Some(HapgArn.to_valuex.hapgArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethapgArn=HapgArn.of_xml(Xml.child_exn~context:context_xml_arg0"HapgArn")inmake~hapgArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethapgArn=field_map_exnjson__"HapgArn"HapgArn.of_jsoninmake~hapgArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the inputs for the DescribeHapg action."]moduleDeleteLunaClientResponse=structtypenonrect={status:String_.toption[@ocaml.doc"The status of the action."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?status=fun()->{status}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Status")inmake?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"String_.of_jsoninmake?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Deletes a client."]moduleDeleteLunaClientRequest=structtypenonrect={clientArn:ClientArn.t[@ocaml.doc"The ARN of the client to delete."]}letcontext_="DeleteLunaClientRequest"letmake~clientArn=fun()->{clientArn}letto_valuex=structure_to_value[("ClientArn",(Some(ClientArn.to_valuex.clientArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientArn=ClientArn.of_xml(Xml.child_exn~context:context_xml_arg0"ClientArn")inmake~clientArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientArn=field_map_exnjson__"ClientArn"ClientArn.of_jsoninmake~clientArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Deletes a client."]moduleDeleteHsmResponse=structtypenonrect={status:String_.toption[@ocaml.doc"The status of the operation."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?status=fun()->{status}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Status")inmake?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"String_.of_jsoninmake?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the output of the DeleteHsm operation."]moduleDeleteHsmRequest=structtypenonrect={hsmArn:HsmArn.t[@ocaml.doc"The ARN of the HSM to delete."]}letcontext_="DeleteHsmRequest"letmake~hsmArn=fun()->{hsmArn}letto_valuex=structure_to_value[("HsmArn",(Some(HsmArn.to_valuex.hsmArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethsmArn=HsmArn.of_xml(Xml.child_exn~context:context_xml_arg0"HsmArn")inmake~hsmArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethsmArn=field_map_exnjson__"HsmArn"HsmArn.of_jsoninmake~hsmArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the inputs for the DeleteHsm operation."]moduleDeleteHapgResponse=structtypenonrect={status:String_.toption[@ocaml.doc"The status of the action."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?status=fun()->{status}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Status")inmake?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"String_.of_jsoninmake?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the output of the DeleteHapg action."]moduleDeleteHapgRequest=structtypenonrect={hapgArn:HapgArn.t[@ocaml.doc"The ARN of the high-availability partition group to delete."]}letcontext_="DeleteHapgRequest"letmake~hapgArn=fun()->{hapgArn}letto_valuex=structure_to_value[("HapgArn",(Some(HapgArn.to_valuex.hapgArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethapgArn=HapgArn.of_xml(Xml.child_exn~context:context_xml_arg0"HapgArn")inmake~hapgArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethapgArn=field_map_exnjson__"HapgArn"HapgArn.of_jsoninmake~hapgArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the inputs for the DeleteHapg action."]moduleCreateLunaClientResponse=structtypenonrect={clientArn:ClientArn.toption[@ocaml.doc"The ARN of the client."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?clientArn=fun()->{clientArn}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ClientArn",(Option.mapx.clientArn~f:ClientArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientArn=(Option.map~f:ClientArn.of_xml)(Xml.childxml_arg0"ClientArn")inmake?clientArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientArn=field_mapjson__"ClientArn"ClientArn.of_jsoninmake?clientArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the output of the CreateLunaClient action."]moduleCreateLunaClientRequest=structtypenonrect={label:ClientLabel.toption[@ocaml.doc"The label for the client."];certificate:Certificate.t[@ocaml.doc"The contents of a Base64-Encoded X.509 v3 certificate to be installed on the HSMs used by this client."]}letcontext_="CreateLunaClientRequest"letmake?label=fun~certificate->fun()->{label;certificate}letto_valuex=structure_to_value[("Label",(Option.mapx.label~f:ClientLabel.to_value));("Certificate",(Some(Certificate.to_valuex.certificate)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificate=Certificate.of_xml(Xml.child_exn~context:context_xml_arg0"Certificate")inletlabel=(Option.map~f:ClientLabel.of_xml)(Xml.childxml_arg0"Label")inmake~certificate?label()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificate=field_map_exnjson__"Certificate"Certificate.of_jsoninletlabel=field_mapjson__"Label"ClientLabel.of_jsoninmake~certificate?label()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the inputs for the CreateLunaClient action."]moduleCreateHsmResponse=structtypenonrect={hsmArn:HsmArn.toption[@ocaml.doc"The ARN of the HSM."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?hsmArn=fun()->{hsmArn}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("HsmArn",(Option.mapx.hsmArn~f:HsmArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethsmArn=(Option.map~f:HsmArn.of_xml)(Xml.childxml_arg0"HsmArn")inmake?hsmArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethsmArn=field_mapjson__"HsmArn"HsmArn.of_jsoninmake?hsmArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the output of the CreateHsm operation."]moduleCreateHsmRequest=structtypenonrect={subnetId:SubnetId.t[@ocaml.doc"The identifier of the subnet in your VPC in which to place the HSM."];sshKey:SshKey.t[@ocaml.doc"The SSH public key to install on the HSM."];eniIp:IpAddress.toption[@ocaml.doc"The IP address to assign to the HSM's ENI. If an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the subnet."];iamRoleArn:IamRoleArn.t[@ocaml.doc"The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your behalf."];externalId:ExternalId.toption[@ocaml.doc"The external ID from IamRoleArn, if present."];subscriptionType:SubscriptionType.t;clientToken:ClientToken.toption[@ocaml.doc"A user-defined token to ensure idempotence. Subsequent calls to this operation with the same token will be ignored."];syslogIp:IpAddress.toption[@ocaml.doc"The IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server."]}letcontext_="CreateHsmRequest"letmake?eniIp=fun?externalId->fun?clientToken->fun?syslogIp->fun~subnetId->fun~sshKey->fun~iamRoleArn->fun~subscriptionType->fun()->{eniIp;externalId;clientToken;syslogIp;subnetId;sshKey;iamRoleArn;subscriptionType}letto_valuex=structure_to_value[("SubnetId",(Some(SubnetId.to_valuex.subnetId)));("SshKey",(Some(SshKey.to_valuex.sshKey)));("EniIp",(Option.mapx.eniIp~f:IpAddress.to_value));("IamRoleArn",(Some(IamRoleArn.to_valuex.iamRoleArn)));("ExternalId",(Option.mapx.externalId~f:ExternalId.to_value));("SubscriptionType",(Some(SubscriptionType.to_valuex.subscriptionType)));("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("SyslogIp",(Option.mapx.syslogIp~f:IpAddress.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsyslogIp=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"SyslogIp")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inletsubscriptionType=SubscriptionType.of_xml(Xml.child_exn~context:context_xml_arg0"SubscriptionType")inletexternalId=(Option.map~f:ExternalId.of_xml)(Xml.childxml_arg0"ExternalId")inletiamRoleArn=IamRoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"IamRoleArn")inleteniIp=(Option.map~f:IpAddress.of_xml)(Xml.childxml_arg0"EniIp")inletsshKey=SshKey.of_xml(Xml.child_exn~context:context_xml_arg0"SshKey")inletsubnetId=SubnetId.of_xml(Xml.child_exn~context:context_xml_arg0"SubnetId")inmake?syslogIp?clientToken~subscriptionType?externalId~iamRoleArn?eniIp~sshKey~subnetId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsyslogIp=field_mapjson__"SyslogIp"IpAddress.of_jsoninletclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninletsubscriptionType=field_map_exnjson__"SubscriptionType"SubscriptionType.of_jsoninletexternalId=field_mapjson__"ExternalId"ExternalId.of_jsoninletiamRoleArn=field_map_exnjson__"IamRoleArn"IamRoleArn.of_jsoninleteniIp=field_mapjson__"EniIp"IpAddress.of_jsoninletsshKey=field_map_exnjson__"SshKey"SshKey.of_jsoninletsubnetId=field_map_exnjson__"SubnetId"SubnetId.of_jsoninmake?syslogIp?clientToken~subscriptionType?externalId~iamRoleArn?eniIp~sshKey~subnetId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the inputs for the CreateHsm operation."]moduleCreateHapgResponse=structtypenonrect={hapgArn:HapgArn.toption[@ocaml.doc"The ARN of the high-availability partition group."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?hapgArn=fun()->{hapgArn}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("HapgArn",(Option.mapx.hapgArn~f:HapgArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethapgArn=(Option.map~f:HapgArn.of_xml)(Xml.childxml_arg0"HapgArn")inmake?hapgArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethapgArn=field_mapjson__"HapgArn"HapgArn.of_jsoninmake?hapgArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the output of the CreateHAPartitionGroup action."]moduleCreateHapgRequest=structtypenonrect={label:Label.t[@ocaml.doc"The label of the new high-availability partition group."]}letcontext_="CreateHapgRequest"letmake~label=fun()->{label}letto_valuex=structure_to_value[("Label",(Some(Label.to_valuex.label)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlabel=Label.of_xml(Xml.child_exn~context:context_xml_arg0"Label")inmake~label()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlabel=field_map_exnjson__"Label"Label.of_jsoninmake~label()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the inputs for the CreateHapgRequest action."]moduleAddTagsToResourceResponse=structtypenonrect={status:String_.toption[@ocaml.doc"The status of the operation."]}typenonrecerror=[`CloudHsmInternalExceptionofCloudHsmInternalException.t|`CloudHsmServiceExceptionofCloudHsmServiceException.t|`InvalidRequestExceptionofInvalidRequestException.t|`Unknown_operation_errorof(string*stringoption)]letmake?status=fun()->{status}leterror_of_jsonnamejson=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_jsonjson)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_jsonjson)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CloudHsmInternalException"->`CloudHsmInternalException(CloudHsmInternalException.of_xmlxml)|"CloudHsmServiceException"->`CloudHsmServiceException(CloudHsmServiceException.of_xmlxml)|"InvalidRequestException"->`InvalidRequestException(InvalidRequestException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CloudHsmInternalExceptione->`Assoc[("error",(`String"CloudHsmInternalException"));("details",(CloudHsmInternalException.to_jsone))]|`CloudHsmServiceExceptione->`Assoc[("error",(`String"CloudHsmServiceException"));("details",(CloudHsmServiceException.to_jsone))]|`InvalidRequestExceptione->`Assoc[("error",(`String"InvalidRequestException"));("details",(InvalidRequestException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Status")inmake?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"String_.of_jsoninmake?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Adds or overwrites one or more tags for the specified AWS CloudHSM resource. Each tag consists of a key and a value. Tag keys must be unique to each resource."]moduleAddTagsToResourceRequest=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag."];tagList:TagList.t[@ocaml.doc"One or more tags."]}letcontext_="AddTagsToResourceRequest"letmake~resourceArn=fun~tagList->fun()->{resourceArn;tagList}letto_valuex=structure_to_value[("ResourceArn",(Some(String_.to_valuex.resourceArn)));("TagList",(Some(TagList.to_valuex.tagList)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagList=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"TagList")inletresourceArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tagList~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagList=field_map_exnjson__"TagList"TagList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"String_.of_jsoninmake~tagList~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference. For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Adds or overwrites one or more tags for the specified AWS CloudHSM resource. Each tag consists of a key and a value. Tag keys must be unique to each resource."]