Class CfnTransformerPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.b2bi.CfnTransformerPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:56.254Z") @Stability(Stable) public class CfnTransformerPropsMixin extends Mixin implements software.constructs.IMixin
Creates a transformer. AWS B2B Data Interchange currently supports two scenarios:.

  • Inbound EDI : the AWS customer receives an EDI file from their trading partner. AWS 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 AWS 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

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.b2bi.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnTransformerPropsMixin cfnTransformerPropsMixin = CfnTransformerPropsMixin.Builder.create(CfnTransformerMixinProps.builder()
         .ediType(EdiTypeProperty.builder()
                 .x12Details(X12DetailsProperty.builder()
                         .transactionSet("transactionSet")
                         .version("version")
                         .build())
                 .build())
         .fileFormat("fileFormat")
         .inputConversion(InputConversionProperty.builder()
                 .advancedOptions(AdvancedOptionsProperty.builder()
                         .x12(X12AdvancedOptionsProperty.builder()
                                 .splitOptions(X12SplitOptionsProperty.builder()
                                         .splitBy("splitBy")
                                         .build())
                                 .validationOptions(X12ValidationOptionsProperty.builder()
                                         .validationRules(List.of(X12ValidationRuleProperty.builder()
                                                 .codeListValidationRule(X12CodeListValidationRuleProperty.builder()
                                                         .codesToAdd(List.of("codesToAdd"))
                                                         .codesToRemove(List.of("codesToRemove"))
                                                         .elementId("elementId")
                                                         .build())
                                                 .elementLengthValidationRule(X12ElementLengthValidationRuleProperty.builder()
                                                         .elementId("elementId")
                                                         .maxLength(123)
                                                         .minLength(123)
                                                         .build())
                                                 .elementRequirementValidationRule(X12ElementRequirementValidationRuleProperty.builder()
                                                         .elementPosition("elementPosition")
                                                         .requirement("requirement")
                                                         .build())
                                                 .build()))
                                         .build())
                                 .build())
                         .build())
                 .formatOptions(FormatOptionsProperty.builder()
                         .x12(X12DetailsProperty.builder()
                                 .transactionSet("transactionSet")
                                 .version("version")
                                 .build())
                         .build())
                 .fromFormat("fromFormat")
                 .build())
         .mapping(MappingProperty.builder()
                 .template("template")
                 .templateLanguage("templateLanguage")
                 .build())
         .mappingTemplate("mappingTemplate")
         .name("name")
         .outputConversion(OutputConversionProperty.builder()
                 .advancedOptions(AdvancedOptionsProperty.builder()
                         .x12(X12AdvancedOptionsProperty.builder()
                                 .splitOptions(X12SplitOptionsProperty.builder()
                                         .splitBy("splitBy")
                                         .build())
                                 .validationOptions(X12ValidationOptionsProperty.builder()
                                         .validationRules(List.of(X12ValidationRuleProperty.builder()
                                                 .codeListValidationRule(X12CodeListValidationRuleProperty.builder()
                                                         .codesToAdd(List.of("codesToAdd"))
                                                         .codesToRemove(List.of("codesToRemove"))
                                                         .elementId("elementId")
                                                         .build())
                                                 .elementLengthValidationRule(X12ElementLengthValidationRuleProperty.builder()
                                                         .elementId("elementId")
                                                         .maxLength(123)
                                                         .minLength(123)
                                                         .build())
                                                 .elementRequirementValidationRule(X12ElementRequirementValidationRuleProperty.builder()
                                                         .elementPosition("elementPosition")
                                                         .requirement("requirement")
                                                         .build())
                                                 .build()))
                                         .build())
                                 .build())
                         .build())
                 .formatOptions(FormatOptionsProperty.builder()
                         .x12(X12DetailsProperty.builder()
                                 .transactionSet("transactionSet")
                                 .version("version")
                                 .build())
                         .build())
                 .toFormat("toFormat")
                 .build())
         .sampleDocument("sampleDocument")
         .sampleDocuments(SampleDocumentsProperty.builder()
                 .bucketName("bucketName")
                 .keys(List.of(SampleDocumentKeysProperty.builder()
                         .input("input")
                         .output("output")
                         .build()))
                 .build())
         .status("status")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnTransformerPropsMixin

      protected CfnTransformerPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnTransformerPropsMixin

      protected CfnTransformerPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnTransformerPropsMixin

      @Stability(Stable) public CfnTransformerPropsMixin(@NotNull CfnTransformerMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::B2BI::Transformer.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnTransformerPropsMixin

      @Stability(Stable) public CfnTransformerPropsMixin(@NotNull CfnTransformerMixinProps props)
      Create a mixin to apply properties to AWS::B2BI::Transformer.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnTransformerMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()