Module Values.CreateTransformerResponseSource

Creates a transformer. Amazon Web Services B2B Data Interchange currently supports two scenarios: Inbound EDI: the Amazon Web Services customer receives an EDI file from their trading partner. Amazon Web Services B2B Data Interchange converts this EDI file into a JSON or XML file with a service-defined structure. A mapping template provided by the customer, in JSONata or XSLT format, is optionally applied to this file to produce a JSON or XML file with the structure the customer requires. Outbound EDI: the Amazon Web Services customer has a JSON or XML file containing data that they wish to use in an EDI file. A mapping template, provided by the customer (in either JSONata or XSLT format) is applied to this file to generate a JSON or XML file in the service-defined structure. This file is then converted to an EDI file. The following fields are provided for backwards compatibility only: fileFormat, mappingTemplate, ediType, and sampleDocument. Use the mapping data type in place of mappingTemplate and fileFormat Use the sampleDocuments data type in place of sampleDocument Use either the inputConversion or outputConversion in place of ediType

Sourcetype nonrec t = {
  1. transformerId : TransformerId.t option;
    (*

    Returns the system-assigned unique identifier for the transformer.

    *)
  2. transformerArn : ResourceArn.t option;
    (*

    Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

    *)
  3. name : TransformerName.t option;
    (*

    Returns the name of the transformer, used to identify it.

    *)
  4. status : TransformerStatus.t option;
    (*

    Returns the state of the newly created transformer. The transformer can be either active or inactive. For the transformer to be used in a capability, its status must active.

    *)
  5. createdAt : CreatedDate.t option;
    (*

    Returns a timestamp for creation date and time of the transformer.

    *)
  6. fileFormat : FileFormat.t option;
    (*

    Returns that the currently supported file formats for EDI transformations are JSON and XML.

    *)
  7. mappingTemplate : MappingTemplate.t option;
    (*

    Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.

    *)
  8. ediType : EdiType.t option;
    (*

    Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

    *)
  9. sampleDocument : FileLocation.t option;
    (*

    Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.

    *)
  10. inputConversion : InputConversion.t option;
    (*

    Returns the InputConversion object, which contains the format options for the inbound transformation.

    *)
  11. mapping : Mapping.t option;
    (*

    Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).

    *)
  12. outputConversion : OutputConversion.t option;
    (*

    Returns the OutputConversion object, which contains the format options for the outbound transformation.

    *)
  13. sampleDocuments : SampleDocuments.t option;
    (*

    Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `ConflictException of ConflictException.t
  3. | `InternalServerException of InternalServerException.t
  4. | `ResourceNotFoundException of ResourceNotFoundException.t
  5. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  6. | `ThrottlingException of ThrottlingException.t
  7. | `ValidationException of ValidationException.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval make : ?transformerId:??? -> ?transformerArn:??? -> ?name:??? -> ?status:??? -> ?createdAt:??? -> ?fileFormat:??? -> ?mappingTemplate:??? -> ?ediType:??? -> ?sampleDocument:??? -> ?inputConversion:??? -> ?mapping:??? -> ?outputConversion:??? -> ?sampleDocuments:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of TransformerId.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of S3Key.t ]) list ] list | `String of MappingTemplate.t | `Structure of (string * [> `Enum of string | `Structure of (string * [> `Enum of string | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `Integer of X12ElementLengthValidationRuleMaxLengthInteger.t | `List of [> `String of String_.t ] list | `String of ElementId.t ]) list ]) list ] list ]) list ]) list ]) list ]) list | `Timestamp of CreatedDate.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t