Skip to content
v2.278.0

EvaluationFormQuestionTypePropertiesProperty Struct ​

Information about properties for a question in an evaluation form.

The question type properties must be either for a numeric question or a single select question.

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 evaluationFormQuestionTypePropertiesProperty: connect.CfnEvaluationForm.EvaluationFormQuestionTypePropertiesProperty = {
  multiSelect: {
    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',
  },
  numeric: {
    maxValue: 123,
    minValue: 123,

    // the properties below are optional
    automation: {
      answerSource: {
        sourceType: 'sourceType',
      },
      propertyValue: {
        label: 'label',
      },
    },
    options: [{
      maxValue: 123,
      minValue: 123,

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

        // the properties below are optional
        isBonus: false,
      },
      score: 123,
    }],
  },
  singleSelect: {
    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',
  },
  text: {
    automation: {
      answerSource: {
        sourceType: 'sourceType',
      },
    },
  },
};
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_question_type_properties_property = connect.CfnEvaluationForm.EvaluationFormQuestionTypePropertiesProperty(
    multi_select=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"
    ),
    numeric=connect.CfnEvaluationForm.EvaluationFormNumericQuestionPropertiesProperty(
        max_value=123,
        min_value=123,

        # the properties below are optional
        automation=connect.CfnEvaluationForm.EvaluationFormNumericQuestionAutomationProperty(
            answer_source=connect.CfnEvaluationForm.EvaluationFormQuestionAutomationAnswerSourceProperty(
                source_type="sourceType"
            ),
            property_value=connect.CfnEvaluationForm.NumericQuestionPropertyValueAutomationProperty(
                label="label"
            )
        ),
        options=[connect.CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty(
            max_value=123,
            min_value=123,

            # 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
        )]
    ),
    single_select=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"
    ),
    text=connect.CfnEvaluationForm.EvaluationFormTextQuestionPropertiesProperty(
        automation=connect.CfnEvaluationForm.EvaluationFormTextQuestionAutomationProperty(
            answer_source=connect.CfnEvaluationForm.EvaluationFormQuestionAutomationAnswerSourceProperty(
                source_type="sourceType"
            )
        )
    )
)
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.*;

EvaluationFormQuestionTypePropertiesProperty evaluationFormQuestionTypePropertiesProperty = EvaluationFormQuestionTypePropertiesProperty.builder()
        .multiSelect(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())
        .numeric(EvaluationFormNumericQuestionPropertiesProperty.builder()
                .maxValue(123)
                .minValue(123)

                // the properties below are optional
                .automation(EvaluationFormNumericQuestionAutomationProperty.builder()
                        .answerSource(EvaluationFormQuestionAutomationAnswerSourceProperty.builder()
                                .sourceType("sourceType")
                                .build())
                        .propertyValue(NumericQuestionPropertyValueAutomationProperty.builder()
                                .label("label")
                                .build())
                        .build())
                .options(List.of(EvaluationFormNumericQuestionOptionProperty.builder()
                        .maxValue(123)
                        .minValue(123)

                        // 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()))
                .build())
        .singleSelect(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())
        .text(EvaluationFormTextQuestionPropertiesProperty.builder()
                .automation(EvaluationFormTextQuestionAutomationProperty.builder()
                        .answerSource(EvaluationFormQuestionAutomationAnswerSourceProperty.builder()
                                .sourceType("sourceType")
                                .build())
                        .build())
                .build())
        .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 evaluationFormQuestionTypePropertiesProperty = new EvaluationFormQuestionTypePropertiesProperty {
    MultiSelect = 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"
    },
    Numeric = new EvaluationFormNumericQuestionPropertiesProperty {
        MaxValue = 123,
        MinValue = 123,

        // the properties below are optional
        Automation = new EvaluationFormNumericQuestionAutomationProperty {
            AnswerSource = new EvaluationFormQuestionAutomationAnswerSourceProperty {
                SourceType = "sourceType"
            },
            PropertyValue = new NumericQuestionPropertyValueAutomationProperty {
                Label = "label"
            }
        },
        Options = new [] { new EvaluationFormNumericQuestionOptionProperty {
            MaxValue = 123,
            MinValue = 123,

            // 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
        } }
    },
    SingleSelect = 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"
    },
    Text = new EvaluationFormTextQuestionPropertiesProperty {
        Automation = new EvaluationFormTextQuestionAutomationProperty {
            AnswerSource = new EvaluationFormQuestionAutomationAnswerSourceProperty {
                SourceType = "sourceType"
            }
        }
    }
};
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"

evaluationFormQuestionTypePropertiesProperty := &EvaluationFormQuestionTypePropertiesProperty{
	MultiSelect: &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"),
	},
	Numeric: &EvaluationFormNumericQuestionPropertiesProperty{
		MaxValue: jsii.Number(123),
		MinValue: jsii.Number(123),

		// the properties below are optional
		Automation: &EvaluationFormNumericQuestionAutomationProperty{
			AnswerSource: &EvaluationFormQuestionAutomationAnswerSourceProperty{
				SourceType: jsii.String("sourceType"),
			},
			PropertyValue: &NumericQuestionPropertyValueAutomationProperty{
				Label: jsii.String("label"),
			},
		},
		Options: []interface{}{
			&EvaluationFormNumericQuestionOptionProperty{
				MaxValue: jsii.Number(123),
				MinValue: jsii.Number(123),

				// 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),
			},
		},
	},
	SingleSelect: &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"),
	},
	Text: &EvaluationFormTextQuestionPropertiesProperty{
		Automation: &EvaluationFormTextQuestionAutomationProperty{
			AnswerSource: &EvaluationFormQuestionAutomationAnswerSourceProperty{
				SourceType: jsii.String("sourceType"),
			},
		},
	},
}

Properties ​

multiSelectoptionalIResolvable | CfnEvaluationForm.EvaluationFormMultiSelectQuestionPropertiesPropertymulti_selectoptionaltyping.Union[IResolvable, EvaluationFormMultiSelectQuestionPropertiesProperty]multiSelectoptionalIResolvableMultiSelectoptionalIResolvableMultiSelectoptionalinterface{} #
Properties for multi-select question types.
numericoptionalIResolvable | CfnEvaluationForm.EvaluationFormNumericQuestionPropertiesPropertynumericoptionaltyping.Union[IResolvable, EvaluationFormNumericQuestionPropertiesProperty]numericoptionalIResolvableNumericoptionalIResolvableNumericoptionalinterface{} #
The properties of the numeric question.
singleSelectoptionalIResolvable | CfnEvaluationForm.EvaluationFormSingleSelectQuestionPropertiesPropertysingle_selectoptionaltyping.Union[IResolvable, EvaluationFormSingleSelectQuestionPropertiesProperty]singleSelectoptionalIResolvableSingleSelectoptionalIResolvableSingleSelectoptionalinterface{} #
The properties of the numeric question.
The properties of the text question.