aws-sdk-redshiftdataapiservice 1.6.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-redshiftdataapiservice.rb +2 -2
- data/lib/aws-sdk-redshiftdataapiservice/client.rb +165 -51
- data/lib/aws-sdk-redshiftdataapiservice/client_api.rb +94 -10
- data/lib/aws-sdk-redshiftdataapiservice/errors.rb +21 -0
- data/lib/aws-sdk-redshiftdataapiservice/types.rb +328 -35
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec22576cf3897780d8b172d1ac51c1df296eaf7122f2b2992fd1e33bb9bc1929
|
4
|
+
data.tar.gz: 958252c335bc2bb2b742ea46b1b13cc40ccba47139132be27c7b274af915bd10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f60bf6d2a98a635a30ed95b090b13a55ca32623d14dbb45e6d4d7158900b5af09b85a5b5f8db286031d7d775cbc656756214be926ade36d21f1d9b2a261ae17b
|
7
|
+
data.tar.gz: d5eab0a71e63857a61903c0a680531f207c5c98824ba6bf10e4d0400be34641a5962323d9f378e3a9b5a81cd4a948f843581f02ed9f48c90f1a77d2460fabad2
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.10.0 (2021-07-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.9.0 (2021-07-28)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.8.0 (2021-07-27)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Added structures to support new Data API operation BatchExecuteStatement, used to execute multiple SQL statements within a single transaction.
|
18
|
+
|
19
|
+
1.7.0 (2021-06-15)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Redshift Data API service now supports SQL parameterization.
|
23
|
+
|
4
24
|
1.6.0 (2021-03-10)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.10.0
|
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-redshiftdataapiservice/customizations'
|
|
28
28
|
# structure.
|
29
29
|
#
|
30
30
|
# redshift_data_api_service = Aws::RedshiftDataAPIService::Client.new
|
31
|
-
# resp = redshift_data_api_service.
|
31
|
+
# resp = redshift_data_api_service.batch_execute_statement(params)
|
32
32
|
#
|
33
33
|
# See {Client} for more information.
|
34
34
|
#
|
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-redshiftdataapiservice/customizations'
|
|
48
48
|
# @!group service
|
49
49
|
module Aws::RedshiftDataAPIService
|
50
50
|
|
51
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.10.0'
|
52
52
|
|
53
53
|
end
|
@@ -337,13 +337,93 @@ module Aws::RedshiftDataAPIService
|
|
337
337
|
|
338
338
|
# @!group API Operations
|
339
339
|
|
340
|
+
# Runs one or more SQL statements, which can be data manipulation
|
341
|
+
# language (DML) or data definition language (DDL). Depending on the
|
342
|
+
# authorization method, use one of the following combinations of request
|
343
|
+
# parameters:
|
344
|
+
#
|
345
|
+
# * Secrets Manager - specify the Amazon Resource Name (ARN) of the
|
346
|
+
# secret, the database name, and the cluster identifier that matches
|
347
|
+
# the cluster in the secret.
|
348
|
+
#
|
349
|
+
# * Temporary credentials - specify the cluster identifier, the database
|
350
|
+
# name, and the database user name. Permission to call the
|
351
|
+
# `redshift:GetClusterCredentials` operation is required to use this
|
352
|
+
# method.
|
353
|
+
#
|
354
|
+
# @option params [required, String] :cluster_identifier
|
355
|
+
# The cluster identifier. This parameter is required when authenticating
|
356
|
+
# using either Secrets Manager or temporary credentials.
|
357
|
+
#
|
358
|
+
# @option params [required, String] :database
|
359
|
+
# The name of the database. This parameter is required when
|
360
|
+
# authenticating using either Secrets Manager or temporary credentials.
|
361
|
+
#
|
362
|
+
# @option params [String] :db_user
|
363
|
+
# The database user name. This parameter is required when authenticating
|
364
|
+
# using temporary credentials.
|
365
|
+
#
|
366
|
+
# @option params [String] :secret_arn
|
367
|
+
# The name or ARN of the secret that enables access to the database.
|
368
|
+
# This parameter is required when authenticating using Secrets Manager.
|
369
|
+
#
|
370
|
+
# @option params [required, Array<String>] :sqls
|
371
|
+
# One or more SQL statements to run.
|
372
|
+
#
|
373
|
+
# @option params [String] :statement_name
|
374
|
+
# The name of the SQL statements. You can name the SQL statements when
|
375
|
+
# you create them to identify the query.
|
376
|
+
#
|
377
|
+
# @option params [Boolean] :with_event
|
378
|
+
# A value that indicates whether to send an event to the Amazon
|
379
|
+
# EventBridge event bus after the SQL statements run.
|
380
|
+
#
|
381
|
+
# @return [Types::BatchExecuteStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
382
|
+
#
|
383
|
+
# * {Types::BatchExecuteStatementOutput#cluster_identifier #cluster_identifier} => String
|
384
|
+
# * {Types::BatchExecuteStatementOutput#created_at #created_at} => Time
|
385
|
+
# * {Types::BatchExecuteStatementOutput#database #database} => String
|
386
|
+
# * {Types::BatchExecuteStatementOutput#db_user #db_user} => String
|
387
|
+
# * {Types::BatchExecuteStatementOutput#id #id} => String
|
388
|
+
# * {Types::BatchExecuteStatementOutput#secret_arn #secret_arn} => String
|
389
|
+
#
|
390
|
+
# @example Request syntax with placeholder values
|
391
|
+
#
|
392
|
+
# resp = client.batch_execute_statement({
|
393
|
+
# cluster_identifier: "Location", # required
|
394
|
+
# database: "String", # required
|
395
|
+
# db_user: "String",
|
396
|
+
# secret_arn: "SecretArn",
|
397
|
+
# sqls: ["StatementString"], # required
|
398
|
+
# statement_name: "StatementNameString",
|
399
|
+
# with_event: false,
|
400
|
+
# })
|
401
|
+
#
|
402
|
+
# @example Response structure
|
403
|
+
#
|
404
|
+
# resp.cluster_identifier #=> String
|
405
|
+
# resp.created_at #=> Time
|
406
|
+
# resp.database #=> String
|
407
|
+
# resp.db_user #=> String
|
408
|
+
# resp.id #=> String
|
409
|
+
# resp.secret_arn #=> String
|
410
|
+
#
|
411
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/BatchExecuteStatement AWS API Documentation
|
412
|
+
#
|
413
|
+
# @overload batch_execute_statement(params = {})
|
414
|
+
# @param [Hash] params ({})
|
415
|
+
def batch_execute_statement(params = {}, options = {})
|
416
|
+
req = build_request(:batch_execute_statement, params)
|
417
|
+
req.send_request(options)
|
418
|
+
end
|
419
|
+
|
340
420
|
# Cancels a running query. To be canceled, a query must be running.
|
341
421
|
#
|
342
422
|
# @option params [required, String] :id
|
343
423
|
# The identifier of the SQL statement to cancel. This value is a
|
344
424
|
# universally unique identifier (UUID) generated by Amazon Redshift Data
|
345
|
-
# API. This identifier is returned by `
|
346
|
-
# `ListStatements`.
|
425
|
+
# API. This identifier is returned by `BatchExecuteStatment`,
|
426
|
+
# `ExecuteStatment`, and `ListStatements`.
|
347
427
|
#
|
348
428
|
# @return [Types::CancelStatementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
349
429
|
#
|
@@ -352,7 +432,7 @@ module Aws::RedshiftDataAPIService
|
|
352
432
|
# @example Request syntax with placeholder values
|
353
433
|
#
|
354
434
|
# resp = client.cancel_statement({
|
355
|
-
# id: "
|
435
|
+
# id: "StatementId", # required
|
356
436
|
# })
|
357
437
|
#
|
358
438
|
# @example Response structure
|
@@ -376,7 +456,10 @@ module Aws::RedshiftDataAPIService
|
|
376
456
|
# @option params [required, String] :id
|
377
457
|
# The identifier of the SQL statement to describe. This value is a
|
378
458
|
# universally unique identifier (UUID) generated by Amazon Redshift Data
|
379
|
-
# API.
|
459
|
+
# API. A suffix indicates the number of the SQL statement. For example,
|
460
|
+
# `d9b6c0c9-0747-4bf4-b142-e8883122f766:2` has a suffix of `:2` that
|
461
|
+
# indicates the second SQL statement of a batch query. This identifier
|
462
|
+
# is returned by `BatchExecuteStatment`, `ExecuteStatement`, and
|
380
463
|
# `ListStatements`.
|
381
464
|
#
|
382
465
|
# @return [Types::DescribeStatementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -389,6 +472,7 @@ module Aws::RedshiftDataAPIService
|
|
389
472
|
# * {Types::DescribeStatementResponse#error #error} => String
|
390
473
|
# * {Types::DescribeStatementResponse#has_result_set #has_result_set} => Boolean
|
391
474
|
# * {Types::DescribeStatementResponse#id #id} => String
|
475
|
+
# * {Types::DescribeStatementResponse#query_parameters #query_parameters} => Array<Types::SqlParameter>
|
392
476
|
# * {Types::DescribeStatementResponse#query_string #query_string} => String
|
393
477
|
# * {Types::DescribeStatementResponse#redshift_pid #redshift_pid} => Integer
|
394
478
|
# * {Types::DescribeStatementResponse#redshift_query_id #redshift_query_id} => Integer
|
@@ -396,12 +480,13 @@ module Aws::RedshiftDataAPIService
|
|
396
480
|
# * {Types::DescribeStatementResponse#result_size #result_size} => Integer
|
397
481
|
# * {Types::DescribeStatementResponse#secret_arn #secret_arn} => String
|
398
482
|
# * {Types::DescribeStatementResponse#status #status} => String
|
483
|
+
# * {Types::DescribeStatementResponse#sub_statements #sub_statements} => Array<Types::SubStatementData>
|
399
484
|
# * {Types::DescribeStatementResponse#updated_at #updated_at} => Time
|
400
485
|
#
|
401
486
|
# @example Request syntax with placeholder values
|
402
487
|
#
|
403
488
|
# resp = client.describe_statement({
|
404
|
-
# id: "
|
489
|
+
# id: "StatementId", # required
|
405
490
|
# })
|
406
491
|
#
|
407
492
|
# @example Response structure
|
@@ -414,6 +499,9 @@ module Aws::RedshiftDataAPIService
|
|
414
499
|
# resp.error #=> String
|
415
500
|
# resp.has_result_set #=> Boolean
|
416
501
|
# resp.id #=> String
|
502
|
+
# resp.query_parameters #=> Array
|
503
|
+
# resp.query_parameters[0].name #=> String
|
504
|
+
# resp.query_parameters[0].value #=> String
|
417
505
|
# resp.query_string #=> String
|
418
506
|
# resp.redshift_pid #=> Integer
|
419
507
|
# resp.redshift_query_id #=> Integer
|
@@ -421,6 +509,18 @@ module Aws::RedshiftDataAPIService
|
|
421
509
|
# resp.result_size #=> Integer
|
422
510
|
# resp.secret_arn #=> String
|
423
511
|
# resp.status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED", "ALL"
|
512
|
+
# resp.sub_statements #=> Array
|
513
|
+
# resp.sub_statements[0].created_at #=> Time
|
514
|
+
# resp.sub_statements[0].duration #=> Integer
|
515
|
+
# resp.sub_statements[0].error #=> String
|
516
|
+
# resp.sub_statements[0].has_result_set #=> Boolean
|
517
|
+
# resp.sub_statements[0].id #=> String
|
518
|
+
# resp.sub_statements[0].query_string #=> String
|
519
|
+
# resp.sub_statements[0].redshift_query_id #=> Integer
|
520
|
+
# resp.sub_statements[0].result_rows #=> Integer
|
521
|
+
# resp.sub_statements[0].result_size #=> Integer
|
522
|
+
# resp.sub_statements[0].status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED"
|
523
|
+
# resp.sub_statements[0].updated_at #=> Time
|
424
524
|
# resp.updated_at #=> Time
|
425
525
|
#
|
426
526
|
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/DescribeStatement AWS API Documentation
|
@@ -437,9 +537,9 @@ module Aws::RedshiftDataAPIService
|
|
437
537
|
# page through the column list. Depending on the authorization method,
|
438
538
|
# use one of the following combinations of request parameters:
|
439
539
|
#
|
440
|
-
# *
|
441
|
-
# secret and the cluster identifier that matches
|
442
|
-
# secret.
|
540
|
+
# * Secrets Manager - specify the Amazon Resource Name (ARN) of the
|
541
|
+
# secret, the database name, and the cluster identifier that matches
|
542
|
+
# the cluster in the secret.
|
443
543
|
#
|
444
544
|
# * Temporary credentials - specify the cluster identifier, the database
|
445
545
|
# name, and the database user name. Permission to call the
|
@@ -448,7 +548,7 @@ module Aws::RedshiftDataAPIService
|
|
448
548
|
#
|
449
549
|
# @option params [required, String] :cluster_identifier
|
450
550
|
# The cluster identifier. This parameter is required when authenticating
|
451
|
-
# using either
|
551
|
+
# using either Secrets Manager or temporary credentials.
|
452
552
|
#
|
453
553
|
# @option params [String] :connected_database
|
454
554
|
# A database name. The connected database is specified when you connect
|
@@ -482,8 +582,7 @@ module Aws::RedshiftDataAPIService
|
|
482
582
|
#
|
483
583
|
# @option params [String] :secret_arn
|
484
584
|
# The name or ARN of the secret that enables access to the database.
|
485
|
-
# This parameter is required when authenticating using
|
486
|
-
# Manager.
|
585
|
+
# This parameter is required when authenticating using Secrets Manager.
|
487
586
|
#
|
488
587
|
# @option params [String] :table
|
489
588
|
# The table name. If no table is specified, then all tables for all
|
@@ -545,9 +644,9 @@ module Aws::RedshiftDataAPIService
|
|
545
644
|
# statement. Depending on the authorization method, use one of the
|
546
645
|
# following combinations of request parameters:
|
547
646
|
#
|
548
|
-
# *
|
549
|
-
# secret and the cluster identifier that matches
|
550
|
-
# secret.
|
647
|
+
# * Secrets Manager - specify the Amazon Resource Name (ARN) of the
|
648
|
+
# secret, the database name, and the cluster identifier that matches
|
649
|
+
# the cluster in the secret.
|
551
650
|
#
|
552
651
|
# * Temporary credentials - specify the cluster identifier, the database
|
553
652
|
# name, and the database user name. Permission to call the
|
@@ -556,20 +655,22 @@ module Aws::RedshiftDataAPIService
|
|
556
655
|
#
|
557
656
|
# @option params [required, String] :cluster_identifier
|
558
657
|
# The cluster identifier. This parameter is required when authenticating
|
559
|
-
# using either
|
658
|
+
# using either Secrets Manager or temporary credentials.
|
560
659
|
#
|
561
|
-
# @option params [String] :database
|
660
|
+
# @option params [required, String] :database
|
562
661
|
# The name of the database. This parameter is required when
|
563
|
-
# authenticating using temporary credentials.
|
662
|
+
# authenticating using either Secrets Manager or temporary credentials.
|
564
663
|
#
|
565
664
|
# @option params [String] :db_user
|
566
665
|
# The database user name. This parameter is required when authenticating
|
567
666
|
# using temporary credentials.
|
568
667
|
#
|
668
|
+
# @option params [Array<Types::SqlParameter>] :parameters
|
669
|
+
# The parameters for the SQL statement.
|
670
|
+
#
|
569
671
|
# @option params [String] :secret_arn
|
570
672
|
# The name or ARN of the secret that enables access to the database.
|
571
|
-
# This parameter is required when authenticating using
|
572
|
-
# Manager.
|
673
|
+
# This parameter is required when authenticating using Secrets Manager.
|
573
674
|
#
|
574
675
|
# @option params [required, String] :sql
|
575
676
|
# The SQL statement text to run.
|
@@ -595,8 +696,14 @@ module Aws::RedshiftDataAPIService
|
|
595
696
|
#
|
596
697
|
# resp = client.execute_statement({
|
597
698
|
# cluster_identifier: "Location", # required
|
598
|
-
# database: "String",
|
699
|
+
# database: "String", # required
|
599
700
|
# db_user: "String",
|
701
|
+
# parameters: [
|
702
|
+
# {
|
703
|
+
# name: "ParameterName", # required
|
704
|
+
# value: "ParameterValue", # required
|
705
|
+
# },
|
706
|
+
# ],
|
600
707
|
# secret_arn: "SecretArn",
|
601
708
|
# sql: "StatementString", # required
|
602
709
|
# statement_name: "StatementNameString",
|
@@ -627,8 +734,11 @@ module Aws::RedshiftDataAPIService
|
|
627
734
|
# @option params [required, String] :id
|
628
735
|
# The identifier of the SQL statement whose results are to be fetched.
|
629
736
|
# This value is a universally unique identifier (UUID) generated by
|
630
|
-
# Amazon Redshift Data API.
|
631
|
-
# `
|
737
|
+
# Amazon Redshift Data API. A suffix indicates then number of the SQL
|
738
|
+
# statement. For example, `d9b6c0c9-0747-4bf4-b142-e8883122f766:2` has a
|
739
|
+
# suffix of `:2` that indicates the second SQL statement of a batch
|
740
|
+
# query. This identifier is returned by `BatchExecuteStatment`,
|
741
|
+
# `ExecuteStatment`, and `ListStatements`.
|
632
742
|
#
|
633
743
|
# @option params [String] :next_token
|
634
744
|
# A value that indicates the starting point for the next set of response
|
@@ -650,7 +760,7 @@ module Aws::RedshiftDataAPIService
|
|
650
760
|
# @example Request syntax with placeholder values
|
651
761
|
#
|
652
762
|
# resp = client.get_statement_result({
|
653
|
-
# id: "
|
763
|
+
# id: "StatementId", # required
|
654
764
|
# next_token: "String",
|
655
765
|
# })
|
656
766
|
#
|
@@ -694,9 +804,9 @@ module Aws::RedshiftDataAPIService
|
|
694
804
|
# the database list. Depending on the authorization method, use one of
|
695
805
|
# the following combinations of request parameters:
|
696
806
|
#
|
697
|
-
# *
|
698
|
-
# secret and the cluster identifier that matches
|
699
|
-
# secret.
|
807
|
+
# * Secrets Manager - specify the Amazon Resource Name (ARN) of the
|
808
|
+
# secret, the database name, and the cluster identifier that matches
|
809
|
+
# the cluster in the secret.
|
700
810
|
#
|
701
811
|
# * Temporary credentials - specify the cluster identifier, the database
|
702
812
|
# name, and the database user name. Permission to call the
|
@@ -705,11 +815,11 @@ module Aws::RedshiftDataAPIService
|
|
705
815
|
#
|
706
816
|
# @option params [required, String] :cluster_identifier
|
707
817
|
# The cluster identifier. This parameter is required when authenticating
|
708
|
-
# using either
|
818
|
+
# using either Secrets Manager or temporary credentials.
|
709
819
|
#
|
710
|
-
# @option params [String] :database
|
820
|
+
# @option params [required, String] :database
|
711
821
|
# The name of the database. This parameter is required when
|
712
|
-
# authenticating using temporary credentials.
|
822
|
+
# authenticating using either Secrets Manager or temporary credentials.
|
713
823
|
#
|
714
824
|
# @option params [String] :db_user
|
715
825
|
# The database user name. This parameter is required when authenticating
|
@@ -730,8 +840,7 @@ module Aws::RedshiftDataAPIService
|
|
730
840
|
#
|
731
841
|
# @option params [String] :secret_arn
|
732
842
|
# The name or ARN of the secret that enables access to the database.
|
733
|
-
# This parameter is required when authenticating using
|
734
|
-
# Manager.
|
843
|
+
# This parameter is required when authenticating using Secrets Manager.
|
735
844
|
#
|
736
845
|
# @return [Types::ListDatabasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
737
846
|
#
|
@@ -744,7 +853,7 @@ module Aws::RedshiftDataAPIService
|
|
744
853
|
#
|
745
854
|
# resp = client.list_databases({
|
746
855
|
# cluster_identifier: "Location", # required
|
747
|
-
# database: "String",
|
856
|
+
# database: "String", # required
|
748
857
|
# db_user: "String",
|
749
858
|
# max_results: 1,
|
750
859
|
# next_token: "String",
|
@@ -770,9 +879,9 @@ module Aws::RedshiftDataAPIService
|
|
770
879
|
# the schema list. Depending on the authorization method, use one of the
|
771
880
|
# following combinations of request parameters:
|
772
881
|
#
|
773
|
-
# *
|
774
|
-
# secret and the cluster identifier that matches
|
775
|
-
# secret.
|
882
|
+
# * Secrets Manager - specify the Amazon Resource Name (ARN) of the
|
883
|
+
# secret, the database name, and the cluster identifier that matches
|
884
|
+
# the cluster in the secret.
|
776
885
|
#
|
777
886
|
# * Temporary credentials - specify the cluster identifier, the database
|
778
887
|
# name, and the database user name. Permission to call the
|
@@ -781,7 +890,7 @@ module Aws::RedshiftDataAPIService
|
|
781
890
|
#
|
782
891
|
# @option params [required, String] :cluster_identifier
|
783
892
|
# The cluster identifier. This parameter is required when authenticating
|
784
|
-
# using either
|
893
|
+
# using either Secrets Manager or temporary credentials.
|
785
894
|
#
|
786
895
|
# @option params [String] :connected_database
|
787
896
|
# A database name. The connected database is specified when you connect
|
@@ -817,8 +926,7 @@ module Aws::RedshiftDataAPIService
|
|
817
926
|
#
|
818
927
|
# @option params [String] :secret_arn
|
819
928
|
# The name or ARN of the secret that enables access to the database.
|
820
|
-
# This parameter is required when authenticating using
|
821
|
-
# Manager.
|
929
|
+
# This parameter is required when authenticating using Secrets Manager.
|
822
930
|
#
|
823
931
|
# @return [Types::ListSchemasResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
824
932
|
#
|
@@ -878,12 +986,13 @@ module Aws::RedshiftDataAPIService
|
|
878
986
|
# IAM session are returned. The default is true.
|
879
987
|
#
|
880
988
|
# @option params [String] :statement_name
|
881
|
-
# The name of the SQL statement specified as input to
|
882
|
-
# to identify the query.
|
883
|
-
#
|
884
|
-
#
|
885
|
-
#
|
886
|
-
#
|
989
|
+
# The name of the SQL statement specified as input to
|
990
|
+
# `BatchExecuteStatement` or `ExecuteStatement` to identify the query.
|
991
|
+
# You can list multiple statements by providing a prefix that matches
|
992
|
+
# the beginning of the statement name. For example, to list
|
993
|
+
# myStatement1, myStatement2, myStatement3, and so on, then provide the
|
994
|
+
# a value of `myStatement`. Data API does a case-sensitive match of SQL
|
995
|
+
# statement names to the prefix value you provide.
|
887
996
|
#
|
888
997
|
# @option params [String] :status
|
889
998
|
# The status of the SQL statement to list. Status values are defined as
|
@@ -927,7 +1036,13 @@ module Aws::RedshiftDataAPIService
|
|
927
1036
|
# resp.statements #=> Array
|
928
1037
|
# resp.statements[0].created_at #=> Time
|
929
1038
|
# resp.statements[0].id #=> String
|
1039
|
+
# resp.statements[0].is_batch_statement #=> Boolean
|
1040
|
+
# resp.statements[0].query_parameters #=> Array
|
1041
|
+
# resp.statements[0].query_parameters[0].name #=> String
|
1042
|
+
# resp.statements[0].query_parameters[0].value #=> String
|
930
1043
|
# resp.statements[0].query_string #=> String
|
1044
|
+
# resp.statements[0].query_strings #=> Array
|
1045
|
+
# resp.statements[0].query_strings[0] #=> String
|
931
1046
|
# resp.statements[0].secret_arn #=> String
|
932
1047
|
# resp.statements[0].statement_name #=> String
|
933
1048
|
# resp.statements[0].status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED", "ALL"
|
@@ -948,9 +1063,9 @@ module Aws::RedshiftDataAPIService
|
|
948
1063
|
# Depending on the authorization method, use one of the following
|
949
1064
|
# combinations of request parameters:
|
950
1065
|
#
|
951
|
-
# *
|
952
|
-
# secret and the cluster identifier that matches
|
953
|
-
# secret.
|
1066
|
+
# * Secrets Manager - specify the Amazon Resource Name (ARN) of the
|
1067
|
+
# secret, the database name, and the cluster identifier that matches
|
1068
|
+
# the cluster in the secret.
|
954
1069
|
#
|
955
1070
|
# * Temporary credentials - specify the cluster identifier, the database
|
956
1071
|
# name, and the database user name. Permission to call the
|
@@ -959,7 +1074,7 @@ module Aws::RedshiftDataAPIService
|
|
959
1074
|
#
|
960
1075
|
# @option params [required, String] :cluster_identifier
|
961
1076
|
# The cluster identifier. This parameter is required when authenticating
|
962
|
-
# using either
|
1077
|
+
# using either Secrets Manager or temporary credentials.
|
963
1078
|
#
|
964
1079
|
# @option params [String] :connected_database
|
965
1080
|
# A database name. The connected database is specified when you connect
|
@@ -998,8 +1113,7 @@ module Aws::RedshiftDataAPIService
|
|
998
1113
|
#
|
999
1114
|
# @option params [String] :secret_arn
|
1000
1115
|
# The name or ARN of the secret that enables access to the database.
|
1001
|
-
# This parameter is required when authenticating using
|
1002
|
-
# Manager.
|
1116
|
+
# This parameter is required when authenticating using Secrets Manager.
|
1003
1117
|
#
|
1004
1118
|
# @option params [String] :table_pattern
|
1005
1119
|
# A pattern to filter results by table name. Within a table pattern,
|
@@ -1061,7 +1175,7 @@ module Aws::RedshiftDataAPIService
|
|
1061
1175
|
params: params,
|
1062
1176
|
config: config)
|
1063
1177
|
context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
|
1064
|
-
context[:gem_version] = '1.
|
1178
|
+
context[:gem_version] = '1.10.0'
|
1065
1179
|
Seahorse::Client::Request.new(handlers, context)
|
1066
1180
|
end
|
1067
1181
|
|