---
type: resource-type
title: NamedQuery
description: aws resource type AWS::Athena::NamedQuery
name: NamedQuery
lexicon: aws
resource_type: AWS::Athena::NamedQuery
---
`AWS::Athena::NamedQuery`, a resource type of the aws lexicon.

## Properties

- `Database` (`string`, required): The database to which the query belongs.
- `QueryString` (`string`, required): The contents of the query with all query statements.
- `Description` (`string`, optional): The query description.
- `Name` (`string`, optional): The query name.
- `NamedQueryId` (`string`, optional): The unique ID of the query.
- `WorkGroup` (`string`, optional): The name of the workgroup that contains the named query.

## Attributes

- `NamedQueryId`
