Skip to content
v2.278.0

EvaluationFormNumericQuestionPropertiesProperty Struct ​

Information about properties for a numeric 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 evaluationFormNumericQuestionPropertiesProperty: connect.CfnEvaluationForm.EvaluationFormNumericQuestionPropertiesProperty = {
  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,
  }],
};
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_numeric_question_properties_property = 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
    )]
)
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.*;

EvaluationFormNumericQuestionPropertiesProperty evaluationFormNumericQuestionPropertiesProperty = 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();
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 evaluationFormNumericQuestionPropertiesProperty = 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
    } }
};
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"

evaluationFormNumericQuestionPropertiesProperty := &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),
		},
	},
}

Properties ​

automationoptionalIResolvable | CfnEvaluationForm.EvaluationFormNumericQuestionAutomationPropertyautomationoptionaltyping.Union[IResolvable, EvaluationFormNumericQuestionAutomationProperty]automationoptionalIResolvableAutomationoptionalIResolvableAutomationoptionalinterface{} #
The automation properties of the numeric question.
maxValuenumbermax_valueint | floatmaxValueNumberMaxValuedoubleMaxValue*float64 required #
The maximum answer value.
minValuenumbermin_valueint | floatminValueNumberMinValuedoubleMinValue*float64 required #
The minimum answer value.
optionsoptionalIResolvable | IResolvable | CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty[]optionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EvaluationFormNumericQuestionOptionProperty]]]optionsoptionalIResolvableOptionsoptionalIResolvableOptionsoptionalinterface{} #
The scoring options of the numeric question.