# MappingProperty

Specifies the mapping template for the transformer.

This template is used to map the parsed EDI file using JSONata or XSLT.

- Source: Generated at build time
- Type last changed: v2.161.0 · 4 Oct 2024

## Example

TypeScript:

```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 mappingProperty: b2bi.CfnTransformer.MappingProperty = {
  templateLanguage: 'templateLanguage',

  // the properties below are optional
  template: 'template',
};
```

Python:

```python
# 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

mapping_property = b2bi.CfnTransformer.MappingProperty(
    template_language="templateLanguage",

    # the properties below are optional
    template="template"
)
```

Java:

```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.*;

MappingProperty mappingProperty = MappingProperty.builder()
        .templateLanguage("templateLanguage")

        // the properties below are optional
        .template("template")
        .build();
```

C# / .NET:

```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 mappingProperty = new MappingProperty {
    TemplateLanguage = "templateLanguage",

    // the properties below are optional
    Template = "template"
};
```

Golang:

```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"

mappingProperty := &MappingProperty{
	TemplateLanguage: jsii.String("templateLanguage"),

	// the properties below are optional
	Template: jsii.String("template"),
}
```

## Properties

- `template`: string — A string that represents the mapping template, in the transformation language specified in `templateLanguage` .

- `templateLanguage`: string (required) — The transformation language for the template, either XSLT or JSONATA.
