aws-sdk-rdsdataservice 1.7.0 → 1.8.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: 9226fd02cd5229acdf91175faf357f9be73efc51
4
- data.tar.gz: b2bb0494239df351af51e9a7c6d0797262b66f68
3
+ metadata.gz: fb3fc9c12101393cbc76339da168577bf1454a0e
4
+ data.tar.gz: 6758a14797510ebcd4bc47b1619e62a391c3383e
5
5
  SHA512:
6
- metadata.gz: 688d7bda760a0127a0d7760c6d132a1b7ceff5fa6672c67672db66984605c0b1d381cbed92d3bab24401e133af75c7e5715ebd3f16f6a74a480c879ed090507b
7
- data.tar.gz: 808216b0de8226839e1de69c6981b6e34fb328c56e7346ebe21f800317272ae93405140f74dc7f19a938712d185191f965d33dad5f3d9aa9b662d3171eedf971
6
+ metadata.gz: f3893b6d16e113022a34eb551fb66ea01c1b90e0717a61cb659db859bfc2ad2d7753e98cdff387299571a47536ed84edceb3a9e3181d8e3e4ce01248b73a9fb8
7
+ data.tar.gz: ce15b1907f2fdfae5420184b12fe759b37d512a9e024e442176912f4b14bab7778fbdd5445955733bea11c8f5f8e16c9b9bd01805265e9840776b3a95a4f5ee9
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-rdsdataservice/customizations'
42
42
  # @service
43
43
  module Aws::RDSDataService
44
44
 
45
- GEM_VERSION = '1.7.0'
45
+ GEM_VERSION = '1.8.0'
46
46
 
47
47
  end
@@ -250,24 +250,211 @@ module Aws::RDSDataService
250
250
 
251
251
  # @!group API Operations
252
252
 
253
- # Executes any SQL statement on the target database synchronously
253
+ # Runs a batch SQL statement over an array of data.
254
+ #
255
+ # You can run bulk update and insert operations for multiple records
256
+ # using a DML statement with different parameter sets. Bulk operations
257
+ # can provide a significant performance improvement over individual
258
+ # insert and update operations.
259
+ #
260
+ # <important markdown="1"> If a call isn't part of a transaction because it doesn't include the
261
+ # `transactionID` parameter, changes that result from the call are
262
+ # committed automatically.
263
+ #
264
+ # </important>
265
+ #
266
+ # @option params [String] :database
267
+ # The name of the database.
268
+ #
269
+ # @option params [Array<Array>] :parameter_sets
270
+ # The parameter set for the batch operation.
271
+ #
272
+ # @option params [required, String] :resource_arn
273
+ # The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
274
+ #
275
+ # @option params [String] :schema
276
+ # The name of the database schema.
277
+ #
278
+ # @option params [required, String] :secret_arn
279
+ # The name or ARN of the secret that enables access to the DB cluster.
280
+ #
281
+ # @option params [required, String] :sql
282
+ # The SQL statement to run.
283
+ #
284
+ # @option params [String] :transaction_id
285
+ # The identifier of a transaction that was started by using the
286
+ # `BeginTransaction` operation. Specify the transaction ID of the
287
+ # transaction that you want to include the SQL statement in.
288
+ #
289
+ # If the SQL statement is not part of a transaction, don't set this
290
+ # parameter.
291
+ #
292
+ # @return [Types::BatchExecuteStatementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
293
+ #
294
+ # * {Types::BatchExecuteStatementResponse#update_results #update_results} => Array&lt;Types::UpdateResult&gt;
295
+ #
296
+ # @example Request syntax with placeholder values
297
+ #
298
+ # resp = client.batch_execute_statement({
299
+ # database: "DbName",
300
+ # parameter_sets: [
301
+ # [
302
+ # {
303
+ # name: "ParameterName",
304
+ # value: {
305
+ # blob_value: "data",
306
+ # boolean_value: false,
307
+ # double_value: 1.0,
308
+ # is_null: false,
309
+ # long_value: 1,
310
+ # string_value: "String",
311
+ # },
312
+ # },
313
+ # ],
314
+ # ],
315
+ # resource_arn: "Arn", # required
316
+ # schema: "DbName",
317
+ # secret_arn: "Arn", # required
318
+ # sql: "SqlStatement", # required
319
+ # transaction_id: "Id",
320
+ # })
321
+ #
322
+ # @example Response structure
323
+ #
324
+ # resp.update_results #=> Array
325
+ # resp.update_results[0].generated_fields #=> Array
326
+ # resp.update_results[0].generated_fields[0].blob_value #=> String
327
+ # resp.update_results[0].generated_fields[0].boolean_value #=> Boolean
328
+ # resp.update_results[0].generated_fields[0].double_value #=> Float
329
+ # resp.update_results[0].generated_fields[0].is_null #=> Boolean
330
+ # resp.update_results[0].generated_fields[0].long_value #=> Integer
331
+ # resp.update_results[0].generated_fields[0].string_value #=> String
332
+ #
333
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatement AWS API Documentation
334
+ #
335
+ # @overload batch_execute_statement(params = {})
336
+ # @param [Hash] params ({})
337
+ def batch_execute_statement(params = {}, options = {})
338
+ req = build_request(:batch_execute_statement, params)
339
+ req.send_request(options)
340
+ end
341
+
342
+ # Starts a SQL transaction.
343
+ #
344
+ # <important markdown="1"> A transaction can run for a maximum of 24 hours. A transaction is
345
+ # terminated and rolled back automatically after 24 hours.
346
+ #
347
+ # A transaction times out if no calls use its transaction ID in three
348
+ # minutes. If a transaction times out before it's committed, it's
349
+ # rolled back automatically.
350
+ #
351
+ # DDL statements inside a transaction cause an implicit commit. We
352
+ # recommend that you run each DDL statement in a separate
353
+ # `ExecuteStatement` call with `continueAfterTimeout` enabled.
354
+ #
355
+ # </important>
356
+ #
357
+ # @option params [String] :database
358
+ # The name of the database.
359
+ #
360
+ # @option params [required, String] :resource_arn
361
+ # The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
362
+ #
363
+ # @option params [String] :schema
364
+ # The name of the database schema.
365
+ #
366
+ # @option params [required, String] :secret_arn
367
+ # The name or ARN of the secret that enables access to the DB cluster.
368
+ #
369
+ # @return [Types::BeginTransactionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
370
+ #
371
+ # * {Types::BeginTransactionResponse#transaction_id #transaction_id} => String
372
+ #
373
+ # @example Request syntax with placeholder values
374
+ #
375
+ # resp = client.begin_transaction({
376
+ # database: "DbName",
377
+ # resource_arn: "Arn", # required
378
+ # schema: "DbName",
379
+ # secret_arn: "Arn", # required
380
+ # })
381
+ #
382
+ # @example Response structure
383
+ #
384
+ # resp.transaction_id #=> String
385
+ #
386
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransaction AWS API Documentation
387
+ #
388
+ # @overload begin_transaction(params = {})
389
+ # @param [Hash] params ({})
390
+ def begin_transaction(params = {}, options = {})
391
+ req = build_request(:begin_transaction, params)
392
+ req.send_request(options)
393
+ end
394
+
395
+ # Ends a SQL transaction started with the `BeginTransaction` operation
396
+ # and commits the changes.
397
+ #
398
+ # @option params [required, String] :resource_arn
399
+ # The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
400
+ #
401
+ # @option params [required, String] :secret_arn
402
+ # The name or ARN of the secret that enables access to the DB cluster.
403
+ #
404
+ # @option params [required, String] :transaction_id
405
+ # The identifier of the transaction to end and commit.
406
+ #
407
+ # @return [Types::CommitTransactionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
408
+ #
409
+ # * {Types::CommitTransactionResponse#transaction_status #transaction_status} => String
410
+ #
411
+ # @example Request syntax with placeholder values
412
+ #
413
+ # resp = client.commit_transaction({
414
+ # resource_arn: "Arn", # required
415
+ # secret_arn: "Arn", # required
416
+ # transaction_id: "Id", # required
417
+ # })
418
+ #
419
+ # @example Response structure
420
+ #
421
+ # resp.transaction_status #=> String
422
+ #
423
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransaction AWS API Documentation
424
+ #
425
+ # @overload commit_transaction(params = {})
426
+ # @param [Hash] params ({})
427
+ def commit_transaction(params = {}, options = {})
428
+ req = build_request(:commit_transaction, params)
429
+ req.send_request(options)
430
+ end
431
+
432
+ # Runs one or more SQL statements.
433
+ #
434
+ # <important markdown="1"> This operation is deprecated. Use the `BatchExecuteStatement` or
435
+ # `ExecuteStatement` operation.
436
+ #
437
+ # </important>
254
438
  #
255
439
  # @option params [required, String] :aws_secret_store_arn
256
- # ARN of the db credentials in AWS Secret Store or the friendly secret
257
- # name
440
+ # The Amazon Resource Name (ARN) of the secret that enables access to
441
+ # the DB cluster.
258
442
  #
259
443
  # @option params [String] :database
260
- # Target DB name
444
+ # The name of the database.
261
445
  #
262
446
  # @option params [required, String] :db_cluster_or_instance_arn
263
- # ARN of the target db cluster or instance
447
+ # The ARN of the Aurora Serverless DB cluster.
264
448
  #
265
449
  # @option params [String] :schema
266
- # Target Schema name
450
+ # The name of the database schema.
267
451
  #
268
452
  # @option params [required, String] :sql_statements
269
- # SQL statement(s) to be executed. Statements can be chained by using
270
- # semicolons
453
+ # One or more SQL statements to run on the DB cluster.
454
+ #
455
+ # You can separate SQL statements from each other with a semicolon (;).
456
+ # Any valid SQL statement is permitted, including data definition, data
457
+ # manipulation, and commit statements.
271
458
  #
272
459
  # @return [Types::ExecuteSqlResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
