Provides an Athena Named Query data source.
data "aws_athena_named_query" "example" {
name = "athenaQueryName"
}
This data source supports the following arguments:
name
- (Required) The plain language name for the query. Maximum length of 128.workgroup
- (Optional) The workgroup to which the query belongs. Defaults to primary
.This data source exports the following attributes in addition to the arguments above:
database
- Database to which the query belongs.description
- Brief explanation of the query.id
- The unique ID of the query.query
- Text of the query itself.