AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Athena::NamedQuery

CfnNamedQuery

The `AWS::Athena::NamedQuery` resource specifies an Amazon Athena saved query, where `QueryString` contains the SQL query statements that make up the query.

Import

import { CfnNamedQuery } from 'aws-cdk-lib/aws-athena';

Or use the module namespace:

import * as athena from 'aws-cdk-lib/aws-athena';
// athena.CfnNamedQuery

Properties

Configuration passed to the constructor as CfnNamedQueryProps.

databaseRequired
string

The database to which the query belongs.

queryStringRequired
string

The SQL statements that make up the query.

descriptionOptional
string

The query description.

nameOptional
string

The query name.

workGroupOptional
string | IWorkGroupRef

The name of the workgroup that contains the named query.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter