Class CfnTransformer
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.b2bi.CfnTransformer
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,ITransformerRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:39:58.960Z")
@Stability(Stable)
public class CfnTransformer
extends CfnResource
implements IInspectable, ITransformerRef, ITaggableV2
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, andsampleDocument.
- Use the
mappingdata type in place ofmappingTemplateandfileFormat- Use the
sampleDocumentsdata type in place ofsampleDocument- Use either the
inputConversionoroutputConversionin place ofediType
Example:
// 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.*;
CfnTransformer cfnTransformer = CfnTransformer.Builder.create(this, "MyCfnTransformer")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA structure that contains advanced options for EDI processing.static final classA fluent builder forCfnTransformer.static interfaceExample:static interfaceA structure that contains the X12 transaction set and version.static interfaceContains the input formatting options for an inbound transformer (takes an X12-formatted EDI document as input and converts it to JSON or XML.static interfaceSpecifies the mapping template for the transformer.static interfaceContains the formatting options for an outbound transformer (takes JSON or XML as input and converts it to an EDI document (currently only X12 format is supported).static interfaceAn array of the Amazon S3 keys used to identify the location for your sample documents.static interfaceDescribes a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.static interfaceContains advanced options specific to X12 EDI processing, such as splitting large X12 files into smaller units.static interfaceCode list validation rule configuration.static interfaceA structure that contains the X12 transaction set and version.static interfaceDefines a validation rule that specifies custom length constraints for a specific X12 element.static interfaceDefines a validation rule that modifies the requirement status of a specific X12 element within a segment.static interfaceContains options for splitting X12 EDI files into smaller units.static interfaceContains configuration options for X12 EDI validation.static interfaceRepresents a single validation rule that can be applied during X12 EDI processing.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.b2bi.ITransformerRef
ITransformerRef.Jsii$Default, ITransformerRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTransformer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTransformer(software.amazon.jsii.JsiiObjectRef objRef) CfnTransformer(software.constructs.Construct scope, String id, CfnTransformerProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns a timestamp indicating when the transformer was created.Returns a timestamp representing the date and time for the most recent change for the transformer object.Returns an Amazon Resource Name (ARN) for a specific transformer.The system-assigned unique identifier for the transformer.Tag Manager which manages the tags for this resource.Deprecated.this property has been deprecatedDeprecated.this property has been deprecatedReturns a structure that contains the format options for the transformation.Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).Deprecated.this property has been deprecatedgetName()Returns the descriptive name for the transformer.Returns theOutputConversionobject, which contains the format options for the outbound transformation.Deprecated.this property has been deprecatedReturns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.Returns the state of the newly created transformer.getTags()A key-value pair for a specific transformer.A reference to a Transformer resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetEdiType(IResolvable value) Deprecated.this property has been deprecatedvoidDeprecated.this property has been deprecatedvoidsetFileFormat(String value) Deprecated.this property has been deprecatedvoidsetInputConversion(IResolvable value) Returns a structure that contains the format options for the transformation.voidReturns a structure that contains the format options for the transformation.voidsetMapping(IResolvable value) Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).voidReturns the structure that contains the mapping template and its language (either XSLT or JSONATA).voidsetMappingTemplate(String value) Deprecated.this property has been deprecatedvoidReturns the descriptive name for the transformer.voidsetOutputConversion(IResolvable value) Returns theOutputConversionobject, which contains the format options for the outbound transformation.voidReturns theOutputConversionobject, which contains the format options for the outbound transformation.voidsetSampleDocument(String value) Deprecated.this property has been deprecatedvoidsetSampleDocuments(IResolvable value) 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.voidReturns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.voidReturns the state of the newly created transformer.voidA key-value pair for a specific transformer.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTransformer
protected CfnTransformer(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTransformer
protected CfnTransformer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTransformer
@Stability(Stable) public CfnTransformer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTransformerProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
Returns a timestamp indicating when the transformer was created.For example,
2023-07-20T19:58:44.624Z. -
getAttrModifiedAt
Returns a timestamp representing the date and time for the most recent change for the transformer object. -
getAttrTransformerArn
Returns an Amazon Resource Name (ARN) for a specific transformer. -
getAttrTransformerId
The system-assigned unique identifier for the transformer. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTransformerRef
A reference to a Transformer resource.- Specified by:
getTransformerRefin interfaceITransformerRef
-
getName
Returns the descriptive name for the transformer. -
setName
Returns the descriptive name for the transformer. -
getStatus
Returns the state of the newly created transformer. -
setStatus
Returns the state of the newly created transformer. -
getEdiType
Deprecated.this property has been deprecatedReturns union: eitherIResolvableorCfnTransformer.EdiTypeProperty -
setEdiType
Deprecated.this property has been deprecated -
setEdiType
@Stability(Deprecated) @Deprecated public void setEdiType(@Nullable CfnTransformer.EdiTypeProperty value) Deprecated.this property has been deprecated -
getFileFormat
Deprecated.this property has been deprecated -
setFileFormat
Deprecated.this property has been deprecated -
getInputConversion
Returns a structure that contains the format options for the transformation.Returns union: either
IResolvableorCfnTransformer.InputConversionProperty -
setInputConversion
Returns a structure that contains the format options for the transformation. -
setInputConversion
@Stability(Stable) public void setInputConversion(@Nullable CfnTransformer.InputConversionProperty value) Returns a structure that contains the format options for the transformation. -
getMapping
Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).Returns union: either
IResolvableorCfnTransformer.MappingProperty -
setMapping
Returns the structure that contains the mapping template and its language (either XSLT or JSONATA). -
setMapping
Returns the structure that contains the mapping template and its language (either XSLT or JSONATA). -
getMappingTemplate
Deprecated.this property has been deprecated(deprecated) This shape is deprecated: This is a legacy trait. -
setMappingTemplate
Deprecated.this property has been deprecated(deprecated) This shape is deprecated: This is a legacy trait. -
getOutputConversion
Returns theOutputConversionobject, which contains the format options for the outbound transformation.Returns union: either
IResolvableorCfnTransformer.OutputConversionProperty -
setOutputConversion
Returns theOutputConversionobject, which contains the format options for the outbound transformation. -
setOutputConversion
@Stability(Stable) public void setOutputConversion(@Nullable CfnTransformer.OutputConversionProperty value) Returns theOutputConversionobject, which contains the format options for the outbound transformation. -
getSampleDocument
Deprecated.this property has been deprecated(deprecated) This shape is deprecated: This is a legacy trait. -
setSampleDocument
Deprecated.this property has been deprecated(deprecated) This shape is deprecated: This is a legacy trait. -
getSampleDocuments
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.Returns union: either
IResolvableorCfnTransformer.SampleDocumentsProperty -
setSampleDocuments
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. -
setSampleDocuments
@Stability(Stable) public void setSampleDocuments(@Nullable CfnTransformer.SampleDocumentsProperty value) 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. -
getTags
A key-value pair for a specific transformer. -
setTags
A key-value pair for a specific transformer.
-