123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432(* 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.interconnectletapiVersion="2022-07-26"letendpointPrefix="interconnect"letserviceFullName="Interconnect"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"lettargetPrefix="Interconnect"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[]))])moduleConnectionBandwidth=structtypenonrect=stringletcontext_="ConnectionBandwidth"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:8)>>=(fun()->check_patterni~pattern:"\\d+[MG]bps")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ConnectionBandwidth"jletto_json=simple_to_jsonto_valueendmoduleBandwidthList=structtypenonrect=ConnectionBandwidth.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConnectionBandwidth.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:ConnectionBandwidth.of_xml)letof_jsonj=list_of_json~kind:"BandwidthList"~of_json:ConnectionBandwidth.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCloudServiceProvider=structtypenonrect=stringletcontext_="CloudServiceProvider"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:32)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CloudServiceProvider"jletto_json=simple_to_jsonto_valueendmoduleLastMileProvider=structtypenonrect=stringletcontext_="LastMileProvider"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:32)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LastMileProvider"jletto_json=simple_to_jsonto_valueendmoduleAmazonResourceName=structtypenonrect=stringletcontext_="AmazonResourceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:59)>>=(fun()->(check_string_maxi~max:150)>>=(fun()->check_patterni~pattern:"arn:aws[a-z-]*:interconnect:[^:]+:[0-9]{12}:connection/(mcc|lmcc)-[a-z0-9]{8}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AmazonResourceName"jletto_json=simple_to_jsonto_valueendmoduleDirectConnectGatewayAttachPoint=structtypenonrect=stringletcontext_="DirectConnectGatewayAttachPoint"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DirectConnectGatewayAttachPoint"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleBandwidths=structtypenonrect={available:BandwidthList.toption[@ocaml.doc"The list of currently available bandwidths."];supported:BandwidthList.toption[@ocaml.doc"The list of all bandwidths that this environment plans to support"]}letmake?available=fun?supported->fun()->{available;supported}letto_valuex=structure_to_value[("available",(Option.mapx.available~f:BandwidthList.to_value));("supported",(Option.mapx.supported~f:BandwidthList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupported=(Option.map~f:BandwidthList.of_xml)(Xml.childxml_arg0"supported")inletavailable=(Option.map~f:BandwidthList.of_xml)(Xml.childxml_arg0"available")inmake?supported?available()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupported=field_mapjson__"supported"BandwidthList.of_jsoninletavailable=field_mapjson__"available"BandwidthList.of_jsoninmake?supported?available()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the details about the available and supported bandwidths."]moduleEnvironmentId=structtypenonrect=stringletcontext_="EnvironmentId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(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:"EnvironmentId"jletto_json=simple_to_jsonto_valueendmoduleEnvironmentState=structtypenonrect=|Available|Limited|Unavailable|Non_static_idofstringletmakei=iletto_string=function|Available->"available"|Limited->"limited"|Unavailable->"unavailable"|Non_static_ids->sletof_string=function|"available"->Available|"limited"->Limited|"unavailable"->Unavailable|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 EnvironmentState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EnvironmentState"j)letto_json=simple_to_jsonto_valueendmoduleLocation=structtypenonrect=stringletcontext_="Location"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Location"jletto_json=simple_to_jsonto_valueendmoduleProductType=structtypenonrect=stringletcontext_="ProductType"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:32)>>=(fun()->check_string_mini~min:5));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ProductType"jletto_json=simple_to_jsonto_valueendmoduleProvider=structtypenonrect={cloudServiceProvider:CloudServiceProvider.toption[@ocaml.doc"The provider's name. Specifically, connections to/from this Cloud Service Provider will be considered Multicloud connections."];lastMileProvider:LastMileProvider.toption[@ocaml.doc"The provider's name. Specifically, connections to/from this Last Mile Provider will be considered LastMile connections."]}letmake?cloudServiceProvider=fun?lastMileProvider->fun()->{cloudServiceProvider;lastMileProvider}letto_valuex=structure_to_value[("cloudServiceProvider",(Option.mapx.cloudServiceProvider~f:CloudServiceProvider.to_value));("lastMileProvider",(Option.mapx.lastMileProvider~f:LastMileProvider.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastMileProvider=(Option.map~f:LastMileProvider.of_xml)(Xml.childxml_arg0"lastMileProvider")inletcloudServiceProvider=(Option.map~f:CloudServiceProvider.of_xml)(Xml.childxml_arg0"cloudServiceProvider")inmake?lastMileProvider?cloudServiceProvider()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastMileProvider=field_mapjson__"lastMileProvider"LastMileProvider.of_jsoninletcloudServiceProvider=field_mapjson__"cloudServiceProvider"CloudServiceProvider.of_jsoninmake?lastMileProvider?cloudServiceProvider()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the respective AWS Interconnect Partner organization."]moduleRemoteAccountIdentifierType=structtypenonrect=|Account|Email|Non_static_idofstringletmakei=iletto_string=function|Account->"account"|Email->"email"|Non_static_ids->sletof_string=function|"account"->Account|"email"->Email|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 RemoteAccountIdentifierType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RemoteAccountIdentifierType"j)letto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleAttachPoint=structtypenonrect={directConnectGateway:DirectConnectGatewayAttachPoint.toption[@ocaml.doc"Identifies an DirectConnect Gateway attach point by DirectConnectGatewayID."];arn:AmazonResourceName.toption[@ocaml.doc"Identifies an attach point by full ARN."]}letmake?directConnectGateway=fun?arn->fun()->{directConnectGateway;arn}letto_valuex=structure_to_value[("directConnectGateway",(Option.mapx.directConnectGateway~f:DirectConnectGatewayAttachPoint.to_value));("arn",(Option.mapx.arn~f:AmazonResourceName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"arn")inletdirectConnectGateway=(Option.map~f:DirectConnectGatewayAttachPoint.of_xml)(Xml.childxml_arg0"directConnectGateway")inmake?arn?directConnectGateway()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_mapjson__"arn"AmazonResourceName.of_jsoninletdirectConnectGateway=field_mapjson__"directConnectGateway"DirectConnectGatewayAttachPoint.of_jsoninmake?arn?directConnectGateway()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Identifies an attach point to use with a Connection."]moduleBillingTier=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:8)>>=(fun()->check_int_mini~min:0));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 BillingTier"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleConnectionDescription=structtypenonrect=stringletcontext_="ConnectionDescription"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[-a-zA-Z0-9_ ]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ConnectionDescription"jletto_json=simple_to_jsonto_valueendmoduleConnectionId=structtypenonrect=stringletcontext_="ConnectionId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:32)>>=(fun()->check_patterni~pattern:"(mcc|lmcc)-[a-z0-9]{8}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ConnectionId"jletto_json=simple_to_jsonto_valueendmoduleConnectionSharedId=structtypenonrect=stringletcontext_="ConnectionSharedId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ConnectionSharedId"jletto_json=simple_to_jsonto_valueendmoduleConnectionState=structtypenonrect=|Available|Requested|Pending|Down|Deleting|Deleted|Failed|Updating|Non_static_idofstringletmakei=iletto_string=function|Available->"available"|Requested->"requested"|Pending->"pending"|Down->"down"|Deleting->"deleting"|Deleted->"deleted"|Failed->"failed"|Updating->"updating"|Non_static_ids->sletof_string=function|"available"->Available|"requested"->Requested|"pending"->Pending|"down"->Down|"deleting"->Deleting|"deleted"->Deleted|"failed"->Failed|"updating"->Updating|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 ConnectionState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConnectionState"j)letto_json=simple_to_jsonto_valueendmoduleAttachPointType=structtypenonrect=|DirectConnectGateway|Non_static_idofstringletmakei=iletto_string=function|DirectConnectGateway->"DirectConnectGateway"|Non_static_ids->sletof_string=function|"DirectConnectGateway"->DirectConnectGateway|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 AttachPointType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AttachPointType"j)letto_json=simple_to_jsonto_valueendmoduleActivationKey=structtypenonrect=stringletcontext_="ActivationKey"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:"ActivationKey"jletto_json=simple_to_jsonto_valueendmoduleOwnerAccountId=structtypenonrect=stringletcontext_="OwnerAccountId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"[0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"OwnerAccountId"jletto_json=simple_to_jsonto_valueendmoduleTagMap=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEnvironment=structtypenonrect={provider:Provider.toption[@ocaml.doc"The provider on the remote side of this Connection."];location:Location.toption[@ocaml.doc"The provider specific location on the remote side of this Connection."];environmentId:EnvironmentId.toption[@ocaml.doc"The identifier of this Environment"];state:EnvironmentState.toption[@ocaml.doc"The state of the Environment. Possible values: available: The environment is available and new Connection objects can be requested. limited: The environment is available, but overall capacity is limited. The set of available bandwidths unavailable: The environment is currently unavailable."];bandwidths:Bandwidths.toption[@ocaml.doc"The sets of bandwidths that are available and supported on this environment."];type_:ProductType.toption[@ocaml.doc"The specific product type of Connection objects provided by this Environment."];activationPageUrl:String_.toption[@ocaml.doc"An HTTPS URL on the remote partner portal where the Activation Key should be brought to complete the creation process."];remoteIdentifierType:RemoteAccountIdentifierType.toption[@ocaml.doc"The type of identifying information that should be supplied to the remoteAccount parameter of a CreateConnection call for this specific Environment."]}letmake?provider=fun?location->fun?environmentId->fun?state->fun?bandwidths->fun?type_->fun?activationPageUrl->fun?remoteIdentifierType->fun()->{provider;location;environmentId;state;bandwidths;type_;activationPageUrl;remoteIdentifierType}letto_valuex=structure_to_value[("provider",(Option.mapx.provider~f:Provider.to_value));("location",(Option.mapx.location~f:Location.to_value));("environmentId",(Option.mapx.environmentId~f:EnvironmentId.to_value));("state",(Option.mapx.state~f:EnvironmentState.to_value));("bandwidths",(Option.mapx.bandwidths~f:Bandwidths.to_value));("type",(Option.mapx.type_~f:ProductType.to_value));("activationPageUrl",(Option.mapx.activationPageUrl~f:String_.to_value));("remoteIdentifierType",(Option.mapx.remoteIdentifierType~f:RemoteAccountIdentifierType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letremoteIdentifierType=(Option.map~f:RemoteAccountIdentifierType.of_xml)(Xml.childxml_arg0"remoteIdentifierType")inletactivationPageUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"activationPageUrl")inlettype_=(Option.map~f:ProductType.of_xml)(Xml.childxml_arg0"type")inletbandwidths=(Option.map~f:Bandwidths.of_xml)(Xml.childxml_arg0"bandwidths")inletstate=(Option.map~f:EnvironmentState.of_xml)(Xml.childxml_arg0"state")inletenvironmentId=(Option.map~f:EnvironmentId.of_xml)(Xml.childxml_arg0"environmentId")inletlocation=(Option.map~f:Location.of_xml)(Xml.childxml_arg0"location")inletprovider=(Option.map~f:Provider.of_xml)(Xml.childxml_arg0"provider")inmake?remoteIdentifierType?activationPageUrl?type_?bandwidths?state?environmentId?location?provider()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letremoteIdentifierType=field_mapjson__"remoteIdentifierType"RemoteAccountIdentifierType.of_jsoninletactivationPageUrl=field_mapjson__"activationPageUrl"String_.of_jsoninlettype_=field_mapjson__"type"ProductType.of_jsoninletbandwidths=field_mapjson__"bandwidths"Bandwidths.of_jsoninletstate=field_mapjson__"state"EnvironmentState.of_jsoninletenvironmentId=field_mapjson__"environmentId"EnvironmentId.of_jsoninletlocation=field_mapjson__"location"Location.of_jsoninletprovider=field_mapjson__"provider"Provider.of_jsoninmake?remoteIdentifierType?activationPageUrl?type_?bandwidths?state?environmentId?location?provider()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines the logical topology that an AWS Interconnect Connection is created upon. Specifically, an Environment defines the partner The remote Cloud Service Provider of this resource. or The remote Last Mile Provider of this resource. and the region or location specification to which an AWS Interconnect Connection can be made."]moduleConnectionSummary=structtypenonrect={id:ConnectionId.toption[@ocaml.doc"The identifier of the requested Connection"];arn:AmazonResourceName.toption[@ocaml.doc"The ARN of the Connection"];description:ConnectionDescription.toption[@ocaml.doc"A descriptive name of the Connection"];bandwidth:ConnectionBandwidth.toption[@ocaml.doc"The bandwidth of the Connection"];attachPoint:AttachPoint.toption[@ocaml.doc"The Attach Point to which the connection should be associated."];environmentId:EnvironmentId.toption[@ocaml.doc"The Environment that this Connection is created on."];provider:Provider.toption[@ocaml.doc"The provider on the remote end of this Connection"];location:Location.toption[@ocaml.doc"The provider specific location at the remote end of this Connection"];type_:ProductType.toption[@ocaml.doc"The product variant supplied by this resource."];state:ConnectionState.toption[@ocaml.doc"requested: The initial state of a connection. The state will remain here until the Connection is accepted on the Partner portal. pending: The connection has been accepted and is being provisioned between AWS and the Partner. available: The connection has been fully provisioned between AWS and the Partner. deleting: The connection is being deleted. deleted: The connection has been deleted. failed: The connection has failed to be created. updating: The connection is being updated."];sharedId:ConnectionSharedId.toption[@ocaml.doc"An identifier used by both AWS and the remote partner to identify the specific connection."];billingTier:BillingTier.toption[@ocaml.doc"The billing tier this connection is currently assigned."]}letmake?id=fun?arn->fun?description->fun?bandwidth->fun?attachPoint->fun?environmentId->fun?provider->fun?location->fun?type_->fun?state->fun?sharedId->fun?billingTier->fun()->{id;arn;description;bandwidth;attachPoint;environmentId;provider;location;type_;state;sharedId;billingTier}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:ConnectionId.to_value));("arn",(Option.mapx.arn~f:AmazonResourceName.to_value));("description",(Option.mapx.description~f:ConnectionDescription.to_value));("bandwidth",(Option.mapx.bandwidth~f:ConnectionBandwidth.to_value));("attachPoint",(Option.mapx.attachPoint~f:AttachPoint.to_value));("environmentId",(Option.mapx.environmentId~f:EnvironmentId.to_value));("provider",(Option.mapx.provider~f:Provider.to_value));("location",(Option.mapx.location~f:Location.to_value));("type",(Option.mapx.type_~f:ProductType.to_value));("state",(Option.mapx.state~f:ConnectionState.to_value));("sharedId",(Option.mapx.sharedId~f:ConnectionSharedId.to_value));("billingTier",(Option.mapx.billingTier~f:BillingTier.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbillingTier=(Option.map~f:BillingTier.of_xml)(Xml.childxml_arg0"billingTier")inletsharedId=(Option.map~f:ConnectionSharedId.of_xml)(Xml.childxml_arg0"sharedId")inletstate=(Option.map~f:ConnectionState.of_xml)(Xml.childxml_arg0"state")inlettype_=(Option.map~f:ProductType.of_xml)(Xml.childxml_arg0"type")inletlocation=(Option.map~f:Location.of_xml)(Xml.childxml_arg0"location")inletprovider=(Option.map~f:Provider.of_xml)(Xml.childxml_arg0"provider")inletenvironmentId=(Option.map~f:EnvironmentId.of_xml)(Xml.childxml_arg0"environmentId")inletattachPoint=(Option.map~f:AttachPoint.of_xml)(Xml.childxml_arg0"attachPoint")inletbandwidth=(Option.map~f:ConnectionBandwidth.of_xml)(Xml.childxml_arg0"bandwidth")inletdescription=(Option.map~f:ConnectionDescription.of_xml)(Xml.childxml_arg0"description")inletarn=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"arn")inletid=(Option.map~f:ConnectionId.of_xml)(Xml.childxml_arg0"id")inmake?billingTier?sharedId?state?type_?location?provider?environmentId?attachPoint?bandwidth?description?arn?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbillingTier=field_mapjson__"billingTier"BillingTier.of_jsoninletsharedId=field_mapjson__"sharedId"ConnectionSharedId.of_jsoninletstate=field_mapjson__"state"ConnectionState.of_jsoninlettype_=field_mapjson__"type"ProductType.of_jsoninletlocation=field_mapjson__"location"Location.of_jsoninletprovider=field_mapjson__"provider"Provider.of_jsoninletenvironmentId=field_mapjson__"environmentId"EnvironmentId.of_jsoninletattachPoint=field_mapjson__"attachPoint"AttachPoint.of_jsoninletbandwidth=field_mapjson__"bandwidth"ConnectionBandwidth.of_jsoninletdescription=field_mapjson__"description"ConnectionDescription.of_jsoninletarn=field_mapjson__"arn"AmazonResourceName.of_jsoninletid=field_mapjson__"id"ConnectionId.of_jsoninmake?billingTier?sharedId?state?type_?location?provider?environmentId?attachPoint?bandwidth?description?arn?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summarized view of a Connection object."]moduleAttachPointDescriptor=structtypenonrect={type_:AttachPointType.toption[@ocaml.doc"The type of this AttachPoint, which will dictate the syntax of the identifier. Current types include: ARN DirectConnect Gateway"];identifier:String_.toption[@ocaml.doc"The identifier for the specific type of the AttachPoint."];name:String_.toption[@ocaml.doc"The descriptive name of the identifier attach point."]}letmake?type_=fun?identifier->fun?name->fun()->{type_;identifier;name}letto_valuex=structure_to_value[("type",(Option.mapx.type_~f:AttachPointType.to_value));("identifier",(Option.mapx.identifier~f:String_.to_value));("name",(Option.mapx.name~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inletidentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"identifier")inlettype_=(Option.map~f:AttachPointType.of_xml)(Xml.childxml_arg0"type")inmake?name?identifier?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"String_.of_jsoninletidentifier=field_mapjson__"identifier"String_.of_jsoninlettype_=field_mapjson__"type"AttachPointType.of_jsoninmake?name?identifier?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a possible Attach Point for a Connection."]moduleRemoteOwnerAccount=structtypenonrect=stringletcontext_="RemoteOwnerAccount"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[-a-zA-Z0-9_@\\.]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RemoteOwnerAccount"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=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 calling principal is not allowed to access the specified resource, or the resource does not exist."]moduleConnection=structtypenonrect={id:ConnectionId.toption[@ocaml.doc"The short identifier of the connection object."];arn:AmazonResourceName.toption[@ocaml.doc"An ARN of a Connection object."];description:ConnectionDescription.toption[@ocaml.doc"A descriptive name for the connection."];bandwidth:ConnectionBandwidth.toption[@ocaml.doc"The specific selected bandwidth of this connection."];attachPoint:AttachPoint.toption[@ocaml.doc"The Attach Point to which the connection should be associated.\""];environmentId:EnvironmentId.toption[@ocaml.doc"The specific Environment this connection is placed upon."];provider:Provider.toption[@ocaml.doc"The provider on the remote side of this Connection."];location:Location.toption[@ocaml.doc"The provider specific location on the remote side of this Connection"];type_:ProductType.toption[@ocaml.doc"The specific product type of this Connection."];state:ConnectionState.toption[@ocaml.doc"requested: The initial state of a connection. The state will remain here until the Connection is accepted on the Partner portal. pending: The connection has been accepted and is being provisioned between AWS and the Partner. available: The connection has been fully provisioned between AWS and the Partner. deleting: The connection is being deleted. deleted: The connection has been deleted. failed: The connection has failed to be created. updating: The connection is being updated."];sharedId:ConnectionSharedId.toption[@ocaml.doc"An identifier used by both AWS and the remote partner to identify the specific connection."];billingTier:BillingTier.toption[@ocaml.doc"The billing tier this connection is currently assigned."];ownerAccount:OwnerAccountId.toption[@ocaml.doc"The account that owns this Connection"];activationKey:ActivationKey.toption[@ocaml.doc"The Activation Key associated to this connection."];tags:TagMap.toption[@ocaml.doc"The tags on the Connection"]}letmake?id=fun?arn->fun?description->fun?bandwidth->fun?attachPoint->fun?environmentId->fun?provider->fun?location->fun?type_->fun?state->fun?sharedId->fun?billingTier->fun?ownerAccount->fun?activationKey->fun?tags->fun()->{id;arn;description;bandwidth;attachPoint;environmentId;provider;location;type_;state;sharedId;billingTier;ownerAccount;activationKey;tags}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:ConnectionId.to_value));("arn",(Option.mapx.arn~f:AmazonResourceName.to_value));("description",(Option.mapx.description~f:ConnectionDescription.to_value));("bandwidth",(Option.mapx.bandwidth~f:ConnectionBandwidth.to_value));("attachPoint",(Option.mapx.attachPoint~f:AttachPoint.to_value));("environmentId",(Option.mapx.environmentId~f:EnvironmentId.to_value));("provider",(Option.mapx.provider~f:Provider.to_value));("location",(Option.mapx.location~f:Location.to_value));("type",(Option.mapx.type_~f:ProductType.to_value));("state",(Option.mapx.state~f:ConnectionState.to_value));("sharedId",(Option.mapx.sharedId~f:ConnectionSharedId.to_value));("billingTier",(Option.mapx.billingTier~f:BillingTier.to_value));("ownerAccount",(Option.mapx.ownerAccount~f:OwnerAccountId.to_value));("activationKey",(Option.mapx.activationKey~f:ActivationKey.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletactivationKey=(Option.map~f:ActivationKey.of_xml)(Xml.childxml_arg0"activationKey")inletownerAccount=(Option.map~f:OwnerAccountId.of_xml)(Xml.childxml_arg0"ownerAccount")inletbillingTier=(Option.map~f:BillingTier.of_xml)(Xml.childxml_arg0"billingTier")inletsharedId=(Option.map~f:ConnectionSharedId.of_xml)(Xml.childxml_arg0"sharedId")inletstate=(Option.map~f:ConnectionState.of_xml)(Xml.childxml_arg0"state")inlettype_=(Option.map~f:ProductType.of_xml)(Xml.childxml_arg0"type")inletlocation=(Option.map~f:Location.of_xml)(Xml.childxml_arg0"location")inletprovider=(Option.map~f:Provider.of_xml)(Xml.childxml_arg0"provider")inletenvironmentId=(Option.map~f:EnvironmentId.of_xml)(Xml.childxml_arg0"environmentId")inletattachPoint=(Option.map~f:AttachPoint.of_xml)(Xml.childxml_arg0"attachPoint")inletbandwidth=(Option.map~f:ConnectionBandwidth.of_xml)(Xml.childxml_arg0"bandwidth")inletdescription=(Option.map~f:ConnectionDescription.of_xml)(Xml.childxml_arg0"description")inletarn=(Option.map~f:AmazonResourceName.of_xml)(Xml.childxml_arg0"arn")inletid=(Option.map~f:ConnectionId.of_xml)(Xml.childxml_arg0"id")inmake?tags?activationKey?ownerAccount?billingTier?sharedId?state?type_?location?provider?environmentId?attachPoint?bandwidth?description?arn?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninletactivationKey=field_mapjson__"activationKey"ActivationKey.of_jsoninletownerAccount=field_mapjson__"ownerAccount"OwnerAccountId.of_jsoninletbillingTier=field_mapjson__"billingTier"BillingTier.of_jsoninletsharedId=field_mapjson__"sharedId"ConnectionSharedId.of_jsoninletstate=field_mapjson__"state"ConnectionState.of_jsoninlettype_=field_mapjson__"type"ProductType.of_jsoninletlocation=field_mapjson__"location"Location.of_jsoninletprovider=field_mapjson__"provider"Provider.of_jsoninletenvironmentId=field_mapjson__"environmentId"EnvironmentId.of_jsoninletattachPoint=field_mapjson__"attachPoint"AttachPoint.of_jsoninletbandwidth=field_mapjson__"bandwidth"ConnectionBandwidth.of_jsoninletdescription=field_mapjson__"description"ConnectionDescription.of_jsoninletarn=field_mapjson__"arn"AmazonResourceName.of_jsoninletid=field_mapjson__"id"ConnectionId.of_jsoninmake?tags?activationKey?ownerAccount?billingTier?sharedId?state?type_?location?provider?environmentId?attachPoint?bandwidth?description?arn?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The object describing the provided connectivity from the AWS region to the partner location."]moduleInterconnectClientException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to incorrect client supplied parameters."]moduleInterconnectServerException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request resulted in an exception internal to the service."]moduleInterconnectValidationException=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 fails to satisfy the constraints specified."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request specifies a resource that does not exist on the server."]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"The requested operation would result in the calling principal exceeding their allotted quota."]moduleThrottlingException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to request throttling."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEnvironmentList=structtypenonrect=Environment.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Environment.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:Environment.of_xml)letof_jsonj=list_of_json~kind:"EnvironmentList"~of_json:Environment.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleNextToken=structtypenonrect=stringletcontext_="NextToken"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:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleConnectionSummariesList=structtypenonrect=ConnectionSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConnectionSummary.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:ConnectionSummary.of_xml)letof_jsonj=list_of_json~kind:"ConnectionSummariesList"~of_json:ConnectionSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAttachPointDescriptorList=structtypenonrect=AttachPointDescriptor.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttachPointDescriptor.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:AttachPointDescriptor.of_xml)letof_jsonj=list_of_json~kind:"AttachPointDescriptorList"~of_json:AttachPointDescriptor.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRemoteAccountIdentifier=structtypenonrect={identifier:RemoteOwnerAccount.toption[@ocaml.doc"A generic bit of identifying information. Can be used in place of any of the more specific types."]}letmake?identifier=fun()->{identifier}letto_valuex=structure_to_value[("identifier",(Option.mapx.identifier~f:RemoteOwnerAccount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentifier=(Option.map~f:RemoteOwnerAccount.of_xml)(Xml.childxml_arg0"identifier")inmake?identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentifier=field_mapjson__"identifier"RemoteOwnerAccount.of_jsoninmake?identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The types of identifiers that may be needed for remote account specification."]moduleUpdateConnectionResponse=structtypenonrect={connection:Connection.toption[@ocaml.doc"The resulting updated Connection"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?connection=fun()->{connection}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("connection",(Option.mapx.connection~f:Connection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnection=(Option.map~f:Connection.of_xml)(Xml.childxml_arg0"connection")inmake?connection()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnection=field_mapjson__"connection"Connection.of_jsoninmake?connection()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies an existing connection. Currently we support modifications to the connection's description and/or bandwidth."]moduleUpdateConnectionRequest=structtypenonrect={identifier:ConnectionId.t[@ocaml.doc"The identifier of the Connection that should be updated."];description:ConnectionDescription.toption[@ocaml.doc"An updated description to apply to the Connection"];bandwidth:ConnectionBandwidth.toption[@ocaml.doc"Request a new bandwidth size on the given Connection. Note that changes to the size may be subject to additional policy, and does require the remote partner provider to acknowledge and permit this new bandwidth size."];clientToken:String_.toption[@ocaml.doc"Idempotency token used for the request."]}letcontext_="UpdateConnectionRequest"letmake?description=fun?bandwidth->fun?clientToken->fun~identifier->fun()->{description;bandwidth;clientToken;identifier}letto_valuex=structure_to_value[("identifier",(Some(ConnectionId.to_valuex.identifier)));("description",(Option.mapx.description~f:ConnectionDescription.to_value));("bandwidth",(Option.mapx.bandwidth~f:ConnectionBandwidth.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletbandwidth=(Option.map~f:ConnectionBandwidth.of_xml)(Xml.childxml_arg0"bandwidth")inletdescription=(Option.map~f:ConnectionDescription.of_xml)(Xml.childxml_arg0"description")inletidentifier=ConnectionId.of_xml(Xml.child_exn~context:context_xml_arg0"identifier")inmake?clientToken?bandwidth?description~identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletbandwidth=field_mapjson__"bandwidth"ConnectionBandwidth.of_jsoninletdescription=field_mapjson__"description"ConnectionDescription.of_jsoninletidentifier=field_map_exnjson__"identifier"ConnectionId.of_jsoninmake?clientToken?bandwidth?description~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies an existing connection. Currently we support modifications to the connection's description and/or bandwidth."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from the specified resource."]moduleUntagResourceRequest=structtypenonrect={arn:AmazonResourceName.t[@ocaml.doc"The ARN of the resource from which the specified tags should be removed."];tagKeys:TagKeyList.t[@ocaml.doc"The list of tag keys that should be removed from the resource."]}letcontext_="UntagResourceRequest"letmake~arn=fun~tagKeys->fun()->{arn;tagKeys}letto_valuex=structure_to_value[("arn",(Some(AmazonResourceName.to_valuex.arn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletarn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~tagKeys~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"TagKeyList.of_jsoninletarn=field_map_exnjson__"arn"AmazonResourceName.of_jsoninmake~tagKeys~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from the specified resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`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"Add new tags to the specified resource."]moduleTagResourceRequest=structtypenonrect={arn:AmazonResourceName.t[@ocaml.doc"The ARN of the resource that should receive the new tags."];tags:TagMap.t[@ocaml.doc"A map of tags to apply to the specified resource."]}letcontext_="TagResourceRequest"letmake~arn=fun~tags->fun()->{arn;tags}letto_valuex=structure_to_value[("arn",(Some(AmazonResourceName.to_valuex.arn)));("tags",(Some(TagMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletarn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~tags~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"tags"TagMap.of_jsoninletarn=field_map_exnjson__"arn"AmazonResourceName.of_jsoninmake~tags~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add new tags to the specified resource."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagMap.toption[@ocaml.doc"The tags on the specified ARN."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all current tags on the specified resource. Currently this supports Connection resources."]moduleListTagsForResourceRequest=structtypenonrect={arn:AmazonResourceName.t[@ocaml.doc"The resource ARN for which to list tags."]}letcontext_="ListTagsForResourceRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(AmazonResourceName.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"AmazonResourceName.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all current tags on the specified resource. Currently this supports Connection resources."]moduleListEnvironmentsResponse=structtypenonrect={environments:EnvironmentList.toption[@ocaml.doc"The list of matching Environment objects."];nextToken:String_.toption[@ocaml.doc"A pagination token for use in subsequent calls to fetch the next page of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?environments=fun?nextToken->fun()->{environments;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("environments",(Option.mapx.environments~f:EnvironmentList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletenvironments=(Option.map~f:EnvironmentList.of_xml)(Xml.childxml_arg0"environments")inmake?nextToken?environments()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletenvironments=field_mapjson__"environments"EnvironmentList.of_jsoninmake?nextToken?environments()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the environments that can produce connections that will land in the called AWS region."]moduleListEnvironmentsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"The max number of list results in a single paginated response."];nextToken:NextToken.toption[@ocaml.doc"A pagination token from a previous paginated response indicating you wish to get the next page of results."];provider:Provider.toption[@ocaml.doc"Filter results to only include Environment objects that connect to the Provider."];location:Location.toption[@ocaml.doc"Filter results to only include Environment objects that connect to a given location distiguisher."]}letmake?maxResults=fun?nextToken->fun?provider->fun?location->fun()->{maxResults;nextToken;provider;location}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("provider",(Option.mapx.provider~f:Provider.to_value));("location",(Option.mapx.location~f:Location.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocation=(Option.map~f:Location.of_xml)(Xml.childxml_arg0"location")inletprovider=(Option.map~f:Provider.of_xml)(Xml.childxml_arg0"provider")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake?location?provider?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocation=field_mapjson__"location"Location.of_jsoninletprovider=field_mapjson__"provider"Provider.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninmake?location?provider?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the environments that can produce connections that will land in the called AWS region."]moduleListConnectionsResponse=structtypenonrect={connections:ConnectionSummariesList.toption[@ocaml.doc"The resulting list of Connection objects."];nextToken:NextToken.toption[@ocaml.doc"A pagination token for use in subsequent calls to fetch the next page of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?connections=fun?nextToken->fun()->{connections;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("connections",(Option.mapx.connections~f:ConnectionSummariesList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletconnections=(Option.map~f:ConnectionSummariesList.of_xml)(Xml.childxml_arg0"connections")inmake?nextToken?connections()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletconnections=field_mapjson__"connections"ConnectionSummariesList.of_jsoninmake?nextToken?connections()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all connection objects to which the caller has access. Allows for optional filtering by the following properties: state environmentId provider attach point Only Connection objects matching all filters will be returned."]moduleListConnectionsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"The max number of list results in a single paginated response."];nextToken:NextToken.toption[@ocaml.doc"A pagination token from a previous paginated response indicating you wish to get the next page of results."];state:ConnectionState.toption[@ocaml.doc"Filter the results to only include Connection objects in the given Connection$state."];environmentId:EnvironmentId.toption[@ocaml.doc"Filter the results to only include Connection objects on the given Environment."];provider:Provider.toption[@ocaml.doc"Filter the results to only include Connection objects to the given Provider."];attachPoint:AttachPoint.toption[@ocaml.doc"Filter results to only include Connection objects attached to the given AttachPoint."]}letmake?maxResults=fun?nextToken->fun?state->fun?environmentId->fun?provider->fun?attachPoint->fun()->{maxResults;nextToken;state;environmentId;provider;attachPoint}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("state",(Option.mapx.state~f:ConnectionState.to_value));("environmentId",(Option.mapx.environmentId~f:EnvironmentId.to_value));("provider",(Option.mapx.provider~f:Provider.to_value));("attachPoint",(Option.mapx.attachPoint~f:AttachPoint.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattachPoint=(Option.map~f:AttachPoint.of_xml)(Xml.childxml_arg0"attachPoint")inletprovider=(Option.map~f:Provider.of_xml)(Xml.childxml_arg0"provider")inletenvironmentId=(Option.map~f:EnvironmentId.of_xml)(Xml.childxml_arg0"environmentId")inletstate=(Option.map~f:ConnectionState.of_xml)(Xml.childxml_arg0"state")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake?attachPoint?provider?environmentId?state?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattachPoint=field_mapjson__"attachPoint"AttachPoint.of_jsoninletprovider=field_mapjson__"provider"Provider.of_jsoninletenvironmentId=field_mapjson__"environmentId"EnvironmentId.of_jsoninletstate=field_mapjson__"state"ConnectionState.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninmake?attachPoint?provider?environmentId?state?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all connection objects to which the caller has access. Allows for optional filtering by the following properties: state environmentId provider attach point Only Connection objects matching all filters will be returned."]moduleListAttachPointsResponse=structtypenonrect={attachPoints:AttachPointDescriptorList.toption[@ocaml.doc"The valid AttachPoint"];nextToken:NextToken.toption[@ocaml.doc"A pagination token indicating that there are more results that can be fetched."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?attachPoints=fun?nextToken->fun()->{attachPoints;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("attachPoints",(Option.mapx.attachPoints~f:AttachPointDescriptorList.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletattachPoints=(Option.map~f:AttachPointDescriptorList.of_xml)(Xml.childxml_arg0"attachPoints")inmake?nextToken?attachPoints()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletattachPoints=field_mapjson__"attachPoints"AttachPointDescriptorList.of_jsoninmake?nextToken?attachPoints()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all Attach Points the caller has access to that are valid for the specified Environment."]moduleListAttachPointsRequest=structtypenonrect={environmentId:EnvironmentId.t[@ocaml.doc"The identifier of the Environment for which to list valid Attach Points."];maxResults:MaxResults.toption[@ocaml.doc"The max number of list results in a single paginated response."];nextToken:NextToken.toption[@ocaml.doc"A pagination token from a previous paginated response indicating you wish to get the next page."]}letcontext_="ListAttachPointsRequest"letmake?maxResults=fun?nextToken->fun~environmentId->fun()->{maxResults;nextToken;environmentId}letto_valuex=structure_to_value[("environmentId",(Some(EnvironmentId.to_valuex.environmentId)));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletenvironmentId=EnvironmentId.of_xml(Xml.child_exn~context:context_xml_arg0"environmentId")inmake?nextToken?maxResults~environmentId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletenvironmentId=field_map_exnjson__"environmentId"EnvironmentId.of_jsoninmake?nextToken?maxResults~environmentId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all Attach Points the caller has access to that are valid for the specified Environment."]moduleGetEnvironmentResponse=structtypenonrect={environment:Environment.toption[@ocaml.doc"The requested Environment structure."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?environment=fun()->{environment}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("environment",(Option.mapx.environment~f:Environment.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenvironment=(Option.map~f:Environment.of_xml)(Xml.childxml_arg0"environment")inmake?environment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenvironment=field_mapjson__"environment"Environment.of_jsoninmake?environment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a specific Environment"]moduleGetEnvironmentRequest=structtypenonrect={id:EnvironmentId.t[@ocaml.doc"The identifier of the specific Environment to describe."]}letcontext_="GetEnvironmentRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(EnvironmentId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=EnvironmentId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"EnvironmentId.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a specific Environment"]moduleGetConnectionResponse=structtypenonrect={connection:Connection.toption[@ocaml.doc"The existing Connection resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?connection=fun()->{connection}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("connection",(Option.mapx.connection~f:Connection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnection=(Option.map~f:Connection.of_xml)(Xml.childxml_arg0"connection")inmake?connection()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnection=field_mapjson__"connection"Connection.of_jsoninmake?connection()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the current state of a Connection resource as specified by the identifier."]moduleGetConnectionRequest=structtypenonrect={identifier:ConnectionId.t[@ocaml.doc"The identifier of the requested Connection"]}letcontext_="GetConnectionRequest"letmake~identifier=fun()->{identifier}letto_valuex=structure_to_value[("identifier",(Some(ConnectionId.to_valuex.identifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentifier=ConnectionId.of_xml(Xml.child_exn~context:context_xml_arg0"identifier")inmake~identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentifier=field_map_exnjson__"identifier"ConnectionId.of_jsoninmake~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the current state of a Connection resource as specified by the identifier."]moduleDescribeConnectionProposalResponse=structtypenonrect={bandwidth:ConnectionBandwidth.toption[@ocaml.doc"The bandwidth of the proposed Connection."];environmentId:EnvironmentId.toption[@ocaml.doc"The identifier of the Environment upon which the Connection would be placed if this proposal were accepted."];provider:Provider.toption[@ocaml.doc"The partner provider of the specific Environment of the proposal."];location:Location.toption[@ocaml.doc"The partner specific location distinguisher of the specific Environment of the proposal."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?bandwidth=fun?environmentId->fun?provider->fun?location->fun()->{bandwidth;environmentId;provider;location}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("bandwidth",(Option.mapx.bandwidth~f:ConnectionBandwidth.to_value));("environmentId",(Option.mapx.environmentId~f:EnvironmentId.to_value));("provider",(Option.mapx.provider~f:Provider.to_value));("location",(Option.mapx.location~f:Location.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocation=(Option.map~f:Location.of_xml)(Xml.childxml_arg0"location")inletprovider=(Option.map~f:Provider.of_xml)(Xml.childxml_arg0"provider")inletenvironmentId=(Option.map~f:EnvironmentId.of_xml)(Xml.childxml_arg0"environmentId")inletbandwidth=(Option.map~f:ConnectionBandwidth.of_xml)(Xml.childxml_arg0"bandwidth")inmake?location?provider?environmentId?bandwidth()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocation=field_mapjson__"location"Location.of_jsoninletprovider=field_mapjson__"provider"Provider.of_jsoninletenvironmentId=field_mapjson__"environmentId"EnvironmentId.of_jsoninletbandwidth=field_mapjson__"bandwidth"ConnectionBandwidth.of_jsoninmake?location?provider?environmentId?bandwidth()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the details of a connection proposal generated at a partner's portal."]moduleDescribeConnectionProposalRequest=structtypenonrect={activationKey:ActivationKey.t[@ocaml.doc"An Activation Key that was generated on a supported partner's portal. This key captures the desired parameters from the initial creation request."]}letcontext_="DescribeConnectionProposalRequest"letmake~activationKey=fun()->{activationKey}letto_valuex=structure_to_value[("activationKey",(Some(ActivationKey.to_valuex.activationKey)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactivationKey=ActivationKey.of_xml(Xml.child_exn~context:context_xml_arg0"activationKey")inmake~activationKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactivationKey=field_map_exnjson__"activationKey"ActivationKey.of_jsoninmake~activationKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the details of a connection proposal generated at a partner's portal."]moduleDeleteConnectionResponse=structtypenonrect={connection:Connection.toption[@ocaml.doc"The Connection object that has been marked for deletion."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?connection=fun()->{connection}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("connection",(Option.mapx.connection~f:Connection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnection=(Option.map~f:Connection.of_xml)(Xml.childxml_arg0"connection")inmake?connection()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnection=field_mapjson__"connection"Connection.of_jsoninmake?connection()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing Connection with the supplied identifier. This operation will also inform the remote partner of your intention to delete your connection. Note, the partner may still require you to delete to fully clean up resources, but the network connectivity provided by the Connection will cease to exist."]moduleDeleteConnectionRequest=structtypenonrect={identifier:ConnectionId.t[@ocaml.doc"The identifier of the Connection to be deleted."];clientToken:String_.toption[@ocaml.doc"Idempotency token used for the request."]}letcontext_="DeleteConnectionRequest"letmake?clientToken=fun~identifier->fun()->{clientToken;identifier}letto_valuex=structure_to_value[("identifier",(Some(ConnectionId.to_valuex.identifier)));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletidentifier=ConnectionId.of_xml(Xml.child_exn~context:context_xml_arg0"identifier")inmake?clientToken~identifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletidentifier=field_map_exnjson__"identifier"ConnectionId.of_jsoninmake?clientToken~identifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing Connection with the supplied identifier. This operation will also inform the remote partner of your intention to delete your connection. Note, the partner may still require you to delete to fully clean up resources, but the network connectivity provided by the Connection will cease to exist."]moduleCreateConnectionResponse=structtypenonrect={connection:Connection.toption[@ocaml.doc"The resulting Connection."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?connection=fun()->{connection}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("connection",(Option.mapx.connection~f:Connection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnection=(Option.map~f:Connection.of_xml)(Xml.childxml_arg0"connection")inmake?connection()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnection=field_mapjson__"connection"Connection.of_jsoninmake?connection()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Initiates the process to create a Connection across the specified Environment. The Environment dictates the specified partner and location to which the other end of the connection should attach. You can see a list of the available Environments by calling ListEnvironments The Attach Point specifies where within the AWS Network your connection will logically connect. After a successful call to this method, the resulting Connection will return an Activation Key which will need to be brought to the specific partner's portal to confirm the Connection on both sides. (See Environment$activationPageUrl for a direct link to the partner portal)."]moduleCreateConnectionRequest=structtypenonrect={description:ConnectionDescription.toption[@ocaml.doc"A description to distinguish this Connection."];bandwidth:ConnectionBandwidth.t[@ocaml.doc"The desired bandwidth of the requested Connection"];attachPoint:AttachPoint.t[@ocaml.doc"The Attach Point to which the connection should be associated.\""];environmentId:EnvironmentId.t[@ocaml.doc"The identifier of the Environment across which this Connection should be created. The available Environment objects can be determined using ListEnvironments."];remoteAccount:RemoteAccountIdentifier.toption[@ocaml.doc"Account and/or principal identifying information that can be verified by the partner of this specific Environment."];tags:TagMap.toption[@ocaml.doc"The tag to associate with the resulting Connection."];clientToken:String_.toption[@ocaml.doc"Idempotency token used for the request."]}letcontext_="CreateConnectionRequest"letmake?description=fun?remoteAccount->fun?tags->fun?clientToken->fun~bandwidth->fun~attachPoint->fun~environmentId->fun()->{description;remoteAccount;tags;clientToken;bandwidth;attachPoint;environmentId}letto_valuex=structure_to_value[("description",(Option.mapx.description~f:ConnectionDescription.to_value));("bandwidth",(Some(ConnectionBandwidth.to_valuex.bandwidth)));("attachPoint",(Some(AttachPoint.to_valuex.attachPoint)));("environmentId",(Some(EnvironmentId.to_valuex.environmentId)));("remoteAccount",(Option.mapx.remoteAccount~f:RemoteAccountIdentifier.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletremoteAccount=(Option.map~f:RemoteAccountIdentifier.of_xml)(Xml.childxml_arg0"remoteAccount")inletenvironmentId=EnvironmentId.of_xml(Xml.child_exn~context:context_xml_arg0"environmentId")inletattachPoint=AttachPoint.of_xml(Xml.child_exn~context:context_xml_arg0"attachPoint")inletbandwidth=ConnectionBandwidth.of_xml(Xml.child_exn~context:context_xml_arg0"bandwidth")inletdescription=(Option.map~f:ConnectionDescription.of_xml)(Xml.childxml_arg0"description")inmake?clientToken?tags?remoteAccount~environmentId~attachPoint~bandwidth?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninlettags=field_mapjson__"tags"TagMap.of_jsoninletremoteAccount=field_mapjson__"remoteAccount"RemoteAccountIdentifier.of_jsoninletenvironmentId=field_map_exnjson__"environmentId"EnvironmentId.of_jsoninletattachPoint=field_map_exnjson__"attachPoint"AttachPoint.of_jsoninletbandwidth=field_map_exnjson__"bandwidth"ConnectionBandwidth.of_jsoninletdescription=field_mapjson__"description"ConnectionDescription.of_jsoninmake?clientToken?tags?remoteAccount~environmentId~attachPoint~bandwidth?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Initiates the process to create a Connection across the specified Environment. The Environment dictates the specified partner and location to which the other end of the connection should attach. You can see a list of the available Environments by calling ListEnvironments The Attach Point specifies where within the AWS Network your connection will logically connect. After a successful call to this method, the resulting Connection will return an Activation Key which will need to be brought to the specific partner's portal to confirm the Connection on both sides. (See Environment$activationPageUrl for a direct link to the partner portal)."]moduleAcceptConnectionProposalResponse=structtypenonrect={connection:Connection.toption[@ocaml.doc"The created Connection object."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InterconnectClientExceptionofInterconnectClientException.t|`InterconnectServerExceptionofInterconnectServerException.t|`InterconnectValidationExceptionofInterconnectValidationException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?connection=fun()->{connection}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_jsonjson)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_jsonjson)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InterconnectClientException"->`InterconnectClientException(InterconnectClientException.of_xmlxml)|"InterconnectServerException"->`InterconnectServerException(InterconnectServerException.of_xmlxml)|"InterconnectValidationException"->`InterconnectValidationException(InterconnectValidationException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InterconnectClientExceptione->`Assoc[("error",(`String"InterconnectClientException"));("details",(InterconnectClientException.to_jsone))]|`InterconnectServerExceptione->`Assoc[("error",(`String"InterconnectServerException"));("details",(InterconnectServerException.to_jsone))]|`InterconnectValidationExceptione->`Assoc[("error",(`String"InterconnectValidationException"));("details",(InterconnectValidationException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("connection",(Option.mapx.connection~f:Connection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnection=(Option.map~f:Connection.of_xml)(Xml.childxml_arg0"connection")inmake?connection()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnection=field_mapjson__"connection"Connection.of_jsoninmake?connection()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Accepts a connection proposal which was generated at a supported partner's portal. The proposal contains the Environment and bandwidth that were chosen on the partner's portal and cannot be modified. Upon accepting the proposal a connection will be made between the AWS network as accessed via the selected Attach Point and the network previously selected network on the partner's portal."]moduleAcceptConnectionProposalRequest=structtypenonrect={attachPoint:AttachPoint.t[@ocaml.doc"The Attach Point to which the connection should be associated."];activationKey:ActivationKey.t[@ocaml.doc"An Activation Key that was generated on a supported partner's portal. This key captures the desired parameters from the initial creation request. The details of this request can be described using with DescribeConnectionProposal."];description:ConnectionDescription.toption[@ocaml.doc"A description to distinguish this Connection."];tags:TagMap.toption[@ocaml.doc"The tags to associate with the resulting Connection."];clientToken:String_.toption[@ocaml.doc"Idempotency token used for the request."]}letcontext_="AcceptConnectionProposalRequest"letmake?description=fun?tags->fun?clientToken->fun~attachPoint->fun~activationKey->fun()->{description;tags;clientToken;attachPoint;activationKey}letto_valuex=structure_to_value[("attachPoint",(Some(AttachPoint.to_valuex.attachPoint)));("activationKey",(Some(ActivationKey.to_valuex.activationKey)));("description",(Option.mapx.description~f:ConnectionDescription.to_value));("tags",(Option.mapx.tags~f:TagMap.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"tags")inletdescription=(Option.map~f:ConnectionDescription.of_xml)(Xml.childxml_arg0"description")inletactivationKey=ActivationKey.of_xml(Xml.child_exn~context:context_xml_arg0"activationKey")inletattachPoint=AttachPoint.of_xml(Xml.child_exn~context:context_xml_arg0"attachPoint")inmake?clientToken?tags?description~activationKey~attachPoint()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninlettags=field_mapjson__"tags"TagMap.of_jsoninletdescription=field_mapjson__"description"ConnectionDescription.of_jsoninletactivationKey=field_map_exnjson__"activationKey"ActivationKey.of_jsoninletattachPoint=field_map_exnjson__"attachPoint"AttachPoint.of_jsoninmake?clientToken?tags?description~activationKey~attachPoint()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Accepts a connection proposal which was generated at a supported partner's portal. The proposal contains the Environment and bandwidth that were chosen on the partner's portal and cannot be modified. Upon accepting the proposal a connection will be made between the AWS network as accessed via the selected Attach Point and the network previously selected network on the partner's portal."]