EvaluationFormSingleSelectQuestionOptionProperty Struct
Information about the automation configuration in single select questions.
| Source | |
|---|---|
| Type last changed |
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 evaluationFormSingleSelectQuestionOptionProperty: connect.CfnEvaluationForm.EvaluationFormSingleSelectQuestionOptionProperty = {
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,
};
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_option_property = 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
)
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.*;
EvaluationFormSingleSelectQuestionOptionProperty evaluationFormSingleSelectQuestionOptionProperty = 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();
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 evaluationFormSingleSelectQuestionOptionProperty = 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
};
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"
evaluationFormSingleSelectQuestionOptionProperty := &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),
}
Properties
automaticFailoptionalboolean | IResolvableautomatic_failoptionaltyping.Union[bool, IResolvable]automaticFailoptionalBooleanAutomaticFailoptionalboolAutomaticFailoptionalinterface{} #The flag to mark the option as automatic fail.
If an automatic fail answer is provided, the overall evaluation gets a score of 0.
automaticFailConfigurationoptionalIResolvable | CfnEvaluationForm.automatic_fail_configurationoptionaltyping.Union[IResolvable, AutomaticFailConfigurationProperty]automaticFailConfigurationoptionalIResolvableAutomaticFailConfigurationoptionalIResolvableAutomaticFailConfigurationoptionalinterface{} #Whether automatic fail is configured on a single select question.
pointsConfigurationoptionalIResolvable | CfnEvaluationForm.points_configurationoptionaltyping.Union[IResolvable, QuestionOptionPointsConfigurationProperty]pointsConfigurationoptionalIResolvablePointsConfigurationoptionalIResolvablePointsConfigurationoptionalinterface{} #Information about the points configuration for an answer option.
The identifier of the answer option. An identifier must be unique within the question.
Length Constraints : Minimum length of 1. Maximum length of 40.
scoreoptionalnumberscoreoptionalint | floatscoreoptionalNumberScoreoptionaldoubleScoreoptional*float64 #The score assigned to the answer option.
Minimum : 0
Maximum : 10
The title of the answer option.
Length Constraints : Minimum length of 1. Maximum length of 128.