Documentation ¶
Overview ¶
Package athena provides the client and types for making API requests to Amazon Athena.
Amazon Athena is an interactive query service that lets you use standard SQL to analyze data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure to set up or manage. You pay only for the queries you run. Athena scales automatically—executing queries in parallel—so results are fast, even with large datasets and complex queries. For more information, see What is Amazon Athena (http://docs.aws.amazon.com/athena/latest/ug/what-is.html) in the Amazon Athena User Guide.
For code samples using the AWS SDK for Java, see Examples and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon Athena User Guide.
See https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18 for more information on this service.
See athena package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/athena/
Using the Client ¶
To Amazon Athena with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the Amazon Athena client Athena for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/athena/#New
Index ¶
- Constants
- type Athena
- func (c *Athena) BatchGetNamedQueryRequest(input *BatchGetNamedQueryInput) BatchGetNamedQueryRequest
- func (c *Athena) BatchGetQueryExecutionRequest(input *BatchGetQueryExecutionInput) BatchGetQueryExecutionRequest
- func (c *Athena) CreateNamedQueryRequest(input *CreateNamedQueryInput) CreateNamedQueryRequest
- func (c *Athena) DeleteNamedQueryRequest(input *DeleteNamedQueryInput) DeleteNamedQueryRequest
- func (c *Athena) GetNamedQueryRequest(input *GetNamedQueryInput) GetNamedQueryRequest
- func (c *Athena) GetQueryExecutionRequest(input *GetQueryExecutionInput) GetQueryExecutionRequest
- func (c *Athena) GetQueryResultsRequest(input *GetQueryResultsInput) GetQueryResultsRequest
- func (c *Athena) ListNamedQueriesRequest(input *ListNamedQueriesInput) ListNamedQueriesRequest
- func (c *Athena) ListQueryExecutionsRequest(input *ListQueryExecutionsInput) ListQueryExecutionsRequest
- func (c *Athena) StartQueryExecutionRequest(input *StartQueryExecutionInput) StartQueryExecutionRequest
- func (c *Athena) StopQueryExecutionRequest(input *StopQueryExecutionInput) StopQueryExecutionRequest
- type BatchGetNamedQueryInput
- type BatchGetNamedQueryOutput
- type BatchGetNamedQueryRequest
- type BatchGetQueryExecutionInput
- type BatchGetQueryExecutionOutput
- type BatchGetQueryExecutionRequest
- type ColumnInfo
- type ColumnNullable
- type CreateNamedQueryInput
- type CreateNamedQueryOutput
- type CreateNamedQueryRequest
- type Datum
- type DeleteNamedQueryInput
- type DeleteNamedQueryOutput
- type DeleteNamedQueryRequest
- type EncryptionConfiguration
- type EncryptionOption
- type GetNamedQueryInput
- type GetNamedQueryOutput
- type GetNamedQueryRequest
- type GetQueryExecutionInput
- type GetQueryExecutionOutput
- type GetQueryExecutionRequest
- type GetQueryResultsInput
- type GetQueryResultsOutput
- type GetQueryResultsPager
- type GetQueryResultsRequest
- type ListNamedQueriesInput
- type ListNamedQueriesOutput
- type ListNamedQueriesPager
- type ListNamedQueriesRequest
- type ListQueryExecutionsInput
- type ListQueryExecutionsOutput
- type ListQueryExecutionsPager
- type ListQueryExecutionsRequest
- type NamedQuery
- type QueryExecution
- type QueryExecutionContext
- type QueryExecutionState
- type QueryExecutionStatistics
- type QueryExecutionStatus
- type ResultConfiguration
- type ResultSet
- type ResultSetMetadata
- type Row
- type StartQueryExecutionInput
- type StartQueryExecutionOutput
- type StartQueryExecutionRequest
- type StopQueryExecutionInput
- type StopQueryExecutionOutput
- type StopQueryExecutionRequest
- type ThrottleReason
- type UnprocessedNamedQueryId
- type UnprocessedQueryExecutionId
Constants ¶
const ( // ErrCodeInternalServerException for service response error code // "InternalServerException". // // Indicates a platform issue, which may be due to a transient condition or // outage. ErrCodeInternalServerException = "InternalServerException" // ErrCodeInvalidRequestException for service response error code // "InvalidRequestException". // // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. ErrCodeInvalidRequestException = "InvalidRequestException" // ErrCodeTooManyRequestsException for service response error code // "TooManyRequestsException". // // Indicates that the request was throttled. ErrCodeTooManyRequestsException = "TooManyRequestsException" )
const ( ServiceName = "athena" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Athena ¶
Athena provides the API operation methods for making requests to Amazon Athena. See this package's package overview docs for details on the service.
Athena methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the Athena client with a config.
Example:
// Create a Athena client from just a config. svc := athena.New(myConfig)
func (*Athena) BatchGetNamedQueryRequest ¶
func (c *Athena) BatchGetNamedQueryRequest(input *BatchGetNamedQueryInput) BatchGetNamedQueryRequest
BatchGetNamedQueryRequest returns a request value for making API operation for Amazon Athena.
Returns the details of a single named query or a list of up to 50 queries, which you provide as an array of query ID strings. Use ListNamedQueries to get the list of named query IDs. If information could not be retrieved for a submitted query ID, information about the query ID submitted is listed under UnprocessedNamedQueryId. Named queries are different from executed queries. Use BatchGetQueryExecution to get details about each unique query execution, and ListQueryExecutions to get a list of query execution IDs.
// Example sending a request using the BatchGetNamedQueryRequest method. req := client.BatchGetNamedQueryRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery
func (*Athena) BatchGetQueryExecutionRequest ¶
func (c *Athena) BatchGetQueryExecutionRequest(input *BatchGetQueryExecutionInput) BatchGetQueryExecutionRequest
BatchGetQueryExecutionRequest returns a request value for making API operation for Amazon Athena.
Returns the details of a single query execution or a list of up to 50 query executions, which you provide as an array of query execution ID strings. To get a list of query execution IDs, use ListQueryExecutions. Query executions are different from named (saved) queries. Use BatchGetNamedQuery to get details about named queries.
// Example sending a request using the BatchGetQueryExecutionRequest method. req := client.BatchGetQueryExecutionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution
func (*Athena) CreateNamedQueryRequest ¶
func (c *Athena) CreateNamedQueryRequest(input *CreateNamedQueryInput) CreateNamedQueryRequest
CreateNamedQueryRequest returns a request value for making API operation for Amazon Athena.
Creates a named query.
For code samples using the AWS SDK for Java, see Examples and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon Athena User Guide.
// Example sending a request using the CreateNamedQueryRequest method. req := client.CreateNamedQueryRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery
func (*Athena) DeleteNamedQueryRequest ¶
func (c *Athena) DeleteNamedQueryRequest(input *DeleteNamedQueryInput) DeleteNamedQueryRequest
DeleteNamedQueryRequest returns a request value for making API operation for Amazon Athena.
Deletes a named query.
For code samples using the AWS SDK for Java, see Examples and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon Athena User Guide.
// Example sending a request using the DeleteNamedQueryRequest method. req := client.DeleteNamedQueryRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery
func (*Athena) GetNamedQueryRequest ¶
func (c *Athena) GetNamedQueryRequest(input *GetNamedQueryInput) GetNamedQueryRequest
GetNamedQueryRequest returns a request value for making API operation for Amazon Athena.
Returns information about a single query.
// Example sending a request using the GetNamedQueryRequest method. req := client.GetNamedQueryRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery
func (*Athena) GetQueryExecutionRequest ¶
func (c *Athena) GetQueryExecutionRequest(input *GetQueryExecutionInput) GetQueryExecutionRequest
GetQueryExecutionRequest returns a request value for making API operation for Amazon Athena.
Returns information about a single execution of a query. Each time a query executes, information about the query execution is saved with a unique ID.
// Example sending a request using the GetQueryExecutionRequest method. req := client.GetQueryExecutionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution
func (*Athena) GetQueryResultsRequest ¶
func (c *Athena) GetQueryResultsRequest(input *GetQueryResultsInput) GetQueryResultsRequest
GetQueryResultsRequest returns a request value for making API operation for Amazon Athena.
Returns the results of a single query execution specified by QueryExecutionId. This request does not execute the query but returns results. Use StartQueryExecution to run a query.
// Example sending a request using the GetQueryResultsRequest method. req := client.GetQueryResultsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults
func (*Athena) ListNamedQueriesRequest ¶
func (c *Athena) ListNamedQueriesRequest(input *ListNamedQueriesInput) ListNamedQueriesRequest
ListNamedQueriesRequest returns a request value for making API operation for Amazon Athena.
Provides a list of all available query IDs.
For code samples using the AWS SDK for Java, see Examples and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon Athena User Guide.
// Example sending a request using the ListNamedQueriesRequest method. req := client.ListNamedQueriesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries
func (*Athena) ListQueryExecutionsRequest ¶
func (c *Athena) ListQueryExecutionsRequest(input *ListQueryExecutionsInput) ListQueryExecutionsRequest
ListQueryExecutionsRequest returns a request value for making API operation for Amazon Athena.
Provides a list of all available query execution IDs.
For code samples using the AWS SDK for Java, see Examples and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon Athena User Guide.
// Example sending a request using the ListQueryExecutionsRequest method. req := client.ListQueryExecutionsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions
func (*Athena) StartQueryExecutionRequest ¶
func (c *Athena) StartQueryExecutionRequest(input *StartQueryExecutionInput) StartQueryExecutionRequest
StartQueryExecutionRequest returns a request value for making API operation for Amazon Athena.
Runs (executes) the SQL query statements contained in the Query string.
For code samples using the AWS SDK for Java, see Examples and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon Athena User Guide.
// Example sending a request using the StartQueryExecutionRequest method. req := client.StartQueryExecutionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution
func (*Athena) StopQueryExecutionRequest ¶
func (c *Athena) StopQueryExecutionRequest(input *StopQueryExecutionInput) StopQueryExecutionRequest
StopQueryExecutionRequest returns a request value for making API operation for Amazon Athena.
Stops a query execution.
For code samples using the AWS SDK for Java, see Examples and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon Athena User Guide.
// Example sending a request using the StopQueryExecutionRequest method. req := client.StopQueryExecutionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution
type BatchGetNamedQueryInput ¶
type BatchGetNamedQueryInput struct { // An array of query IDs. // // NamedQueryIds is a required field NamedQueryIds []string `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQueryInput
func (BatchGetNamedQueryInput) GoString ¶
func (s BatchGetNamedQueryInput) GoString() string
GoString returns the string representation
func (BatchGetNamedQueryInput) String ¶
func (s BatchGetNamedQueryInput) String() string
String returns the string representation
func (*BatchGetNamedQueryInput) Validate ¶
func (s *BatchGetNamedQueryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type BatchGetNamedQueryOutput ¶
type BatchGetNamedQueryOutput struct { // Information about the named query IDs submitted. NamedQueries []NamedQuery `type:"list"` // Information about provided query IDs. UnprocessedNamedQueryIds []UnprocessedNamedQueryId `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQueryOutput
func (BatchGetNamedQueryOutput) GoString ¶
func (s BatchGetNamedQueryOutput) GoString() string
GoString returns the string representation
func (BatchGetNamedQueryOutput) SDKResponseMetadata ¶
func (s BatchGetNamedQueryOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (BatchGetNamedQueryOutput) String ¶
func (s BatchGetNamedQueryOutput) String() string
String returns the string representation
type BatchGetNamedQueryRequest ¶
type BatchGetNamedQueryRequest struct { *aws.Request Input *BatchGetNamedQueryInput Copy func(*BatchGetNamedQueryInput) BatchGetNamedQueryRequest }
BatchGetNamedQueryRequest is a API request type for the BatchGetNamedQuery API operation.
func (BatchGetNamedQueryRequest) Send ¶
func (r BatchGetNamedQueryRequest) Send() (*BatchGetNamedQueryOutput, error)
Send marshals and sends the BatchGetNamedQuery API request.
type BatchGetQueryExecutionInput ¶
type BatchGetQueryExecutionInput struct { // An array of query execution IDs. // // QueryExecutionIds is a required field QueryExecutionIds []string `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecutionInput
func (BatchGetQueryExecutionInput) GoString ¶
func (s BatchGetQueryExecutionInput) GoString() string
GoString returns the string representation
func (BatchGetQueryExecutionInput) String ¶
func (s BatchGetQueryExecutionInput) String() string
String returns the string representation
func (*BatchGetQueryExecutionInput) Validate ¶
func (s *BatchGetQueryExecutionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type BatchGetQueryExecutionOutput ¶
type BatchGetQueryExecutionOutput struct { // Information about a query execution. QueryExecutions []QueryExecution `type:"list"` // Information about the query executions that failed to run. UnprocessedQueryExecutionIds []UnprocessedQueryExecutionId `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecutionOutput
func (BatchGetQueryExecutionOutput) GoString ¶
func (s BatchGetQueryExecutionOutput) GoString() string
GoString returns the string representation
func (BatchGetQueryExecutionOutput) SDKResponseMetadata ¶
func (s BatchGetQueryExecutionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (BatchGetQueryExecutionOutput) String ¶
func (s BatchGetQueryExecutionOutput) String() string
String returns the string representation
type BatchGetQueryExecutionRequest ¶
type BatchGetQueryExecutionRequest struct { *aws.Request Input *BatchGetQueryExecutionInput Copy func(*BatchGetQueryExecutionInput) BatchGetQueryExecutionRequest }
BatchGetQueryExecutionRequest is a API request type for the BatchGetQueryExecution API operation.
func (BatchGetQueryExecutionRequest) Send ¶
func (r BatchGetQueryExecutionRequest) Send() (*BatchGetQueryExecutionOutput, error)
Send marshals and sends the BatchGetQueryExecution API request.
type ColumnInfo ¶
type ColumnInfo struct { // Indicates whether values in the column are case-sensitive. CaseSensitive *bool `type:"boolean"` // The catalog to which the query results belong. CatalogName *string `type:"string"` // A column label. Label *string `type:"string"` // The name of the column. // // Name is a required field Name *string `type:"string" required:"true"` // Indicates the column's nullable status. Nullable ColumnNullable `type:"string" enum:"true"` // For DECIMAL data types, specifies the total number of digits, up to 38. For // performance reasons, we recommend up to 18 digits. Precision *int64 `type:"integer"` // For DECIMAL data types, specifies the total number of digits in the fractional // part of the value. Defaults to 0. Scale *int64 `type:"integer"` // The schema name (database name) to which the query results belong. SchemaName *string `type:"string"` // The table name for the query results. TableName *string `type:"string"` // The data type of the column. // // Type is a required field Type *string `type:"string" required:"true"` // contains filtered or unexported fields }
Information about the columns in a query execution result. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ColumnInfo
func (ColumnInfo) GoString ¶
func (s ColumnInfo) GoString() string
GoString returns the string representation
func (ColumnInfo) String ¶
func (s ColumnInfo) String() string
String returns the string representation
type ColumnNullable ¶
type ColumnNullable string
const ( ColumnNullableNotNull ColumnNullable = "NOT_NULL" ColumnNullableNullable ColumnNullable = "NULLABLE" ColumnNullableUnknown ColumnNullable = "UNKNOWN" )
Enum values for ColumnNullable
func (ColumnNullable) MarshalValue ¶
func (enum ColumnNullable) MarshalValue() (string, error)
func (ColumnNullable) MarshalValueBuf ¶
func (enum ColumnNullable) MarshalValueBuf(b []byte) ([]byte, error)
type CreateNamedQueryInput ¶
type CreateNamedQueryInput struct { // 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. ClientRequestToken *string `min:"32" type:"string" idempotencyToken:"true"` // The database to which the query belongs. // // Database is a required field Database *string `min:"1" type:"string" required:"true"` // A brief explanation of the query. Description *string `min:"1" type:"string"` // The plain language name for the query. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The text of the query itself. In other words, all query statements. // // QueryString is a required field QueryString *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQueryInput
func (CreateNamedQueryInput) GoString ¶
func (s CreateNamedQueryInput) GoString() string
GoString returns the string representation
func (CreateNamedQueryInput) String ¶
func (s CreateNamedQueryInput) String() string
String returns the string representation
func (*CreateNamedQueryInput) Validate ¶
func (s *CreateNamedQueryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateNamedQueryOutput ¶
type CreateNamedQueryOutput struct { // The unique ID of the query. NamedQueryId *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQueryOutput
func (CreateNamedQueryOutput) GoString ¶
func (s CreateNamedQueryOutput) GoString() string
GoString returns the string representation
func (CreateNamedQueryOutput) SDKResponseMetadata ¶
func (s CreateNamedQueryOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateNamedQueryOutput) String ¶
func (s CreateNamedQueryOutput) String() string
String returns the string representation
type CreateNamedQueryRequest ¶
type CreateNamedQueryRequest struct { *aws.Request Input *CreateNamedQueryInput Copy func(*CreateNamedQueryInput) CreateNamedQueryRequest }
CreateNamedQueryRequest is a API request type for the CreateNamedQuery API operation.
func (CreateNamedQueryRequest) Send ¶
func (r CreateNamedQueryRequest) Send() (*CreateNamedQueryOutput, error)
Send marshals and sends the CreateNamedQuery API request.
type Datum ¶
type Datum struct { // The value of the datum. VarCharValue *string `type:"string"` // contains filtered or unexported fields }
A piece of data (a field in the table). Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/Datum
type DeleteNamedQueryInput ¶
type DeleteNamedQueryInput struct { // The unique ID of the query to delete. // // NamedQueryId is a required field NamedQueryId *string `type:"string" required:"true" idempotencyToken:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQueryInput
func (DeleteNamedQueryInput) GoString ¶
func (s DeleteNamedQueryInput) GoString() string
GoString returns the string representation
func (DeleteNamedQueryInput) String ¶
func (s DeleteNamedQueryInput) String() string
String returns the string representation
func (*DeleteNamedQueryInput) Validate ¶
func (s *DeleteNamedQueryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteNamedQueryOutput ¶
type DeleteNamedQueryOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQueryOutput
func (DeleteNamedQueryOutput) GoString ¶
func (s DeleteNamedQueryOutput) GoString() string
GoString returns the string representation
func (DeleteNamedQueryOutput) SDKResponseMetadata ¶
func (s DeleteNamedQueryOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteNamedQueryOutput) String ¶
func (s DeleteNamedQueryOutput) String() string
String returns the string representation
type DeleteNamedQueryRequest ¶
type DeleteNamedQueryRequest struct { *aws.Request Input *DeleteNamedQueryInput Copy func(*DeleteNamedQueryInput) DeleteNamedQueryRequest }
DeleteNamedQueryRequest is a API request type for the DeleteNamedQuery API operation.
func (DeleteNamedQueryRequest) Send ¶
func (r DeleteNamedQueryRequest) Send() (*DeleteNamedQueryOutput, error)
Send marshals and sends the DeleteNamedQuery API request.
type EncryptionConfiguration ¶
type EncryptionConfiguration struct { // Indicates whether Amazon S3 server-side encryption with Amazon S3-managed // keys (SSE-S3), server-side encryption with KMS-managed keys (SSE-KMS), or // client-side encryption with KMS-managed keys (CSE-KMS) is used. // // EncryptionOption is a required field EncryptionOption EncryptionOption `type:"string" required:"true" enum:"true"` // For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. KmsKey *string `type:"string"` // contains filtered or unexported fields }
If query results are encrypted in Amazon S3, indicates the Amazon S3 encryption option used. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/EncryptionConfiguration
func (EncryptionConfiguration) GoString ¶
func (s EncryptionConfiguration) GoString() string
GoString returns the string representation
func (EncryptionConfiguration) String ¶
func (s EncryptionConfiguration) String() string
String returns the string representation
func (*EncryptionConfiguration) Validate ¶
func (s *EncryptionConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type EncryptionOption ¶
type EncryptionOption string
const ( EncryptionOptionSseS3 EncryptionOption = "SSE_S3" EncryptionOptionSseKms EncryptionOption = "SSE_KMS" EncryptionOptionCseKms EncryptionOption = "CSE_KMS" )
Enum values for EncryptionOption
func (EncryptionOption) MarshalValue ¶
func (enum EncryptionOption) MarshalValue() (string, error)
func (EncryptionOption) MarshalValueBuf ¶
func (enum EncryptionOption) MarshalValueBuf(b []byte) ([]byte, error)
type GetNamedQueryInput ¶
type GetNamedQueryInput struct { // The unique ID of the query. Use ListNamedQueries to get query IDs. // // NamedQueryId is a required field NamedQueryId *string `type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQueryInput
func (GetNamedQueryInput) GoString ¶
func (s GetNamedQueryInput) GoString() string
GoString returns the string representation
func (GetNamedQueryInput) String ¶
func (s GetNamedQueryInput) String() string
String returns the string representation
func (*GetNamedQueryInput) Validate ¶
func (s *GetNamedQueryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetNamedQueryOutput ¶
type GetNamedQueryOutput struct { // Information about the query. NamedQuery *NamedQuery `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQueryOutput
func (GetNamedQueryOutput) GoString ¶
func (s GetNamedQueryOutput) GoString() string
GoString returns the string representation
func (GetNamedQueryOutput) SDKResponseMetadata ¶
func (s GetNamedQueryOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetNamedQueryOutput) String ¶
func (s GetNamedQueryOutput) String() string
String returns the string representation
type GetNamedQueryRequest ¶
type GetNamedQueryRequest struct { *aws.Request Input *GetNamedQueryInput Copy func(*GetNamedQueryInput) GetNamedQueryRequest }
GetNamedQueryRequest is a API request type for the GetNamedQuery API operation.
func (GetNamedQueryRequest) Send ¶
func (r GetNamedQueryRequest) Send() (*GetNamedQueryOutput, error)
Send marshals and sends the GetNamedQuery API request.
type GetQueryExecutionInput ¶
type GetQueryExecutionInput struct { // The unique ID of the query execution. // // QueryExecutionId is a required field QueryExecutionId *string `type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecutionInput
func (GetQueryExecutionInput) GoString ¶
func (s GetQueryExecutionInput) GoString() string
GoString returns the string representation
func (GetQueryExecutionInput) String ¶
func (s GetQueryExecutionInput) String() string
String returns the string representation
func (*GetQueryExecutionInput) Validate ¶
func (s *GetQueryExecutionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetQueryExecutionOutput ¶
type GetQueryExecutionOutput struct { // Information about the query execution. QueryExecution *QueryExecution `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecutionOutput
func (GetQueryExecutionOutput) GoString ¶
func (s GetQueryExecutionOutput) GoString() string
GoString returns the string representation
func (GetQueryExecutionOutput) SDKResponseMetadata ¶
func (s GetQueryExecutionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetQueryExecutionOutput) String ¶
func (s GetQueryExecutionOutput) String() string
String returns the string representation
type GetQueryExecutionRequest ¶
type GetQueryExecutionRequest struct { *aws.Request Input *GetQueryExecutionInput Copy func(*GetQueryExecutionInput) GetQueryExecutionRequest }
GetQueryExecutionRequest is a API request type for the GetQueryExecution API operation.
func (GetQueryExecutionRequest) Send ¶
func (r GetQueryExecutionRequest) Send() (*GetQueryExecutionOutput, error)
Send marshals and sends the GetQueryExecution API request.
type GetQueryResultsInput ¶
type GetQueryResultsInput struct { // The maximum number of results (rows) to return in this request. MaxResults *int64 `type:"integer"` // The token that specifies where to start pagination if a previous request // was truncated. NextToken *string `type:"string"` // The unique ID of the query execution. // // QueryExecutionId is a required field QueryExecutionId *string `type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResultsInput
func (GetQueryResultsInput) GoString ¶
func (s GetQueryResultsInput) GoString() string
GoString returns the string representation
func (GetQueryResultsInput) String ¶
func (s GetQueryResultsInput) String() string
String returns the string representation
func (*GetQueryResultsInput) Validate ¶
func (s *GetQueryResultsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetQueryResultsOutput ¶
type GetQueryResultsOutput struct { // A token to be used by the next request if this request is truncated. NextToken *string `type:"string"` // The results of the query execution. ResultSet *ResultSet `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResultsOutput
func (GetQueryResultsOutput) GoString ¶
func (s GetQueryResultsOutput) GoString() string
GoString returns the string representation
func (GetQueryResultsOutput) SDKResponseMetadata ¶
func (s GetQueryResultsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetQueryResultsOutput) String ¶
func (s GetQueryResultsOutput) String() string
String returns the string representation
type GetQueryResultsPager ¶
GetQueryResultsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetQueryResultsPager) CurrentPage ¶
func (p *GetQueryResultsPager) CurrentPage() *GetQueryResultsOutput
type GetQueryResultsRequest ¶
type GetQueryResultsRequest struct { *aws.Request Input *GetQueryResultsInput Copy func(*GetQueryResultsInput) GetQueryResultsRequest }
GetQueryResultsRequest is a API request type for the GetQueryResults API operation.
func (*GetQueryResultsRequest) Paginate ¶
func (p *GetQueryResultsRequest) Paginate(opts ...aws.Option) GetQueryResultsPager
Paginate pages iterates over the pages of a GetQueryResultsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetQueryResults operation. req := client.GetQueryResultsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetQueryResultsRequest) Send ¶
func (r GetQueryResultsRequest) Send() (*GetQueryResultsOutput, error)
Send marshals and sends the GetQueryResults API request.
type ListNamedQueriesInput ¶
type ListNamedQueriesInput struct { // The maximum number of queries to return in this request. MaxResults *int64 `type:"integer"` // The token that specifies where to start pagination if a previous request // was truncated. NextToken *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueriesInput
func (ListNamedQueriesInput) GoString ¶
func (s ListNamedQueriesInput) GoString() string
GoString returns the string representation
func (ListNamedQueriesInput) String ¶
func (s ListNamedQueriesInput) String() string
String returns the string representation
type ListNamedQueriesOutput ¶
type ListNamedQueriesOutput struct { // The list of unique query IDs. NamedQueryIds []string `min:"1" type:"list"` // A token to be used by the next request if this request is truncated. NextToken *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueriesOutput
func (ListNamedQueriesOutput) GoString ¶
func (s ListNamedQueriesOutput) GoString() string
GoString returns the string representation
func (ListNamedQueriesOutput) SDKResponseMetadata ¶
func (s ListNamedQueriesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListNamedQueriesOutput) String ¶
func (s ListNamedQueriesOutput) String() string
String returns the string representation
type ListNamedQueriesPager ¶
ListNamedQueriesPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListNamedQueriesPager) CurrentPage ¶
func (p *ListNamedQueriesPager) CurrentPage() *ListNamedQueriesOutput
type ListNamedQueriesRequest ¶
type ListNamedQueriesRequest struct { *aws.Request Input *ListNamedQueriesInput Copy func(*ListNamedQueriesInput) ListNamedQueriesRequest }
ListNamedQueriesRequest is a API request type for the ListNamedQueries API operation.
func (*ListNamedQueriesRequest) Paginate ¶
func (p *ListNamedQueriesRequest) Paginate(opts ...aws.Option) ListNamedQueriesPager
Paginate pages iterates over the pages of a ListNamedQueriesRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListNamedQueries operation. req := client.ListNamedQueriesRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListNamedQueriesRequest) Send ¶
func (r ListNamedQueriesRequest) Send() (*ListNamedQueriesOutput, error)
Send marshals and sends the ListNamedQueries API request.
type ListQueryExecutionsInput ¶
type ListQueryExecutionsInput struct { // The maximum number of query executions to return in this request. MaxResults *int64 `type:"integer"` // The token that specifies where to start pagination if a previous request // was truncated. NextToken *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutionsInput
func (ListQueryExecutionsInput) GoString ¶
func (s ListQueryExecutionsInput) GoString() string
GoString returns the string representation
func (ListQueryExecutionsInput) String ¶
func (s ListQueryExecutionsInput) String() string
String returns the string representation
type ListQueryExecutionsOutput ¶
type ListQueryExecutionsOutput struct { // A token to be used by the next request if this request is truncated. NextToken *string `type:"string"` // The unique IDs of each query execution as an array of strings. QueryExecutionIds []string `min:"1" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutionsOutput
func (ListQueryExecutionsOutput) GoString ¶
func (s ListQueryExecutionsOutput) GoString() string
GoString returns the string representation
func (ListQueryExecutionsOutput) SDKResponseMetadata ¶
func (s ListQueryExecutionsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListQueryExecutionsOutput) String ¶
func (s ListQueryExecutionsOutput) String() string
String returns the string representation
type ListQueryExecutionsPager ¶
ListQueryExecutionsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListQueryExecutionsPager) CurrentPage ¶
func (p *ListQueryExecutionsPager) CurrentPage() *ListQueryExecutionsOutput
type ListQueryExecutionsRequest ¶
type ListQueryExecutionsRequest struct { *aws.Request Input *ListQueryExecutionsInput Copy func(*ListQueryExecutionsInput) ListQueryExecutionsRequest }
ListQueryExecutionsRequest is a API request type for the ListQueryExecutions API operation.
func (*ListQueryExecutionsRequest) Paginate ¶
func (p *ListQueryExecutionsRequest) Paginate(opts ...aws.Option) ListQueryExecutionsPager
Paginate pages iterates over the pages of a ListQueryExecutionsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListQueryExecutions operation. req := client.ListQueryExecutionsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListQueryExecutionsRequest) Send ¶
func (r ListQueryExecutionsRequest) Send() (*ListQueryExecutionsOutput, error)
Send marshals and sends the ListQueryExecutions API request.
type NamedQuery ¶
type NamedQuery struct { // The database to which the query belongs. // // Database is a required field Database *string `min:"1" type:"string" required:"true"` // A brief description of the query. Description *string `min:"1" type:"string"` // The plain-language name of the query. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The unique identifier of the query. NamedQueryId *string `type:"string"` // The SQL query statements that comprise the query. // // QueryString is a required field QueryString *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
A query, where QueryString is the SQL query statements that comprise the query. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/NamedQuery
func (NamedQuery) GoString ¶
func (s NamedQuery) GoString() string
GoString returns the string representation
func (NamedQuery) String ¶
func (s NamedQuery) String() string
String returns the string representation
type QueryExecution ¶
type QueryExecution struct { // The SQL query statements which the query execution ran. Query *string `min:"1" type:"string"` // The database in which the query execution occurred. QueryExecutionContext *QueryExecutionContext `type:"structure"` // The unique identifier for each query execution. QueryExecutionId *string `type:"string"` // The location in Amazon S3 where query results were stored and the encryption // option, if any, used for query results. ResultConfiguration *ResultConfiguration `type:"structure"` // The amount of data scanned during the query execution and the amount of time // that it took to execute. Statistics *QueryExecutionStatistics `type:"structure"` // The completion date, current state, submission time, and state change reason // (if applicable) for the query execution. Status *QueryExecutionStatus `type:"structure"` // contains filtered or unexported fields }
Information about a single instance of a query execution. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecution
func (QueryExecution) GoString ¶
func (s QueryExecution) GoString() string
GoString returns the string representation
func (QueryExecution) String ¶
func (s QueryExecution) String() string
String returns the string representation
type QueryExecutionContext ¶
type QueryExecutionContext struct { // The name of the database. Database *string `min:"1" type:"string"` // contains filtered or unexported fields }
The database in which the query execution occurs. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionContext
func (QueryExecutionContext) GoString ¶
func (s QueryExecutionContext) GoString() string
GoString returns the string representation
func (QueryExecutionContext) String ¶
func (s QueryExecutionContext) String() string
String returns the string representation
func (*QueryExecutionContext) Validate ¶
func (s *QueryExecutionContext) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type QueryExecutionState ¶
type QueryExecutionState string
const ( QueryExecutionStateQueued QueryExecutionState = "QUEUED" QueryExecutionStateRunning QueryExecutionState = "RUNNING" QueryExecutionStateSucceeded QueryExecutionState = "SUCCEEDED" QueryExecutionStateFailed QueryExecutionState = "FAILED" QueryExecutionStateCancelled QueryExecutionState = "CANCELLED" )
Enum values for QueryExecutionState
func (QueryExecutionState) MarshalValue ¶
func (enum QueryExecutionState) MarshalValue() (string, error)
func (QueryExecutionState) MarshalValueBuf ¶
func (enum QueryExecutionState) MarshalValueBuf(b []byte) ([]byte, error)
type QueryExecutionStatistics ¶
type QueryExecutionStatistics struct { // The number of bytes in the data that was queried. DataScannedInBytes *int64 `type:"long"` // The number of milliseconds that the query took to execute. EngineExecutionTimeInMillis *int64 `type:"long"` // contains filtered or unexported fields }
The amount of data scanned during the query execution and the amount of time that it took to execute. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionStatistics
func (QueryExecutionStatistics) GoString ¶
func (s QueryExecutionStatistics) GoString() string
GoString returns the string representation
func (QueryExecutionStatistics) String ¶
func (s QueryExecutionStatistics) String() string
String returns the string representation
type QueryExecutionStatus ¶
type QueryExecutionStatus struct { // The date and time that the query completed. CompletionDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` // The state of query execution. SUBMITTED indicates that the query is queued // for execution. RUNNING indicates that the query is scanning data and returning // results. SUCCEEDED indicates that the query completed without error. FAILED // indicates that the query experienced an error and did not complete processing. // CANCELLED indicates that user input interrupted query execution. State QueryExecutionState `type:"string" enum:"true"` // Further detail about the status of the query. StateChangeReason *string `type:"string"` // The date and time that the query was submitted. SubmissionDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` // contains filtered or unexported fields }
The completion date, current state, submission time, and state change reason (if applicable) for the query execution. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionStatus
func (QueryExecutionStatus) GoString ¶
func (s QueryExecutionStatus) GoString() string
GoString returns the string representation
func (QueryExecutionStatus) String ¶
func (s QueryExecutionStatus) String() string
String returns the string representation
type ResultConfiguration ¶
type ResultConfiguration struct { // If query results are encrypted in S3, indicates the S3 encryption option // used (for example, SSE-KMS or CSE-KMS and key information. EncryptionConfiguration *EncryptionConfiguration `type:"structure"` // The location in S3 where query results are stored. // // OutputLocation is a required field OutputLocation *string `type:"string" required:"true"` // contains filtered or unexported fields }
The location in Amazon S3 where query results are stored and the encryption option, if any, used for query results. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfiguration
func (ResultConfiguration) GoString ¶
func (s ResultConfiguration) GoString() string
GoString returns the string representation
func (ResultConfiguration) String ¶
func (s ResultConfiguration) String() string
String returns the string representation
func (*ResultConfiguration) Validate ¶
func (s *ResultConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ResultSet ¶
type ResultSet struct { // The metadata that describes the column structure and data types of a table // of query results. ResultSetMetadata *ResultSetMetadata `type:"structure"` // The rows in the table. Rows []Row `type:"list"` // contains filtered or unexported fields }
The metadata and rows that comprise a query result set. The metadata describes the column structure and data types. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultSet
type ResultSetMetadata ¶
type ResultSetMetadata struct { // Information about the columns in a query execution result. ColumnInfo []ColumnInfo `type:"list"` // contains filtered or unexported fields }
The metadata that describes the column structure and data types of a table of query results. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultSetMetadata
func (ResultSetMetadata) GoString ¶
func (s ResultSetMetadata) GoString() string
GoString returns the string representation
func (ResultSetMetadata) String ¶
func (s ResultSetMetadata) String() string
String returns the string representation
type Row ¶
type Row struct { // The data that populates a row in a query result table. Data []Datum `type:"list"` // contains filtered or unexported fields }
The rows that comprise a query result table. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/Row
type StartQueryExecutionInput ¶
type StartQueryExecutionInput struct { // A unique case-sensitive string used to ensure the request to create the query // is idempotent (executes only once). If another StartQueryExecution 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. ClientRequestToken *string `min:"32" type:"string" idempotencyToken:"true"` // The database within which the query executes. QueryExecutionContext *QueryExecutionContext `type:"structure"` // The SQL query statements to be executed. // // QueryString is a required field QueryString *string `min:"1" type:"string" required:"true"` // Specifies information about where and how to save the results of the query // execution. // // ResultConfiguration is a required field ResultConfiguration *ResultConfiguration `type:"structure" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecutionInput
func (StartQueryExecutionInput) GoString ¶
func (s StartQueryExecutionInput) GoString() string
GoString returns the string representation
func (StartQueryExecutionInput) String ¶
func (s StartQueryExecutionInput) String() string
String returns the string representation
func (*StartQueryExecutionInput) Validate ¶
func (s *StartQueryExecutionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartQueryExecutionOutput ¶
type StartQueryExecutionOutput struct { // The unique ID of the query that ran as a result of this request. QueryExecutionId *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecutionOutput
func (StartQueryExecutionOutput) GoString ¶
func (s StartQueryExecutionOutput) GoString() string
GoString returns the string representation
func (StartQueryExecutionOutput) SDKResponseMetadata ¶
func (s StartQueryExecutionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (StartQueryExecutionOutput) String ¶
func (s StartQueryExecutionOutput) String() string
String returns the string representation
type StartQueryExecutionRequest ¶
type StartQueryExecutionRequest struct { *aws.Request Input *StartQueryExecutionInput Copy func(*StartQueryExecutionInput) StartQueryExecutionRequest }
StartQueryExecutionRequest is a API request type for the StartQueryExecution API operation.
func (StartQueryExecutionRequest) Send ¶
func (r StartQueryExecutionRequest) Send() (*StartQueryExecutionOutput, error)
Send marshals and sends the StartQueryExecution API request.
type StopQueryExecutionInput ¶
type StopQueryExecutionInput struct { // The unique ID of the query execution to stop. // // QueryExecutionId is a required field QueryExecutionId *string `type:"string" required:"true" idempotencyToken:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecutionInput
func (StopQueryExecutionInput) GoString ¶
func (s StopQueryExecutionInput) GoString() string
GoString returns the string representation
func (StopQueryExecutionInput) String ¶
func (s StopQueryExecutionInput) String() string
String returns the string representation
func (*StopQueryExecutionInput) Validate ¶
func (s *StopQueryExecutionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StopQueryExecutionOutput ¶
type StopQueryExecutionOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecutionOutput
func (StopQueryExecutionOutput) GoString ¶
func (s StopQueryExecutionOutput) GoString() string
GoString returns the string representation
func (StopQueryExecutionOutput) SDKResponseMetadata ¶
func (s StopQueryExecutionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (StopQueryExecutionOutput) String ¶
func (s StopQueryExecutionOutput) String() string
String returns the string representation
type StopQueryExecutionRequest ¶
type StopQueryExecutionRequest struct { *aws.Request Input *StopQueryExecutionInput Copy func(*StopQueryExecutionInput) StopQueryExecutionRequest }
StopQueryExecutionRequest is a API request type for the StopQueryExecution API operation.
func (StopQueryExecutionRequest) Send ¶
func (r StopQueryExecutionRequest) Send() (*StopQueryExecutionOutput, error)
Send marshals and sends the StopQueryExecution API request.
type ThrottleReason ¶
type ThrottleReason string
const (
ThrottleReasonConcurrentQueryLimitExceeded ThrottleReason = "CONCURRENT_QUERY_LIMIT_EXCEEDED"
)
Enum values for ThrottleReason
func (ThrottleReason) MarshalValue ¶
func (enum ThrottleReason) MarshalValue() (string, error)
func (ThrottleReason) MarshalValueBuf ¶
func (enum ThrottleReason) MarshalValueBuf(b []byte) ([]byte, error)
type UnprocessedNamedQueryId ¶
type UnprocessedNamedQueryId struct { // The error code returned when the processing request for the named query failed, // if applicable. ErrorCode *string `min:"1" type:"string"` // The error message returned when the processing request for the named query // failed, if applicable. ErrorMessage *string `type:"string"` // The unique identifier of the named query. NamedQueryId *string `type:"string"` // contains filtered or unexported fields }
Information about a named query ID that could not be processed. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UnprocessedNamedQueryId
func (UnprocessedNamedQueryId) GoString ¶
func (s UnprocessedNamedQueryId) GoString() string
GoString returns the string representation
func (UnprocessedNamedQueryId) String ¶
func (s UnprocessedNamedQueryId) String() string
String returns the string representation
type UnprocessedQueryExecutionId ¶
type UnprocessedQueryExecutionId struct { // The error code returned when the query execution failed to process, if applicable. ErrorCode *string `min:"1" type:"string"` // The error message returned when the query execution failed to process, if // applicable. ErrorMessage *string `type:"string"` // The unique identifier of the query execution. QueryExecutionId *string `type:"string"` // contains filtered or unexported fields }
Describes a query execution that failed to process. Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UnprocessedQueryExecutionId
func (UnprocessedQueryExecutionId) GoString ¶
func (s UnprocessedQueryExecutionId) GoString() string
GoString returns the string representation
func (UnprocessedQueryExecutionId) String ¶
func (s UnprocessedQueryExecutionId) String() string
String returns the string representation
Directories ¶
Path | Synopsis |
---|---|
Package athenaiface provides an interface to enable mocking the Amazon Athena service client for testing your code.
|
Package athenaiface provides an interface to enable mocking the Amazon Athena service client for testing your code. |