Skip to content
v2.278.0

CfnTransformerProps Struct ​

Properties for defining a CfnTransformer.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_b2bi as b2bi } from 'aws-cdk-lib';
const cfnTransformerProps: b2bi.CfnTransformerProps = {
  name: 'name',
  status: 'status',

  // the properties below are optional
  ediType: {
    x12Details: {
      transactionSet: 'transactionSet',
      version: 'version',
    },
  },
  fileFormat: 'fileFormat',
  inputConversion: {
    fromFormat: 'fromFormat',

    // the properties below are optional
    advancedOptions: {
      x12: {
        splitOptions: {
          splitBy: 'splitBy',
        },
        validationOptions: {
          validationRules: [{
            codeListValidationRule: {
              elementId: 'elementId',

              // the properties below are optional
              codesToAdd: ['codesToAdd'],
              codesToRemove: ['codesToRemove'],
            },
            elementLengthValidationRule: {
              elementId: 'elementId',
              maxLength: 123,
              minLength: 123,
            },
            elementRequirementValidationRule: {
              elementPosition: 'elementPosition',
              requirement: 'requirement',
            },
          }],
        },
      },
    },
    formatOptions: {
      x12: {
        transactionSet: 'transactionSet',
        version: 'version',
      },
    },
  },
  mapping: {
    templateLanguage: 'templateLanguage',

    // the properties below are optional
    template: 'template',
  },
  mappingTemplate: 'mappingTemplate',
  outputConversion: {
    toFormat: 'toFormat',

    // the properties below are optional
    advancedOptions: {
      x12: {
        splitOptions: {
          splitBy: 'splitBy',
        },
        validationOptions: {
          validationRules: [{
            codeListValidationRule: {
              elementId: 'elementId',

              // the properties below are optional
              codesToAdd: ['codesToAdd'],
              codesToRemove: ['codesToRemove'],
            },
            elementLengthValidationRule: {
              elementId: 'elementId',
              maxLength: 123,
              minLength: 123,
            },
            elementRequirementValidationRule: {
              elementPosition: 'elementPosition',
              requirement: 'requirement',
            },
          }],
        },
      },
    },
    formatOptions: {
      x12: {
        transactionSet: 'transactionSet',
        version: 'version',
      },
    },
  },
  sampleDocument: 'sampleDocument',
  sampleDocuments: {
    bucketName: 'bucketName',
    keys: [{
      input: 'input',
      output: 'output',
    }],
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_b2bi as b2bi

cfn_transformer_props = b2bi.CfnTransformerProps(
    name="name",
    status="status",

    # the properties below are optional
    edi_type=b2bi.CfnTransformer.EdiTypeProperty(
        x12_details=b2bi.CfnTransformer.X12DetailsProperty(
            transaction_set="transactionSet",
            version="version"
        )
    ),
    file_format="fileFormat",
    input_conversion=b2bi.CfnTransformer.InputConversionProperty(
        from_format="fromFormat",

        # the properties below are optional
        advanced_options=b2bi.CfnTransformer.AdvancedOptionsProperty(
            x12=b2bi.CfnTransformer.X12AdvancedOptionsProperty(
                split_options=b2bi.CfnTransformer.X12SplitOptionsProperty(
                    split_by="splitBy"
                ),
                validation_options=b2bi.CfnTransformer.X12ValidationOptionsProperty(
                    validation_rules=[b2bi.CfnTransformer.X12ValidationRuleProperty(
                        code_list_validation_rule=b2bi.CfnTransformer.X12CodeListValidationRuleProperty(
                            element_id="elementId",

                            # the properties below are optional
                            codes_to_add=["codesToAdd"],
                            codes_to_remove=["codesToRemove"]
                        ),
                        element_length_validation_rule=b2bi.CfnTransformer.X12ElementLengthValidationRuleProperty(
                            element_id="elementId",
                            max_length=123,
                            min_length=123
                        ),
                        element_requirement_validation_rule=b2bi.CfnTransformer.X12ElementRequirementValidationRuleProperty(
                            element_position="elementPosition",
                            requirement="requirement"
                        )
                    )]
                )
            )
        ),
        format_options=b2bi.CfnTransformer.FormatOptionsProperty(
            x12=b2bi.CfnTransformer.X12DetailsProperty(
                transaction_set="transactionSet",
                version="version"
            )
        )
    ),
    mapping=b2bi.CfnTransformer.MappingProperty(
        template_language="templateLanguage",

        # the properties below are optional
        template="template"
    ),
    mapping_template="mappingTemplate",
    output_conversion=b2bi.CfnTransformer.OutputConversionProperty(
        to_format="toFormat",

        # the properties below are optional
        advanced_options=b2bi.CfnTransformer.AdvancedOptionsProperty(
            x12=b2bi.CfnTransformer.X12AdvancedOptionsProperty(
                split_options=b2bi.CfnTransformer.X12SplitOptionsProperty(
                    split_by="splitBy"
                ),
                validation_options=b2bi.CfnTransformer.X12ValidationOptionsProperty(
                    validation_rules=[b2bi.CfnTransformer.X12ValidationRuleProperty(
                        code_list_validation_rule=b2bi.CfnTransformer.X12CodeListValidationRuleProperty(
                            element_id="elementId",

                            # the properties below are optional
                            codes_to_add=["codesToAdd"],
                            codes_to_remove=["codesToRemove"]
                        ),
                        element_length_validation_rule=b2bi.CfnTransformer.X12ElementLengthValidationRuleProperty(
                            element_id="elementId",
                            max_length=123,
                            min_length=123
                        ),
                        element_requirement_validation_rule=b2bi.CfnTransformer.X12ElementRequirementValidationRuleProperty(
                            element_position="elementPosition",
                            requirement="requirement"
                        )
                    )]
                )
            )
        ),
        format_options=b2bi.CfnTransformer.FormatOptionsProperty(
            x12=b2bi.CfnTransformer.X12DetailsProperty(
                transaction_set="transactionSet",
                version="version"
            )
        )
    ),
    sample_document="sampleDocument",
    sample_documents=b2bi.CfnTransformer.SampleDocumentsProperty(
        bucket_name="bucketName",
        keys=[b2bi.CfnTransformer.SampleDocumentKeysProperty(
            input="input",
            output="output"
        )]
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.b2bi.*;

CfnTransformerProps cfnTransformerProps = CfnTransformerProps.builder()
        .name("name")
        .status("status")

        // the properties below are optional
        .ediType(EdiTypeProperty.builder()
                .x12Details(X12DetailsProperty.builder()
                        .transactionSet("transactionSet")
                        .version("version")
                        .build())
                .build())
        .fileFormat("fileFormat")
        .inputConversion(InputConversionProperty.builder()
                .fromFormat("fromFormat")

                // the properties below are optional
                .advancedOptions(AdvancedOptionsProperty.builder()
                        .x12(X12AdvancedOptionsProperty.builder()
                                .splitOptions(X12SplitOptionsProperty.builder()
                                        .splitBy("splitBy")
                                        .build())
                                .validationOptions(X12ValidationOptionsProperty.builder()
                                        .validationRules(List.of(X12ValidationRuleProperty.builder()
                                                .codeListValidationRule(X12CodeListValidationRuleProperty.builder()
                                                        .elementId("elementId")

                                                        // the properties below are optional
                                                        .codesToAdd(List.of("codesToAdd"))
                                                        .codesToRemove(List.of("codesToRemove"))
                                                        .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())
                .build())
        .mapping(MappingProperty.builder()
                .templateLanguage("templateLanguage")

                // the properties below are optional
                .template("template")
                .build())
        .mappingTemplate("mappingTemplate")
        .outputConversion(OutputConversionProperty.builder()
                .toFormat("toFormat")

                // the properties below are optional
                .advancedOptions(AdvancedOptionsProperty.builder()
                        .x12(X12AdvancedOptionsProperty.builder()
                                .splitOptions(X12SplitOptionsProperty.builder()
                                        .splitBy("splitBy")
                                        .build())
                                .validationOptions(X12ValidationOptionsProperty.builder()
                                        .validationRules(List.of(X12ValidationRuleProperty.builder()
                                                .codeListValidationRule(X12CodeListValidationRuleProperty.builder()
                                                        .elementId("elementId")

                                                        // the properties below are optional
                                                        .codesToAdd(List.of("codesToAdd"))
                                                        .codesToRemove(List.of("codesToRemove"))
                                                        .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())
                .build())
        .sampleDocument("sampleDocument")
        .sampleDocuments(SampleDocumentsProperty.builder()
                .bucketName("bucketName")
                .keys(List.of(SampleDocumentKeysProperty.builder()
                        .input("input")
                        .output("output")
                        .build()))
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.B2BI;

var cfnTransformerProps = new CfnTransformerProps {
    Name = "name",
    Status = "status",

    // the properties below are optional
    EdiType = new EdiTypeProperty {
        X12Details = new X12DetailsProperty {
            TransactionSet = "transactionSet",
            Version = "version"
        }
    },
    FileFormat = "fileFormat",
    InputConversion = new InputConversionProperty {
        FromFormat = "fromFormat",

        // the properties below are optional
        AdvancedOptions = new AdvancedOptionsProperty {
            X12 = new X12AdvancedOptionsProperty {
                SplitOptions = new X12SplitOptionsProperty {
                    SplitBy = "splitBy"
                },
                ValidationOptions = new X12ValidationOptionsProperty {
                    ValidationRules = new [] { new X12ValidationRuleProperty {
                        CodeListValidationRule = new X12CodeListValidationRuleProperty {
                            ElementId = "elementId",

                            // the properties below are optional
                            CodesToAdd = new [] { "codesToAdd" },
                            CodesToRemove = new [] { "codesToRemove" }
                        },
                        ElementLengthValidationRule = new X12ElementLengthValidationRuleProperty {
                            ElementId = "elementId",
                            MaxLength = 123,
                            MinLength = 123
                        },
                        ElementRequirementValidationRule = new X12ElementRequirementValidationRuleProperty {
                            ElementPosition = "elementPosition",
                            Requirement = "requirement"
                        }
                    } }
                }
            }
        },
        FormatOptions = new FormatOptionsProperty {
            X12 = new X12DetailsProperty {
                TransactionSet = "transactionSet",
                Version = "version"
            }
        }
    },
    Mapping = new MappingProperty {
        TemplateLanguage = "templateLanguage",

        // the properties below are optional
        Template = "template"
    },
    MappingTemplate = "mappingTemplate",
    OutputConversion = new OutputConversionProperty {
        ToFormat = "toFormat",

        // the properties below are optional
        AdvancedOptions = new AdvancedOptionsProperty {
            X12 = new X12AdvancedOptionsProperty {
                SplitOptions = new X12SplitOptionsProperty {
                    SplitBy = "splitBy"
                },
                ValidationOptions = new X12ValidationOptionsProperty {
                    ValidationRules = new [] { new X12ValidationRuleProperty {
                        CodeListValidationRule = new X12CodeListValidationRuleProperty {
                            ElementId = "elementId",

                            // the properties below are optional
                            CodesToAdd = new [] { "codesToAdd" },
                            CodesToRemove = new [] { "codesToRemove" }
                        },
                        ElementLengthValidationRule = new X12ElementLengthValidationRuleProperty {
                            ElementId = "elementId",
                            MaxLength = 123,
                            MinLength = 123
                        },
                        ElementRequirementValidationRule = new X12ElementRequirementValidationRuleProperty {
                            ElementPosition = "elementPosition",
                            Requirement = "requirement"
                        }
                    } }
                }
            }
        },
        FormatOptions = new FormatOptionsProperty {
            X12 = new X12DetailsProperty {
                TransactionSet = "transactionSet",
                Version = "version"
            }
        }
    },
    SampleDocument = "sampleDocument",
    SampleDocuments = new SampleDocumentsProperty {
        BucketName = "bucketName",
        Keys = new [] { new SampleDocumentKeysProperty {
            Input = "input",
            Output = "output"
        } }
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnTransformerProps := &CfnTransformerProps{
	Name: jsii.String("name"),
	Status: jsii.String("status"),

	// the properties below are optional
	EdiType: &EdiTypeProperty{
		X12Details: &X12DetailsProperty{
			TransactionSet: jsii.String("transactionSet"),
			Version: jsii.String("version"),
		},
	},
	FileFormat: jsii.String("fileFormat"),
	InputConversion: &InputConversionProperty{
		FromFormat: jsii.String("fromFormat"),

		// the properties below are optional
		AdvancedOptions: &AdvancedOptionsProperty{
			X12: &X12AdvancedOptionsProperty{
				SplitOptions: &X12SplitOptionsProperty{
					SplitBy: jsii.String("splitBy"),
				},
				ValidationOptions: &X12ValidationOptionsProperty{
					ValidationRules: []interface{}{
						&X12ValidationRuleProperty{
							CodeListValidationRule: &X12CodeListValidationRuleProperty{
								ElementId: jsii.String("elementId"),

								// the properties below are optional
								CodesToAdd: []*string{
									jsii.String("codesToAdd"),
								},
								CodesToRemove: []*string{
									jsii.String("codesToRemove"),
								},
							},
							ElementLengthValidationRule: &X12ElementLengthValidationRuleProperty{
								ElementId: jsii.String("elementId"),
								MaxLength: jsii.Number(123),
								MinLength: jsii.Number(123),
							},
							ElementRequirementValidationRule: &X12ElementRequirementValidationRuleProperty{
								ElementPosition: jsii.String("elementPosition"),
								Requirement: jsii.String("requirement"),
							},
						},
					},
				},
			},
		},
		FormatOptions: &FormatOptionsProperty{
			X12: &X12DetailsProperty{
				TransactionSet: jsii.String("transactionSet"),
				Version: jsii.String("version"),
			},
		},
	},
	Mapping: &MappingProperty{
		TemplateLanguage: jsii.String("templateLanguage"),

		// the properties below are optional
		Template: jsii.String("template"),
	},
	MappingTemplate: jsii.String("mappingTemplate"),
	OutputConversion: &OutputConversionProperty{
		ToFormat: jsii.String("toFormat"),

		// the properties below are optional
		AdvancedOptions: &AdvancedOptionsProperty{
			X12: &X12AdvancedOptionsProperty{
				SplitOptions: &X12SplitOptionsProperty{
					SplitBy: jsii.String("splitBy"),
				},
				ValidationOptions: &X12ValidationOptionsProperty{
					ValidationRules: []interface{}{
						&X12ValidationRuleProperty{
							CodeListValidationRule: &X12CodeListValidationRuleProperty{
								ElementId: jsii.String("elementId"),

								// the properties below are optional
								CodesToAdd: []*string{
									jsii.String("codesToAdd"),
								},
								CodesToRemove: []*string{
									jsii.String("codesToRemove"),
								},
							},
							ElementLengthValidationRule: &X12ElementLengthValidationRuleProperty{
								ElementId: jsii.String("elementId"),
								MaxLength: jsii.Number(123),
								MinLength: jsii.Number(123),
							},
							ElementRequirementValidationRule: &X12ElementRequirementValidationRuleProperty{
								ElementPosition: jsii.String("elementPosition"),
								Requirement: jsii.String("requirement"),
							},
						},
					},
				},
			},
		},
		FormatOptions: &FormatOptionsProperty{
			X12: &X12DetailsProperty{
				TransactionSet: jsii.String("transactionSet"),
				Version: jsii.String("version"),
			},
		},
	},
	SampleDocument: jsii.String("sampleDocument"),
	SampleDocuments: &SampleDocumentsProperty{
		BucketName: jsii.String("bucketName"),
		Keys: []interface{}{
			&SampleDocumentKeysProperty{
				Input: jsii.String("input"),
				Output: jsii.String("output"),
			},
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

ediTypeoptionalIResolvable | CfnTransformer.EdiTypePropertyedi_typeoptionaltyping.Union[IResolvable, EdiTypeProperty]ediTypeoptionalIResolvableEdiTypeoptionalIResolvableEdiTypeoptionalinterface{} deprecated #
this property has been deprecated
fileFormatoptionalstringfile_formatoptionalstrfileFormatoptionalStringFileFormatoptionalstringFileFormatoptional*string deprecated #
this property has been deprecated
inputConversionoptionalIResolvable | CfnTransformer.InputConversionPropertyinput_conversionoptionaltyping.Union[IResolvable, InputConversionProperty]inputConversionoptionalIResolvableInputConversionoptionalIResolvableInputConversionoptionalinterface{} #
Returns a structure that contains the format options for the transformation.
mappingoptionalIResolvable | CfnTransformer.MappingPropertymappingoptionaltyping.Union[IResolvable, MappingProperty]mappingoptionalIResolvableMappingoptionalIResolvableMappingoptionalinterface{} #
Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).
mappingTemplateoptionalstringmapping_templateoptionalstrmappingTemplateoptionalStringMappingTemplateoptionalstringMappingTemplateoptional*string deprecated #
this property has been deprecated

Please use input-conversion or output-conversion.

namestringnamestrnameStringNamestringName*string required #
Returns the descriptive name for the transformer.
outputConversionoptionalIResolvable | CfnTransformer.OutputConversionPropertyoutput_conversionoptionaltyping.Union[IResolvable, OutputConversionProperty]outputConversionoptionalIResolvableOutputConversionoptionalIResolvableOutputConversionoptionalinterface{} #
Returns the `OutputConversion` object, which contains the format options for the outbound transformation.
sampleDocumentoptionalstringsample_documentoptionalstrsampleDocumentoptionalStringSampleDocumentoptionalstringSampleDocumentoptional*string deprecated #
this property has been deprecated

Please use input-conversion or output-conversion.

sampleDocumentsoptionalIResolvable | CfnTransformer.SampleDocumentsPropertysample_documentsoptionaltyping.Union[IResolvable, SampleDocumentsProperty]sampleDocumentsoptionalIResolvableSampleDocumentsoptionalIResolvableSampleDocumentsoptionalinterface{} #
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.
statusstringstatusstrstatusStringStatusstringStatus*string required #
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 .

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A key-value pair for a specific transformer.

Tags are metadata that you can use to search for and group capabilities for various purposes.