AWS::Athena::PreparedStatement
Specifies a prepared statement for use with SQL queries in Athena.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Athena::PreparedStatement", "Properties" : { "Description" :String, "QueryStatement" :String, "StatementName" :String, "WorkGroup" :String} }
YAML
Type: AWS::Athena::PreparedStatement Properties: Description:StringQueryStatement:StringStatementName:StringWorkGroup:String
Properties
Description-
The description of the prepared statement.
Required: No
Type: String
Minimum:
1Maximum:
1024Update requires: No interruption
QueryStatement-
The query string for the prepared statement.
Required: Yes
Type: String
Minimum:
1Maximum:
262144Update requires: No interruption
StatementName-
The name of the prepared statement.
Required: Yes
Type: String
Minimum:
1Maximum:
256Pattern:
[a-zA-Z_][a-zA-Z0-9_@:]{1,256}Update requires: Replacement
WorkGroup-
The workgroup to which the prepared statement belongs.
Required: Yes
Type: String
Update requires: Replacement
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns the name of the prepared statement.
For more information about using the Reffunction, see Ref.