import * as core from "@terrascript/core"; export interface NamedQueryArgs extends core.ResourceArgs { /** * (Required) The database to which the query belongs. */ database: string | core.StringOut; /** * (Optional) A brief explanation of the query. Maximum length of 1024. */ description?: string | core.StringOut; /** * (Required) The plain language name for the query. Maximum length of 128. */ name: string | core.StringOut; /** * (Required) The text of the query itself. In other words, all query statements. Maximum length of 262 * 144. */ query: string | core.StringOut; /** * (Optional) The workgroup to which the query belongs. Defaults to `primary` */ workgroup?: string | core.StringOut; } export class NamedQuery extends core.Resource { /** * (Required) The database to which the query belongs. */ @core.attr(String) public database!: string | core.StringOut; /** * (Optional) A brief explanation of the query. Maximum length of 1024. */ @core.attr(String) public description?: string | core.StringOut; /** * The unique ID of the query. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The plain language name for the query. Maximum length of 128. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The text of the query itself. In other words, all query statements. Maximum length of 262 * 144. */ @core.attr(String) public query!: string | core.StringOut; /** * (Optional) The workgroup to which the query belongs. Defaults to `primary` */ @core.attr(String) public workgroup?: string | core.StringOut; constructor(name: string, args?: NamedQueryArgs) { super(name, "aws_athena_named_query", args); } public override getNamespace(): string { return "aws_athena"; } }