# AWS::Athena::PreparedStatement Resource schema for AWS::Athena::PreparedStatement ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : "AWS::Athena::PreparedStatement", "Properties" : { "StatementName" : String, "WorkGroup" : String, "Description" : String, "QueryStatement" : String } }### YAML
Type: AWS::Athena::PreparedStatement Properties: StatementName: String WorkGroup: String Description: String QueryStatement: String## Properties #### StatementName The name of the prepared statement. _Required_: Yes _Type_: String _Minimum Length_:
1
_Maximum Length_: 256
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### WorkGroup
The name of the workgroup to which the prepared statement belongs.
_Required_: Yes
_Type_: String
_Minimum Length_: 1
_Maximum Length_: 128
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### Description
The description of the prepared statement.
_Required_: No
_Type_: String
_Minimum Length_: 1
_Maximum Length_: 1024
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### QueryStatement
The query string for the prepared statement.
_Required_: Yes
_Type_: String
_Minimum Length_: 1
_Maximum Length_: 262144
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)