1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330(* 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.route53_recovery_clusterletapiVersion="2019-12-02"letendpointPrefix="route53-recovery-cluster"letserviceFullName="Route53 Recovery Cluster"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"lettargetPrefix="ToggleCustomerAPI"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])moduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleValidationExceptionField=structtypenonrect={name:String_.toption[@ocaml.doc"The field that had the validation exception."];message:String_.toption[@ocaml.doc"Information about the validation exception."]}letmake?name=fun?message->fun()->{name;message}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.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")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?message?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?message?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"There was a validation error on the request."]moduleArn=structtypenonrect=stringletcontext_="Arn"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:"Arn"jletto_json=simple_to_jsonto_valueendmoduleRoutingControlState=structtypenonrect=|On|Off|Non_static_idofstringletmakei=iletto_string=function|On->"On"|Off->"Off"|Non_static_ids->sletof_string=function|"On"->On|"Off"->Off|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 RoutingControlState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RoutingControlState"j)letto_json=simple_to_jsonto_valueendmoduleControlPanelName=structtypenonrect=stringletcontext_="ControlPanelName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"^\\S+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ControlPanelName"jletto_json=simple_to_jsonto_valueendmoduleOwner=structtypenonrect=stringletcontext_="Owner"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"^\\S+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Owner"jletto_json=simple_to_jsonto_valueendmoduleRoutingControlName=structtypenonrect=stringletcontext_="RoutingControlName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"^\\S+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoutingControlName"jletto_json=simple_to_jsonto_valueendmoduleRetryAfterSeconds=structtypenonrect=int[@@ocaml.doc"Advice to clients on when the call can be safely retried"]letmakei=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 RetryAfterSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueend[@@ocaml.doc"Advice to clients on when the call can be safely retried"]moduleValidationExceptionFieldList=structtypenonrect=ValidationExceptionField.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ValidationExceptionField.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:ValidationExceptionField.of_xml)letof_jsonj=list_of_json~kind:"ValidationExceptionFieldList"~of_json:ValidationExceptionField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidationExceptionReason=structtypenonrect=|UnknownOperation|CannotParse|FieldValidationFailed|Other|Non_static_idofstringletmakei=iletto_string=function|UnknownOperation->"unknownOperation"|CannotParse->"cannotParse"|FieldValidationFailed->"fieldValidationFailed"|Other->"other"|Non_static_ids->sletof_string=function|"unknownOperation"->UnknownOperation|"cannotParse"->CannotParse|"fieldValidationFailed"->FieldValidationFailed|"other"->Other|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 ValidationExceptionReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidationExceptionReason"j)letto_json=simple_to_jsonto_valueendmoduleUpdateRoutingControlStateEntry=structtypenonrect={routingControlArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) for a routing control state entry."];routingControlState:RoutingControlState.t[@ocaml.doc"The routing control state in a set of routing control state entries."]}letcontext_="UpdateRoutingControlStateEntry"letmake~routingControlArn=fun~routingControlState->fun()->{routingControlArn;routingControlState}letto_valuex=structure_to_value[("RoutingControlArn",(Some(Arn.to_valuex.routingControlArn)));("RoutingControlState",(Some(RoutingControlState.to_valuex.routingControlState)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroutingControlState=RoutingControlState.of_xml(Xml.child_exn~context:context_xml_arg0"RoutingControlState")inletroutingControlArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"RoutingControlArn")inmake~routingControlState~routingControlArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroutingControlState=field_map_exnjson__"RoutingControlState"RoutingControlState.of_jsoninletroutingControlArn=field_map_exnjson__"RoutingControlArn"Arn.of_jsoninmake~routingControlState~routingControlArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A routing control state entry."]moduleRoutingControl=structtypenonrect={controlPanelArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the control panel where the routing control is located."];controlPanelName:ControlPanelName.toption[@ocaml.doc"The name of the control panel where the routing control is located. Only ASCII characters are supported for control panel names."];routingControlArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the routing control."];routingControlName:RoutingControlName.toption[@ocaml.doc"The name of the routing control."];routingControlState:RoutingControlState.toption[@ocaml.doc"The current state of the routing control. When a routing control state is set to ON, traffic flows to a cell. When the state is set to OFF, traffic does not flow."];owner:Owner.toption[@ocaml.doc"The Amazon Web Services account ID of the routing control owner."]}letmake?controlPanelArn=fun?controlPanelName->fun?routingControlArn->fun?routingControlName->fun?routingControlState->fun?owner->fun()->{controlPanelArn;controlPanelName;routingControlArn;routingControlName;routingControlState;owner}letto_valuex=structure_to_value[("ControlPanelArn",(Option.mapx.controlPanelArn~f:Arn.to_value));("ControlPanelName",(Option.mapx.controlPanelName~f:ControlPanelName.to_value));("RoutingControlArn",(Option.mapx.routingControlArn~f:Arn.to_value));("RoutingControlName",(Option.mapx.routingControlName~f:RoutingControlName.to_value));("RoutingControlState",(Option.mapx.routingControlState~f:RoutingControlState.to_value));("Owner",(Option.mapx.owner~f:Owner.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letowner=(Option.map~f:Owner.of_xml)(Xml.childxml_arg0"Owner")inletroutingControlState=(Option.map~f:RoutingControlState.of_xml)(Xml.childxml_arg0"RoutingControlState")inletroutingControlName=(Option.map~f:RoutingControlName.of_xml)(Xml.childxml_arg0"RoutingControlName")inletroutingControlArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"RoutingControlArn")inletcontrolPanelName=(Option.map~f:ControlPanelName.of_xml)(Xml.childxml_arg0"ControlPanelName")inletcontrolPanelArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"ControlPanelArn")inmake?owner?routingControlState?routingControlName?routingControlArn?controlPanelName?controlPanelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letowner=field_mapjson__"Owner"Owner.of_jsoninletroutingControlState=field_mapjson__"RoutingControlState"RoutingControlState.of_jsoninletroutingControlName=field_mapjson__"RoutingControlName"RoutingControlName.of_jsoninletroutingControlArn=field_mapjson__"RoutingControlArn"Arn.of_jsoninletcontrolPanelName=field_mapjson__"ControlPanelName"ControlPanelName.of_jsoninletcontrolPanelArn=field_mapjson__"ControlPanelArn"Arn.of_jsoninmake?owner?routingControlState?routingControlName?routingControlArn?controlPanelName?controlPanelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A routing control, which is a simple on/off switch that you can use to route traffic to cells. When a routing control state is set to ON, traffic flows to a cell. When the state is set to OFF, traffic does not flow."]moduleAccessDeniedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You don't have sufficient permissions to perform this action."]moduleConflictException=structtypenonrect={message:String_.toption[@ocaml.doc"Description of the ConflictException error"];resourceId:String_.toption[@ocaml.doc"Identifier of the resource in use"];resourceType:String_.toption[@ocaml.doc"Type of the resource in use"]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"There was a conflict with this request. Try again."]moduleEndpointTemporarilyUnavailableException=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 cluster endpoint isn't available. Try another cluster endpoint."]moduleInternalServerException=structtypenonrect={message:String_.toption;retryAfterSeconds:RetryAfterSeconds.toption}letmake?message=fun?retryAfterSeconds->fun()->{message;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("retryAfterSeconds",(Option.mapx.retryAfterSeconds~f:RetryAfterSeconds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:RetryAfterSeconds.of_xml)(Xml.childxml_arg0"retryAfterSeconds")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"RetryAfterSeconds.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryAfterSeconds?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"There was an unexpected error during processing of the request."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"Hypothetical resource identifier that was not found"];resourceType:String_.toption[@ocaml.doc"Hypothetical resource type that was not found"]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request references a routing control or control panel that was not found."]moduleServiceLimitExceededException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"The resource identifier of the limit that was exceeded."];resourceType:String_.toption[@ocaml.doc"The resource type of the limit that was exceeded."];limitCode:String_.toption[@ocaml.doc"The code of the limit that was exceeded."];serviceCode:String_.toption[@ocaml.doc"The service code of the limit that was exceeded."]}letmake?message=fun?resourceId->fun?resourceType->fun?limitCode->fun?serviceCode->fun()->{message;resourceId;resourceType;limitCode;serviceCode}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceId",(Option.mapx.resourceId~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value));("limitCode",(Option.mapx.limitCode~f:String_.to_value));("serviceCode",(Option.mapx.serviceCode~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceCode")inletlimitCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"limitCode")inletresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?serviceCode?limitCode?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceCode=field_mapjson__"serviceCode"String_.of_jsoninletlimitCode=field_mapjson__"limitCode"String_.of_jsoninletresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceId=field_mapjson__"resourceId"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?serviceCode?limitCode?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request can't update that many routing control states at the same time. Try again with fewer routing control states."]moduleThrottlingException=structtypenonrect={message:String_.toption;retryAfterSeconds:RetryAfterSeconds.toption}letmake?message=fun?retryAfterSeconds->fun()->{message;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("retryAfterSeconds",(Option.mapx.retryAfterSeconds~f:RetryAfterSeconds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:RetryAfterSeconds.of_xml)(Xml.childxml_arg0"retryAfterSeconds")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"RetryAfterSeconds.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryAfterSeconds?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied because of request throttling."]moduleValidationException=structtypenonrect={message:String_.toption;reason:ValidationExceptionReason.toption;fields:ValidationExceptionFieldList.toption}letmake?message=fun?reason->fun?fields->fun()->{message;reason;fields}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("reason",(Option.mapx.reason~f:ValidationExceptionReason.to_value));("fields",(Option.mapx.fields~f:ValidationExceptionFieldList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=(Option.map~f:ValidationExceptionFieldList.of_xml)(Xml.childxml_arg0"fields")inletreason=(Option.map~f:ValidationExceptionReason.of_xml)(Xml.childxml_arg0"reason")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?fields?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_mapjson__"fields"ValidationExceptionFieldList.of_jsoninletreason=field_mapjson__"reason"ValidationExceptionReason.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?fields?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"There was a validation error on the request."]moduleArns=structtypenonrect=Arn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Arn.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:Arn.of_xml)letof_jsonj=list_of_json~kind:"Arns"~of_json:Arn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateRoutingControlStateEntries=structtypenonrect=UpdateRoutingControlStateEntry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UpdateRoutingControlStateEntry.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:UpdateRoutingControlStateEntry.of_xml)letof_jsonj=list_of_json~kind:"UpdateRoutingControlStateEntries"~of_json:UpdateRoutingControlStateEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePageToken=structtypenonrect=stringletcontext_="PageToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:8096)>>=(fun()->check_patterni~pattern:"[\\S]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PageToken"jletto_json=simple_to_jsonto_valueendmoduleRoutingControls=structtypenonrect=RoutingControl.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RoutingControl.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:RoutingControl.of_xml)letof_jsonj=list_of_json~kind:"RoutingControls"~of_json:RoutingControl.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith(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_valueendmoduleUpdateRoutingControlStatesResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`EndpointTemporarilyUnavailableExceptionofEndpointTemporarilyUnavailableException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceLimitExceededExceptionofServiceLimitExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"EndpointTemporarilyUnavailableException"->`EndpointTemporarilyUnavailableException(EndpointTemporarilyUnavailableException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceLimitExceededException"->`ServiceLimitExceededException(ServiceLimitExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"EndpointTemporarilyUnavailableException"->`EndpointTemporarilyUnavailableException(EndpointTemporarilyUnavailableException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceLimitExceededException"->`ServiceLimitExceededException(ServiceLimitExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`EndpointTemporarilyUnavailableExceptione->`Assoc[("error",(`String"EndpointTemporarilyUnavailableException"));("details",(EndpointTemporarilyUnavailableException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceLimitExceededExceptione->`Assoc[("error",(`String"ServiceLimitExceededException"));("details",(ServiceLimitExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Set multiple routing control states. You can set the value for each state to be ON or OFF. When the state is ON, traffic flows to a cell. When it's OFF, traffic does not flow. With Route 53 ARC, you can add safety rules for routing controls, which are safeguards for routing control state updates that help prevent unexpected outcomes, like fail open traffic routing. However, there are scenarios when you might want to bypass the routing control safeguards that are enforced with safety rules that you've configured. For example, you might want to fail over quickly for disaster recovery, and one or more safety rules might be unexpectedly preventing you from updating a routing control state to reroute traffic. In a \"break glass\" scenario like this, you can override one or more safety rules to change a routing control state and fail over your application. The SafetyRulesToOverride property enables you override one or more safety rules and update routing control states. For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide. You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Route 53 ARC. To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide. Viewing and updating routing control states Working with routing controls overall"]moduleUpdateRoutingControlStatesRequest=structtypenonrect={updateRoutingControlStateEntries:UpdateRoutingControlStateEntries.t[@ocaml.doc"A set of routing control entries that you want to update."];safetyRulesToOverride:Arns.toption[@ocaml.doc"The Amazon Resource Names (ARNs) for the safety rules that you want to override when you're updating routing control states. You can override one safety rule or multiple safety rules by including one or more ARNs, separated by commas. For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide."]}letcontext_="UpdateRoutingControlStatesRequest"letmake?safetyRulesToOverride=fun~updateRoutingControlStateEntries->fun()->{safetyRulesToOverride;updateRoutingControlStateEntries}letto_valuex=structure_to_value[("UpdateRoutingControlStateEntries",(Some(UpdateRoutingControlStateEntries.to_valuex.updateRoutingControlStateEntries)));("SafetyRulesToOverride",(Option.mapx.safetyRulesToOverride~f:Arns.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsafetyRulesToOverride=(Option.map~f:Arns.of_xml)(Xml.childxml_arg0"SafetyRulesToOverride")inletupdateRoutingControlStateEntries=UpdateRoutingControlStateEntries.of_xml(Xml.child_exn~context:context_xml_arg0"UpdateRoutingControlStateEntries")inmake?safetyRulesToOverride~updateRoutingControlStateEntries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsafetyRulesToOverride=field_mapjson__"SafetyRulesToOverride"Arns.of_jsoninletupdateRoutingControlStateEntries=field_map_exnjson__"UpdateRoutingControlStateEntries"UpdateRoutingControlStateEntries.of_jsoninmake?safetyRulesToOverride~updateRoutingControlStateEntries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Set multiple routing control states. You can set the value for each state to be ON or OFF. When the state is ON, traffic flows to a cell. When it's OFF, traffic does not flow. With Route 53 ARC, you can add safety rules for routing controls, which are safeguards for routing control state updates that help prevent unexpected outcomes, like fail open traffic routing. However, there are scenarios when you might want to bypass the routing control safeguards that are enforced with safety rules that you've configured. For example, you might want to fail over quickly for disaster recovery, and one or more safety rules might be unexpectedly preventing you from updating a routing control state to reroute traffic. In a \"break glass\" scenario like this, you can override one or more safety rules to change a routing control state and fail over your application. The SafetyRulesToOverride property enables you override one or more safety rules and update routing control states. For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide. You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Route 53 ARC. To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide. Viewing and updating routing control states Working with routing controls overall"]moduleUpdateRoutingControlStateResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`EndpointTemporarilyUnavailableExceptionofEndpointTemporarilyUnavailableException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"EndpointTemporarilyUnavailableException"->`EndpointTemporarilyUnavailableException(EndpointTemporarilyUnavailableException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"EndpointTemporarilyUnavailableException"->`EndpointTemporarilyUnavailableException(EndpointTemporarilyUnavailableException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`EndpointTemporarilyUnavailableExceptione->`Assoc[("error",(`String"EndpointTemporarilyUnavailableException"));("details",(EndpointTemporarilyUnavailableException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Set the state of the routing control to reroute traffic. You can set the value to ON or OFF. When the state is ON, traffic flows to a cell. When the state is OFF, traffic does not flow. With Route 53 ARC, you can add safety rules for routing controls, which are safeguards for routing control state updates that help prevent unexpected outcomes, like fail open traffic routing. However, there are scenarios when you might want to bypass the routing control safeguards that are enforced with safety rules that you've configured. For example, you might want to fail over quickly for disaster recovery, and one or more safety rules might be unexpectedly preventing you from updating a routing control state to reroute traffic. In a \"break glass\" scenario like this, you can override one or more safety rules to change a routing control state and fail over your application. The SafetyRulesToOverride property enables you override one or more safety rules and update routing control states. For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide. You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Route 53 ARC. To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide. Viewing and updating routing control states Working with routing controls overall"]moduleUpdateRoutingControlStateRequest=structtypenonrect={routingControlArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) for the routing control that you want to update the state for."];routingControlState:RoutingControlState.t[@ocaml.doc"The state of the routing control. You can set the value to ON or OFF."];safetyRulesToOverride:Arns.toption[@ocaml.doc"The Amazon Resource Names (ARNs) for the safety rules that you want to override when you're updating the state of a routing control. You can override one safety rule or multiple safety rules by including one or more ARNs, separated by commas. For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide."]}letcontext_="UpdateRoutingControlStateRequest"letmake?safetyRulesToOverride=fun~routingControlArn->fun~routingControlState->fun()->{safetyRulesToOverride;routingControlArn;routingControlState}letto_valuex=structure_to_value[("RoutingControlArn",(Some(Arn.to_valuex.routingControlArn)));("RoutingControlState",(Some(RoutingControlState.to_valuex.routingControlState)));("SafetyRulesToOverride",(Option.mapx.safetyRulesToOverride~f:Arns.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsafetyRulesToOverride=(Option.map~f:Arns.of_xml)(Xml.childxml_arg0"SafetyRulesToOverride")inletroutingControlState=RoutingControlState.of_xml(Xml.child_exn~context:context_xml_arg0"RoutingControlState")inletroutingControlArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"RoutingControlArn")inmake?safetyRulesToOverride~routingControlState~routingControlArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsafetyRulesToOverride=field_mapjson__"SafetyRulesToOverride"Arns.of_jsoninletroutingControlState=field_map_exnjson__"RoutingControlState"RoutingControlState.of_jsoninletroutingControlArn=field_map_exnjson__"RoutingControlArn"Arn.of_jsoninmake?safetyRulesToOverride~routingControlState~routingControlArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Set the state of the routing control to reroute traffic. You can set the value to ON or OFF. When the state is ON, traffic flows to a cell. When the state is OFF, traffic does not flow. With Route 53 ARC, you can add safety rules for routing controls, which are safeguards for routing control state updates that help prevent unexpected outcomes, like fail open traffic routing. However, there are scenarios when you might want to bypass the routing control safeguards that are enforced with safety rules that you've configured. For example, you might want to fail over quickly for disaster recovery, and one or more safety rules might be unexpectedly preventing you from updating a routing control state to reroute traffic. In a \"break glass\" scenario like this, you can override one or more safety rules to change a routing control state and fail over your application. The SafetyRulesToOverride property enables you override one or more safety rules and update routing control states. For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide. You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Route 53 ARC. To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide. Viewing and updating routing control states Working with routing controls overall"]moduleListRoutingControlsResponse=structtypenonrect={routingControls:RoutingControls.toption[@ocaml.doc"The list of routing controls."];nextToken:PageToken.toption[@ocaml.doc"The token for the next set of results. You receive this token from a previous call."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`EndpointTemporarilyUnavailableExceptionofEndpointTemporarilyUnavailableException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?routingControls=fun?nextToken->fun()->{routingControls;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"EndpointTemporarilyUnavailableException"->`EndpointTemporarilyUnavailableException(EndpointTemporarilyUnavailableException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"EndpointTemporarilyUnavailableException"->`EndpointTemporarilyUnavailableException(EndpointTemporarilyUnavailableException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`EndpointTemporarilyUnavailableExceptione->`Assoc[("error",(`String"EndpointTemporarilyUnavailableException"));("details",(EndpointTemporarilyUnavailableException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RoutingControls",(Option.mapx.routingControls~f:RoutingControls.to_value));("NextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"NextToken")inletroutingControls=(Option.map~f:RoutingControls.of_xml)(Xml.childxml_arg0"RoutingControls")inmake?nextToken?routingControls()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PageToken.of_jsoninletroutingControls=field_mapjson__"RoutingControls"RoutingControls.of_jsoninmake?nextToken?routingControls()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List routing control names and Amazon Resource Names (ARNs), as well as the routing control state for each routing control, along with the control panel name and control panel ARN for the routing controls. If you specify a control panel ARN, this call lists the routing controls in the control panel. Otherwise, it lists all the routing controls in the cluster. A routing control is a simple on/off switch in Route 53 ARC that you can use to route traffic to cells. When a routing control state is set to ON, traffic flows to a cell. When the state is set to OFF, traffic does not flow. Before you can create a routing control, you must first create a cluster, and then host the control in a control panel on the cluster. For more information, see Create routing control structures in the Amazon Route 53 Application Recovery Controller Developer Guide. You access one of the endpoints for the cluster to get or update the routing control state to redirect traffic for your application. You must specify Regional endpoints when you work with API cluster operations to use this API operation to list routing controls in Route 53 ARC. Learn more about working with routing controls in the following topics in the Amazon Route 53 Application Recovery Controller Developer Guide: Viewing and updating routing control states Working with routing controls in Route 53 ARC"]moduleListRoutingControlsRequest=structtypenonrect={controlPanelArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the control panel of the routing controls to list."];nextToken:PageToken.toption[@ocaml.doc"The token for the next set of results. You receive this token from a previous call."];maxResults:MaxResults.toption[@ocaml.doc"The number of routing controls objects that you want to return with this call. The default value is 500."]}letmake?controlPanelArn=fun?nextToken->fun?maxResults->fun()->{controlPanelArn;nextToken;maxResults}letto_valuex=structure_to_value[("ControlPanelArn",(Option.mapx.controlPanelArn~f:Arn.to_value));("NextToken",(Option.mapx.nextToken~f:PageToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"NextToken")inletcontrolPanelArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"ControlPanelArn")inmake?maxResults?nextToken?controlPanelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PageToken.of_jsoninletcontrolPanelArn=field_mapjson__"ControlPanelArn"Arn.of_jsoninmake?maxResults?nextToken?controlPanelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List routing control names and Amazon Resource Names (ARNs), as well as the routing control state for each routing control, along with the control panel name and control panel ARN for the routing controls. If you specify a control panel ARN, this call lists the routing controls in the control panel. Otherwise, it lists all the routing controls in the cluster. A routing control is a simple on/off switch in Route 53 ARC that you can use to route traffic to cells. When a routing control state is set to ON, traffic flows to a cell. When the state is set to OFF, traffic does not flow. Before you can create a routing control, you must first create a cluster, and then host the control in a control panel on the cluster. For more information, see Create routing control structures in the Amazon Route 53 Application Recovery Controller Developer Guide. You access one of the endpoints for the cluster to get or update the routing control state to redirect traffic for your application. You must specify Regional endpoints when you work with API cluster operations to use this API operation to list routing controls in Route 53 ARC. Learn more about working with routing controls in the following topics in the Amazon Route 53 Application Recovery Controller Developer Guide: Viewing and updating routing control states Working with routing controls in Route 53 ARC"]moduleGetRoutingControlStateResponse=structtypenonrect={routingControlArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the response."];routingControlState:RoutingControlState.toption[@ocaml.doc"The state of the routing control."];routingControlName:RoutingControlName.toption[@ocaml.doc"The routing control name."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`EndpointTemporarilyUnavailableExceptionofEndpointTemporarilyUnavailableException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?routingControlArn=fun?routingControlState->fun?routingControlName->fun()->{routingControlArn;routingControlState;routingControlName}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"EndpointTemporarilyUnavailableException"->`EndpointTemporarilyUnavailableException(EndpointTemporarilyUnavailableException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"EndpointTemporarilyUnavailableException"->`EndpointTemporarilyUnavailableException(EndpointTemporarilyUnavailableException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`EndpointTemporarilyUnavailableExceptione->`Assoc[("error",(`String"EndpointTemporarilyUnavailableException"));("details",(EndpointTemporarilyUnavailableException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RoutingControlArn",(Option.mapx.routingControlArn~f:Arn.to_value));("RoutingControlState",(Option.mapx.routingControlState~f:RoutingControlState.to_value));("RoutingControlName",(Option.mapx.routingControlName~f:RoutingControlName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroutingControlName=(Option.map~f:RoutingControlName.of_xml)(Xml.childxml_arg0"RoutingControlName")inletroutingControlState=(Option.map~f:RoutingControlState.of_xml)(Xml.childxml_arg0"RoutingControlState")inletroutingControlArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"RoutingControlArn")inmake?routingControlName?routingControlState?routingControlArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroutingControlName=field_mapjson__"RoutingControlName"RoutingControlName.of_jsoninletroutingControlState=field_mapjson__"RoutingControlState"RoutingControlState.of_jsoninletroutingControlArn=field_mapjson__"RoutingControlArn"Arn.of_jsoninmake?routingControlName?routingControlState?routingControlArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Get the state for a routing control. A routing control is a simple on/off switch that you can use to route traffic to cells. When a routing control state is set to ON, traffic flows to a cell. When the state is set to OFF, traffic does not flow. Before you can create a routing control, you must first create a cluster, and then host the control in a control panel on the cluster. For more information, see Create routing control structures in the Amazon Route 53 Application Recovery Controller Developer Guide. You access one of the endpoints for the cluster to get or update the routing control state to redirect traffic for your application. You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Route 53 ARC. To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide. Learn more about working with routing controls in the following topics in the Amazon Route 53 Application Recovery Controller Developer Guide: Viewing and updating routing control states Working with routing controls in Route 53 ARC"]moduleGetRoutingControlStateRequest=structtypenonrect={routingControlArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) for the routing control that you want to get the state for."]}letcontext_="GetRoutingControlStateRequest"letmake~routingControlArn=fun()->{routingControlArn}letto_valuex=structure_to_value[("RoutingControlArn",(Some(Arn.to_valuex.routingControlArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroutingControlArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"RoutingControlArn")inmake~routingControlArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroutingControlArn=field_map_exnjson__"RoutingControlArn"Arn.of_jsoninmake~routingControlArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Get the state for a routing control. A routing control is a simple on/off switch that you can use to route traffic to cells. When a routing control state is set to ON, traffic flows to a cell. When the state is set to OFF, traffic does not flow. Before you can create a routing control, you must first create a cluster, and then host the control in a control panel on the cluster. For more information, see Create routing control structures in the Amazon Route 53 Application Recovery Controller Developer Guide. You access one of the endpoints for the cluster to get or update the routing control state to redirect traffic for your application. You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Route 53 ARC. To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide. Learn more about working with routing controls in the following topics in the Amazon Route 53 Application Recovery Controller Developer Guide: Viewing and updating routing control states Working with routing controls in Route 53 ARC"]