273
460
  #
@@ -327,6 +514,172 @@ module Aws::RDSDataService
327
514
  req.send_request(options)
328
515
  end
329
516
 
517
+ # Runs a SQL statement against a database.
518
+ #
519
+ # <important markdown="1"> If a call isn't part of a transaction because it doesn't include the
520
+ # `transactionID` parameter, changes that result from the call are
521
+ # committed automatically.
522
+ #
523
+ # </important>
524
+ #
525
+ # The response size limit is 1 MB or 1,000 records. If the call returns
526
+ # more than 1 MB of response data or over 1,000 records, the call is
527
+ # terminated.
528
+ #
529
+ # @option params [Boolean] :continue_after_timeout
530
+ # A value that indicates whether to continue running the statement after
531
+ # the call times out. By default, the statement stops running when the
532
+ # call times out.
533
+ #
534
+ # <important markdown="1"> For DDL statements, we recommend continuing to run the statement after
535
+ # the call times out. When a DDL statement terminates before it is
536
+ # finished running, it can result in errors and possibly corrupted data
537
+ # structures.
538
+ #
539
+ # </important>
540
+ #
541
+ # @option params [String] :database
542
+ # The name of the database.
543
+ #
544
+ # @option params [Boolean] :include_result_metadata
545
+ # A value that indicates whether to include metadata in the results.
546
+ #
547
+ # @option params [Array<Types::SqlParameter>] :parameters
548
+ # The parameters for the SQL statement.
549
+ #
550
+ # @option params [required, String] :resource_arn
551
+ # The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
552
+ #
553
+ # @option params [String] :schema
554
+ # The name of the database schema.
555
+ #
556
+ # @option params [required, String] :secret_arn
557
+ # The name or ARN of the secret that enables access to the DB cluster.
558
+ #
559
+ # @option params [required, String] :sql
560
+ # The SQL statement to run.
561
+ #
562
+ # @option params [String] :transaction_id
563
+ # The identifier of a transaction that was started by using the
564
+ # `BeginTransaction` operation. Specify the transaction ID of the
565
+ # transaction that you want to include the SQL statement in.
566
+ #
567
+ # If the SQL statement is not part of a transaction, don't set this
568
+ # parameter.
569
+ #
570
+ # @return [Types::ExecuteStatementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
571
+ #
572
+ # * {Types::ExecuteStatementResponse#column_metadata #column_metadata} => Array&lt;Types::ColumnMetadata&gt;
573
+ # * {Types::ExecuteStatementResponse#generated_fields #generated_fields} => Array&lt;Types::Field&gt;
574
+ # * {Types::ExecuteStatementResponse#number_of_records_updated #number_of_records_updated} => Integer
575
+ # * {Types::ExecuteStatementResponse#records #records} => Array&lt;Array&lt;Types::Field&gt;&gt;
576
+ #
577
+ # @example Request syntax with placeholder values
578
+ #
579
+ # resp = client.execute_statement({
580
+ # continue_after_timeout: false,
581
+ # database: "DbName",
582
+ # include_result_metadata: false,
583
+ # parameters: [
584
+ # {
585
+ # name: "ParameterName",
586
+ # value: {
587
+ # blob_value: "data",
588
+ # boolean_value: false,
589
+ # double_value: 1.0,
590
+ # is_null: false,
591
+ # long_value: 1,
592
+ # string_value: "String",
593
+ # },
594
+ # },
595
+ # ],
596
+ # resource_arn: "Arn", # required
597
+ # schema: "DbName",
598
+ # secret_arn: "Arn", # required
599
+ # sql: "SqlStatement", # required
600
+ # transaction_id: "Id",
601
+ # })
602
+ #
603
+ # @example Response structure
604
+ #
605
+ # resp.column_metadata #=> Array
606
+ # resp.column_metadata[0].array_base_column_type #=> Integer
607
+ # resp.column_metadata[0].is_auto_increment #=> Boolean
608
+ # resp.column_metadata[0].is_case_sensitive #=> Boolean
609
+ # resp.column_metadata[0].is_currency #=> Boolean
610
+ # resp.column_metadata[0].is_signed #=> Boolean
611
+ # resp.column_metadata[0].label #=> String
612
+ # resp.column_metadata[0].name #=> String
613
+ # resp.column_metadata[0].nullable #=> Integer
614
+ # resp.column_metadata[0].precision #=> Integer
615
+ # resp.column_metadata[0].scale #=> Integer
616
+ # resp.column_metadata[0].schema_name #=> String
617
+ # resp.column_metadata[0].table_name #=> String
618
+ # resp.column_metadata[0].type #=> Integer
619
+ # resp.column_metadata[0].type_name #=> String
620
+ # resp.generated_fields #=> Array
621
+ # resp.generated_fields[0].blob_value #=> String
622
+ # resp.generated_fields[0].boolean_value #=> Boolean
623
+ # resp.generated_fields[0].double_value #=> Float
624
+ # resp.generated_fields[0].is_null #=> Boolean
625
+ # resp.generated_fields[0].long_value #=> Integer
626
+ # resp.generated_fields[0].string_value #=> String
627
+ # resp.number_of_records_updated #=> Integer
628
+ # resp.records #=> Array
629
+ # resp.records[0] #=> Array
630
+ # resp.records[0][0].blob_value #=> String
631
+ # resp.records[0][0].boolean_value #=> Boolean
632
+ # resp.records[0][0].double_value #=> Float
633
+ # resp.records[0][0].is_null #=> Boolean
634
+ # resp.records[0][0].long_value #=> Integer
635
+ # resp.records[0][0].string_value #=> String
636
+ #
637
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatement AWS API Documentation
638
+ #
639
+ # @overload execute_statement(params = {})
640
+ # @param [Hash] params ({})
641
+ def execute_statement(params = {}, options = {})
642
+ req = build_request(:execute_statement, params)
643
+ req.send_request(options)
644
+ end
645
+
646
+ # Performs a rollback of a transaction. Rolling back a transaction
647
+ # cancels its changes.
648
+ #
649
+ # @option params [required, String] :resource_arn
650
+ # The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
651
+ #
652
+ # @option params [required, String] :secret_arn
653
+ # The name or ARN of the secret that enables access to the DB cluster.
654
+ #
655
+ # @option params [required, String] :transaction_id
656
+ # The identifier of the transaction to roll back.
657
+ #
658
+ # @return [Types::RollbackTransactionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
659
+ #
660
+ # * {Types::RollbackTransactionResponse#transaction_status #transaction_status} => String
661
+ #
662
+ # @example Request syntax with placeholder values
663
+ #
664
+ # resp = client.rollback_transaction({
665
+ # resource_arn: "Arn", # required
666
+ # secret_arn: "Arn", # required
667
+ # transaction_id: "Id", # required
668
+ # })
669
+ #
670
+ # @example Response structure
671
+ #
672
+ # resp.transaction_status #=> String
673
+ #
674
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransaction AWS API Documentation
675
+ #
676
+ # @overload rollback_transaction(params = {})
677
+ # @param [Hash] params ({})
678
+ def rollback_transaction(params = {}, options = {})
679
+ req = build_request(:rollback_transaction, params)
680
+ req.send_request(options)
681
+ end
682
+
330
683
  # @!endgroup
