AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateNamedQueryInput

import "github.com/aws/aws-sdk-go/service/athena"

type CreateNamedQueryInput struct { ClientRequestToken *string `min:"32" type:"string" idempotencyToken:"true"` Database *string `min:"1" type:"string" required:"true"` Description *string `min:"1" type:"string"` Name *string `min:"1" type:"string" required:"true"` QueryString *string `min:"1" type:"string" required:"true"` WorkGroup *string `type:"string"` }

ClientRequestToken

Type: *string

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 AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.

Database

Type: *string

The database to which the query belongs.

Database is a required field

Description

Type: *string

The query description.

Name

Type: *string

The query name.

Name is a required field

QueryString

Type: *string

The contents of the query with all query statements.

QueryString is a required field

WorkGroup

Type: *string

The name of the workgroup in which the named query is being created.

Method

GoString

func (s CreateNamedQueryInput) GoString() string

GoString returns the string representation

SetClientRequestToken

func (s *CreateNamedQueryInput) SetClientRequestToken(v string) *CreateNamedQueryInput

SetClientRequestToken sets the ClientRequestToken field's value.

SetDatabase

func (s *CreateNamedQueryInput) SetDatabase(v string) *CreateNamedQueryInput

SetDatabase sets the Database field's value.

SetDescription

func (s *CreateNamedQueryInput) SetDescription(v string) *CreateNamedQueryInput

SetDescription sets the Description field's value.

SetName

func (s *CreateNamedQueryInput) SetName(v string) *CreateNamedQueryInput

SetName sets the Name field's value.

SetQueryString

func (s *CreateNamedQueryInput) SetQueryString(v string) *CreateNamedQueryInput

SetQueryString sets the QueryString field's value.

SetWorkGroup

func (s *CreateNamedQueryInput) SetWorkGroup(v string) *CreateNamedQueryInput

SetWorkGroup sets the WorkGroup field's value.

String

func (s CreateNamedQueryInput) String() string

String returns the string representation

Validate

func (s *CreateNamedQueryInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: