Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormItemEnablementSourceProperty

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

Overview

An enablement expression source item.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, ref_id: nil) ⇒ EvaluationFormItemEnablementSourceProperty

Returns a new instance of EvaluationFormItemEnablementSourceProperty.

Parameters:

  • type (String)

    A type of source item.

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

    A referenceId of the source item.



934
935
936
937
938
939
# File 'connect/cfn_evaluation_form.rb', line 934

def initialize(type:, ref_id: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @ref_id = ref_id
  Jsii::Type.check_type(@ref_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "refId") unless @ref_id.nil?
end

Instance Attribute Details

#ref_idString? (readonly)

A referenceId of the source item.



950
951
952
# File 'connect/cfn_evaluation_form.rb', line 950

def ref_id
  @ref_id
end

#typeString (readonly)

A type of source item.



945
946
947
# File 'connect/cfn_evaluation_form.rb', line 945

def type
  @type
end

Class Method Details

.jsii_propertiesObject



952
953
954
955
956
957
# File 'connect/cfn_evaluation_form.rb', line 952

def self.jsii_properties
  {
    :type => "type",
    :ref_id => "refId",
  }
end

Instance Method Details

#to_jsiiObject



959
960
961
962
963
964
965
966
# File 'connect/cfn_evaluation_form.rb', line 959

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "refId" => @ref_id,
  })
  result.compact
end