Class: AWSCDK::B2BI::CfnTransformer::X12CodeListValidationRuleProperty

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

Overview

Code list validation rule configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(element_id:, codes_to_add: nil, codes_to_remove: nil) ⇒ X12CodeListValidationRuleProperty

Returns a new instance of X12CodeListValidationRuleProperty.

Parameters:

  • element_id (String)

    Specifies the four-digit element ID to which the code list modifications apply.

  • codes_to_add (Array<String>, nil) (defaults to: nil)

    Specifies a list of code values to add to the element's allowed values.

  • codes_to_remove (Array<String>, nil) (defaults to: nil)

    Specifies a list of code values to remove from the element's allowed values.



1068
1069
1070
1071
1072
1073
1074
1075
# File 'b2_bi/cfn_transformer.rb', line 1068

def initialize(element_id:, codes_to_add: nil, codes_to_remove: nil)
  @element_id = element_id
  Jsii::Type.check_type(@element_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "elementId")
  @codes_to_add = codes_to_add
  Jsii::Type.check_type(@codes_to_add, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "codesToAdd") unless @codes_to_add.nil?
  @codes_to_remove = codes_to_remove
  Jsii::Type.check_type(@codes_to_remove, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "codesToRemove") unless @codes_to_remove.nil?
end

Instance Attribute Details

#codes_to_addArray<String>? (readonly)

Specifies a list of code values to add to the element's allowed values.

These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification.



1090
1091
1092
# File 'b2_bi/cfn_transformer.rb', line 1090

def codes_to_add
  @codes_to_add
end

#codes_to_removeArray<String>? (readonly)

Specifies a list of code values to remove from the element's allowed values.

These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification.



1097
1098
1099
# File 'b2_bi/cfn_transformer.rb', line 1097

def codes_to_remove
  @codes_to_remove
end

#element_idString (readonly)

Specifies the four-digit element ID to which the code list modifications apply.

This identifies which X12 element will have its allowed code values modified.



1083
1084
1085
# File 'b2_bi/cfn_transformer.rb', line 1083

def element_id
  @element_id
end

Class Method Details

.jsii_propertiesObject



1099
1100
1101
1102
1103
1104
1105
# File 'b2_bi/cfn_transformer.rb', line 1099

def self.jsii_properties
  {
    :element_id => "elementId",
    :codes_to_add => "codesToAdd",
    :codes_to_remove => "codesToRemove",
  }
end

Instance Method Details

#to_jsiiObject



1107
1108
1109
1110
1111
1112
1113
1114
1115
# File 'b2_bi/cfn_transformer.rb', line 1107

def to_jsii
  result = {}
  result.merge!({
    "elementId" => @element_id,
    "codesToAdd" => @codes_to_add,
    "codesToRemove" => @codes_to_remove,
  })
  result.compact
end