# CfnPreparedStatementProps

Properties for defining a `CfnPreparedStatement`.

Used as props by: [CfnPreparedStatement](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_athena.CfnPreparedStatement.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 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_athena as athena } from 'aws-cdk-lib';
const cfnPreparedStatementProps: athena.CfnPreparedStatementProps = {
  queryStatement: 'queryStatement',
  statementName: 'statementName',
  workGroup: 'workGroup',

  // the properties below are optional
  description: 'description',
};
```

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_athena as athena

cfn_prepared_statement_props = athena.CfnPreparedStatementProps(
    query_statement="queryStatement",
    statement_name="statementName",
    work_group="workGroup",

    # the properties below are optional
    description="description"
)
```

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

CfnPreparedStatementProps cfnPreparedStatementProps = CfnPreparedStatementProps.builder()
        .queryStatement("queryStatement")
        .statementName("statementName")
        .workGroup("workGroup")

        // the properties below are optional
        .description("description")
        .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.Athena;

var cfnPreparedStatementProps = new CfnPreparedStatementProps {
    QueryStatement = "queryStatement",
    StatementName = "statementName",
    WorkGroup = "workGroup",

    // the properties below are optional
    Description = "description"
};
```

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"

cfnPreparedStatementProps := &CfnPreparedStatementProps{
	QueryStatement: jsii.String("queryStatement"),
	StatementName: jsii.String("statementName"),
	WorkGroup: jsii.String("workGroup"),

	// the properties below are optional
	Description: jsii.String("description"),
}
```

## Properties

- `description`: string — The description of the prepared statement.

- `queryStatement`: string (required) — The query string for the prepared statement.

- `statementName`: string (required) — The name of the prepared statement.

- `workGroup`: string | [IWorkGroupRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_athena.IWorkGroupRef.html) (required) — The workgroup to which the prepared statement belongs.
