12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712(* 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.pinpoint_sms_voiceletapiVersion="2018-09-05"letendpointPrefix="sms-voice.pinpoint"letserviceFullName="Amazon Pinpoint SMS and Voice Service"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="Pinpoint SMS Voice"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[]))])moduleString_=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_valueendmoduleEventType=structtypenonrect=|INITIATED_CALL|RINGING|ANSWERED|COMPLETED_CALL|BUSY|FAILED|NO_ANSWER|Non_static_idofstringletmakei=iletto_string=function|INITIATED_CALL->"INITIATED_CALL"|RINGING->"RINGING"|ANSWERED->"ANSWERED"|COMPLETED_CALL->"COMPLETED_CALL"|BUSY->"BUSY"|FAILED->"FAILED"|NO_ANSWER->"NO_ANSWER"|Non_static_ids->sletof_string=function|"INITIATED_CALL"->INITIATED_CALL|"RINGING"->RINGING|"ANSWERED"->ANSWERED|"COMPLETED_CALL"->COMPLETED_CALL|"BUSY"->BUSY|"FAILED"->FAILED|"NO_ANSWER"->NO_ANSWER|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 EventType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EventType"j)letto_json=simple_to_jsonto_valueendmoduleNonEmptyString=structtypenonrect=stringletcontext_="NonEmptyString"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:"NonEmptyString"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_valueendmoduleCloudWatchLogsDestination=structtypenonrect={iamRoleArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination."];logGroupArn:String_.toption[@ocaml.doc"The name of the Amazon CloudWatch Log Group that you want to record events in."]}letmake?iamRoleArn=fun?logGroupArn->fun()->{iamRoleArn;logGroupArn}letto_valuex=structure_to_value[("IamRoleArn",(Option.mapx.iamRoleArn~f:String_.to_value));("LogGroupArn",(Option.mapx.logGroupArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogGroupArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"LogGroupArn")inletiamRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"IamRoleArn")inmake?logGroupArn?iamRoleArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogGroupArn=field_mapjson__"LogGroupArn"String_.of_jsoninletiamRoleArn=field_mapjson__"IamRoleArn"String_.of_jsoninmake?logGroupArn?iamRoleArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains information about an event destination that sends data to Amazon CloudWatch Logs."]moduleEventTypes=structtypenonrect=EventType.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EventType.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:EventType.of_xml)letof_jsonj=list_of_json~kind:"EventTypes"~of_json:EventType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKinesisFirehoseDestination=structtypenonrect={deliveryStreamArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon Kinesis Data Firehose stream."];iamRoleArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination that you want to use in the event destination."]}letmake?deliveryStreamArn=fun?iamRoleArn->fun()->{deliveryStreamArn;iamRoleArn}letto_valuex=structure_to_value[("DeliveryStreamArn",(Option.mapx.deliveryStreamArn~f:String_.to_value));("IamRoleArn",(Option.mapx.iamRoleArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letiamRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"IamRoleArn")inletdeliveryStreamArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DeliveryStreamArn")inmake?iamRoleArn?deliveryStreamArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letiamRoleArn=field_mapjson__"IamRoleArn"String_.of_jsoninletdeliveryStreamArn=field_mapjson__"DeliveryStreamArn"String_.of_jsoninmake?iamRoleArn?deliveryStreamArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains information about an event destination that sends data to Amazon Kinesis Data Firehose."]moduleSnsDestination=structtypenonrect={topicArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to."]}letmake?topicArn=fun()->{topicArn}letto_valuex=structure_to_value[("TopicArn",(Option.mapx.topicArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettopicArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"TopicArn")inmake?topicArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopicArn=field_mapjson__"TopicArn"String_.of_jsoninmake?topicArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains information about an event destination that sends data to Amazon SNS."]moduleCallInstructionsMessageType=structtypenonrect={text:NonEmptyString.toption[@ocaml.doc"The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide."]}letmake?text=fun()->{text}letto_valuex=structure_to_value[("Text",(Option.mapx.text~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettext=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Text")inmake?text()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettext=field_mapjson__"Text"NonEmptyString.of_jsoninmake?text()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that defines a message that contains text formatted using Amazon Pinpoint Voice Instructions markup."]modulePlainTextMessageType=structtypenonrect={languageCode:String_.toption[@ocaml.doc"The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide."];text:NonEmptyString.toption[@ocaml.doc"The plain (not SSML-formatted) text to deliver to the recipient."];voiceId:String_.toption[@ocaml.doc"The name of the voice that you want to use to deliver the message. For a complete list of supported voices, see the Amazon Polly Developer Guide."]}letmake?languageCode=fun?text->fun?voiceId->fun()->{languageCode;text;voiceId}letto_valuex=structure_to_value[("LanguageCode",(Option.mapx.languageCode~f:String_.to_value));("Text",(Option.mapx.text~f:NonEmptyString.to_value));("VoiceId",(Option.mapx.voiceId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvoiceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VoiceId")inlettext=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Text")inletlanguageCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"LanguageCode")inmake?voiceId?text?languageCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvoiceId=field_mapjson__"VoiceId"String_.of_jsoninlettext=field_mapjson__"Text"NonEmptyString.of_jsoninletlanguageCode=field_mapjson__"LanguageCode"String_.of_jsoninmake?voiceId?text?languageCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that defines a message that contains unformatted text."]moduleSSMLMessageType=structtypenonrect={languageCode:String_.toption[@ocaml.doc"The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide."];text:NonEmptyString.toption[@ocaml.doc"The SSML-formatted text to deliver to the recipient."];voiceId:String_.toption[@ocaml.doc"The name of the voice that you want to use to deliver the message. For a complete list of supported voices, see the Amazon Polly Developer Guide."]}letmake?languageCode=fun?text->fun?voiceId->fun()->{languageCode;text;voiceId}letto_valuex=structure_to_value[("LanguageCode",(Option.mapx.languageCode~f:String_.to_value));("Text",(Option.mapx.text~f:NonEmptyString.to_value));("VoiceId",(Option.mapx.voiceId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvoiceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"VoiceId")inlettext=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"Text")inletlanguageCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"LanguageCode")inmake?voiceId?text?languageCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvoiceId=field_mapjson__"VoiceId"String_.of_jsoninlettext=field_mapjson__"Text"NonEmptyString.of_jsoninletlanguageCode=field_mapjson__"LanguageCode"String_.of_jsoninmake?voiceId?text?languageCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that defines a message that contains SSML-formatted text."]moduleWordCharactersWithDelimiters=structtypenonrect=stringletcontext_="WordCharactersWithDelimiters"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:"WordCharactersWithDelimiters"jletto_json=simple_to_jsonto_valueendmoduleEventDestination=structtypenonrect={cloudWatchLogsDestination:CloudWatchLogsDestination.toption;enabled:Boolean.toption[@ocaml.doc"Indicates whether or not the event destination is enabled. If the event destination is enabled, then Amazon Pinpoint sends response data to the specified event destination."];kinesisFirehoseDestination:KinesisFirehoseDestination.toption;matchingEventTypes:EventTypes.toption;name:String_.toption[@ocaml.doc"A name that identifies the event destination configuration."];snsDestination:SnsDestination.toption}letmake?cloudWatchLogsDestination=fun?enabled->fun?kinesisFirehoseDestination->fun?matchingEventTypes->fun?name->fun?snsDestination->fun()->{cloudWatchLogsDestination;enabled;kinesisFirehoseDestination;matchingEventTypes;name;snsDestination}letto_valuex=structure_to_value[("CloudWatchLogsDestination",(Option.mapx.cloudWatchLogsDestination~f:CloudWatchLogsDestination.to_value));("Enabled",(Option.mapx.enabled~f:Boolean.to_value));("KinesisFirehoseDestination",(Option.mapx.kinesisFirehoseDestination~f:KinesisFirehoseDestination.to_value));("MatchingEventTypes",(Option.mapx.matchingEventTypes~f:EventTypes.to_value));("Name",(Option.mapx.name~f:String_.to_value));("SnsDestination",(Option.mapx.snsDestination~f:SnsDestination.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsnsDestination=(Option.map~f:SnsDestination.of_xml)(Xml.childxml_arg0"SnsDestination")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inletmatchingEventTypes=(Option.map~f:EventTypes.of_xml)(Xml.childxml_arg0"MatchingEventTypes")inletkinesisFirehoseDestination=(Option.map~f:KinesisFirehoseDestination.of_xml)(Xml.childxml_arg0"KinesisFirehoseDestination")inletenabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"Enabled")inletcloudWatchLogsDestination=(Option.map~f:CloudWatchLogsDestination.of_xml)(Xml.childxml_arg0"CloudWatchLogsDestination")inmake?snsDestination?name?matchingEventTypes?kinesisFirehoseDestination?enabled?cloudWatchLogsDestination()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsnsDestination=field_mapjson__"SnsDestination"SnsDestination.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninletmatchingEventTypes=field_mapjson__"MatchingEventTypes"EventTypes.of_jsoninletkinesisFirehoseDestination=field_mapjson__"KinesisFirehoseDestination"KinesisFirehoseDestination.of_jsoninletenabled=field_mapjson__"Enabled"Boolean.of_jsoninletcloudWatchLogsDestination=field_mapjson__"CloudWatchLogsDestination"CloudWatchLogsDestination.of_jsoninmake?snsDestination?name?matchingEventTypes?kinesisFirehoseDestination?enabled?cloudWatchLogsDestination()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that defines an event destination."]moduleBadRequestException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input you provided is invalid."]moduleInternalServiceErrorException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future."]moduleNotFoundException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The resource you attempted to access doesn't exist."]moduleTooManyRequestsException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You've issued too many requests to the resource. Wait a few minutes, and then try again."]moduleEventDestinationDefinition=structtypenonrect={cloudWatchLogsDestination:CloudWatchLogsDestination.toption;enabled:Boolean.toption[@ocaml.doc"Indicates whether or not the event destination is enabled. If the event destination is enabled, then Amazon Pinpoint sends response data to the specified event destination."];kinesisFirehoseDestination:KinesisFirehoseDestination.toption;matchingEventTypes:EventTypes.toption;snsDestination:SnsDestination.toption}letmake?cloudWatchLogsDestination=fun?enabled->fun?kinesisFirehoseDestination->fun?matchingEventTypes->fun?snsDestination->fun()->{cloudWatchLogsDestination;enabled;kinesisFirehoseDestination;matchingEventTypes;snsDestination}letto_valuex=structure_to_value[("CloudWatchLogsDestination",(Option.mapx.cloudWatchLogsDestination~f:CloudWatchLogsDestination.to_value));("Enabled",(Option.mapx.enabled~f:Boolean.to_value));("KinesisFirehoseDestination",(Option.mapx.kinesisFirehoseDestination~f:KinesisFirehoseDestination.to_value));("MatchingEventTypes",(Option.mapx.matchingEventTypes~f:EventTypes.to_value));("SnsDestination",(Option.mapx.snsDestination~f:SnsDestination.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsnsDestination=(Option.map~f:SnsDestination.of_xml)(Xml.childxml_arg0"SnsDestination")inletmatchingEventTypes=(Option.map~f:EventTypes.of_xml)(Xml.childxml_arg0"MatchingEventTypes")inletkinesisFirehoseDestination=(Option.map~f:KinesisFirehoseDestination.of_xml)(Xml.childxml_arg0"KinesisFirehoseDestination")inletenabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"Enabled")inletcloudWatchLogsDestination=(Option.map~f:CloudWatchLogsDestination.of_xml)(Xml.childxml_arg0"CloudWatchLogsDestination")inmake?snsDestination?matchingEventTypes?kinesisFirehoseDestination?enabled?cloudWatchLogsDestination()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsnsDestination=field_mapjson__"SnsDestination"SnsDestination.of_jsoninletmatchingEventTypes=field_mapjson__"MatchingEventTypes"EventTypes.of_jsoninletkinesisFirehoseDestination=field_mapjson__"KinesisFirehoseDestination"KinesisFirehoseDestination.of_jsoninletenabled=field_mapjson__"Enabled"Boolean.of_jsoninletcloudWatchLogsDestination=field_mapjson__"CloudWatchLogsDestination"CloudWatchLogsDestination.of_jsoninmake?snsDestination?matchingEventTypes?kinesisFirehoseDestination?enabled?cloudWatchLogsDestination()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that defines a single event destination."]moduleZz__string=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_valueendmoduleVoiceMessageContent=structtypenonrect={callInstructionsMessage:CallInstructionsMessageType.toption;plainTextMessage:PlainTextMessageType.toption;sSMLMessage:SSMLMessageType.toption}letmake?callInstructionsMessage=fun?plainTextMessage->fun?sSMLMessage->fun()->{callInstructionsMessage;plainTextMessage;sSMLMessage}letto_valuex=structure_to_value[("CallInstructionsMessage",(Option.mapx.callInstructionsMessage~f:CallInstructionsMessageType.to_value));("PlainTextMessage",(Option.mapx.plainTextMessage~f:PlainTextMessageType.to_value));("SSMLMessage",(Option.mapx.sSMLMessage~f:SSMLMessageType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsSMLMessage=(Option.map~f:SSMLMessageType.of_xml)(Xml.childxml_arg0"SSMLMessage")inletplainTextMessage=(Option.map~f:PlainTextMessageType.of_xml)(Xml.childxml_arg0"PlainTextMessage")inletcallInstructionsMessage=(Option.map~f:CallInstructionsMessageType.of_xml)(Xml.childxml_arg0"CallInstructionsMessage")inmake?sSMLMessage?plainTextMessage?callInstructionsMessage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsSMLMessage=field_mapjson__"SSMLMessage"SSMLMessageType.of_jsoninletplainTextMessage=field_mapjson__"PlainTextMessage"PlainTextMessageType.of_jsoninletcallInstructionsMessage=field_mapjson__"CallInstructionsMessage"CallInstructionsMessageType.of_jsoninmake?sSMLMessage?plainTextMessage?callInstructionsMessage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains a voice message and information about the recipient that you want to send it to."]moduleConfigurationSets=structtypenonrect=WordCharactersWithDelimiters.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WordCharactersWithDelimiters.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:WordCharactersWithDelimiters.of_xml)letof_jsonj=list_of_json~kind:"ConfigurationSets"~of_json:WordCharactersWithDelimiters.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNextTokenString=structtypenonrect=stringletcontext_="NextTokenString"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:"NextTokenString"jletto_json=simple_to_jsonto_valueendmoduleEventDestinations=structtypenonrect=EventDestination.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EventDestination.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:EventDestination.of_xml)letof_jsonj=list_of_json~kind:"EventDestinations"~of_json:EventDestination.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAlreadyExistsException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The resource specified in your request already exists."]moduleLimitExceededException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"There are too many instances of the specified resource type."]moduleZz__timestampUnix=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_valueendmoduleZz__timestampIso8601=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_valueendmoduleZz__long=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_valueendmoduleZz__integer=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_valueendmoduleZz__double=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleZz__boolean=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_valueendmoduleUpdateConfigurationSetEventDestinationResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`InternalServiceErrorExceptionofInternalServiceErrorException.t|`NotFoundExceptionofNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`InternalServiceErrorExceptione->`Assoc[("error",(`String"InternalServiceErrorException"));("details",(InternalServiceErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An empty object that indicates that the event destination was updated successfully."]moduleUpdateConfigurationSetEventDestinationRequest=structtypenonrect={configurationSetName:Zz__string.t[@ocaml.doc"ConfigurationSetName"];eventDestination:EventDestinationDefinition.toption;eventDestinationName:Zz__string.t[@ocaml.doc"EventDestinationName"]}letcontext_="UpdateConfigurationSetEventDestinationRequest"letmake?eventDestination=fun~configurationSetName->fun~eventDestinationName->fun()->{eventDestination;configurationSetName;eventDestinationName}letto_valuex=structure_to_value[("ConfigurationSetName",(Some(Zz__string.to_valuex.configurationSetName)));("EventDestination",(Option.mapx.eventDestination~f:EventDestinationDefinition.to_value));("EventDestinationName",(Some(Zz__string.to_valuex.eventDestinationName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventDestinationName=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"EventDestinationName")inleteventDestination=(Option.map~f:EventDestinationDefinition.of_xml)(Xml.childxml_arg0"EventDestination")inletconfigurationSetName=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"ConfigurationSetName")inmake~eventDestinationName?eventDestination~configurationSetName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventDestinationName=field_map_exnjson__"EventDestinationName"Zz__string.of_jsoninleteventDestination=field_mapjson__"EventDestination"EventDestinationDefinition.of_jsoninletconfigurationSetName=field_map_exnjson__"ConfigurationSetName"Zz__string.of_jsoninmake~eventDestinationName?eventDestination~configurationSetName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"UpdateConfigurationSetEventDestinationRequest"]moduleSendVoiceMessageResponse=structtypenonrect={messageId:String_.toption[@ocaml.doc"A unique identifier for the voice message."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`InternalServiceErrorExceptionofInternalServiceErrorException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?messageId=fun()->{messageId}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`InternalServiceErrorExceptione->`Assoc[("error",(`String"InternalServiceErrorException"));("details",(InternalServiceErrorException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MessageId",(Option.mapx.messageId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessageId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MessageId")inmake?messageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageId=field_mapjson__"MessageId"String_.of_jsoninmake?messageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that that contains the Message ID of a Voice message that was sent successfully."]moduleSendVoiceMessageRequest=structtypenonrect={callerId:String_.toption[@ocaml.doc"The phone number that appears on recipients' devices when they receive the message."];configurationSetName:WordCharactersWithDelimiters.toption[@ocaml.doc"The name of the configuration set that you want to use to send the message."];content:VoiceMessageContent.toption;destinationPhoneNumber:NonEmptyString.toption[@ocaml.doc"The phone number that you want to send the voice message to."];originationPhoneNumber:NonEmptyString.toption[@ocaml.doc"The phone number that Amazon Pinpoint should use to send the voice message. This isn't necessarily the phone number that appears on recipients' devices when they receive the message, because you can specify a CallerId parameter in the request."]}letmake?callerId=fun?configurationSetName->fun?content->fun?destinationPhoneNumber->fun?originationPhoneNumber->fun()->{callerId;configurationSetName;content;destinationPhoneNumber;originationPhoneNumber}letto_valuex=structure_to_value[("CallerId",(Option.mapx.callerId~f:String_.to_value));("ConfigurationSetName",(Option.mapx.configurationSetName~f:WordCharactersWithDelimiters.to_value));("Content",(Option.mapx.content~f:VoiceMessageContent.to_value));("DestinationPhoneNumber",(Option.mapx.destinationPhoneNumber~f:NonEmptyString.to_value));("OriginationPhoneNumber",(Option.mapx.originationPhoneNumber~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoriginationPhoneNumber=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"OriginationPhoneNumber")inletdestinationPhoneNumber=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"DestinationPhoneNumber")inletcontent=(Option.map~f:VoiceMessageContent.of_xml)(Xml.childxml_arg0"Content")inletconfigurationSetName=(Option.map~f:WordCharactersWithDelimiters.of_xml)(Xml.childxml_arg0"ConfigurationSetName")inletcallerId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"CallerId")inmake?originationPhoneNumber?destinationPhoneNumber?content?configurationSetName?callerId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoriginationPhoneNumber=field_mapjson__"OriginationPhoneNumber"NonEmptyString.of_jsoninletdestinationPhoneNumber=field_mapjson__"DestinationPhoneNumber"NonEmptyString.of_jsoninletcontent=field_mapjson__"Content"VoiceMessageContent.of_jsoninletconfigurationSetName=field_mapjson__"ConfigurationSetName"WordCharactersWithDelimiters.of_jsoninletcallerId=field_mapjson__"CallerId"String_.of_jsoninmake?originationPhoneNumber?destinationPhoneNumber?content?configurationSetName?callerId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"SendVoiceMessageRequest"]moduleListConfigurationSetsResponse=structtypenonrect={configurationSets:ConfigurationSets.toption[@ocaml.doc"An object that contains a list of configuration sets for your account in the current region."];nextToken:NextTokenString.toption[@ocaml.doc"A token returned from a previous call to ListConfigurationSets to indicate the position in the list of configuration sets."]}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`InternalServiceErrorExceptionofInternalServiceErrorException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?configurationSets=fun?nextToken->fun()->{configurationSets;nextToken}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`InternalServiceErrorExceptione->`Assoc[("error",(`String"InternalServiceErrorException"));("details",(InternalServiceErrorException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ConfigurationSets",(Option.mapx.configurationSets~f:ConfigurationSets.to_value));("NextToken",(Option.mapx.nextToken~f:NextTokenString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextTokenString.of_xml)(Xml.childxml_arg0"NextToken")inletconfigurationSets=(Option.map~f:ConfigurationSets.of_xml)(Xml.childxml_arg0"ConfigurationSets")inmake?nextToken?configurationSets()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextTokenString.of_jsoninletconfigurationSets=field_mapjson__"ConfigurationSets"ConfigurationSets.of_jsoninmake?nextToken?configurationSets()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains information about the configuration sets for your account in the current region."]moduleListConfigurationSetsRequest=structtypenonrect={nextToken:Zz__string.toption[@ocaml.doc"A token returned from a previous call to the API that indicates the position in the list of results."];pageSize:Zz__string.toption[@ocaml.doc"Used to specify the number of items that should be returned in the response."]}letmake?nextToken=fun?pageSize->fun()->{nextToken;pageSize}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:Zz__string.to_value));("PageSize",(Option.mapx.pageSize~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpageSize=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"PageSize")inletnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"NextToken")inmake?pageSize?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpageSize=field_mapjson__"PageSize"Zz__string.of_jsoninletnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninmake?pageSize?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all of the configuration sets associated with your Amazon Pinpoint account in the current region."]moduleGetConfigurationSetEventDestinationsResponse=structtypenonrect={eventDestinations:EventDestinations.toption}typenonrecerror=[`BadRequestExceptionofBadRequestException.t|`InternalServiceErrorExceptionofInternalServiceErrorException.t|`NotFoundExceptionofNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?eventDestinations=fun()->{eventDestinations}leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`InternalServiceErrorExceptione->`Assoc[("error",(`String"InternalServiceErrorException"));("details",(InternalServiceErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("EventDestinations",(Option.mapx.eventDestinations~f:EventDestinations.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventDestinations=(Option.map~f:EventDestinations.of_xml)(Xml.childxml_arg0"EventDestinations")inmake?eventDestinations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventDestinations=field_mapjson__"EventDestinations"EventDestinations.of_jsoninmake?eventDestinations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains information about an event destination."]moduleGetConfigurationSetEventDestinationsRequest=structtypenonrect={configurationSetName:Zz__string.t[@ocaml.doc"ConfigurationSetName"]}letcontext_="GetConfigurationSetEventDestinationsRequest"letmake~configurationSetName=fun()->{configurationSetName}letto_valuex=structure_to_value[("ConfigurationSetName",(Some(Zz__string.to_valuex.configurationSetName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfigurationSetName=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"ConfigurationSetName")inmake~configurationSetName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfigurationSetName=field_map_exnjson__"ConfigurationSetName"Zz__string.of_jsoninmake~configurationSetName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name (ARN) of the destination, and the name of the event destination."]moduleDeleteConfigurationSetResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`InternalServiceErrorExceptionofInternalServiceErrorException.t|`NotFoundExceptionofNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`InternalServiceErrorExceptione->`Assoc[("error",(`String"InternalServiceErrorException"));("details",(InternalServiceErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An empty object that indicates that the configuration set was deleted successfully."]moduleDeleteConfigurationSetRequest=structtypenonrect={configurationSetName:Zz__string.t[@ocaml.doc"ConfigurationSetName"]}letcontext_="DeleteConfigurationSetRequest"letmake~configurationSetName=fun()->{configurationSetName}letto_valuex=structure_to_value[("ConfigurationSetName",(Some(Zz__string.to_valuex.configurationSetName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfigurationSetName=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"ConfigurationSetName")inmake~configurationSetName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfigurationSetName=field_map_exnjson__"ConfigurationSetName"Zz__string.of_jsoninmake~configurationSetName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing configuration set."]moduleDeleteConfigurationSetEventDestinationResponse=structtypenonrect=unittypenonrecerror=[`BadRequestExceptionofBadRequestException.t|`InternalServiceErrorExceptionofInternalServiceErrorException.t|`NotFoundExceptionofNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`InternalServiceErrorExceptione->`Assoc[("error",(`String"InternalServiceErrorException"));("details",(InternalServiceErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An empty object that indicates that the event destination was deleted successfully."]moduleDeleteConfigurationSetEventDestinationRequest=structtypenonrect={configurationSetName:Zz__string.t[@ocaml.doc"ConfigurationSetName"];eventDestinationName:Zz__string.t[@ocaml.doc"EventDestinationName"]}letcontext_="DeleteConfigurationSetEventDestinationRequest"letmake~configurationSetName=fun~eventDestinationName->fun()->{configurationSetName;eventDestinationName}letto_valuex=structure_to_value[("ConfigurationSetName",(Some(Zz__string.to_valuex.configurationSetName)));("EventDestinationName",(Some(Zz__string.to_valuex.eventDestinationName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventDestinationName=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"EventDestinationName")inletconfigurationSetName=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"ConfigurationSetName")inmake~eventDestinationName~configurationSetName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventDestinationName=field_map_exnjson__"EventDestinationName"Zz__string.of_jsoninletconfigurationSetName=field_map_exnjson__"ConfigurationSetName"Zz__string.of_jsoninmake~eventDestinationName~configurationSetName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an event destination in a configuration set."]moduleCreateConfigurationSetResponse=structtypenonrect=unittypenonrecerror=[`AlreadyExistsExceptionofAlreadyExistsException.t|`BadRequestExceptionofBadRequestException.t|`InternalServiceErrorExceptionofInternalServiceErrorException.t|`LimitExceededExceptionofLimitExceededException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AlreadyExistsException"->`AlreadyExistsException(AlreadyExistsException.of_jsonjson)|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AlreadyExistsException"->`AlreadyExistsException(AlreadyExistsException.of_xmlxml)|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AlreadyExistsExceptione->`Assoc[("error",(`String"AlreadyExistsException"));("details",(AlreadyExistsException.to_jsone))]|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`InternalServiceErrorExceptione->`Assoc[("error",(`String"InternalServiceErrorException"));("details",(InternalServiceErrorException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An empty object that indicates that the configuration set was successfully created."]moduleCreateConfigurationSetRequest=structtypenonrect={configurationSetName:WordCharactersWithDelimiters.toption[@ocaml.doc"The name that you want to give the configuration set."]}letmake?configurationSetName=fun()->{configurationSetName}letto_valuex=structure_to_value[("ConfigurationSetName",(Option.mapx.configurationSetName~f:WordCharactersWithDelimiters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfigurationSetName=(Option.map~f:WordCharactersWithDelimiters.of_xml)(Xml.childxml_arg0"ConfigurationSetName")inmake?configurationSetName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfigurationSetName=field_mapjson__"ConfigurationSetName"WordCharactersWithDelimiters.of_jsoninmake?configurationSetName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request to create a new configuration set."]moduleCreateConfigurationSetEventDestinationResponse=structtypenonrect=unittypenonrecerror=[`AlreadyExistsExceptionofAlreadyExistsException.t|`BadRequestExceptionofBadRequestException.t|`InternalServiceErrorExceptionofInternalServiceErrorException.t|`LimitExceededExceptionofLimitExceededException.t|`NotFoundExceptionofNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AlreadyExistsException"->`AlreadyExistsException(AlreadyExistsException.of_jsonjson)|"BadRequestException"->`BadRequestException(BadRequestException.of_jsonjson)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AlreadyExistsException"->`AlreadyExistsException(AlreadyExistsException.of_xmlxml)|"BadRequestException"->`BadRequestException(BadRequestException.of_xmlxml)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AlreadyExistsExceptione->`Assoc[("error",(`String"AlreadyExistsException"));("details",(AlreadyExistsException.to_jsone))]|`BadRequestExceptione->`Assoc[("error",(`String"BadRequestException"));("details",(BadRequestException.to_jsone))]|`InternalServiceErrorExceptione->`Assoc[("error",(`String"InternalServiceErrorException"));("details",(InternalServiceErrorException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An empty object that indicates that the event destination was created successfully."]moduleCreateConfigurationSetEventDestinationRequest=structtypenonrect={configurationSetName:Zz__string.t[@ocaml.doc"ConfigurationSetName"];eventDestination:EventDestinationDefinition.toption;eventDestinationName:NonEmptyString.toption[@ocaml.doc"A name that identifies the event destination."]}letcontext_="CreateConfigurationSetEventDestinationRequest"letmake?eventDestination=fun?eventDestinationName->fun~configurationSetName->fun()->{eventDestination;eventDestinationName;configurationSetName}letto_valuex=structure_to_value[("ConfigurationSetName",(Some(Zz__string.to_valuex.configurationSetName)));("EventDestination",(Option.mapx.eventDestination~f:EventDestinationDefinition.to_value));("EventDestinationName",(Option.mapx.eventDestinationName~f:NonEmptyString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventDestinationName=(Option.map~f:NonEmptyString.of_xml)(Xml.childxml_arg0"EventDestinationName")inleteventDestination=(Option.map~f:EventDestinationDefinition.of_xml)(Xml.childxml_arg0"EventDestination")inletconfigurationSetName=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"ConfigurationSetName")inmake?eventDestinationName?eventDestination~configurationSetName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventDestinationName=field_mapjson__"EventDestinationName"NonEmptyString.of_jsoninleteventDestination=field_mapjson__"EventDestination"EventDestinationDefinition.of_jsoninletconfigurationSetName=field_map_exnjson__"ConfigurationSetName"Zz__string.of_jsoninmake?eventDestinationName?eventDestination~configurationSetName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Create a new event destination in a configuration set."]