AWS Fundamentals Logo
AWS Fundamentals
AWS::Athena::NamedQuery

Athena NamedQuery

Resource schema for AWS::Athena::NamedQuery

Properties

5 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
Database
string
RequiredCreate-only
QueryString
string
RequiredCreate-only
Description
string
Create-only
Name
string
Create-only
WorkGroup
string
Create-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
NamedQueryIdstringThe unique ID of the query.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Athena::NamedQuery

Resources:
  MyResource:
    Type: AWS::Athena::NamedQuery
    Properties:
      Database: "value"
      QueryString: "value"
      Description: !Ref "AWS::StackName"
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

athena:CreateNamedQuery

read

athena:GetNamedQuery

list

athena:ListNamedQueries

delete

athena:DeleteNamedQuery

Learn AWS the Practical Way

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

Subscribe to Newsletter

Quick Facts

ServiceAthena
Properties6
Required2
TaggingNot supported
Primary IDNamedQueryId

Supported Operations

CreateReadListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

NameDatabaseDescriptionQueryStringWorkGroup

External Links