Skip to content

AthenaClient.create_named_query

rboto-athena==0.4.0 · Service index · Types

Model summary (excerpt): Creates a named query in the specified workgroup. Requires that you have access to the workgroup.

Install and imports

python -m pip install "rboto[athena]==0.4.0"
from rboto import AthenaClient
from rboto_athena.types import (
    CreateNamedQueryOutput,
)

Signature

async def create_named_query(
    *,
    name: str,
    database: str,
    query_string: str,
    description: str | None = None,
    client_request_token: str | None = None,
    work_group: str | None = None,
) -> CreateNamedQueryOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes The query name.
database Yes The database to which the query belongs.
query_string Yes The contents of the query with all query statements.
description No The query description.
client_request_token No A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another CreateNamedQuery request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the QueryString , an error is returned. This token is listed as not required because Amazon Web Services SDKs (for example the...
work_group No The name of the workgroup in which the named query is being created.

Output

CreateNamedQueryOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
named_query_id str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreateNamedQueryOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_athena.exceptions:

InternalServerError, InvalidRequestError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model