Class: AWSCDK::Connect::CfnEvaluationForm::SingleSelectQuestionRuleCategoryAutomationProperty

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

Overview

Information about the automation option based on a rule category for a single select question.

Length Constraints : Minimum length of 1. Maximum length of 50.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(category:, condition:, option_ref_id:) ⇒ SingleSelectQuestionRuleCategoryAutomationProperty

Returns a new instance of SingleSelectQuestionRuleCategoryAutomationProperty.

Parameters:

  • category (String)

    The category name, as defined in Rules.

  • condition (String)

    The condition to apply for the automation option.

  • option_ref_id (String)

    The identifier of the answer option. An identifier must be unique within the question.



2355
2356
2357
2358
2359
2360
2361
2362
# File 'connect/cfn_evaluation_form.rb', line 2355

def initialize(category:, condition:, option_ref_id:)
  @category = category
  Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "category")
  @condition = condition
  Jsii::Type.check_type(@condition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "condition")
  @option_ref_id = option_ref_id
  Jsii::Type.check_type(@option_ref_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "optionRefId")
end

Instance Attribute Details

#categoryString (readonly)

The category name, as defined in Rules.

Minimum : 1

Maximum : 50



2372
2373
2374
# File 'connect/cfn_evaluation_form.rb', line 2372

def category
  @category
end

#conditionString (readonly)

The condition to apply for the automation option.

If the condition is PRESENT, then the option is applied when the contact data includes the category. Similarly, if the condition is NOT_PRESENT, then the option is applied when the contact data does not include the category.

Allowed values : PRESENT | NOT_PRESENT

Maximum : 50



2383
2384
2385
# File 'connect/cfn_evaluation_form.rb', line 2383

def condition
  @condition
end

#option_ref_idString (readonly)

The identifier of the answer option. An identifier must be unique within the question.

Length Constraints : Minimum length of 1. Maximum length of 40.



2390
2391
2392
# File 'connect/cfn_evaluation_form.rb', line 2390

def option_ref_id
  @option_ref_id
end

Class Method Details

.jsii_propertiesObject



2392
2393
2394
2395
2396
2397
2398
# File 'connect/cfn_evaluation_form.rb', line 2392

def self.jsii_properties
  {
    :category => "category",
    :condition => "condition",
    :option_ref_id => "optionRefId",
  }
end

Instance Method Details

#to_jsiiObject



2400
2401
2402
2403
2404
2405
2406
2407
2408
# File 'connect/cfn_evaluation_form.rb', line 2400

def to_jsii
  result = {}
  result.merge!({
    "category" => @category,
    "condition" => @condition,
    "optionRefId" => @option_ref_id,
  })
  result.compact
end