Skip to content
v2.278.0

EvaluationFormSingleSelectQuestionPropertiesProperty Struct ​

Information about the options in single select questions.

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 evaluationFormSingleSelectQuestionPropertiesProperty: connect.CfnEvaluationForm.EvaluationFormSingleSelectQuestionPropertiesProperty = {
  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',
    },
    defaultOptionRefId: 'defaultOptionRefId',
    options: [{
      ruleCategory: {
        category: 'category',
        condition: 'condition',
        optionRefId: 'optionRefId',
      },
    }],
  },
  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_single_select_question_properties_property = connect.CfnEvaluationForm.EvaluationFormSingleSelectQuestionPropertiesProperty(
    options=[connect.CfnEvaluationForm.EvaluationFormSingleSelectQuestionOptionProperty(
        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.EvaluationFormSingleSelectQuestionAutomationProperty(
        answer_source=connect.CfnEvaluationForm.EvaluationFormQuestionAutomationAnswerSourceProperty(
            source_type="sourceType"
        ),
        default_option_ref_id="defaultOptionRefId",
        options=[connect.CfnEvaluationForm.EvaluationFormSingleSelectQuestionAutomationOptionProperty(
            rule_category=connect.CfnEvaluationForm.SingleSelectQuestionRuleCategoryAutomationProperty(
                category="category",
                condition="condition",
                option_ref_id="optionRefId"
            )
        )]
    ),
    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.*;

EvaluationFormSingleSelectQuestionPropertiesProperty evaluationFormSingleSelectQuestionPropertiesProperty = EvaluationFormSingleSelectQuestionPropertiesProperty.builder()
        .options(List.of(EvaluationFormSingleSelectQuestionOptionProperty.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(EvaluationFormSingleSelectQuestionAutomationProperty.builder()
                .answerSource(EvaluationFormQuestionAutomationAnswerSourceProperty.builder()
                        .sourceType("sourceType")
                        .build())
                .defaultOptionRefId("defaultOptionRefId")
                .options(List.of(EvaluationFormSingleSelectQuestionAutomationOptionProperty.builder()
                        .ruleCategory(SingleSelectQuestionRuleCategoryAutomationProperty.builder()
                                .category("category")
                                .condition("condition")
                                .optionRefId("optionRefId")
                                .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 evaluationFormSingleSelectQuestionPropertiesProperty = new EvaluationFormSingleSelectQuestionPropertiesProperty {
    Options = new [] { new EvaluationFormSingleSelectQuestionOptionProperty {
        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 EvaluationFormSingleSelectQuestionAutomationProperty {
        AnswerSource = new EvaluationFormQuestionAutomationAnswerSourceProperty {
            SourceType = "sourceType"
        },
        DefaultOptionRefId = "defaultOptionRefId",
        Options = new [] { new EvaluationFormSingleSelectQuestionAutomationOptionProperty {
            RuleCategory = new SingleSelectQuestionRuleCategoryAutomationProperty {
                Category = "category",
                Condition = "condition",
                OptionRefId = "optionRefId"
            }
        } }
    },
    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"

evaluationFormSingleSelectQuestionPropertiesProperty := &EvaluationFormSingleSelectQuestionPropertiesProperty{
	Options: []interface{}{
		&EvaluationFormSingleSelectQuestionOptionProperty{
			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: &EvaluationFormSingleSelectQuestionAutomationProperty{
		AnswerSource: &EvaluationFormQuestionAutomationAnswerSourceProperty{
			SourceType: jsii.String("sourceType"),
		},
		DefaultOptionRefId: jsii.String("defaultOptionRefId"),
		Options: []interface{}{
			&EvaluationFormSingleSelectQuestionAutomationOptionProperty{
				RuleCategory: &SingleSelectQuestionRuleCategoryAutomationProperty{
					Category: jsii.String("category"),
					Condition: jsii.String("condition"),
					OptionRefId: jsii.String("optionRefId"),
				},
			},
		},
	},
	DisplayAs: jsii.String("displayAs"),
}

Properties ​

automationoptionalIResolvable | CfnEvaluationForm.EvaluationFormSingleSelectQuestionAutomationPropertyautomationoptionaltyping.Union[IResolvable, EvaluationFormSingleSelectQuestionAutomationProperty]automationoptionalIResolvableAutomationoptionalIResolvableAutomationoptionalinterface{} #
The display mode of the single select question.
displayAsoptionalstringdisplay_asoptionalstrdisplayAsoptionalStringDisplayAsoptionalstringDisplayAsoptional*string #
The display mode of the single select question.

Allowed values : DROPDOWN | RADIO

The answer options of the single select question.

Minimum : 2

Maximum : 256