class CfnTransformerPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.B2BI.Mixins.CfnTransformerPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsb2bi/mixins#CfnTransformerPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.b2bi.mixins.CfnTransformerPropsMixin |
Python | aws_cdk.mixins_preview.aws_b2bi.mixins.CfnTransformerPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_b2bi » mixins » CfnTransformerPropsMixin |
Implements
IMixin
Extends
Mixin
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
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-b2bi-transformer.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as b2bi_mixins } from '@aws-cdk/mixins-preview/aws-b2bi';
const cfnTransformerPropsMixin = new b2bi_mixins.CfnTransformerPropsMixin({
ediType: {
x12Details: {
transactionSet: 'transactionSet',
version: 'version',
},
},
fileFormat: 'fileFormat',
inputConversion: {
advancedOptions: {
x12: {
splitOptions: {
splitBy: 'splitBy',
},
validationOptions: {
validationRules: [{
codeListValidationRule: {
codesToAdd: ['codesToAdd'],
codesToRemove: ['codesToRemove'],
elementId: 'elementId',
},
elementLengthValidationRule: {
elementId: 'elementId',
maxLength: 123,
minLength: 123,
},
elementRequirementValidationRule: {
elementPosition: 'elementPosition',
requirement: 'requirement',
},
}],
},
},
},
formatOptions: {
x12: {
transactionSet: 'transactionSet',
version: 'version',
},
},
fromFormat: 'fromFormat',
},
mapping: {
template: 'template',
templateLanguage: 'templateLanguage',
},
mappingTemplate: 'mappingTemplate',
name: 'name',
outputConversion: {
advancedOptions: {
x12: {
splitOptions: {
splitBy: 'splitBy',
},
validationOptions: {
validationRules: [{
codeListValidationRule: {
codesToAdd: ['codesToAdd'],
codesToRemove: ['codesToRemove'],
elementId: 'elementId',
},
elementLengthValidationRule: {
elementId: 'elementId',
maxLength: 123,
minLength: 123,
},
elementRequirementValidationRule: {
elementPosition: 'elementPosition',
requirement: 'requirement',
},
}],
},
},
},
formatOptions: {
x12: {
transactionSet: 'transactionSet',
version: 'version',
},
},
toFormat: 'toFormat',
},
sampleDocument: 'sampleDocument',
sampleDocuments: {
bucketName: 'bucketName',
keys: [{
input: 'input',
output: 'output',
}],
},
status: 'status',
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnTransformerPropsMixin(props: CfnTransformerMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Transformer Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::B2BI::Transformer.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript