Skip to content
v2.278.0

CfnPreparedStatementProps Struct ​

Properties for defining a CfnPreparedStatement.

Example ​

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
# 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
// 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();
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"
};
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 ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the prepared statement.
queryStatementstringquery_statementstrqueryStatementStringQueryStatementstringQueryStatement*string required #
The query string for the prepared statement.
statementNamestringstatement_namestrstatementNameStringStatementNamestringStatementName*string required #
The name of the prepared statement.
workGroupstring | IWorkGroupRefwork_grouptyping.Union[str, IWorkGroupRef]workGroupStringWorkGroupstringWorkGroupinterface{} required #
The workgroup to which the prepared statement belongs.