# ExactResponseFieldsProperty

Contains the names of the fields used for an exact response to the user.

- Source: Generated at build time
- Type last changed: v2.187.0 · 31 Mar 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const exactResponseFieldsProperty: lex.CfnBot.ExactResponseFieldsProperty = {
  answerField: 'answerField',
  questionField: 'questionField',
};
```

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_lex as lex

exact_response_fields_property = lex.CfnBot.ExactResponseFieldsProperty(
    answer_field="answerField",
    question_field="questionField"
)
```

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

ExactResponseFieldsProperty exactResponseFieldsProperty = ExactResponseFieldsProperty.builder()
        .answerField("answerField")
        .questionField("questionField")
        .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.Lex;

var exactResponseFieldsProperty = new ExactResponseFieldsProperty {
    AnswerField = "answerField",
    QuestionField = "questionField"
};
```

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"

exactResponseFieldsProperty := &ExactResponseFieldsProperty{
	AnswerField: jsii.String("answerField"),
	QuestionField: jsii.String("questionField"),
}
```

## Properties

- `answerField`: string — The name of the field that contains the answer to the query made to the OpenSearch Service database.

- `questionField`: string — The name of the field that contains the query made to the OpenSearch Service database.
