12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691(* 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.pricingletapiVersion="2017-10-15"letendpointPrefix="api.pricing"letserviceFullName="AWS Price List Service"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="AWS Pricing"lettargetPrefix="AWSPriceListService"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[]))])moduleFileFormat=structtypenonrect=stringletcontext_="FileFormat"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"FileFormat"jletto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleCurrencyCode=structtypenonrect=stringletcontext_="CurrencyCode"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[A-Z]{3}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CurrencyCode"jletto_json=simple_to_jsonto_valueendmoduleFileFormats=structtypenonrect=FileFormat.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FileFormat.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:FileFormat.of_xml)letof_jsonj=list_of_json~kind:"FileFormats"~of_json:FileFormat.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePriceListArn=structtypenonrect=stringletcontext_="PriceListArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:18)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:[A-Za-z0-9][-.A-Za-z0-9]{0,62}:pricing:::price-list/[A-Za-z0-9+_/.-]{1,1023}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PriceListArn"jletto_json=simple_to_jsonto_valueendmoduleRegionCode=structtypenonrect=stringletcontext_="RegionCode"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"RegionCode"jletto_json=simple_to_jsonto_valueendmoduleField=structtypenonrect=stringletcontext_="Field"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:"Field"jletto_json=simple_to_jsonto_valueendmoduleFilterType=structtypenonrect=|TERM_MATCH|EQUALS|CONTAINS|ANY_OF|NONE_OF|Non_static_idofstringletmakei=iletto_string=function|TERM_MATCH->"TERM_MATCH"|EQUALS->"EQUALS"|CONTAINS->"CONTAINS"|ANY_OF->"ANY_OF"|NONE_OF->"NONE_OF"|Non_static_ids->sletof_string=function|"TERM_MATCH"->TERM_MATCH|"EQUALS"->EQUALS|"CONTAINS"->CONTAINS|"ANY_OF"->ANY_OF|"NONE_OF"->NONE_OF|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 FilterType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FilterType"j)letto_json=simple_to_jsonto_valueendmoduleValue=structtypenonrect=stringletcontext_="Value"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:"Value"jletto_json=simple_to_jsonto_valueendmoduleAttributeNameList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.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:String_.of_xml)letof_jsonj=list_of_json~kind:"AttributeNameList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleErrorMessage=structtypenonrect=stringletcontext_="errorMessage"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:"errorMessage"jletto_json=simple_to_jsonto_valueendmodulePriceList=structtypenonrect={priceListArn:PriceListArn.toption[@ocaml.doc"The unique identifier that maps to where your Price List files are located. PriceListArn can be obtained from the ListPriceList response."];regionCode:RegionCode.toption[@ocaml.doc"This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list only for the US East (N. Virginia) Region, use us-east-1. If nothing is specified, you retrieve price lists for all applicable Regions. The available RegionCode list can be retrieved from GetAttributeValues API."];currencyCode:CurrencyCode.toption[@ocaml.doc"The three alphabetical character ISO-4217 currency code the Price List files are denominated in."];fileFormats:FileFormats.toption[@ocaml.doc"The format you want to retrieve your Price List files. The FileFormat can be obtained from the ListPriceList response."]}letmake?priceListArn=fun?regionCode->fun?currencyCode->fun?fileFormats->fun()->{priceListArn;regionCode;currencyCode;fileFormats}letto_valuex=structure_to_value[("PriceListArn",(Option.mapx.priceListArn~f:PriceListArn.to_value));("RegionCode",(Option.mapx.regionCode~f:RegionCode.to_value));("CurrencyCode",(Option.mapx.currencyCode~f:CurrencyCode.to_value));("FileFormats",(Option.mapx.fileFormats~f:FileFormats.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileFormats=(Option.map~f:FileFormats.of_xml)(Xml.childxml_arg0"FileFormats")inletcurrencyCode=(Option.map~f:CurrencyCode.of_xml)(Xml.childxml_arg0"CurrencyCode")inletregionCode=(Option.map~f:RegionCode.of_xml)(Xml.childxml_arg0"RegionCode")inletpriceListArn=(Option.map~f:PriceListArn.of_xml)(Xml.childxml_arg0"PriceListArn")inmake?fileFormats?currencyCode?regionCode?priceListArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileFormats=field_mapjson__"FileFormats"FileFormats.of_jsoninletcurrencyCode=field_mapjson__"CurrencyCode"CurrencyCode.of_jsoninletregionCode=field_mapjson__"RegionCode"RegionCode.of_jsoninletpriceListArn=field_mapjson__"PriceListArn"PriceListArn.of_jsoninmake?fileFormats?currencyCode?regionCode?priceListArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the Amazon Web Services Service Terms (Section 1.10). This is the type of price list references that match your request."]moduleSynthesizedJsonPriceListJsonItem=structtypenonrect=stringletcontext_="SynthesizedJsonPriceListJsonItem"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:"SynthesizedJsonPriceListJsonItem"jletto_json=simple_to_jsonto_valueendmoduleFilter=structtypenonrect={type_:FilterType.t[@ocaml.doc"The type of filter that you want to use. Valid values are: TERM_MATCH: Returns only products that match both the given filter field and the given value. EQUALS: Returns products that have a field value exactly matching the provided value. CONTAINS: Returns products where the field value contains the provided value as a substring. ANY_OF: Returns products where the field value is any of the provided values. NONE_OF: Returns products where the field value is not any of the provided values."];field:Field.t[@ocaml.doc"The product metadata field that you want to filter on. You can filter by just the service code to see all products for a specific service, filter by just the attribute name to see a specific attribute for multiple services, or use both a service code and an attribute name to retrieve only products that match both fields. Valid values include: ServiceCode, and all attribute names For example, you can filter by the AmazonEC2 service code and the volumeType attribute name to get the prices for only Amazon EC2 volumes."];value:Value.t[@ocaml.doc"The service code or attribute value that you want to filter by. If you're filtering by service code this is the actual service code, such as AmazonEC2. If you're filtering by attribute name, this is the attribute value that you want the returned products to match, such as a Provisioned IOPS volume."]}letcontext_="Filter"letmake~type_=fun~field->fun~value->fun()->{type_;field;value}letto_valuex=structure_to_value[("Type",(Some(FilterType.to_valuex.type_)));("Field",(Some(Field.to_valuex.field)));("Value",(Some(Value.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=Value.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletfield=Field.of_xml(Xml.child_exn~context:context_xml_arg0"Field")inlettype_=FilterType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inmake~value~field~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"Value.of_jsoninletfield=field_map_exnjson__"Field"Field.of_jsoninlettype_=field_map_exnjson__"Type"FilterType.of_jsoninmake~value~field~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The constraints that you want all returned products to match."]moduleAttributeValue=structtypenonrect={value:String_.toption[@ocaml.doc"The specific value of an attributeName."]}letmake?value=fun()->{value}letto_valuex=structure_to_value[("Value",(Option.mapx.value~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Value")inmake?value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"String_.of_jsoninmake?value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The values of a given attribute, such as Throughput Optimized HDD or Provisioned IOPS for the Amazon EC2 volumeType attribute."]moduleService=structtypenonrect={serviceCode:String_.toption[@ocaml.doc"The code for the Amazon Web Services service."];attributeNames:AttributeNameList.toption[@ocaml.doc"The attributes that are available for this service."]}letmake?serviceCode=fun?attributeNames->fun()->{serviceCode;attributeNames}letto_valuex=structure_to_value[("ServiceCode",(Option.mapx.serviceCode~f:String_.to_value));("AttributeNames",(Option.mapx.attributeNames~f:AttributeNameList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributeNames=(Option.map~f:AttributeNameList.of_xml)(Xml.childxml_arg0"AttributeNames")inletserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ServiceCode")inmake?attributeNames?serviceCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributeNames=field_mapjson__"AttributeNames"AttributeNameList.of_jsoninletserviceCode=field_mapjson__"ServiceCode"String_.of_jsoninmake?attributeNames?serviceCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The metadata for a service, such as the service code and available attribute names."]moduleAccessDeniedException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"General authentication failure. The request wasn't signed correctly."]moduleExpiredNextTokenException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The pagination token expired. Try again without a pagination token."]moduleInternalErrorException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An error on the server occurred during the processing of your request. Try again later."]moduleInvalidNextTokenException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The pagination token is invalid. Try again without a pagination token."]moduleInvalidParameterException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One or more parameters had an invalid value."]moduleNotFoundException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested resource can't be found."]modulePriceLists=structtypenonrect=PriceList.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PriceList.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:PriceList.of_xml)letof_jsonj=list_of_json~kind:"PriceLists"~of_json:PriceList.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested resource can't be found."]moduleThrottlingException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You've made too many requests exceeding service quotas."]moduleEffectiveDate=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleMaxResults=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_valueendmoduleServiceCode=structtypenonrect=stringletcontext_="ServiceCode"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:32)>>=(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:"ServiceCode"jletto_json=simple_to_jsonto_valueendmoduleFormatVersion=structtypenonrect=stringletcontext_="FormatVersion"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:32)>>=(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:"FormatVersion"jletto_json=simple_to_jsonto_valueendmodulePriceListJsonItems=structtypenonrect=SynthesizedJsonPriceListJsonItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SynthesizedJsonPriceListJsonItem.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:SynthesizedJsonPriceListJsonItem.of_xml)letof_jsonj=list_of_json~kind:"PriceListJsonItems"~of_json:SynthesizedJsonPriceListJsonItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFilters=structtypenonrect=Filter.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Filter.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:Filter.of_xml)letof_jsonj=list_of_json~kind:"Filters"~of_json:Filter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGetProductsMaxResults=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 GetProductsMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAttributeValueList=structtypenonrect=AttributeValue.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttributeValue.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:AttributeValue.of_xml)letof_jsonj=list_of_json~kind:"AttributeValueList"~of_json:AttributeValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGetAttributeValuesMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10000)>>=(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 GetAttributeValuesMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleServiceList=structtypenonrect=Service.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Service.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:Service.of_xml)letof_jsonj=list_of_json~kind:"ServiceList"~of_json:Service.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDescribeServicesMaxResults=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 DescribeServicesMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListPriceListsResponse=structtypenonrect={priceLists:PriceLists.toption[@ocaml.doc"The type of price list references that match your request."];nextToken:String_.toption[@ocaml.doc"The pagination token that indicates the next set of results to retrieve."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?priceLists=fun?nextToken->fun()->{priceLists;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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[("PriceLists",(Option.mapx.priceLists~f:PriceLists.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")inletpriceLists=(Option.map~f:PriceLists.of_xml)(Xml.childxml_arg0"PriceLists")inmake?nextToken?priceLists()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletpriceLists=field_mapjson__"PriceLists"PriceLists.of_jsoninmake?nextToken?priceLists()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the Amazon Web Services Service Terms (Section 1.10). This returns a list of Price List references that the requester if authorized to view, given a ServiceCode, CurrencyCode, and an EffectiveDate. Use without a RegionCode filter to list Price List references from all available Amazon Web Services Regions. Use with a RegionCode filter to get the Price List reference that's specific to a specific Amazon Web Services Region. You can use the PriceListArn from the response to get your preferred Price List files through the GetPriceListFileUrl API."]moduleListPriceListsRequest=structtypenonrect={serviceCode:ServiceCode.t[@ocaml.doc"The service code or the Savings Plans service code for the attributes that you want to retrieve. For example, to get the list of applicable Amazon EC2 price lists, use AmazonEC2. For a full list of service codes containing On-Demand and Reserved Instance (RI) pricing, use the DescribeServices API. To retrieve the Reserved Instance and Compute Savings Plans price lists, use ComputeSavingsPlans. To retrieve Machine Learning Savings Plans price lists, use MachineLearningSavingsPlans."];effectiveDate:EffectiveDate.t[@ocaml.doc"The date that the Price List file prices are effective from."];regionCode:RegionCode.toption[@ocaml.doc"This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list only for the US East (N. Virginia) Region, use us-east-1. If nothing is specified, you retrieve price lists for all applicable Regions. The available RegionCode list can be retrieved from GetAttributeValues API."];currencyCode:CurrencyCode.t[@ocaml.doc"The three alphabetical character ISO-4217 currency code that the Price List files are denominated in."];nextToken:String_.toption[@ocaml.doc"The pagination token that indicates the next set of results that you want to retrieve."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return in the response."]}letcontext_="ListPriceListsRequest"letmake?regionCode=fun?nextToken->fun?maxResults->fun~serviceCode->fun~effectiveDate->fun~currencyCode->fun()->{regionCode;nextToken;maxResults;serviceCode;effectiveDate;currencyCode}letto_valuex=structure_to_value[("ServiceCode",(Some(ServiceCode.to_valuex.serviceCode)));("EffectiveDate",(Some(EffectiveDate.to_valuex.effectiveDate)));("RegionCode",(Option.mapx.regionCode~f:RegionCode.to_value));("CurrencyCode",(Some(CurrencyCode.to_valuex.currencyCode)));("NextToken",(Option.mapx.nextToken~f:String_.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:String_.of_xml)(Xml.childxml_arg0"NextToken")inletcurrencyCode=CurrencyCode.of_xml(Xml.child_exn~context:context_xml_arg0"CurrencyCode")inletregionCode=(Option.map~f:RegionCode.of_xml)(Xml.childxml_arg0"RegionCode")inleteffectiveDate=EffectiveDate.of_xml(Xml.child_exn~context:context_xml_arg0"EffectiveDate")inletserviceCode=ServiceCode.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceCode")inmake?maxResults?nextToken~currencyCode?regionCode~effectiveDate~serviceCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninletcurrencyCode=field_map_exnjson__"CurrencyCode"CurrencyCode.of_jsoninletregionCode=field_mapjson__"RegionCode"RegionCode.of_jsoninleteffectiveDate=field_map_exnjson__"EffectiveDate"EffectiveDate.of_jsoninletserviceCode=field_map_exnjson__"ServiceCode"ServiceCode.of_jsoninmake?maxResults?nextToken~currencyCode?regionCode~effectiveDate~serviceCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the Amazon Web Services Service Terms (Section 1.10). This returns a list of Price List references that the requester if authorized to view, given a ServiceCode, CurrencyCode, and an EffectiveDate. Use without a RegionCode filter to list Price List references from all available Amazon Web Services Regions. Use with a RegionCode filter to get the Price List reference that's specific to a specific Amazon Web Services Region. You can use the PriceListArn from the response to get your preferred Price List files through the GetPriceListFileUrl API."]moduleGetProductsResponse=structtypenonrect={formatVersion:FormatVersion.toption[@ocaml.doc"The format version of the response. For example, aws_v1."];priceList:PriceListJsonItems.toption[@ocaml.doc"The list of products that match your filters. The list contains both the product metadata and the price information."];nextToken:String_.toption[@ocaml.doc"The pagination token that indicates the next set of results to retrieve."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?formatVersion=fun?priceList->fun?nextToken->fun()->{formatVersion;priceList;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.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)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.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))]|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.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[("FormatVersion",(Option.mapx.formatVersion~f:FormatVersion.to_value));("PriceList",(Option.mapx.priceList~f:PriceListJsonItems.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")inletpriceList=(Option.map~f:PriceListJsonItems.of_xml)(Xml.childxml_arg0"PriceList")inletformatVersion=(Option.map~f:FormatVersion.of_xml)(Xml.childxml_arg0"FormatVersion")inmake?nextToken?priceList?formatVersion()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletpriceList=field_mapjson__"PriceList"PriceListJsonItems.of_jsoninletformatVersion=field_mapjson__"FormatVersion"FormatVersion.of_jsoninmake?nextToken?priceList?formatVersion()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of all products that match the filter criteria."]moduleGetProductsRequest=structtypenonrect={serviceCode:String_.t[@ocaml.doc"The code for the service whose products you want to retrieve."];filters:Filters.toption[@ocaml.doc"The list of filters that limit the returned products. only products that match all filters are returned."];formatVersion:FormatVersion.toption[@ocaml.doc"The format version that you want the response to be in. Valid values are: aws_v1"];nextToken:String_.toption[@ocaml.doc"The pagination token that indicates the next set of results that you want to retrieve."];maxResults:GetProductsMaxResults.toption[@ocaml.doc"The maximum number of results to return in the response."]}letcontext_="GetProductsRequest"letmake?filters=fun?formatVersion->fun?nextToken->fun?maxResults->fun~serviceCode->fun()->{filters;formatVersion;nextToken;maxResults;serviceCode}letto_valuex=structure_to_value[("ServiceCode",(Some(String_.to_valuex.serviceCode)));("Filters",(Option.mapx.filters~f:Filters.to_value));("FormatVersion",(Option.mapx.formatVersion~f:FormatVersion.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value));("MaxResults",(Option.mapx.maxResults~f:GetProductsMaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:GetProductsMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletformatVersion=(Option.map~f:FormatVersion.of_xml)(Xml.childxml_arg0"FormatVersion")inletfilters=(Option.map~f:Filters.of_xml)(Xml.childxml_arg0"Filters")inletserviceCode=String_.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceCode")inmake?maxResults?nextToken?formatVersion?filters~serviceCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"GetProductsMaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninletformatVersion=field_mapjson__"FormatVersion"FormatVersion.of_jsoninletfilters=field_mapjson__"Filters"Filters.of_jsoninletserviceCode=field_map_exnjson__"ServiceCode"String_.of_jsoninmake?maxResults?nextToken?formatVersion?filters~serviceCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of all products that match the filter criteria."]moduleGetPriceListFileUrlResponse=structtypenonrect={url:String_.toption[@ocaml.doc"The URL to download your Price List file from."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?url=fun()->{url}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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[("Url",(Option.mapx.url~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leturl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Url")inmake?url()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leturl=field_mapjson__"Url"String_.of_jsoninmake?url()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the Amazon Web Services Service Terms (Section 1.10). This returns the URL that you can retrieve your Price List file from. This URL is based on the PriceListArn and FileFormat that you retrieve from the ListPriceLists response."]moduleGetPriceListFileUrlRequest=structtypenonrect={priceListArn:PriceListArn.t[@ocaml.doc"The unique identifier that maps to where your Price List files are located. PriceListArn can be obtained from the ListPriceLists response."];fileFormat:FileFormat.t[@ocaml.doc"The format that you want to retrieve your Price List files in. The FileFormat can be obtained from the ListPriceLists response."]}letcontext_="GetPriceListFileUrlRequest"letmake~priceListArn=fun~fileFormat->fun()->{priceListArn;fileFormat}letto_valuex=structure_to_value[("PriceListArn",(Some(PriceListArn.to_valuex.priceListArn)));("FileFormat",(Some(FileFormat.to_valuex.fileFormat)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileFormat=FileFormat.of_xml(Xml.child_exn~context:context_xml_arg0"FileFormat")inletpriceListArn=PriceListArn.of_xml(Xml.child_exn~context:context_xml_arg0"PriceListArn")inmake~fileFormat~priceListArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileFormat=field_map_exnjson__"FileFormat"FileFormat.of_jsoninletpriceListArn=field_map_exnjson__"PriceListArn"PriceListArn.of_jsoninmake~fileFormat~priceListArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the Amazon Web Services Service Terms (Section 1.10). This returns the URL that you can retrieve your Price List file from. This URL is based on the PriceListArn and FileFormat that you retrieve from the ListPriceLists response."]moduleGetAttributeValuesResponse=structtypenonrect={attributeValues:AttributeValueList.toption[@ocaml.doc"The list of values for an attribute. For example, Throughput Optimized HDD and Provisioned IOPS are two available values for the AmazonEC2 volumeType."];nextToken:String_.toption[@ocaml.doc"The pagination token that indicates the next set of results to retrieve."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?attributeValues=fun?nextToken->fun()->{attributeValues;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.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)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.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))]|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.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[("AttributeValues",(Option.mapx.attributeValues~f:AttributeValueList.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")inletattributeValues=(Option.map~f:AttributeValueList.of_xml)(Xml.childxml_arg0"AttributeValues")inmake?nextToken?attributeValues()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletattributeValues=field_mapjson__"AttributeValues"AttributeValueList.of_jsoninmake?nextToken?attributeValues()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of attribute values. Attributes are similar to the details in a Price List API offer file. For a list of available attributes, see Offer File Definitions in the Billing and Cost Management User Guide."]moduleGetAttributeValuesRequest=structtypenonrect={serviceCode:String_.t[@ocaml.doc"The service code for the service whose attributes you want to retrieve. For example, if you want the retrieve an EC2 attribute, use AmazonEC2."];attributeName:String_.t[@ocaml.doc"The name of the attribute that you want to retrieve the values for, such as volumeType."];nextToken:String_.toption[@ocaml.doc"The pagination token that indicates the next set of results that you want to retrieve."];maxResults:GetAttributeValuesMaxResults.toption[@ocaml.doc"The maximum number of results to return in response."]}letcontext_="GetAttributeValuesRequest"letmake?nextToken=fun?maxResults->fun~serviceCode->fun~attributeName->fun()->{nextToken;maxResults;serviceCode;attributeName}letto_valuex=structure_to_value[("ServiceCode",(Some(String_.to_valuex.serviceCode)));("AttributeName",(Some(String_.to_valuex.attributeName)));("NextToken",(Option.mapx.nextToken~f:String_.to_value));("MaxResults",(Option.mapx.maxResults~f:GetAttributeValuesMaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:GetAttributeValuesMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletattributeName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"AttributeName")inletserviceCode=String_.of_xml(Xml.child_exn~context:context_xml_arg0"ServiceCode")inmake?maxResults?nextToken~attributeName~serviceCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"GetAttributeValuesMaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninletattributeName=field_map_exnjson__"AttributeName"String_.of_jsoninletserviceCode=field_map_exnjson__"ServiceCode"String_.of_jsoninmake?maxResults?nextToken~attributeName~serviceCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of attribute values. Attributes are similar to the details in a Price List API offer file. For a list of available attributes, see Offer File Definitions in the Billing and Cost Management User Guide."]moduleDescribeServicesResponse=structtypenonrect={services:ServiceList.toption[@ocaml.doc"The service metadata for the service or services in the response."];formatVersion:FormatVersion.toption[@ocaml.doc"The format version of the response. For example, aws_v1."];nextToken:String_.toption[@ocaml.doc"The pagination token for the next set of retrievable results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidNextTokenExceptionofInvalidNextTokenException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotFoundExceptionofNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?services=fun?formatVersion->fun?nextToken->fun()->{services;formatVersion;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.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)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidNextTokenException"->`InvalidNextTokenException(InvalidNextTokenException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.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))]|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidNextTokenExceptione->`Assoc[("error",(`String"InvalidNextTokenException"));("details",(InvalidNextTokenException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.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[("Services",(Option.mapx.services~f:ServiceList.to_value));("FormatVersion",(Option.mapx.formatVersion~f:FormatVersion.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")inletformatVersion=(Option.map~f:FormatVersion.of_xml)(Xml.childxml_arg0"FormatVersion")inletservices=(Option.map~f:ServiceList.of_xml)(Xml.childxml_arg0"Services")inmake?nextToken?formatVersion?services()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletformatVersion=field_mapjson__"FormatVersion"FormatVersion.of_jsoninletservices=field_mapjson__"Services"ServiceList.of_jsoninmake?nextToken?formatVersion?services()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the metadata for one service or a list of the metadata for all services. Use this without a service code to get the service codes for all services. Use it with a service code, such as AmazonEC2, to get information specific to that service, such as the attribute names available for that service. For example, some of the attribute names available for EC2 are volumeType, maxIopsVolume, operation, locationType, and instanceCapacity10xlarge."]moduleDescribeServicesRequest=structtypenonrect={serviceCode:String_.toption[@ocaml.doc"The code for the service whose information you want to retrieve, such as AmazonEC2. You can use the ServiceCode to filter the results in a GetProducts call. To retrieve a list of all services, leave this blank."];formatVersion:FormatVersion.toption[@ocaml.doc"The format version that you want the response to be in. Valid values are: aws_v1"];nextToken:String_.toption[@ocaml.doc"The pagination token that indicates the next set of results that you want to retrieve."];maxResults:DescribeServicesMaxResults.toption[@ocaml.doc"The maximum number of results that you want returned in the response."]}letmake?serviceCode=fun?formatVersion->fun?nextToken->fun?maxResults->fun()->{serviceCode;formatVersion;nextToken;maxResults}letto_valuex=structure_to_value[("ServiceCode",(Option.mapx.serviceCode~f:String_.to_value));("FormatVersion",(Option.mapx.formatVersion~f:FormatVersion.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value));("MaxResults",(Option.mapx.maxResults~f:DescribeServicesMaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:DescribeServicesMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletformatVersion=(Option.map~f:FormatVersion.of_xml)(Xml.childxml_arg0"FormatVersion")inletserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ServiceCode")inmake?maxResults?nextToken?formatVersion?serviceCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"DescribeServicesMaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninletformatVersion=field_mapjson__"FormatVersion"FormatVersion.of_jsoninletserviceCode=field_mapjson__"ServiceCode"String_.of_jsoninmake?maxResults?nextToken?formatVersion?serviceCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the metadata for one service or a list of the metadata for all services. Use this without a service code to get the service codes for all services. Use it with a service code, such as AmazonEC2, to get information specific to that service, such as the attribute names available for that service. For example, some of the attribute names available for EC2 are volumeType, maxIopsVolume, operation, locationType, and instanceCapacity10xlarge."]