# QueryGenerationTableProperty

Contains information about a table for the query engine to consider.

- Source: Generated at build time
- Type last changed: v2.177.0 · 25 Jan 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_bedrock as bedrock } from 'aws-cdk-lib';
const queryGenerationTableProperty: bedrock.CfnKnowledgeBase.QueryGenerationTableProperty = {
  name: 'name',

  // the properties below are optional
  columns: [{
    description: 'description',
    inclusion: 'inclusion',
    name: 'name',
  }],
  description: 'description',
  inclusion: 'inclusion',
};
```

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_bedrock as bedrock

query_generation_table_property = bedrock.CfnKnowledgeBase.QueryGenerationTableProperty(
    name="name",

    # the properties below are optional
    columns=[bedrock.CfnKnowledgeBase.QueryGenerationColumnProperty(
        description="description",
        inclusion="inclusion",
        name="name"
    )],
    description="description",
    inclusion="inclusion"
)
```

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

QueryGenerationTableProperty queryGenerationTableProperty = QueryGenerationTableProperty.builder()
        .name("name")

        // the properties below are optional
        .columns(List.of(QueryGenerationColumnProperty.builder()
                .description("description")
                .inclusion("inclusion")
                .name("name")
                .build()))
        .description("description")
        .inclusion("inclusion")
        .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.Bedrock;

var queryGenerationTableProperty = new QueryGenerationTableProperty {
    Name = "name",

    // the properties below are optional
    Columns = new [] { new QueryGenerationColumnProperty {
        Description = "description",
        Inclusion = "inclusion",
        Name = "name"
    } },
    Description = "description",
    Inclusion = "inclusion"
};
```

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"

queryGenerationTableProperty := &QueryGenerationTableProperty{
	Name: jsii.String("name"),

	// the properties below are optional
	Columns: []interface{}{
		&QueryGenerationColumnProperty{
			Description: jsii.String("description"),
			Inclusion: jsii.String("inclusion"),
			Name: jsii.String("name"),
		},
	},
	Description: jsii.String("description"),
	Inclusion: jsii.String("inclusion"),
}
```

## Properties

- `columns`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnKnowledgeBase.QueryGenerationColumnProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.QueryGenerationColumnProperty.html)[] — An array of objects, each of which defines information about a column in the table.

- `description`: string — A description of the table that helps the query engine understand the contents of the table.

- `inclusion`: string — Specifies whether to include or exclude the table during query generation.

  If you specify `EXCLUDE` , the table will be ignored. If you specify `INCLUDE` , all other tables will be ignored.

- `name`: string (required) — The name of the table for which the other fields in this object apply.
