aws-cdk-lib.aws_connect.CfnEvaluationForm.EvaluationFormQuestionProperty

interface EvaluationFormQuestionProperty

LanguageType name
.NETAmazon.CDK.AWS.Connect.CfnEvaluationForm.EvaluationFormQuestionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsconnect#CfnEvaluationForm_EvaluationFormQuestionProperty
Javasoftware.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormQuestionProperty
Pythonaws_cdk.aws_connect.CfnEvaluationForm.EvaluationFormQuestionProperty
TypeScript aws-cdk-lib » aws_connect » CfnEvaluationForm » EvaluationFormQuestionProperty

Information about a question from an evaluation form.

Example

// 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 evaluationFormQuestionProperty: connect.CfnEvaluationForm.EvaluationFormQuestionProperty = {
  questionType: 'questionType',
  refId: 'refId',
  title: 'title',

  // the properties below are optional
  instructions: 'instructions',
  notApplicableEnabled: false,
  questionTypeProperties: {
    numeric: {
      maxValue: 123,
      minValue: 123,

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

        // the properties below are optional
        automaticFail: false,
        score: 123,
      }],
    },
    singleSelect: {
      options: [{
        refId: 'refId',
        text: 'text',

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

      // the properties below are optional
      automation: {
        options: [{
          ruleCategory: {
            category: 'category',
            condition: 'condition',
            optionRefId: 'optionRefId',
          },
        }],

        // the properties below are optional
        defaultOptionRefId: 'defaultOptionRefId',
      },
      displayAs: 'displayAs',
    },
  },
  weight: 123,
};

Properties

NameTypeDescription
questionTypestringThe type of the question.
refIdstringThe identifier of the question. An identifier must be unique within the evaluation form.
titlestringThe title of the question.
instructions?stringThe instructions of the section.
notApplicableEnabled?boolean | IResolvableThe flag to enable not applicable answers to the question.
questionTypeProperties?IResolvable | EvaluationFormQuestionTypePropertiesPropertyThe properties of the type of question.
weight?numberThe scoring weight of the section.

questionType

Type: string

The type of the question.

Allowed values : NUMERIC | SINGLESELECT | TEXT


refId

Type: string

The identifier of the question. An identifier must be unique within the evaluation form.

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


title

Type: string

The title of the question.

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


instructions?

Type: string (optional)

The instructions of the section.

Length Constraints : Minimum length of 0. Maximum length of 1024.


notApplicableEnabled?

Type: boolean | IResolvable (optional)

The flag to enable not applicable answers to the question.


questionTypeProperties?

Type: IResolvable | EvaluationFormQuestionTypePropertiesProperty (optional)

The properties of the type of question.

Text questions do not have to define question type properties.


weight?

Type: number (optional)

The scoring weight of the section.

Minimum : 0

Maximum : 100