EvaluationFormSingleSelectQuestionAutomationProperty Struct
Information about the automation configuration in single select questions.
Automation options are evaluated in order, and the first matched option is applied. If no automation option matches, and there is a default option, then the default option is applied.
| 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 evaluationFormSingleSelectQuestionAutomationProperty: connect.CfnEvaluationForm.EvaluationFormSingleSelectQuestionAutomationProperty = {
answerSource: {
sourceType: 'sourceType',
},
defaultOptionRefId: 'defaultOptionRefId',
options: [{
ruleCategory: {
category: 'category',
condition: 'condition',
optionRefId: 'optionRefId',
},
}],
};
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_automation_property = 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"
)
)]
)
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.*;
EvaluationFormSingleSelectQuestionAutomationProperty evaluationFormSingleSelectQuestionAutomationProperty = 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();
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 evaluationFormSingleSelectQuestionAutomationProperty = new EvaluationFormSingleSelectQuestionAutomationProperty {
AnswerSource = new EvaluationFormQuestionAutomationAnswerSourceProperty {
SourceType = "sourceType"
},
DefaultOptionRefId = "defaultOptionRefId",
Options = new [] { new EvaluationFormSingleSelectQuestionAutomationOptionProperty {
RuleCategory = new SingleSelectQuestionRuleCategoryAutomationProperty {
Category = "category",
Condition = "condition",
OptionRefId = "optionRefId"
}
} }
};
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"
evaluationFormSingleSelectQuestionAutomationProperty := &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"),
},
},
},
}
Properties
answerSourceoptionalIResolvable | CfnEvaluationForm.answer_sourceoptionaltyping.Union[IResolvable, EvaluationFormQuestionAutomationAnswerSourceProperty]answerSourceoptionalIResolvableAnswerSourceoptionalIResolvableAnswerSourceoptionalinterface{} #Automation answer source.
defaultOptionRefIdoptionalstringdefault_option_ref_idoptionalstrdefaultOptionRefIdoptionalStringDefaultOptionRefIdoptionalstringDefaultOptionRefIdoptional*string #The identifier of the default answer option, when none of the automation options match the criteria.
Length Constraints : Minimum length of 1. Maximum length of 40.
optionsoptionalIResolvable | IResolvable | CfnEvaluationForm.optionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EvaluationFormSingleSelectQuestionAutomationOptionProperty]]]optionsoptionalIResolvableOptionsoptionalIResolvableOptionsoptionalinterface{} #The automation options of the single select question.
Minimum : 1
Maximum : 20