Class: AWSCDK::Connect::CfnRule::FieldProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_rule.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, value:) ⇒ FieldProperty

Returns a new instance of FieldProperty.

Parameters:



775
776
777
778
779
780
# File 'connect/cfn_rule.rb', line 775

def initialize(id:, value:)
  @id = id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  @value = value.is_a?(Hash) ? ::AWSCDK::Connect::CfnRule::FieldValueProperty.new(**value.transform_keys(&:to_sym)) : value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmblJ1bGUuRmllbGRWYWx1ZVByb3BlcnR5In1dfX0=")), "value")
end

Instance Attribute Details

#idString (readonly)



784
785
786
# File 'connect/cfn_rule.rb', line 784

def id
  @id
end

Class Method Details

.jsii_propertiesObject



791
792
793
794
795
796
# File 'connect/cfn_rule.rb', line 791

def self.jsii_properties
  {
    :id => "id",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



798
799
800
801
802
803
804
805
# File 'connect/cfn_rule.rb', line 798

def to_jsii
  result = {}
  result.merge!({
    "id" => @id,
    "value" => @value,
  })
  result.compact
end