# EvaluationFormNumericQuestionOptionProperty

Information about the option range used for scoring in numeric questions.

- Source: Generated at build time
- Type last changed: v2.262.0 · 22 Jul 2026

## Example

TypeScript:

```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 evaluationFormNumericQuestionOptionProperty: connect.CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty = {
  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:

```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_option_property = 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:

```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.*;

EvaluationFormNumericQuestionOptionProperty evaluationFormNumericQuestionOptionProperty = 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();
```

C# / .NET:

```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 evaluationFormNumericQuestionOptionProperty = 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
};
```

Golang:

```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"

evaluationFormNumericQuestionOptionProperty := &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

- `automaticFail`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — The flag to mark the option as automatic fail.

  If an automatic fail answer is provided, the overall evaluation gets a score of 0.

- `automaticFailConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEvaluationForm.AutomaticFailConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnEvaluationForm.AutomaticFailConfigurationProperty.html) — A configuration for automatic fail.

- `maxValue`: number (required) — The maximum answer value of the range option.

- `minValue`: number (required) — The minimum answer value of the range option.

- `pointsConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEvaluationForm.QuestionOptionPointsConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnEvaluationForm.QuestionOptionPointsConfigurationProperty.html) — Information about the points configuration for an answer option.

- `score`: number — The score assigned to answer values within the range option.

  *Minimum* : 0

  *Maximum* : 10
