Class: AWSCDK::B2BI::CfnPartnership::X12EnvelopeProperty

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

Overview

A wrapper structure for an X12 definition object.

the X12 envelope ensures the integrity of the data and the efficiency of the information exchange. The X12 message structure has hierarchical levels. From highest to the lowest, they are:

  • Interchange Envelope
  • Functional Group
  • Transaction Set

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(common: nil, wrap_options: nil) ⇒ X12EnvelopeProperty

Returns a new instance of X12EnvelopeProperty.

Parameters:



989
990
991
992
993
994
# File 'b2_bi/cfn_partnership.rb', line 989

def initialize(common: nil, wrap_options: nil)
  @common = common.is_a?(Hash) ? ::AWSCDK::B2BI::CfnPartnership::X12OutboundEdiHeadersProperty.new(**common.transform_keys(&:to_sym)) : common
  Jsii::Type.check_type(@common, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iMmJpLkNmblBhcnRuZXJzaGlwLlgxMk91dGJvdW5kRWRpSGVhZGVyc1Byb3BlcnR5In1dfX0=")), "common") unless @common.nil?
  @wrap_options = wrap_options.is_a?(Hash) ? ::AWSCDK::B2BI::CfnPartnership::WrapOptionsProperty.new(**wrap_options.transform_keys(&:to_sym)) : wrap_options
  Jsii::Type.check_type(@wrap_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iMmJpLkNmblBhcnRuZXJzaGlwLldyYXBPcHRpb25zUHJvcGVydHkifV19fQ==")), "wrapOptions") unless @wrap_options.nil?
end

Instance Attribute Details

#commonAWSCDK::IResolvable, ... (readonly)

A container for the X12 outbound EDI headers.



1000
1001
1002
# File 'b2_bi/cfn_partnership.rb', line 1000

def common
  @common
end

Class Method Details

.jsii_propertiesObject



1005
1006
1007
1008
1009
1010
# File 'b2_bi/cfn_partnership.rb', line 1005

def self.jsii_properties
  {
    :common => "common",
    :wrap_options => "wrapOptions",
  }
end

Instance Method Details

#to_jsiiObject



1012
1013
1014
1015
1016
1017
1018
1019
# File 'b2_bi/cfn_partnership.rb', line 1012

def to_jsii
  result = {}
  result.merge!({
    "common" => @common,
    "wrapOptions" => @wrap_options,
  })
  result.compact
end