331
684
 
332
685
  # @param params ({})
@@ -340,7 +693,7 @@ module Aws::RDSDataService
340
693
  params: params,
341
694
  config: config)
342
695
  context[:gem_name] = 'aws-sdk-rdsdataservice'
343
- context[:gem_version] = '1.7.0'
696
+ context[:gem_version] = '1.8.0'
344
697
  Seahorse::Client::Request.new(handlers, context)
345
698
  end
346
699
 
@@ -12,39 +12,88 @@ module Aws::RDSDataService
12
12
  include Seahorse::Model
13
13
 
14
14
  Arn = Shapes::StringShape.new(name: 'Arn')
15
- ArrayValues = Shapes::ListShape.new(name: 'ArrayValues')
15
+ ArrayValueList = Shapes::ListShape.new(name: 'ArrayValueList')
16
16
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
17
+ BatchExecuteStatementRequest = Shapes::StructureShape.new(name: 'BatchExecuteStatementRequest')
18
+ BatchExecuteStatementResponse = Shapes::StructureShape.new(name: 'BatchExecuteStatementResponse')
19
+ BeginTransactionRequest = Shapes::StructureShape.new(name: 'BeginTransactionRequest')
20
+ BeginTransactionResponse = Shapes::StructureShape.new(name: 'BeginTransactionResponse')
17
21
  Blob = Shapes::BlobShape.new(name: 'Blob')
18
22
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
23
+ BoxedBoolean = Shapes::BooleanShape.new(name: 'BoxedBoolean')
24
+ BoxedDouble = Shapes::FloatShape.new(name: 'BoxedDouble')
25
+ BoxedFloat = Shapes::FloatShape.new(name: 'BoxedFloat')
26
+ BoxedInteger = Shapes::IntegerShape.new(name: 'BoxedInteger')
27
+ BoxedLong = Shapes::IntegerShape.new(name: 'BoxedLong')
19
28
  ColumnMetadata = Shapes::StructureShape.new(name: 'ColumnMetadata')
20
- ColumnMetadataList = Shapes::ListShape.new(name: 'ColumnMetadataList')
29
+ CommitTransactionRequest = Shapes::StructureShape.new(name: 'CommitTransactionRequest')
30
+ CommitTransactionResponse = Shapes::StructureShape.new(name: 'CommitTransactionResponse')
21
31
  DbName = Shapes::StringShape.new(name: 'DbName')
22
- Double = Shapes::FloatShape.new(name: 'Double')
32
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
23
33
  ExecuteSqlRequest = Shapes::StructureShape.new(name: 'ExecuteSqlRequest')
24
34
  ExecuteSqlResponse = Shapes::StructureShape.new(name: 'ExecuteSqlResponse')
25
- Float = Shapes::FloatShape.new(name: 'Float')
35
+ ExecuteStatementRequest = Shapes::StructureShape.new(name: 'ExecuteStatementRequest')
36
+ ExecuteStatementResponse = Shapes::StructureShape.new(name: 'ExecuteStatementResponse')
37
+ Field = Shapes::StructureShape.new(name: 'Field')
38
+ FieldList = Shapes::ListShape.new(name: 'FieldList')
26
39
  ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
40
+ Id = Shapes::StringShape.new(name: 'Id')
27
41
  Integer = Shapes::IntegerShape.new(name: 'Integer')
28
42
  InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
29
43
  Long = Shapes::IntegerShape.new(name: 'Long')
44
+ Metadata = Shapes::ListShape.new(name: 'Metadata')
45
+ NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
46
+ ParameterName = Shapes::StringShape.new(name: 'ParameterName')
30
47
  Record = Shapes::StructureShape.new(name: 'Record')
31
48
  Records = Shapes::ListShape.new(name: 'Records')
49
+ RecordsUpdated = Shapes::IntegerShape.new(name: 'RecordsUpdated')
32
50
  ResultFrame = Shapes::StructureShape.new(name: 'ResultFrame')
33
51
  ResultSetMetadata = Shapes::StructureShape.new(name: 'ResultSetMetadata')
52
+ RollbackTransactionRequest = Shapes::StructureShape.new(name: 'RollbackTransactionRequest')
53
+ RollbackTransactionResponse = Shapes::StructureShape.new(name: 'RollbackTransactionResponse')
34
54
  Row = Shapes::ListShape.new(name: 'Row')
35
55
  ServiceUnavailableError = Shapes::StructureShape.new(name: 'ServiceUnavailableError')
56
+ SqlParameter = Shapes::StructureShape.new(name: 'SqlParameter')
57
+ SqlParameterSets = Shapes::ListShape.new(name: 'SqlParameterSets')
58
+ SqlParametersList = Shapes::ListShape.new(name: 'SqlParametersList')
59
+ SqlRecords = Shapes::ListShape.new(name: 'SqlRecords')
36
60
  SqlStatement = Shapes::StringShape.new(name: 'SqlStatement')
37
61
  SqlStatementResult = Shapes::StructureShape.new(name: 'SqlStatementResult')
38
62
  SqlStatementResults = Shapes::ListShape.new(name: 'SqlStatementResults')
63
+ StatementTimeoutException = Shapes::StructureShape.new(name: 'StatementTimeoutException')
39
64
  String = Shapes::StringShape.new(name: 'String')
40
65
  StructValue = Shapes::StructureShape.new(name: 'StructValue')
66
+ TransactionStatus = Shapes::StringShape.new(name: 'TransactionStatus')
67
+ UpdateResult = Shapes::StructureShape.new(name: 'UpdateResult')
68
+ UpdateResults = Shapes::ListShape.new(name: 'UpdateResults')
41
69
  Value = Shapes::StructureShape.new(name: 'Value')
42
70
 
43
- ArrayValues.member = Shapes::ShapeRef.new(shape: Value)
71
+ ArrayValueList.member = Shapes::ShapeRef.new(shape: Value)
44
72
 
45
- BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
73
+ BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
46
74
  BadRequestException.struct_class = Types::BadRequestException
47
75
 
76
+ BatchExecuteStatementRequest.add_member(:database, Shapes::ShapeRef.new(shape: DbName, location_name: "database"))
77
+ BatchExecuteStatementRequest.add_member(:parameter_sets, Shapes::ShapeRef.new(shape: SqlParameterSets, location_name: "parameterSets"))
78
+ BatchExecuteStatementRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
79
+ BatchExecuteStatementRequest.add_member(:schema, Shapes::ShapeRef.new(shape: DbName, location_name: "schema"))
80
+ BatchExecuteStatementRequest.add_member(:secret_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "secretArn"))
81
+ BatchExecuteStatementRequest.add_member(:sql, Shapes::ShapeRef.new(shape: SqlStatement, required: true, location_name: "sql"))
82
+ BatchExecuteStatementRequest.add_member(:transaction_id, Shapes::ShapeRef.new(shape: Id, location_name: "transactionId"))
83
+ BatchExecuteStatementRequest.struct_class = Types::BatchExecuteStatementRequest
84
+
85
+ BatchExecuteStatementResponse.add_member(:update_results, Shapes::ShapeRef.new(shape: UpdateResults, location_name: "updateResults"))
86
+ BatchExecuteStatementResponse.struct_class = Types::BatchExecuteStatementResponse
87
+
88
+ BeginTransactionRequest.add_member(:database, Shapes::ShapeRef.new(shape: DbName, location_name: "database"))
89
+ BeginTransactionRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
90
+ BeginTransactionRequest.add_member(:schema, Shapes::ShapeRef.new(shape: DbName, location_name: "schema"))
91
+ BeginTransactionRequest.add_member(:secret_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "secretArn"))
92
+ BeginTransactionRequest.struct_class = Types::BeginTransactionRequest
93
+
94
+ BeginTransactionResponse.add_member(:transaction_id, Shapes::ShapeRef.new(shape: Id, location_name: "transactionId"))
95
+ BeginTransactionResponse.struct_class = Types::BeginTransactionResponse
96
+
48
97
  ColumnMetadata.add_member(:array_base_column_type, Shapes::ShapeRef.new(shape: Integer, location_name: "arrayBaseColumnType"))
49
98
  ColumnMetadata.add_member(:is_auto_increment, Shapes::ShapeRef.new(shape: Boolean, location_name: "isAutoIncrement"))
50
99
  ColumnMetadata.add_member(:is_case_sensitive, Shapes::ShapeRef.new(shape: Boolean, location_name: "isCaseSensitive"))
@@ -61,7 +110,13 @@ module Aws::RDSDataService
61
110
  ColumnMetadata.add_member(:type_name, Shapes::ShapeRef.new(shape: String, location_name: "typeName"))
62
111
  ColumnMetadata.struct_class = Types::ColumnMetadata
63
112
 
64
- ColumnMetadataList.member = Shapes::ShapeRef.new(shape: ColumnMetadata)
113
+ CommitTransactionRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
114
+ CommitTransactionRequest.add_member(:secret_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "secretArn"))
115
+ CommitTransactionRequest.add_member(:transaction_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "transactionId"))
116
+ CommitTransactionRequest.struct_class = Types::CommitTransactionRequest
117
+
118
+ CommitTransactionResponse.add_member(:transaction_status, Shapes::ShapeRef.new(shape: TransactionStatus, location_name: "transactionStatus"))
119
+ CommitTransactionResponse.struct_class = Types::CommitTransactionResponse
65
120
 
66
121
  ExecuteSqlRequest.add_member(:aws_secret_store_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "awsSecretStoreArn"))
67
122
  ExecuteSqlRequest.add_member(:database, Shapes::ShapeRef.new(shape: DbName, location_name: "database"))
@@ -70,12 +125,44 @@ module Aws::RDSDataService
70
125
  ExecuteSqlRequest.add_member(:sql_statements, Shapes::ShapeRef.new(shape: SqlStatement, required: true, location_name: "sqlStatements"))
71
126
  ExecuteSqlRequest.struct_class = Types::ExecuteSqlRequest
72
127
 
73
- ExecuteSqlResponse.add_member(:sql_statement_results, Shapes::ShapeRef.new(shape: SqlStatementResults, required: true, location_name: "sqlStatementResults"))
128
+ ExecuteSqlResponse.add_member(:sql_statement_results, Shapes::ShapeRef.new(shape: SqlStatementResults, location_name: "sqlStatementResults"))
74
129
  ExecuteSqlResponse.struct_class = Types::ExecuteSqlResponse
75
130
 
76
- ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
131
+ ExecuteStatementRequest.add_member(:continue_after_timeout, Shapes::ShapeRef.new(shape: Boolean, location_name: "continueAfterTimeout"))
132
+ ExecuteStatementRequest.add_member(:database, Shapes::ShapeRef.new(shape: DbName, location_name: "database"))
133
+ ExecuteStatementRequest.add_member(:include_result_metadata, Shapes::ShapeRef.new(shape: Boolean, location_name: "includeResultMetadata"))
134
+ ExecuteStatementRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: SqlParametersList, location_name: "parameters"))
135
+ ExecuteStatementRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
136
+ ExecuteStatementRequest.add_member(:schema, Shapes::ShapeRef.new(shape: DbName, location_name: "schema"))
137
+ ExecuteStatementRequest.add_member(:secret_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "secretArn"))
138
+ ExecuteStatementRequest.add_member(:sql, Shapes::ShapeRef.new(shape: SqlStatement, required: true, location_name: "sql"))
139
+ ExecuteStatementRequest.add_member(:transaction_id, Shapes::ShapeRef.new(shape: Id, location_name: "transactionId"))
140
+ ExecuteStatementRequest.struct_class = Types::ExecuteStatementRequest
141
+
142
+ ExecuteStatementResponse.add_member(:column_metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "columnMetadata"))
143
+ ExecuteStatementResponse.add_member(:generated_fields, Shapes::ShapeRef.new(shape: FieldList, location_name: "generatedFields"))
144
+ ExecuteStatementResponse.add_member(:number_of_records_updated, Shapes::ShapeRef.new(shape: RecordsUpdated, location_name: "numberOfRecordsUpdated"))
145
+ ExecuteStatementResponse.add_member(:records, Shapes::ShapeRef.new(shape: SqlRecords, location_name: "records"))
146
+ ExecuteStatementResponse.struct_class = Types::ExecuteStatementResponse
147
+
148
+ Field.add_member(:blob_value, Shapes::ShapeRef.new(shape: Blob, location_name: "blobValue"))
149
+ Field.add_member(:boolean_value, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "booleanValue"))
150
+ Field.add_member(:double_value, Shapes::ShapeRef.new(shape: BoxedDouble, location_name: "doubleValue"))
151
+ Field.add_member(:is_null, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "isNull"))
152
+ Field.add_member(:long_value, Shapes::ShapeRef.new(shape: BoxedLong, location_name: "longValue"))
153
+ Field.add_member(:string_value, Shapes::ShapeRef.new(shape: String, location_name: "stringValue"))
154
+ Field.struct_class = Types::Field
155
+
156
+ FieldList.member = Shapes::ShapeRef.new(shape: Field)
157
+
158
+ ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
77
159
  ForbiddenException.struct_class = Types::ForbiddenException
78
160
 
161
+ Metadata.member = Shapes::ShapeRef.new(shape: ColumnMetadata)
162
+
163
+ NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
164
+ NotFoundException.struct_class = Types::NotFoundException
165
+
79
166
  Record.add_member(:values, Shapes::ShapeRef.new(shape: Row, location_name: "values"))
80
167
  Record.struct_class = Types::Record
81
168
 
@@ -86,28 +173,55 @@ module Aws::RDSDataService
86
173
  ResultFrame.struct_class = Types::ResultFrame
87
174
 
88
175
  ResultSetMetadata.add_member(:column_count, Shapes::ShapeRef.new(shape: Long, location_name: "columnCount"))
89
- ResultSetMetadata.add_member(:column_metadata, Shapes::ShapeRef.new(shape: ColumnMetadataList, location_name: "columnMetadata"))
176
+ ResultSetMetadata.add_member(:column_metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "columnMetadata"))
90
177
  ResultSetMetadata.struct_class = Types::ResultSetMetadata
91
178
 
179
+ RollbackTransactionRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
180
+ RollbackTransactionRequest.add_member(:secret_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "secretArn"))
181
+ RollbackTransactionRequest.add_member(:transaction_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "transactionId"))
182
+ RollbackTransactionRequest.struct_class = Types::RollbackTransactionRequest
183
+
184
+ RollbackTransactionResponse.add_member(:transaction_status, Shapes::ShapeRef.new(shape: TransactionStatus, location_name: "transactionStatus"))
185
+ RollbackTransactionResponse.struct_class = Types::RollbackTransactionResponse
186
+
92
187
  Row.member = Shapes::ShapeRef.new(shape: Value)
93
188
 
94
- SqlStatementResult.add_member(:number_of_records_updated, Shapes::ShapeRef.new(shape: Long, location_name: "numberOfRecordsUpdated"))
189
+ SqlParameter.add_member(:name, Shapes::ShapeRef.new(shape: ParameterName, location_name: "name"))
190
+ SqlParameter.add_member(:value, Shapes::ShapeRef.new(shape: Field, location_name: "value"))
191
+ SqlParameter.struct_class = Types::SqlParameter
192
+
193
+ SqlParameterSets.member = Shapes::ShapeRef.new(shape: SqlParametersList)
194
+
195
+ SqlParametersList.member = Shapes::ShapeRef.new(shape: SqlParameter)
196
+
197
+ SqlRecords.member = Shapes::ShapeRef.new(shape: FieldList)
198
+
199
+ SqlStatementResult.add_member(:number_of_records_updated, Shapes::ShapeRef.new(shape: RecordsUpdated, location_name: "numberOfRecordsUpdated"))
95
200
  SqlStatementResult.add_member(:result_frame, Shapes::ShapeRef.new(shape: ResultFrame, location_name: "resultFrame"))
96
201
  SqlStatementResult.struct_class = Types::SqlStatementResult
97
202
 
98
203
  SqlStatementResults.member = Shapes::ShapeRef.new(shape: SqlStatementResult)
99
204
 
100
- StructValue.add_member(:attributes, Shapes::ShapeRef.new(shape: ArrayValues, location_name: "attributes"))
205
+ StatementTimeoutException.add_member(:db_connection_id, Shapes::ShapeRef.new(shape: Long, location_name: "dbConnectionId"))
206
+ StatementTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
207
+ StatementTimeoutException.struct_class = Types::StatementTimeoutException
208
+
209
+ StructValue.add_member(:attributes, Shapes::ShapeRef.new(shape: ArrayValueList, location_name: "attributes"))
101
210
  StructValue.struct_class = Types::StructValue
102
211
 
103
- Value.add_member(:array_values, Shapes::ShapeRef.new(shape: ArrayValues, location_name: "arrayValues"))
104
- Value.add_member(:big_int_value, Shapes::ShapeRef.new(shape: Long, location_name: "bigIntValue"))
105
- Value.add_member(:bit_value, Shapes::ShapeRef.new(shape: Boolean, location_name: "bitValue"))
212
+ UpdateResult.add_member(:generated_fields, Shapes::ShapeRef.new(shape: FieldList, location_name: "generatedFields"))
213
+ UpdateResult.struct_class = Types::UpdateResult
214
+
215
+ UpdateResults.member = Shapes::ShapeRef.new(shape: UpdateResult)
216
+
217
+ Value.add_member(:array_values, Shapes::ShapeRef.new(shape: ArrayValueList, location_name: "arrayValues"))
218
+ Value.add_member(:big_int_value, Shapes::ShapeRef.new(shape: BoxedLong, location_name: "bigIntValue"))
219
+ Value.add_member(:bit_value, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "bitValue"))
106
220
  Value.add_member(:blob_value, Shapes::ShapeRef.new(shape: Blob, location_name: "blobValue"))
