123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419(* 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.signer_dataletapiVersion="2017-08-25"letendpointPrefix="data-signer"letserviceFullName="AWS Signer Data Plane"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])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_valueendmoduleRevokedEntity=structtypenonrect=stringletcontext_="RevokedEntity"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RevokedEntity"jletto_json=simple_to_jsonto_valueendmoduleCertificateHash=structtypenonrect=stringletcontext_="CertificateHash"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateHash"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:String_.toption;code:String_.toption}letmake?message=fun?code->fun()->{message;code}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("code",(Option.mapx.code~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"code")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?code?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcode=field_mapjson__"code"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?code?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You do not have sufficient permissions to perform this action."]moduleInternalServiceErrorException=structtypenonrect={message:String_.toption;code:String_.toption}letmake?message=fun?code->fun()->{message;code}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("code",(Option.mapx.code~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"code")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?code?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcode=field_mapjson__"code"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?code?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An internal service error occurred."]moduleRevokedEntities=structtypenonrect=RevokedEntity.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RevokedEntity.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:RevokedEntity.of_xml)letof_jsonj=list_of_json~kind:"RevokedEntities"~of_json:RevokedEntity.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTooManyRequestsException=structtypenonrect={message:String_.toption;code:String_.toption}letmake?message=fun?code->fun()->{message;code}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("code",(Option.mapx.code~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"code")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?code?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcode=field_mapjson__"code"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?code?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to request throttling."]moduleValidationException=structtypenonrect={message:String_.toption;code:String_.toption}letmake?message=fun?code->fun()->{message;code}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("code",(Option.mapx.code~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"code")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?code?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcode=field_mapjson__"code"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?code?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request contains invalid parameters or is malformed."]moduleArn=structtypenonrect=stringletcontext_="Arn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:20));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_valueendmoduleCertificateHashes=structtypenonrect=CertificateHash.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CertificateHash.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:CertificateHash.of_xml)letof_jsonj=list_of_json~kind:"CertificateHashes"~of_json:CertificateHash.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePlatformId=structtypenonrect=stringletcontext_="PlatformId"letmakei=letopenResultinok_or_failwith(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:"PlatformId"jletto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleGetRevocationStatusResponse=structtypenonrect={revokedEntities:RevokedEntities.toption[@ocaml.doc"List of entity identifiers that have been revoked. Empty if no revocations found."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceErrorExceptionofInternalServiceErrorException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?revokedEntities=fun()->{revokedEntities}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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)|"InternalServiceErrorException"->`InternalServiceErrorException(InternalServiceErrorException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.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))]|`InternalServiceErrorExceptione->`Assoc[("error",(`String"InternalServiceErrorException"));("details",(InternalServiceErrorException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.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[("revokedEntities",(Option.mapx.revokedEntities~f:RevokedEntities.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrevokedEntities=(Option.map~f:RevokedEntities.of_xml)(Xml.childxml_arg0"revokedEntities")inmake?revokedEntities()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrevokedEntities=field_mapjson__"revokedEntities"RevokedEntities.of_jsoninmake?revokedEntities()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response containing the list of revoked entities."]moduleGetRevocationStatusRequest=structtypenonrect={signatureTimestamp:Timestamp.t[@ocaml.doc"The timestamp when the artifact was signed, in ISO 8601 format."];platformId:PlatformId.t[@ocaml.doc"The platform identifier for the signing platform used."];profileVersionArn:Arn.t[@ocaml.doc"The ARN of the signing profile version used to sign the artifact."];jobArn:Arn.t[@ocaml.doc"The ARN of the signing job that produced the signature."];certificateHashes:CertificateHashes.t[@ocaml.doc"List of certificate hashes to check for revocation."]}letcontext_="GetRevocationStatusRequest"letmake~signatureTimestamp=fun~platformId->fun~profileVersionArn->fun~jobArn->fun~certificateHashes->fun()->{signatureTimestamp;platformId;profileVersionArn;jobArn;certificateHashes}letto_valuex=structure_to_value[("signatureTimestamp",(Some(Timestamp.to_valuex.signatureTimestamp)));("platformId",(Some(PlatformId.to_valuex.platformId)));("profileVersionArn",(Some(Arn.to_valuex.profileVersionArn)));("jobArn",(Some(Arn.to_valuex.jobArn)));("certificateHashes",(Some(CertificateHashes.to_valuex.certificateHashes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateHashes=CertificateHashes.of_xml(Xml.child_exn~context:context_xml_arg0"certificateHashes")inletjobArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"jobArn")inletprofileVersionArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"profileVersionArn")inletplatformId=PlatformId.of_xml(Xml.child_exn~context:context_xml_arg0"platformId")inletsignatureTimestamp=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"signatureTimestamp")inmake~certificateHashes~jobArn~profileVersionArn~platformId~signatureTimestamp()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateHashes=field_map_exnjson__"certificateHashes"CertificateHashes.of_jsoninletjobArn=field_map_exnjson__"jobArn"Arn.of_jsoninletprofileVersionArn=field_map_exnjson__"profileVersionArn"Arn.of_jsoninletplatformId=field_map_exnjson__"platformId"PlatformId.of_jsoninletsignatureTimestamp=field_map_exnjson__"signatureTimestamp"Timestamp.of_jsoninmake~certificateHashes~jobArn~profileVersionArn~platformId~signatureTimestamp()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for checking revocation status."]