Class: AWSCDK::B2BI::CfnTransformer::MappingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::B2BI::CfnTransformer::MappingProperty
- 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
-
#template ⇒ String?
readonly
A string that represents the mapping template, in the transformation language specified in
templateLanguage. -
#template_language ⇒ String
readonly
The transformation language for the template, either XSLT or JSONATA.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(template_language:, template: nil) ⇒ MappingProperty
constructor
A new instance of MappingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(template_language:, template: nil) ⇒ MappingProperty
Returns a new instance of MappingProperty.
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
#template ⇒ String? (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_language ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |