aws-sdk-athena 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7270c90cc05a1ed346ea5b3f69a5d69f98454e2
4
- data.tar.gz: 97a8e7cd1ab9907c2120e0550211b08c766521ed
3
+ metadata.gz: 5941b2192389d3f5a69ed34a04968014ae21c099
4
+ data.tar.gz: e26af9a4b5d9f873a272d247dc7b433cdca0719e
5
5
  SHA512:
6
- metadata.gz: c2e23e65f9a1c8b7d474f566ef07a608daf33ebda3179f8dc5d84cbea55ee9246d6b74ef47a1f142a6f30629726e3a08cc037fa4919a9b68a16009fbc0645159
7
- data.tar.gz: e366ef8356ebf628e26fdc80f1be2d16375f25b0407dd89633a929555f301269b926cdcc2171a449946cfc956b5930f3b2b2409d1e4e0336f35b862f84b2815f
6
+ metadata.gz: 2db53302f1c07ec0844afefa6b746cc308fc79b70747d102351a2d024ff78c0ec93d5badc1bb48b5d1671baeb43c1ae22a7b3cc7dd40fff042703c5a6b1f7670
7
+ data.tar.gz: 131f5db7bec9ff70e5e1087ee125539ab901d8b249c73db04ef5d7555ea312ea02855c653ade74a3b51237fefa3743856d3a80774372575b4d165243a458dfde
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-athena/customizations'
42
42
  # @service
43
43
  module Aws::Athena
44
44
 
45
- GEM_VERSION = '1.3.0'
45
+ GEM_VERSION = '1.4.0'
46
46
 
47
47
  end
@@ -257,6 +257,7 @@ module Aws::Athena
257
257
  # resp.query_executions #=> Array
258
258
  # resp.query_executions[0].query_execution_id #=> String
259
259
  # resp.query_executions[0].query #=> String
260
+ # resp.query_executions[0].statement_type #=> String, one of "DDL", "DML", "UTILITY"
260
261
  # resp.query_executions[0].result_configuration.output_location #=> String
261
262
  # resp.query_executions[0].result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
262
263
  # resp.query_executions[0].result_configuration.encryption_configuration.kms_key #=> String
@@ -429,6 +430,7 @@ module Aws::Athena
429
430
  #
430
431
  # resp.query_execution.query_execution_id #=> String
431
432
  # resp.query_execution.query #=> String
433
+ # resp.query_execution.statement_type #=> String, one of "DDL", "DML", "UTILITY"
432
434
  # resp.query_execution.result_configuration.output_location #=> String
433
435
  # resp.query_execution.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
434
436
  # resp.query_execution.result_configuration.encryption_configuration.kms_key #=> String
@@ -465,6 +467,7 @@ module Aws::Athena
465
467
  #
466
468
  # @return [Types::GetQueryResultsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
467
469
  #
470
+ # * {Types::GetQueryResultsOutput#update_count #update_count} => Integer
468
471
  # * {Types::GetQueryResultsOutput#result_set #result_set} => Types::ResultSet
469
472
  # * {Types::GetQueryResultsOutput#next_token #next_token} => String
470
473
  #
@@ -478,6 +481,7 @@ module Aws::Athena
478
481
  #
479
482
  # @example Response structure
480
483
  #
484
+ # resp.update_count #=> Integer
481
485
  # resp.result_set.rows #=> Array
482
486
  # resp.result_set.rows[0].data #=> Array
483
487
  # resp.result_set.rows[0].data[0].var_char_value #=> String
@@ -703,7 +707,7 @@ module Aws::Athena
703
707
  params: params,
704
708
  config: config)
705
709
  context[:gem_name] = 'aws-sdk-athena'
706
- context[:gem_version] = '1.3.0'
710
+ context[:gem_version] = '1.4.0'
707
711
  Seahorse::Client::Request.new(handlers, context)
708
712
  end
709
713
 
@@ -70,6 +70,7 @@ module Aws::Athena
70
70
  RowList = Shapes::ListShape.new(name: 'RowList')
71
71
  StartQueryExecutionInput = Shapes::StructureShape.new(name: 'StartQueryExecutionInput')
72
72
  StartQueryExecutionOutput = Shapes::StructureShape.new(name: 'StartQueryExecutionOutput')
73
+ StatementType = Shapes::StringShape.new(name: 'StatementType')
73
74
  StopQueryExecutionInput = Shapes::StructureShape.new(name: 'StopQueryExecutionInput')
74
75
  StopQueryExecutionOutput = Shapes::StructureShape.new(name: 'StopQueryExecutionOutput')
75
76
  String = Shapes::StringShape.new(name: 'String')
@@ -150,6 +151,7 @@ module Aws::Athena
150
151
  GetQueryResultsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxQueryResults, location_name: "MaxResults"))
151
152
  GetQueryResultsInput.struct_class = Types::GetQueryResultsInput
152
153
 
154
+ GetQueryResultsOutput.add_member(:update_count, Shapes::ShapeRef.new(shape: Long, location_name: "UpdateCount"))
153
155
  GetQueryResultsOutput.add_member(:result_set, Shapes::ShapeRef.new(shape: ResultSet, location_name: "ResultSet"))
154
156
  GetQueryResultsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
155
157
  GetQueryResultsOutput.struct_class = Types::GetQueryResultsOutput
@@ -183,6 +185,7 @@ module Aws::Athena
183
185
 
184
186
  QueryExecution.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
185
187
  QueryExecution.add_member(:query, Shapes::ShapeRef.new(shape: QueryString, location_name: "Query"))
188
+ QueryExecution.add_member(:statement_type, Shapes::ShapeRef.new(shape: StatementType, location_name: "StatementType"))
186
189
  QueryExecution.add_member(:result_configuration, Shapes::ShapeRef.new(shape: ResultConfiguration, location_name: "ResultConfiguration"))
187
190
  QueryExecution.add_member(:query_execution_context, Shapes::ShapeRef.new(shape: QueryExecutionContext, location_name: "QueryExecutionContext"))
188
191
  QueryExecution.add_member(:status, Shapes::ShapeRef.new(shape: QueryExecutionStatus, location_name: "Status"))
@@ -264,6 +267,7 @@ module Aws::Athena
264
267
  "jsonVersion" => "1.1",
265
268
  "protocol" => "json",
266
269
  "serviceFullName" => "Amazon Athena",
270
+ "serviceId" => "Athena",
267
271
  "signatureVersion" => "v4",
268
272
  "targetPrefix" => "AmazonAthena",
269
273
  "uid" => "athena-2017-05-18",
@@ -239,8 +239,8 @@ module Aws::Athena
239
239
  #
240
240
  class DeleteNamedQueryOutput < Aws::EmptyStructure; end
241
241
 
242
- # If query results are encrypted in Amazon S3, indicates the Amazon S3
243
- # encryption option used.
242
+ # If query results are encrypted in Amazon S3, indicates the encryption
243
+ # option used (for example, `SSE-KMS` or `CSE-KMS`) and key information.
244
244
  #
245
245
  # @note When making an API call, you may pass EncryptionConfiguration
246
246
  # data as a hash:
@@ -358,6 +358,10 @@ module Aws::Athena
358
358
  include Aws::Structure
359
359
  end
360
360
 
361
+ # @!attribute [rw] update_count
362
+ # The number of rows inserted with a CREATE TABLE AS SELECT statement.
363
+ # @return [Integer]
364
+ #
361
365
  # @!attribute [rw] result_set
362
366
  # The results of the query execution.
363
367
  # @return [Types::ResultSet]
@@ -369,6 +373,7 @@ module Aws::Athena
369
373
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResultsOutput AWS API Documentation
370
374
  #
371
375
  class GetQueryResultsOutput < Struct.new(
376
+ :update_count,
372
377
  :result_set,
373
378
  :next_token)
374
379
  include Aws::Structure
@@ -500,6 +505,14 @@ module Aws::Athena
500
505
  # The SQL query statements which the query execution ran.
501
506
  # @return [String]
502
507
  #
508
+ # @!attribute [rw] statement_type
509
+ # The type of query statement that was run. `DDL` indicates DDL query
510
+ # statements. `DML` indicates DML (Data Manipulation Language) query
511
+ # statements, such as `CREATE TABLE AS SELECT`. `UTILITY` indicates
512
+ # query statements other than DDL and DML, such as `SHOW CREATE
513
+ # TABLE`, or `DESCRIBE <table>`.
514
+ # @return [String]
515
+ #
503
516
  # @!attribute [rw] result_configuration
504
517
  # The location in Amazon S3 where query results were stored and the
505
518
  # encryption option, if any, used for query results.
@@ -516,7 +529,8 @@ module Aws::Athena
516
529
  #
517
530
  # @!attribute [rw] statistics
518
531
  # The amount of data scanned during the query execution and the amount
519
- # of time that it took to execute.
532
+ # of time that it took to execute, and the type of statement that was
533
+ # run.
520
534
  # @return [Types::QueryExecutionStatistics]
521
535
  #
522
536
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecution AWS API Documentation
@@ -524,6 +538,7 @@ module Aws::Athena
524
538
  class QueryExecution < Struct.new(
525
539
  :query_execution_id,
526
540
  :query,
541
+ :statement_type,
527
542
  :result_configuration,
528
543
  :query_execution_context,
529
544
  :status,
@@ -552,7 +567,8 @@ module Aws::Athena
552
567
  end
553
568
 
554
569
  # The amount of data scanned during the query execution and the amount
555
- # of time that it took to execute.
570
+ # of time that it took to execute, and the type of statement that was
571
+ # run.
556
572
  #
557
573
  # @!attribute [rw] engine_execution_time_in_millis
558
574
  # The number of milliseconds that the query took to execute.
@@ -574,12 +590,14 @@ module Aws::Athena
574
590
  # reason (if applicable) for the query execution.
575
591
  #
576
592
  # @!attribute [rw] state
577
- # The state of query execution. `SUBMITTED` indicates that the query
578
- # is queued for execution. `RUNNING` indicates that the query is
579
- # scanning data and returning results. `SUCCEEDED` indicates that the
580
- # query completed without error. `FAILED` indicates that the query
581
- # experienced an error and did not complete processing. `CANCELLED`
582
- # indicates that user input interrupted query execution.
593
+ # The state of query execution. `QUEUED` state is listed but is not
594
+ # used by Athena and is reserved for future use. `RUNNING` indicates
595
+ # that the query has been submitted to the service, and Athena will
596
+ # execute the query as soon as resources are available. `SUCCEEDED`
597
+ # indicates that the query completed without error. `FAILED` indicates
598
+ # that the query experienced an error and did not complete
599
+ # processing.`CANCELLED` indicates that user input interrupted query
600
+ # execution.
583
601
  # @return [String]
584
602
  #
585
603
  # @!attribute [rw] state_change_reason
@@ -619,12 +637,18 @@ module Aws::Athena
619
637
  # }
620
638
  #
621
639
  # @!attribute [rw] output_location
622
- # The location in S3 where query results are stored.
640
+ # The location in Amazon S3 where your query results are stored, such
641
+ # as `s3://path/to/query/bucket/`. For more information, see [Queries
642
+ # and Query Result Files. ][1]
643
+ #
644
+ #
645
+ #
646
+ # [1]: http://docs.aws.amazon.com/athena/latest/ug/querying.html
623
647
  # @return [String]
624
648
  #
625
649
  # @!attribute [rw] encryption_configuration
626
- # If query results are encrypted in S3, indicates the S3 encryption
627
- # option used (for example, `SSE-KMS` or `CSE-KMS` and key
650
+ # If query results are encrypted in Amazon S3, indicates the
651
+ # encryption option used (for example, `SSE-KMS` or `CSE-KMS`) and key
628
652
  # information.
629
653
  # @return [Types::EncryptionConfiguration]
630
654
  #
@@ -660,7 +684,7 @@ module Aws::Athena
660
684
  # table of query results.
661
685
  #
662
686
  # @!attribute [rw] column_info
663
- # Information about the columns in a query execution result.
687
+ # Information about the columns returned in a query result metadata.
664
688
  # @return [Array<Types::ColumnInfo>]
665
689
  #
666
690
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultSetMetadata AWS API Documentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-athena
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-06 00:00:00.000000000 Z
11
+ date: 2018-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core