123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293(* 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.cloudfront_keyvaluestoreletapiVersion="2022-07-26"letendpointPrefix="cloudfront-keyvaluestore"letserviceFullName="Amazon CloudFront KeyValueStore"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"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[]))])moduleKey=structtypenonrect=stringletcontext_="Key"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Key"jletto_json=simple_to_jsonto_valueendmoduleValue=structtypenonrect=stringletcontext_="Value"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Value"jletto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleDeleteKeyRequestListItem=structtypenonrect={key:Key.t[@ocaml.doc"The key of the key value pair to be deleted."]}letcontext_="DeleteKeyRequestListItem"letmake~key=fun()->{key}letto_valuex=structure_to_value[("Key",(Some(Key.to_valuex.key)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=Key.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_map_exnjson__"Key"Key.of_jsoninmake~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List item for keys to delete."]modulePutKeyRequestListItem=structtypenonrect={key:Key.t[@ocaml.doc"The key of the key value pair list item to put."];value:Value.t[@ocaml.doc"The value for the key value pair to put."]}letcontext_="PutKeyRequestListItem"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Some(Key.to_valuex.key)));("Value",(Some(Value.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=Value.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=Key.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"Value.of_jsoninletkey=field_map_exnjson__"Key"Key.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List item for key value pair to put."]moduleListKeysResponseListItem=structtypenonrect={key:Key.toption[@ocaml.doc"The key of the key value pair."];value:Value.toption[@ocaml.doc"The value of the key value pair."]}letmake?key=fun?value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:Key.to_value));("Value",(Option.mapx.value~f:Value.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:Value.of_xml)(Xml.childxml_arg0"Value")inletkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?value?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"Value.of_jsoninletkey=field_mapjson__"Key"Key.of_jsoninmake?value?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A key value pair."]moduleAccessDeniedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Access denied."]moduleConflictException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resource is not in expected state."]moduleEtag=structtypenonrect=stringletcontext_="Etag"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Etag"jletto_json=simple_to_jsonto_valueendmoduleInteger=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleInternalServerException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Internal server error."]moduleLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleResourceNotFoundException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resource was not found."]moduleServiceQuotaExceededException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Limit exceeded."]moduleValidationException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Validation failed."]moduleDeleteKeyRequestsList=structtypenonrect=DeleteKeyRequestListItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DeleteKeyRequestListItem.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:DeleteKeyRequestListItem.of_xml)letof_jsonj=list_of_json~kind:"DeleteKeyRequestsList"~of_json:DeleteKeyRequestListItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKvsARN=structtypenonrect=stringletcontext_="KvsARN"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(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:"KvsARN"jletto_json=simple_to_jsonto_valueendmodulePutKeyRequestsList=structtypenonrect=PutKeyRequestListItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PutKeyRequestListItem.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:PutKeyRequestListItem.of_xml)letof_jsonj=list_of_json~kind:"PutKeyRequestsList"~of_json:PutKeyRequestListItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListKeysResponseList=structtypenonrect=ListKeysResponseListItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ListKeysResponseListItem.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:ListKeysResponseListItem.of_xml)letof_jsonj=list_of_json~kind:"ListKeysResponseList"~of_json:ListKeysResponseListItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListKeysRequestMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListKeysRequestMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleUpdateKeysResponse=structtypenonrect={itemCount:Integer.toption[@ocaml.doc"Number of key value pairs in the Key Value Store after the successful update."];totalSizeInBytes:Long.toption[@ocaml.doc"Total size of the Key Value Store after the successful update, in bytes."];eTag:Etag.toption[@ocaml.doc"The current version identifier of the Key Value Store after the successful update."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?itemCount=fun?totalSizeInBytes->fun?eTag->fun()->{itemCount;totalSizeInBytes;eTag}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ItemCount",(Option.mapx.itemCount~f:Integer.to_value));("TotalSizeInBytes",(Option.mapx.totalSizeInBytes~f:Long.to_value));("ETag",(Option.mapx.eTag~f:Etag.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteTag=(Option.map~f:Etag.of_xml)(Xml.childxml_arg0"ETag")inlettotalSizeInBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"TotalSizeInBytes")inletitemCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"ItemCount")inmake?eTag?totalSizeInBytes?itemCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteTag=field_mapjson__"ETag"Etag.of_jsoninlettotalSizeInBytes=field_mapjson__"TotalSizeInBytes"Long.of_jsoninletitemCount=field_mapjson__"ItemCount"Integer.of_jsoninmake?eTag?totalSizeInBytes?itemCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Metadata information about a Key Value Store."]moduleUpdateKeysRequest=structtypenonrect={kvsARN:KvsARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Key Value Store."];ifMatch:Etag.t[@ocaml.doc"The current version (ETag) of the Key Value Store that you are updating keys of, which you can get using DescribeKeyValueStore."];puts:PutKeyRequestsList.toption[@ocaml.doc"List of key value pairs to put."];deletes:DeleteKeyRequestsList.toption[@ocaml.doc"List of keys to delete."]}letcontext_="UpdateKeysRequest"letmake?puts=fun?deletes->fun~kvsARN->fun~ifMatch->fun()->{puts;deletes;kvsARN;ifMatch}letto_valuex=structure_to_value[("KvsARN",(Some(KvsARN.to_valuex.kvsARN)));("If-Match",(Some(Etag.to_valuex.ifMatch)));("Puts",(Option.mapx.puts~f:PutKeyRequestsList.to_value));("Deletes",(Option.mapx.deletes~f:DeleteKeyRequestsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeletes=(Option.map~f:DeleteKeyRequestsList.of_xml)(Xml.childxml_arg0"Deletes")inletputs=(Option.map~f:PutKeyRequestsList.of_xml)(Xml.childxml_arg0"Puts")inletifMatch=Etag.of_xml(Xml.child_exn~context:context_xml_arg0"If-Match")inletkvsARN=KvsARN.of_xml(Xml.child_exn~context:context_xml_arg0"KvsARN")inmake?deletes?puts~ifMatch~kvsARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeletes=field_mapjson__"Deletes"DeleteKeyRequestsList.of_jsoninletputs=field_mapjson__"Puts"PutKeyRequestsList.of_jsoninletifMatch=field_map_exnjson__"IfMatch"Etag.of_jsoninletkvsARN=field_map_exnjson__"KvsARN"KvsARN.of_jsoninmake?deletes?puts~ifMatch~kvsARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Puts or Deletes multiple key value pairs in a single, all-or-nothing operation."]modulePutKeyResponse=structtypenonrect={itemCount:Integer.toption[@ocaml.doc"Number of key value pairs in the Key Value Store after the successful put."];totalSizeInBytes:Long.toption[@ocaml.doc"Total size of the Key Value Store after the successful put, in bytes."];eTag:Etag.toption[@ocaml.doc"The current version identifier of the Key Value Store after the successful put."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?itemCount=fun?totalSizeInBytes->fun?eTag->fun()->{itemCount;totalSizeInBytes;eTag}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ItemCount",(Option.mapx.itemCount~f:Integer.to_value));("TotalSizeInBytes",(Option.mapx.totalSizeInBytes~f:Long.to_value));("ETag",(Option.mapx.eTag~f:Etag.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteTag=(Option.map~f:Etag.of_xml)(Xml.childxml_arg0"ETag")inlettotalSizeInBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"TotalSizeInBytes")inletitemCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"ItemCount")inmake?eTag?totalSizeInBytes?itemCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteTag=field_mapjson__"ETag"Etag.of_jsoninlettotalSizeInBytes=field_mapjson__"TotalSizeInBytes"Long.of_jsoninletitemCount=field_mapjson__"ItemCount"Integer.of_jsoninmake?eTag?totalSizeInBytes?itemCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Metadata information about a Key Value Store."]modulePutKeyRequest=structtypenonrect={key:Key.t[@ocaml.doc"The key to put."];value:Value.t[@ocaml.doc"The value to put."];kvsARN:KvsARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Key Value Store."];ifMatch:Etag.t[@ocaml.doc"The current version (ETag) of the Key Value Store that you are putting keys into, which you can get using DescribeKeyValueStore."]}letcontext_="PutKeyRequest"letmake~key=fun~value->fun~kvsARN->fun~ifMatch->fun()->{key;value;kvsARN;ifMatch}letto_valuex=structure_to_value[("Key",(Some(Key.to_valuex.key)));("Value",(Some(Value.to_valuex.value)));("KvsARN",(Some(KvsARN.to_valuex.kvsARN)));("If-Match",(Some(Etag.to_valuex.ifMatch)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letifMatch=Etag.of_xml(Xml.child_exn~context:context_xml_arg0"If-Match")inletkvsARN=KvsARN.of_xml(Xml.child_exn~context:context_xml_arg0"KvsARN")inletvalue=Value.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=Key.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake~ifMatch~kvsARN~value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letifMatch=field_map_exnjson__"IfMatch"Etag.of_jsoninletkvsARN=field_map_exnjson__"KvsARN"KvsARN.of_jsoninletvalue=field_map_exnjson__"Value"Value.of_jsoninletkey=field_map_exnjson__"Key"Key.of_jsoninmake~ifMatch~kvsARN~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A key value pair."]moduleListKeysResponse=structtypenonrect={nextToken:String_.toption[@ocaml.doc"If nextToken is returned in the response, there are more results available. Make the next call using the returned token to retrieve the next page."];items:ListKeysResponseList.toption[@ocaml.doc"Key value pairs"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?items->fun()->{nextToken;items}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:String_.to_value));("Items",(Option.mapx.items~f:ListKeysResponseList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letitems=(Option.map~f:ListKeysResponseList.of_xml)(Xml.childxml_arg0"Items")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inmake?items?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letitems=field_mapjson__"Items"ListKeysResponseList.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninmake?items?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of key value pairs."]moduleListKeysRequest=structtypenonrect={kvsARN:KvsARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Key Value Store."];nextToken:String_.toption[@ocaml.doc"If nextToken is returned in the response, there are more results available. Make the next call using the returned token to retrieve the next page."];maxResults:ListKeysRequestMaxResultsInteger.toption[@ocaml.doc"Maximum number of results that are returned per call. The default is 10 and maximum allowed page is 50."]}letcontext_="ListKeysRequest"letmake?nextToken=fun?maxResults->fun~kvsARN->fun()->{nextToken;maxResults;kvsARN}letto_valuex=structure_to_value[("KvsARN",(Some(KvsARN.to_valuex.kvsARN)));("NextToken",(Option.mapx.nextToken~f:String_.to_value));("MaxResults",(Option.mapx.maxResults~f:ListKeysRequestMaxResultsInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ListKeysRequestMaxResultsInteger.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletkvsARN=KvsARN.of_xml(Xml.child_exn~context:context_xml_arg0"KvsARN")inmake?maxResults?nextToken~kvsARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"ListKeysRequestMaxResultsInteger.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninletkvsARN=field_map_exnjson__"KvsARN"KvsARN.of_jsoninmake?maxResults?nextToken~kvsARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of key value pairs."]moduleGetKeyResponse=structtypenonrect={key:Key.toption[@ocaml.doc"The key of the key value pair."];value:Value.toption[@ocaml.doc"The value of the key value pair."];itemCount:Integer.toption[@ocaml.doc"Number of key value pairs in the Key Value Store."];totalSizeInBytes:Long.toption[@ocaml.doc"Total size of the Key Value Store in bytes."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?key=fun?value->fun?itemCount->fun?totalSizeInBytes->fun()->{key;value;itemCount;totalSizeInBytes}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:Key.to_value));("Value",(Option.mapx.value~f:Value.to_value));("ItemCount",(Option.mapx.itemCount~f:Integer.to_value));("TotalSizeInBytes",(Option.mapx.totalSizeInBytes~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalSizeInBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"TotalSizeInBytes")inletitemCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"ItemCount")inletvalue=(Option.map~f:Value.of_xml)(Xml.childxml_arg0"Value")inletkey=(Option.map~f:Key.of_xml)(Xml.childxml_arg0"Key")inmake?totalSizeInBytes?itemCount?value?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalSizeInBytes=field_mapjson__"TotalSizeInBytes"Long.of_jsoninletitemCount=field_mapjson__"ItemCount"Integer.of_jsoninletvalue=field_mapjson__"Value"Value.of_jsoninletkey=field_mapjson__"Key"Key.of_jsoninmake?totalSizeInBytes?itemCount?value?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A key value pair."]moduleGetKeyRequest=structtypenonrect={kvsARN:KvsARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Key Value Store."];key:Key.t[@ocaml.doc"The key to get."]}letcontext_="GetKeyRequest"letmake~kvsARN=fun~key->fun()->{kvsARN;key}letto_valuex=structure_to_value[("KvsARN",(Some(KvsARN.to_valuex.kvsARN)));("Key",(Some(Key.to_valuex.key)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=Key.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inletkvsARN=KvsARN.of_xml(Xml.child_exn~context:context_xml_arg0"KvsARN")inmake~key~kvsARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_map_exnjson__"Key"Key.of_jsoninletkvsARN=field_map_exnjson__"KvsARN"KvsARN.of_jsoninmake~key~kvsARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a key value pair."]moduleDescribeKeyValueStoreResponse=structtypenonrect={itemCount:Integer.toption[@ocaml.doc"Number of key value pairs in the Key Value Store."];totalSizeInBytes:Long.toption[@ocaml.doc"Total size of the Key Value Store in bytes."];kvsARN:KvsARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Key Value Store."];created:Timestamp.toption[@ocaml.doc"Date and time when the Key Value Store was created."];eTag:Etag.toption[@ocaml.doc"The version identifier for the current version of the Key Value Store."];lastModified:Timestamp.toption[@ocaml.doc"Date and time when the key value pairs in the Key Value Store was last modified."];status:String_.toption[@ocaml.doc"The current status of the Key Value Store."];failureReason:String_.toption[@ocaml.doc"The reason for Key Value Store creation failure."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?itemCount=fun?totalSizeInBytes->fun?kvsARN->fun?created->fun?eTag->fun?lastModified->fun?status->fun?failureReason->fun()->{itemCount;totalSizeInBytes;kvsARN;created;eTag;lastModified;status;failureReason}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ItemCount",(Option.mapx.itemCount~f:Integer.to_value));("TotalSizeInBytes",(Option.mapx.totalSizeInBytes~f:Long.to_value));("KvsARN",(Option.mapx.kvsARN~f:KvsARN.to_value));("Created",(Option.mapx.created~f:Timestamp.to_value));("ETag",(Option.mapx.eTag~f:Etag.to_value));("LastModified",(Option.mapx.lastModified~f:Timestamp.to_value));("Status",(Option.mapx.status~f:String_.to_value));("FailureReason",(Option.mapx.failureReason~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailureReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"FailureReason")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Status")inletlastModified=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastModified")inleteTag=(Option.map~f:Etag.of_xml)(Xml.childxml_arg0"ETag")inletcreated=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Created")inletkvsARN=(Option.map~f:KvsARN.of_xml)(Xml.childxml_arg0"KvsARN")inlettotalSizeInBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"TotalSizeInBytes")inletitemCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"ItemCount")inmake?failureReason?status?lastModified?eTag?created?kvsARN?totalSizeInBytes?itemCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfailureReason=field_mapjson__"FailureReason"String_.of_jsoninletstatus=field_mapjson__"Status"String_.of_jsoninletlastModified=field_mapjson__"LastModified"Timestamp.of_jsoninleteTag=field_mapjson__"ETag"Etag.of_jsoninletcreated=field_mapjson__"Created"Timestamp.of_jsoninletkvsARN=field_mapjson__"KvsARN"KvsARN.of_jsoninlettotalSizeInBytes=field_mapjson__"TotalSizeInBytes"Long.of_jsoninletitemCount=field_mapjson__"ItemCount"Integer.of_jsoninmake?failureReason?status?lastModified?eTag?created?kvsARN?totalSizeInBytes?itemCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Metadata information about a Key Value Store."]moduleDescribeKeyValueStoreRequest=structtypenonrect={kvsARN:KvsARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Key Value Store."]}letcontext_="DescribeKeyValueStoreRequest"letmake~kvsARN=fun()->{kvsARN}letto_valuex=structure_to_value[("KvsARN",(Some(KvsARN.to_valuex.kvsARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkvsARN=KvsARN.of_xml(Xml.child_exn~context:context_xml_arg0"KvsARN")inmake~kvsARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkvsARN=field_map_exnjson__"KvsARN"KvsARN.of_jsoninmake~kvsARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns metadata information about Key Value Store."]moduleDeleteKeyResponse=structtypenonrect={itemCount:Integer.toption[@ocaml.doc"Number of key value pairs in the Key Value Store after the successful delete."];totalSizeInBytes:Long.toption[@ocaml.doc"Total size of the Key Value Store after the successful delete, in bytes."];eTag:Etag.toption[@ocaml.doc"The current version identifier of the Key Value Store after the successful delete."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?itemCount=fun?totalSizeInBytes->fun?eTag->fun()->{itemCount;totalSizeInBytes;eTag}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ItemCount",(Option.mapx.itemCount~f:Integer.to_value));("TotalSizeInBytes",(Option.mapx.totalSizeInBytes~f:Long.to_value));("ETag",(Option.mapx.eTag~f:Etag.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteTag=(Option.map~f:Etag.of_xml)(Xml.childxml_arg0"ETag")inlettotalSizeInBytes=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"TotalSizeInBytes")inletitemCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"ItemCount")inmake?eTag?totalSizeInBytes?itemCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteTag=field_mapjson__"ETag"Etag.of_jsoninlettotalSizeInBytes=field_mapjson__"TotalSizeInBytes"Long.of_jsoninletitemCount=field_mapjson__"ItemCount"Integer.of_jsoninmake?eTag?totalSizeInBytes?itemCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Metadata information about a Key Value Store."]moduleDeleteKeyRequest=structtypenonrect={kvsARN:KvsARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Key Value Store."];key:Key.t[@ocaml.doc"The key to delete."];ifMatch:Etag.t[@ocaml.doc"The current version (ETag) of the Key Value Store that you are deleting keys from, which you can get using DescribeKeyValueStore."]}letcontext_="DeleteKeyRequest"letmake~kvsARN=fun~key->fun~ifMatch->fun()->{kvsARN;key;ifMatch}letto_valuex=structure_to_value[("KvsARN",(Some(KvsARN.to_valuex.kvsARN)));("Key",(Some(Key.to_valuex.key)));("If-Match",(Some(Etag.to_valuex.ifMatch)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letifMatch=Etag.of_xml(Xml.child_exn~context:context_xml_arg0"If-Match")inletkey=Key.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inletkvsARN=KvsARN.of_xml(Xml.child_exn~context:context_xml_arg0"KvsARN")inmake~ifMatch~key~kvsARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letifMatch=field_map_exnjson__"IfMatch"Etag.of_jsoninletkey=field_map_exnjson__"Key"Key.of_jsoninletkvsARN=field_map_exnjson__"KvsARN"KvsARN.of_jsoninmake~ifMatch~key~kvsARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the key value pair specified by the key."]