CfnNamedQueryProps Struct
Properties for defining a CfnNamedQuery.
| Source | |
|---|---|
| Type last changed |
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 cfnNamedQueryProps: athena.CfnNamedQueryProps = {
database: 'database',
queryString: 'queryString',
// the properties below are optional
description: 'description',
name: 'name',
workGroup: 'workGroup',
};
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_named_query_props = athena.CfnNamedQueryProps(
database="database",
query_string="queryString",
# the properties below are optional
description="description",
name="name",
work_group="workGroup"
)
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.*;
CfnNamedQueryProps cfnNamedQueryProps = CfnNamedQueryProps.builder()
.database("database")
.queryString("queryString")
// the properties below are optional
.description("description")
.name("name")
.workGroup("workGroup")
.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 cfnNamedQueryProps = new CfnNamedQueryProps {
Database = "database",
QueryString = "queryString",
// the properties below are optional
Description = "description",
Name = "name",
WorkGroup = "workGroup"
};
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"
cfnNamedQueryProps := &CfnNamedQueryProps{
Database: jsii.String("database"),
QueryString: jsii.String("queryString"),
// the properties below are optional
Description: jsii.String("description"),
Name: jsii.String("name"),
WorkGroup: jsii.String("workGroup"),
}
Properties
The database to which the query belongs.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The query description.
The query name.
The SQL statements that make up the query.
workGroupoptionalstring | IWorkGroupRefwork_groupoptionaltyping.Union[str, IWorkGroupRef]workGroupoptionalStringWorkGroupoptionalstringWorkGroupoptionalinterface{} #The name of the workgroup that contains the named query.