Skip to content
v2.278.0

EvaluationFormMultiSelectQuestionPropertiesProperty Struct ​

Properties for a multi-select question in an evaluation form.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const evaluationFormMultiSelectQuestionPropertiesProperty: connect.CfnEvaluationForm.EvaluationFormMultiSelectQuestionPropertiesProperty = {
  options: [{
    refId: 'refId',
    text: 'text',

    // the properties below are optional
    automaticFail: false,
    automaticFailConfiguration: {
      targetSection: 'targetSection',
    },
    pointsConfiguration: {
      pointValue: 123,

      // the properties below are optional
      isBonus: false,
    },
    score: 123,
  }],

  // the properties below are optional
  automation: {
    answerSource: {
      sourceType: 'sourceType',
    },
    defaultOptionRefIds: ['defaultOptionRefIds'],
    options: [{
      ruleCategory: {
        category: 'category',
        condition: 'condition',
        optionRefIds: ['optionRefIds'],
      },
    }],
  },
  displayAs: 'displayAs',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_connect as connect

evaluation_form_multi_select_question_properties_property = connect.CfnEvaluationForm.EvaluationFormMultiSelectQuestionPropertiesProperty(
    options=[connect.CfnEvaluationForm.EvaluationFormMultiSelectQuestionOptionProperty(
        ref_id="refId",
        text="text",

        # the properties below are optional
        automatic_fail=False,
        automatic_fail_configuration=connect.CfnEvaluationForm.AutomaticFailConfigurationProperty(
            target_section="targetSection"
        ),
        points_configuration=connect.CfnEvaluationForm.QuestionOptionPointsConfigurationProperty(
            point_value=123,

            # the properties below are optional
            is_bonus=False
        ),
        score=123
    )],

    # the properties below are optional
    automation=connect.CfnEvaluationForm.EvaluationFormMultiSelectQuestionAutomationProperty(
        answer_source=connect.CfnEvaluationForm.EvaluationFormQuestionAutomationAnswerSourceProperty(
            source_type="sourceType"
        ),
        default_option_ref_ids=["defaultOptionRefIds"],
        options=[connect.CfnEvaluationForm.EvaluationFormMultiSelectQuestionAutomationOptionProperty(
            rule_category=connect.CfnEvaluationForm.MultiSelectQuestionRuleCategoryAutomationProperty(
                category="category",
                condition="condition",
                option_ref_ids=["optionRefIds"]
            )
        )]
    ),
    display_as="displayAs"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.connect.*;

EvaluationFormMultiSelectQuestionPropertiesProperty evaluationFormMultiSelectQuestionPropertiesProperty = EvaluationFormMultiSelectQuestionPropertiesProperty.builder()
        .options(List.of(EvaluationFormMultiSelectQuestionOptionProperty.builder()
                .refId("refId")
                .text("text")

                // the properties below are optional
                .automaticFail(false)
                .automaticFailConfiguration(AutomaticFailConfigurationProperty.builder()
                        .targetSection("targetSection")
                        .build())
                .pointsConfiguration(QuestionOptionPointsConfigurationProperty.builder()
                        .pointValue(123)

                        // the properties below are optional
                        .isBonus(false)
                        .build())
                .score(123)
                .build()))

        // the properties below are optional
        .automation(EvaluationFormMultiSelectQuestionAutomationProperty.builder()
                .answerSource(EvaluationFormQuestionAutomationAnswerSourceProperty.builder()
                        .sourceType("sourceType")
                        .build())
                .defaultOptionRefIds(List.of("defaultOptionRefIds"))
                .options(List.of(EvaluationFormMultiSelectQuestionAutomationOptionProperty.builder()
                        .ruleCategory(MultiSelectQuestionRuleCategoryAutomationProperty.builder()
                                .category("category")
                                .condition("condition")
                                .optionRefIds(List.of("optionRefIds"))
                                .build())
                        .build()))
                .build())
        .displayAs("displayAs")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Connect;

var evaluationFormMultiSelectQuestionPropertiesProperty = new EvaluationFormMultiSelectQuestionPropertiesProperty {
    Options = new [] { new EvaluationFormMultiSelectQuestionOptionProperty {
        RefId = "refId",
        Text = "text",

        // the properties below are optional
        AutomaticFail = false,
        AutomaticFailConfiguration = new AutomaticFailConfigurationProperty {
            TargetSection = "targetSection"
        },
        PointsConfiguration = new QuestionOptionPointsConfigurationProperty {
            PointValue = 123,

            // the properties below are optional
            IsBonus = false
        },
        Score = 123
    } },

    // the properties below are optional
    Automation = new EvaluationFormMultiSelectQuestionAutomationProperty {
        AnswerSource = new EvaluationFormQuestionAutomationAnswerSourceProperty {
            SourceType = "sourceType"
        },
        DefaultOptionRefIds = new [] { "defaultOptionRefIds" },
        Options = new [] { new EvaluationFormMultiSelectQuestionAutomationOptionProperty {
            RuleCategory = new MultiSelectQuestionRuleCategoryAutomationProperty {
                Category = "category",
                Condition = "condition",
                OptionRefIds = new [] { "optionRefIds" }
            }
        } }
    },
    DisplayAs = "displayAs"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

evaluationFormMultiSelectQuestionPropertiesProperty := &EvaluationFormMultiSelectQuestionPropertiesProperty{
	Options: []interface{}{
		&EvaluationFormMultiSelectQuestionOptionProperty{
			RefId: jsii.String("refId"),
			Text: jsii.String("text"),

			// the properties below are optional
			AutomaticFail: jsii.Boolean(false),
			AutomaticFailConfiguration: &AutomaticFailConfigurationProperty{
				TargetSection: jsii.String("targetSection"),
			},
			PointsConfiguration: &QuestionOptionPointsConfigurationProperty{
				PointValue: jsii.Number(123),

				// the properties below are optional
				IsBonus: jsii.Boolean(false),
			},
			Score: jsii.Number(123),
		},
	},

	// the properties below are optional
	Automation: &EvaluationFormMultiSelectQuestionAutomationProperty{
		AnswerSource: &EvaluationFormQuestionAutomationAnswerSourceProperty{
			SourceType: jsii.String("sourceType"),
		},
		DefaultOptionRefIds: []*string{
			jsii.String("defaultOptionRefIds"),
		},
		Options: []interface{}{
			&EvaluationFormMultiSelectQuestionAutomationOptionProperty{
				RuleCategory: &MultiSelectQuestionRuleCategoryAutomationProperty{
					Category: jsii.String("category"),
					Condition: jsii.String("condition"),
					OptionRefIds: []*string{
						jsii.String("optionRefIds"),
					},
				},
			},
		},
	},
	DisplayAs: jsii.String("displayAs"),
}

Properties ​

automationoptionalIResolvable | CfnEvaluationForm.EvaluationFormMultiSelectQuestionAutomationPropertyautomationoptionaltyping.Union[IResolvable, EvaluationFormMultiSelectQuestionAutomationProperty]automationoptionalIResolvableAutomationoptionalIResolvableAutomationoptionalinterface{} #
Automation configuration for this multi-select question.
displayAsoptionalstringdisplay_asoptionalstrdisplayAsoptionalStringDisplayAsoptionalstringDisplayAsoptional*string #
Display format for the multi-select question.
Options available for this multi-select question.