Values.RestApiSourceRepresents a REST API.
type nonrec t = {id : String_.t option;The API's identifier. This identifier is unique across all of your APIs in API Gateway.
*)name : String_.t option;The API's name.
*)description : String_.t option;The API's description.
*)createdDate : Timestamp.t option;The timestamp when the API was created.
*)version : String_.t option;A version identifier for the API.
*)warnings : ListOfString.t option;The warning messages reported when failonwarnings is turned on during API import.
*)binaryMediaTypes : ListOfString.t option;The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.
*)minimumCompressionSize : NullableInteger.t option;A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
*)apiKeySource : ApiKeySourceType.t option;The source of the API key for metering requests according to a usage plan. Valid values are: >HEADER to read the API key from the X-API-Key header of a request. AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.
*)endpointConfiguration : EndpointConfiguration.t option;The endpoint configuration of this RestApi showing the endpoint types and IP address types of the API.
*)policy : String_.t option;A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.
*)disableExecuteApiEndpoint : Boolean.t option;Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.
*)rootResourceId : String_.t option;The API's root resource ID.
*)securityPolicy : SecurityPolicy.t option;The Transport Layer Security (TLS) version + cipher suite for this RestApi.
*)endpointAccessMode : EndpointAccessMode.t option;The endpoint access mode of the RestApi.
*)apiStatus : ApiStatus.t option;The ApiStatus of the RestApi.
*)apiStatusMessage : String_.t option;The status message of the RestApi. When the status message is UPDATING you can still invoke it.
*)}type nonrec error = [ | `BadRequestException of BadRequestException.t| `ConflictException of ConflictException.t| `LimitExceededException of LimitExceededException.t| `TooManyRequestsException of TooManyRequestsException.t| `Unknown_operation_error of string * string option ]val make :
?id:??? ->
?name:??? ->
?description:??? ->
?createdDate:??? ->
?version:??? ->
?warnings:??? ->
?binaryMediaTypes:??? ->
?minimumCompressionSize:??? ->
?apiKeySource:??? ->
?endpointConfiguration:??? ->
?policy:??? ->
?tags:??? ->
?disableExecuteApiEndpoint:??? ->
?rootResourceId:??? ->
?securityPolicy:??? ->
?endpointAccessMode:??? ->
?apiStatus:??? ->
?apiStatusMessage:??? ->
unit ->
tval error_of_json :
string ->
Yojson.Safe.t ->
[> `BadRequestException of BadRequestException.t
| `ConflictException of ConflictException.t
| `LimitExceededException of LimitExceededException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `UnauthorizedException of UnauthorizedException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `BadRequestException of BadRequestException.t
| `ConflictException of ConflictException.t
| `LimitExceededException of LimitExceededException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `UnauthorizedException of UnauthorizedException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `Boolean of Boolean.t
| `Enum of string
| `Integer of NullableInteger.t
| `List of [> `String of String_.t ] list
| `Map of
([> `String of String_.t ] * [> `String of String_.t ]) list
| `String of String_.t
| `Structure of
(string
* [> `Enum of string
| `List of [> `Enum of string | `String of String_.t ] list ])
list
| `Timestamp of Timestamp.t ])
list ]