107
- Value.add_member(:double_value, Shapes::ShapeRef.new(shape: Double, location_name: "doubleValue"))
108
- Value.add_member(:int_value, Shapes::ShapeRef.new(shape: Integer, location_name: "intValue"))
109
- Value.add_member(:is_null, Shapes::ShapeRef.new(shape: Boolean, location_name: "isNull"))
110
- Value.add_member(:real_value, Shapes::ShapeRef.new(shape: Float, location_name: "realValue"))
221
+ Value.add_member(:double_value, Shapes::ShapeRef.new(shape: BoxedDouble, location_name: "doubleValue"))
222
+ Value.add_member(:int_value, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "intValue"))
223
+ Value.add_member(:is_null, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "isNull"))
224
+ Value.add_member(:real_value, Shapes::ShapeRef.new(shape: BoxedFloat, location_name: "realValue"))
111
225
  Value.add_member(:string_value, Shapes::ShapeRef.new(shape: String, location_name: "stringValue"))
112
226
  Value.add_member(:struct_value, Shapes::ShapeRef.new(shape: StructValue, location_name: "structValue"))
113
227
  Value.struct_class = Types::Value
@@ -130,10 +244,50 @@ module Aws::RDSDataService
130
244
  "uid" => "rds-data-2018-08-01",
131
245
  }
132
246
 
247
+ api.add_operation(:batch_execute_statement, Seahorse::Model::Operation.new.tap do |o|
248
+ o.name = "BatchExecuteStatement"
249
+ o.http_method = "POST"
250
+ o.http_request_uri = "/BatchExecute"
251
+ o.input = Shapes::ShapeRef.new(shape: BatchExecuteStatementRequest)
252
+ o.output = Shapes::ShapeRef.new(shape: BatchExecuteStatementResponse)
253
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
254
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
255
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
256
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
257
+ o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
258
+ end)
259
+
260
+ api.add_operation(:begin_transaction, Seahorse::Model::Operation.new.tap do |o|
261
+ o.name = "BeginTransaction"
262
+ o.http_method = "POST"
263
+ o.http_request_uri = "/BeginTransaction"
264
+ o.input = Shapes::ShapeRef.new(shape: BeginTransactionRequest)
265
+ o.output = Shapes::ShapeRef.new(shape: BeginTransactionResponse)
266
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
267
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
268
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
269
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
270
+ o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
271
+ end)
272
+
273
+ api.add_operation(:commit_transaction, Seahorse::Model::Operation.new.tap do |o|
274
+ o.name = "CommitTransaction"
275
+ o.http_method = "POST"
276
+ o.http_request_uri = "/CommitTransaction"
277
+ o.input = Shapes::ShapeRef.new(shape: CommitTransactionRequest)
278
+ o.output = Shapes::ShapeRef.new(shape: CommitTransactionResponse)
279
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
280
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
281
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
282
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
283
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
284
+ end)
285
+
133
286
  api.add_operation(:execute_sql, Seahorse::Model::Operation.new.tap do |o|
134
287
  o.name = "ExecuteSql"
135
288
  o.http_method = "POST"
136
289
  o.http_request_uri = "/ExecuteSql"
290
+ o.deprecated = true
137
291
  o.input = Shapes::ShapeRef.new(shape: ExecuteSqlRequest)
138
292
  o.output = Shapes::ShapeRef.new(shape: ExecuteSqlResponse)
139
293
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
@@ -141,6 +295,32 @@ module Aws::RDSDataService
141
295
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
142
296
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
143
297
  end)
298
+
299
+ api.add_operation(:execute_statement, Seahorse::Model::Operation.new.tap do |o|
300
+ o.name = "ExecuteStatement"
301
+ o.http_method = "POST"
302
+ o.http_request_uri = "/Execute"
303
+ o.input = Shapes::ShapeRef.new(shape: ExecuteStatementRequest)
304
+ o.output = Shapes::ShapeRef.new(shape: ExecuteStatementResponse)
305
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
306
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
307
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
308
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
309
+ o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
310
+ end)
311
+
312
+ api.add_operation(:rollback_transaction, Seahorse::Model::Operation.new.tap do |o|
313
+ o.name = "RollbackTransaction"
314
+ o.http_method = "POST"
315
+ o.http_request_uri = "/RollbackTransaction"
316
+ o.input = Shapes::ShapeRef.new(shape: RollbackTransactionRequest)
317
+ o.output = Shapes::ShapeRef.new(shape: RollbackTransactionResponse)
318
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
319
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
320
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
321
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
322
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
323
+ end)
144
324
  end
145
325
 
146
326
  end