Class: AWSCDK::B2BI::CfnTransformer::MappingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
b2_bi/cfn_transformer.rb

Overview

Specifies the mapping template for the transformer.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template_language:, template: nil) ⇒ MappingProperty

Returns a new instance of MappingProperty.

Parameters:

  • template_language (String)

    The transformation language for the template, either XSLT or JSONATA.

  • template (String, nil) (defaults to: nil)

    A string that represents the mapping template, in the transformation language specified in templateLanguage .



840
841
842
843
844
845
# File 'b2_bi/cfn_transformer.rb', line 840

def initialize(template_language:, template: nil)
  @template_language = template_language
  Jsii::Type.check_type(@template_language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "templateLanguage")
  @template = template
  Jsii::Type.check_type(@template, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "template") unless @template.nil?
end

Instance Attribute Details

#templateString? (readonly)

A string that represents the mapping template, in the transformation language specified in templateLanguage .



856
857
858
# File 'b2_bi/cfn_transformer.rb', line 856

def template
  @template
end

#template_languageString (readonly)

The transformation language for the template, either XSLT or JSONATA.



851
852
853
# File 'b2_bi/cfn_transformer.rb', line 851

def template_language
  @template_language
end

Class Method Details

.jsii_propertiesObject



858
859
860
861
862
863
# File 'b2_bi/cfn_transformer.rb', line 858

def self.jsii_properties
  {
    :template_language => "templateLanguage",
    :template => "template",
  }
end

Instance Method Details

#to_jsiiObject



865
866
867
868
869
870
871
872
# File 'b2_bi/cfn_transformer.rb', line 865

def to_jsii
  result = {}
  result.merge!({
    "templateLanguage" => @template_language,
    "template" => @template,
  })
  result.compact
end