aws-sdk-qldb 1.3.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
  SHA256:
3
- metadata.gz: f88b86092241e4e7f728c00119d070a27ef9835b8e96332fd5f4ffc9054f1a12
4
- data.tar.gz: a0d80291e9f4a8907da9f29e285290f0272ad22d231d30d846207e6ced1009e8
3
+ metadata.gz: b33a1841d62c39c860bdc129281da5072425eabeb624fab0c7eb2dbd8daef0d4
4
+ data.tar.gz: cb1dc13da14cf565308d5baa24e9c22a803f0e9fa45ec497dcf6d47b4507aea2
5
5
  SHA512:
6
- metadata.gz: 557e729ce6da3d3ef075e11242c0ae91cea578d5cf3d7ad5b78e2a706d048e5333b15c5cfa184f08e8e51313156bfb48c2afb4efa064524c9705cc628177d177
7
- data.tar.gz: 4c51c999c20832074ba1957adff7140b939edbf69dc9047e0505af62c762ca4bb88c91200cf8976301dd190419bc9afe733387183f95236c3640018f8a2ba771
6
+ metadata.gz: 8b99799309376caf8c9ff3e1ca3af29a317da5f853b7976eb372dc5471e202f34d39ac39dd1fb5850e6ad27afac10dcfa5423c308188b9219ac13c8b24dcd1a5
7
+ data.tar.gz: ac6df063bcd0e52f0863823f32365b470a36bbf8e3025a7be744f72e40d9b60529c0b0509ab94ec1db834145d9b05c1048e4edb7e3305492365023b224e26ffd
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -25,7 +27,7 @@ require_relative 'aws-sdk-qldb/customizations'
25
27
  # structure.
26
28
  #
27
29
  # qldb = Aws::QLDB::Client.new
28
- # resp = qldb.create_ledger(params)
30
+ # resp = qldb.cancel_journal_kinesis_stream(params)
29
31
  #
30
32
  # See {Client} for more information.
31
33
  #
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-qldb/customizations'
45
47
  # @service
46
48
  module Aws::QLDB
47
49
 
48
- GEM_VERSION = '1.3.0'
50
+ GEM_VERSION = '1.8.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::QLDB
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::RestJson)
74
78
 
@@ -161,7 +165,7 @@ module Aws::QLDB
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +180,7 @@ module Aws::QLDB
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -308,12 +312,56 @@ module Aws::QLDB
308
312
 
309
313
  # @!group API Operations
310
314
 
315
+ # Ends a given Amazon QLDB journal stream. Before a stream can be
316
+ # canceled, its current status must be `ACTIVE`.
317
+ #
318
+ # You can't restart a stream after you cancel it. Canceled QLDB stream
319
+ # resources are subject to a 7-day retention period, so they are
320
+ # automatically deleted after this limit expires.
321
+ #
322
+ # @option params [required, String] :ledger_name
323
+ # The name of the ledger.
324
+ #
325
+ # @option params [required, String] :stream_id
326
+ # The unique ID that QLDB assigns to each QLDB journal stream.
327
+ #
328
+ # @return [Types::CancelJournalKinesisStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
329
+ #
330
+ # * {Types::CancelJournalKinesisStreamResponse#stream_id #stream_id} => String
331
+ #
332
+ # @example Request syntax with placeholder values
333
+ #
334
+ # resp = client.cancel_journal_kinesis_stream({
335
+ # ledger_name: "LedgerName", # required
336
+ # stream_id: "UniqueId", # required
337
+ # })
338
+ #
339
+ # @example Response structure
340
+ #
341
+ # resp.stream_id #=> String
342
+ #
343
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/CancelJournalKinesisStream AWS API Documentation
344
+ #
345
+ # @overload cancel_journal_kinesis_stream(params = {})
346
+ # @param [Hash] params ({})
347
+ def cancel_journal_kinesis_stream(params = {}, options = {})
348
+ req = build_request(:cancel_journal_kinesis_stream, params)
349
+ req.send_request(options)
350
+ end
351
+
311
352
  # Creates a new ledger in your AWS account.
312
353
  #
313
354
  # @option params [required, String] :name
314
355
  # The name of the ledger that you want to create. The name must be
315
356
  # unique among all of your ledgers in the current AWS Region.
316
357
  #
358
+ # Naming constraints for ledger names are defined in [Quotas in Amazon
359
+ # QLDB][1] in the *Amazon QLDB Developer Guide*.
360
+ #
361
+ #
362
+ #
363
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming
364
+ #
317
365
  # @option params [Hash<String,String>] :tags
318
366
  # The key-value pairs to add as tags to the ledger that you want to
319
367
  # create. Tag keys are case sensitive. Tag values are case sensitive and
@@ -397,16 +445,70 @@ module Aws::QLDB
397
445
  req.send_request(options)
398
446
  end
399
447
 
448
+ # Returns detailed information about a given Amazon QLDB journal stream.
449
+ # The output includes the Amazon Resource Name (ARN), stream name,
450
+ # current status, creation time, and the parameters of your original
451
+ # stream creation request.
452
+ #
453
+ # @option params [required, String] :ledger_name
454
+ # The name of the ledger.
455
+ #
456
+ # @option params [required, String] :stream_id
457
+ # The unique ID that QLDB assigns to each QLDB journal stream.
458
+ #
459
+ # @return [Types::DescribeJournalKinesisStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
460
+ #
461
+ # * {Types::DescribeJournalKinesisStreamResponse#stream #stream} => Types::JournalKinesisStreamDescription
462
+ #
463
+ # @example Request syntax with placeholder values
464
+ #
465
+ # resp = client.describe_journal_kinesis_stream({
466
+ # ledger_name: "LedgerName", # required
467
+ # stream_id: "UniqueId", # required
468
+ # })
469
+ #
470
+ # @example Response structure
471
+ #
472
+ # resp.stream.ledger_name #=> String
473
+ # resp.stream.creation_time #=> Time
474
+ # resp.stream.inclusive_start_time #=> Time
475
+ # resp.stream.exclusive_end_time #=> Time
476
+ # resp.stream.role_arn #=> String
477
+ # resp.stream.stream_id #=> String
478
+ # resp.stream.arn #=> String
479
+ # resp.stream.status #=> String, one of "ACTIVE", "COMPLETED", "CANCELED", "FAILED", "IMPAIRED"
480
+ # resp.stream.kinesis_configuration.stream_arn #=> String
481
+ # resp.stream.kinesis_configuration.aggregation_enabled #=> Boolean
482
+ # resp.stream.error_cause #=> String, one of "KINESIS_STREAM_NOT_FOUND", "IAM_PERMISSION_REVOKED"
483
+ # resp.stream.stream_name #=> String
484
+ #
485
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/DescribeJournalKinesisStream AWS API Documentation
486
+ #
487
+ # @overload describe_journal_kinesis_stream(params = {})
488
+ # @param [Hash] params ({})
489
+ def describe_journal_kinesis_stream(params = {}, options = {})
490
+ req = build_request(:describe_journal_kinesis_stream, params)
491
+ req.send_request(options)
492
+ end
493
+
400
494
  # Returns information about a journal export job, including the ledger
401
495
  # name, export ID, when it was created, current status, and its start
402
496
  # and end time export parameters.
403
497
  #
498
+ # This action does not return any expired export jobs. For more
499
+ # information, see [Export Job Expiration][1] in the *Amazon QLDB
500
+ # Developer Guide*.
501
+ #
404
502
  # If the export job with the given `ExportId` doesn't exist, then
405
503
  # throws `ResourceNotFoundException`.
406
504
  #
407
505
  # If the ledger with the given `Name` doesn't exist, then throws
408
506
  # `ResourceNotFoundException`.
409
507
  #
508
+ #
509
+ #
510
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration
511
+ #
410
512
  # @option params [required, String] :name
411
513
  # The name of the ledger.
412
514
  #
@@ -574,10 +676,13 @@ module Aws::QLDB
574
676
  req.send_request(options)
575
677
  end
576
678
 
577
- # Returns a journal block object at a specified address in a ledger.
578
- # Also returns a proof of the specified block for verification if
679
+ # Returns a block object at a specified address in a journal. Also
680
+ # returns a proof of the specified block for verification if
579
681
  # `DigestTipAddress` is provided.
580
682
  #
683
+ # For information about the data contents in a block, see [Journal
684
+ # contents][1] in the *Amazon QLDB Developer Guide*.
685
+ #
581
686
  # If the specified ledger doesn't exist or is in `DELETING` status,
582
687
  # then throws `ResourceNotFoundException`.
583
688
  #
@@ -587,6 +692,10 @@ module Aws::QLDB
587
692
  # If no block exists with the specified address, then throws
588
693
  # `InvalidParameterException`.
589
694
  #
695
+ #
696
+ #
697
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/journal-contents.html
698
+ #
590
699
  # @option params [required, String] :name
591
700
  # The name of the ledger.
592
701
  #
@@ -722,6 +831,69 @@ module Aws::QLDB
722
831
  req.send_request(options)
723
832
  end
724
833
 
834
+ # Returns an array of all Amazon QLDB journal stream descriptors for a
835
+ # given ledger. The output of each stream descriptor includes the same
836
+ # details that are returned by `DescribeJournalKinesisStream`.
837
+ #
838
+ # This action returns a maximum of `MaxResults` items. It is paginated
839
+ # so that you can retrieve all the items by calling
840
+ # `ListJournalKinesisStreamsForLedger` multiple times.
841
+ #
842
+ # @option params [required, String] :ledger_name
843
+ # The name of the ledger.
844
+ #
845
+ # @option params [Integer] :max_results
846
+ # The maximum number of results to return in a single
847
+ # `ListJournalKinesisStreamsForLedger` request. (The actual number of
848
+ # results returned might be fewer.)
849
+ #
850
+ # @option params [String] :next_token
851
+ # A pagination token, indicating that you want to retrieve the next page
852
+ # of results. If you received a value for `NextToken` in the response
853
+ # from a previous `ListJournalKinesisStreamsForLedger` call, you should
854
+ # use that value as input here.
855
+ #
856
+ # @return [Types::ListJournalKinesisStreamsForLedgerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
857
+ #
858
+ # * {Types::ListJournalKinesisStreamsForLedgerResponse#streams #streams} => Array&lt;Types::JournalKinesisStreamDescription&gt;
859
+ # * {Types::ListJournalKinesisStreamsForLedgerResponse#next_token #next_token} => String
860
+ #
861
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
862
+ #
863
+ # @example Request syntax with placeholder values
864
+ #
865
+ # resp = client.list_journal_kinesis_streams_for_ledger({
866
+ # ledger_name: "LedgerName", # required
867
+ # max_results: 1,
868
+ # next_token: "NextToken",
869
+ # })
870
+ #
871
+ # @example Response structure
872
+ #
873
+ # resp.streams #=> Array
874
+ # resp.streams[0].ledger_name #=> String
875
+ # resp.streams[0].creation_time #=> Time
876
+ # resp.streams[0].inclusive_start_time #=> Time
877
+ # resp.streams[0].exclusive_end_time #=> Time
878
+ # resp.streams[0].role_arn #=> String
879
+ # resp.streams[0].stream_id #=> String
880
+ # resp.streams[0].arn #=> String
881
+ # resp.streams[0].status #=> String, one of "ACTIVE", "COMPLETED", "CANCELED", "FAILED", "IMPAIRED"
882
+ # resp.streams[0].kinesis_configuration.stream_arn #=> String
883
+ # resp.streams[0].kinesis_configuration.aggregation_enabled #=> Boolean
884
+ # resp.streams[0].error_cause #=> String, one of "KINESIS_STREAM_NOT_FOUND", "IAM_PERMISSION_REVOKED"
885
+ # resp.streams[0].stream_name #=> String
886
+ # resp.next_token #=> String
887
+ #
888
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/ListJournalKinesisStreamsForLedger AWS API Documentation
889
+ #
890
+ # @overload list_journal_kinesis_streams_for_ledger(params = {})
891
+ # @param [Hash] params ({})
892
+ def list_journal_kinesis_streams_for_ledger(params = {}, options = {})
893
+ req = build_request(:list_journal_kinesis_streams_for_ledger, params)
894
+ req.send_request(options)
895
+ end
896
+
725
897
  # Returns an array of journal export job descriptions for all ledgers
726
898
  # that are associated with the current AWS account and Region.
727
899
  #
@@ -729,6 +901,14 @@ module Aws::QLDB
729
901
  # so that you can retrieve all the items by calling
730
902
  # `ListJournalS3Exports` multiple times.
731
903
  #
904
+ # This action does not return any expired export jobs. For more
905
+ # information, see [Export Job Expiration][1] in the *Amazon QLDB
906
+ # Developer Guide*.
907
+ #
908
+ #
909
+ #
910
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration
911
+ #
732
912
  # @option params [Integer] :max_results
733
913
  # The maximum number of results to return in a single
734
914
  # `ListJournalS3Exports` request. (The actual number of results returned
@@ -786,6 +966,14 @@ module Aws::QLDB
786
966
  # so that you can retrieve all the items by calling
787
967
  # `ListJournalS3ExportsForLedger` multiple times.
788
968
  #
969
+ # This action does not return any expired export jobs. For more
970
+ # information, see [Export Job Expiration][1] in the *Amazon QLDB
971
+ # Developer Guide*.
972
+ #
973
+ #
974
+ #
975
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration
976
+ #
789
977
  # @option params [required, String] :name
790
978
  # The name of the ledger.
791
979
  #
@@ -920,6 +1108,98 @@ module Aws::QLDB
920
1108
  req.send_request(options)
921
1109
  end
922
1110
 
1111
+ # Creates a journal stream for a given Amazon QLDB ledger. The stream
1112
+ # captures every document revision that is committed to the ledger's
1113
+ # journal and delivers the data to a specified Amazon Kinesis Data
1114
+ # Streams resource.
1115
+ #
1116
+ # @option params [required, String] :ledger_name
1117
+ # The name of the ledger.
1118
+ #
1119
+ # @option params [required, String] :role_arn
1120
+ # The Amazon Resource Name (ARN) of the IAM role that grants QLDB
1121
+ # permissions for a journal stream to write data records to a Kinesis
1122
+ # Data Streams resource.
1123
+ #
1124
+ # @option params [Hash<String,String>] :tags
1125
+ # The key-value pairs to add as tags to the stream that you want to
1126
+ # create. Tag keys are case sensitive. Tag values are case sensitive and
1127
+ # can be null.
1128
+ #
1129
+ # @option params [required, Time,DateTime,Date,Integer,String] :inclusive_start_time
1130
+ # The inclusive start date and time from which to start streaming
1131
+ # journal data. This parameter must be in `ISO 8601` date and time
1132
+ # format and in Universal Coordinated Time (UTC). For example:
1133
+ # `2019-06-13T21:36:34Z`
1134
+ #
1135
+ # The `InclusiveStartTime` cannot be in the future and must be before
1136
+ # `ExclusiveEndTime`.
1137
+ #
1138
+ # If you provide an `InclusiveStartTime` that is before the ledger's
1139
+ # `CreationDateTime`, QLDB effectively defaults it to the ledger's
1140
+ # `CreationDateTime`.
1141
+ #
1142
+ # @option params [Time,DateTime,Date,Integer,String] :exclusive_end_time
1143
+ # The exclusive date and time that specifies when the stream ends. If
1144
+ # you don't define this parameter, the stream runs indefinitely until
1145
+ # you cancel it.
1146
+ #
1147
+ # The `ExclusiveEndTime` must be in `ISO 8601` date and time format and
1148
+ # in Universal Coordinated Time (UTC). For example:
1149
+ # `2019-06-13T21:36:34Z`
1150
+ #
1151
+ # @option params [required, Types::KinesisConfiguration] :kinesis_configuration
1152
+ # The configuration settings of the Kinesis Data Streams destination for
1153
+ # your stream request.
1154
+ #
1155
+ # @option params [required, String] :stream_name
1156
+ # The name that you want to assign to the QLDB journal stream.
1157
+ # User-defined names can help identify and indicate the purpose of a
1158
+ # stream.
1159
+ #
1160
+ # Your stream name must be unique among other *active* streams for a
1161
+ # given ledger. Stream names have the same naming constraints as ledger
1162
+ # names, as defined in [Quotas in Amazon QLDB][1] in the *Amazon QLDB
1163
+ # Developer Guide*.
1164
+ #
1165
+ #
1166
+ #
1167
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming
1168
+ #
1169
+ # @return [Types::StreamJournalToKinesisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1170
+ #
1171
+ # * {Types::StreamJournalToKinesisResponse#stream_id #stream_id} => String
1172
+ #
1173
+ # @example Request syntax with placeholder values
1174
+ #
1175
+ # resp = client.stream_journal_to_kinesis({
1176
+ # ledger_name: "LedgerName", # required
1177
+ # role_arn: "Arn", # required
1178
+ # tags: {
1179
+ # "TagKey" => "TagValue",
1180
+ # },
1181
+ # inclusive_start_time: Time.now, # required
1182
+ # exclusive_end_time: Time.now,
1183
+ # kinesis_configuration: { # required
1184
+ # stream_arn: "Arn", # required
1185
+ # aggregation_enabled: false,
1186
+ # },
1187
+ # stream_name: "StreamName", # required
1188
+ # })
1189
+ #
1190
+ # @example Response structure
1191
+ #
1192
+ # resp.stream_id #=> String
1193
+ #
1194
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/StreamJournalToKinesis AWS API Documentation
1195
+ #
1196
+ # @overload stream_journal_to_kinesis(params = {})
1197
+ # @param [Hash] params ({})
1198
+ def stream_journal_to_kinesis(params = {}, options = {})
1199
+ req = build_request(:stream_journal_to_kinesis, params)
1200
+ req.send_request(options)
1201
+ end
1202
+
923
1203
  # Adds one or more tags to a specified Amazon QLDB resource.
924
1204
  #
925
1205
  # A resource can have up to 50 tags. If you try to create more than 50
@@ -1048,7 +1328,7 @@ module Aws::QLDB
1048
1328
  params: params,
1049
1329
  config: config)
1050
1330
  context[:gem_name] = 'aws-sdk-qldb'
1051
- context[:gem_version] = '1.3.0'
1331
+ context[:gem_version] = '1.8.0'
1052
1332
  Seahorse::Client::Request.new(handlers, context)
1053
1333
  end
1054
1334
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -12,15 +14,21 @@ module Aws::QLDB
12
14
  include Seahorse::Model
13
15
 
14
16
  Arn = Shapes::StringShape.new(name: 'Arn')
17
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
18
+ CancelJournalKinesisStreamRequest = Shapes::StructureShape.new(name: 'CancelJournalKinesisStreamRequest')
19
+ CancelJournalKinesisStreamResponse = Shapes::StructureShape.new(name: 'CancelJournalKinesisStreamResponse')
15
20
  CreateLedgerRequest = Shapes::StructureShape.new(name: 'CreateLedgerRequest')
16
21
  CreateLedgerResponse = Shapes::StructureShape.new(name: 'CreateLedgerResponse')
17
22
  DeleteLedgerRequest = Shapes::StructureShape.new(name: 'DeleteLedgerRequest')
18
23
  DeletionProtection = Shapes::BooleanShape.new(name: 'DeletionProtection')
24
+ DescribeJournalKinesisStreamRequest = Shapes::StructureShape.new(name: 'DescribeJournalKinesisStreamRequest')
25
+ DescribeJournalKinesisStreamResponse = Shapes::StructureShape.new(name: 'DescribeJournalKinesisStreamResponse')
19
26
  DescribeJournalS3ExportRequest = Shapes::StructureShape.new(name: 'DescribeJournalS3ExportRequest')
20
27
  DescribeJournalS3ExportResponse = Shapes::StructureShape.new(name: 'DescribeJournalS3ExportResponse')
21
28
  DescribeLedgerRequest = Shapes::StructureShape.new(name: 'DescribeLedgerRequest')
22
29
  DescribeLedgerResponse = Shapes::StructureShape.new(name: 'DescribeLedgerResponse')
23
30
  Digest = Shapes::BlobShape.new(name: 'Digest')
31
+ ErrorCause = Shapes::StringShape.new(name: 'ErrorCause')
24
32
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
25
33
  ExportJournalToS3Request = Shapes::StructureShape.new(name: 'ExportJournalToS3Request')
26
34
  ExportJournalToS3Response = Shapes::StructureShape.new(name: 'ExportJournalToS3Response')
@@ -33,13 +41,18 @@ module Aws::QLDB
33
41
  GetRevisionResponse = Shapes::StructureShape.new(name: 'GetRevisionResponse')
34
42
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
35
43
  IonText = Shapes::StringShape.new(name: 'IonText')
44
+ JournalKinesisStreamDescription = Shapes::StructureShape.new(name: 'JournalKinesisStreamDescription')
45
+ JournalKinesisStreamDescriptionList = Shapes::ListShape.new(name: 'JournalKinesisStreamDescriptionList')
36
46
  JournalS3ExportDescription = Shapes::StructureShape.new(name: 'JournalS3ExportDescription')
37
47
  JournalS3ExportList = Shapes::ListShape.new(name: 'JournalS3ExportList')
48
+ KinesisConfiguration = Shapes::StructureShape.new(name: 'KinesisConfiguration')
38
49
  LedgerList = Shapes::ListShape.new(name: 'LedgerList')
39
50
  LedgerName = Shapes::StringShape.new(name: 'LedgerName')
40
51
  LedgerState = Shapes::StringShape.new(name: 'LedgerState')
41
52
  LedgerSummary = Shapes::StructureShape.new(name: 'LedgerSummary')
42
53
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
54
+ ListJournalKinesisStreamsForLedgerRequest = Shapes::StructureShape.new(name: 'ListJournalKinesisStreamsForLedgerRequest')
55
+ ListJournalKinesisStreamsForLedgerResponse = Shapes::StructureShape.new(name: 'ListJournalKinesisStreamsForLedgerResponse')
43
56
  ListJournalS3ExportsForLedgerRequest = Shapes::StructureShape.new(name: 'ListJournalS3ExportsForLedgerRequest')
44
57
  ListJournalS3ExportsForLedgerResponse = Shapes::StructureShape.new(name: 'ListJournalS3ExportsForLedgerResponse')
45
58
  ListJournalS3ExportsRequest = Shapes::StructureShape.new(name: 'ListJournalS3ExportsRequest')
@@ -63,6 +76,10 @@ module Aws::QLDB
63
76
  S3ExportConfiguration = Shapes::StructureShape.new(name: 'S3ExportConfiguration')
64
77
  S3ObjectEncryptionType = Shapes::StringShape.new(name: 'S3ObjectEncryptionType')
65
78
  S3Prefix = Shapes::StringShape.new(name: 'S3Prefix')
79
+ StreamJournalToKinesisRequest = Shapes::StructureShape.new(name: 'StreamJournalToKinesisRequest')
80
+ StreamJournalToKinesisResponse = Shapes::StructureShape.new(name: 'StreamJournalToKinesisResponse')
81
+ StreamName = Shapes::StringShape.new(name: 'StreamName')
82
+ StreamStatus = Shapes::StringShape.new(name: 'StreamStatus')
66
83
  TagKey = Shapes::StringShape.new(name: 'TagKey')
67
84
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
68
85
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
@@ -77,6 +94,13 @@ module Aws::QLDB
77
94
  UpdateLedgerResponse = Shapes::StructureShape.new(name: 'UpdateLedgerResponse')
78
95
  ValueHolder = Shapes::StructureShape.new(name: 'ValueHolder')
79
96
 
97
+ CancelJournalKinesisStreamRequest.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
98
+ CancelJournalKinesisStreamRequest.add_member(:stream_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location: "uri", location_name: "streamId"))
99
+ CancelJournalKinesisStreamRequest.struct_class = Types::CancelJournalKinesisStreamRequest
100
+
101
+ CancelJournalKinesisStreamResponse.add_member(:stream_id, Shapes::ShapeRef.new(shape: UniqueId, location_name: "StreamId"))
102
+ CancelJournalKinesisStreamResponse.struct_class = Types::CancelJournalKinesisStreamResponse
103
+
80
104
  CreateLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location_name: "Name"))
81
105
  CreateLedgerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
82
106
  CreateLedgerRequest.add_member(:permissions_mode, Shapes::ShapeRef.new(shape: PermissionsMode, required: true, location_name: "PermissionsMode"))
@@ -93,6 +117,13 @@ module Aws::QLDB
93
117
  DeleteLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
94
118
  DeleteLedgerRequest.struct_class = Types::DeleteLedgerRequest
95
119
 
120
+ DescribeJournalKinesisStreamRequest.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
121
+ DescribeJournalKinesisStreamRequest.add_member(:stream_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location: "uri", location_name: "streamId"))
122
+ DescribeJournalKinesisStreamRequest.struct_class = Types::DescribeJournalKinesisStreamRequest
123
+
124
+ DescribeJournalKinesisStreamResponse.add_member(:stream, Shapes::ShapeRef.new(shape: JournalKinesisStreamDescription, location_name: "Stream"))
125
+ DescribeJournalKinesisStreamResponse.struct_class = Types::DescribeJournalKinesisStreamResponse
126
+
96
127
  DescribeJournalS3ExportRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
97
128
  DescribeJournalS3ExportRequest.add_member(:export_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location: "uri", location_name: "exportId"))
98
129
  DescribeJournalS3ExportRequest.struct_class = Types::DescribeJournalS3ExportRequest
@@ -150,6 +181,21 @@ module Aws::QLDB
150
181
  InvalidParameterException.add_member(:parameter_name, Shapes::ShapeRef.new(shape: ParameterName, location_name: "ParameterName"))
151
182
  InvalidParameterException.struct_class = Types::InvalidParameterException
152
183
 
184
+ JournalKinesisStreamDescription.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location_name: "LedgerName"))
185
+ JournalKinesisStreamDescription.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
186
+ JournalKinesisStreamDescription.add_member(:inclusive_start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "InclusiveStartTime"))
187
+ JournalKinesisStreamDescription.add_member(:exclusive_end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ExclusiveEndTime"))
188
+ JournalKinesisStreamDescription.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoleArn"))
189
+ JournalKinesisStreamDescription.add_member(:stream_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location_name: "StreamId"))
190
+ JournalKinesisStreamDescription.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn"))
191
+ JournalKinesisStreamDescription.add_member(:status, Shapes::ShapeRef.new(shape: StreamStatus, required: true, location_name: "Status"))
192
+ JournalKinesisStreamDescription.add_member(:kinesis_configuration, Shapes::ShapeRef.new(shape: KinesisConfiguration, required: true, location_name: "KinesisConfiguration"))
193
+ JournalKinesisStreamDescription.add_member(:error_cause, Shapes::ShapeRef.new(shape: ErrorCause, location_name: "ErrorCause"))
194
+ JournalKinesisStreamDescription.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
195
+ JournalKinesisStreamDescription.struct_class = Types::JournalKinesisStreamDescription
196
+
197
+ JournalKinesisStreamDescriptionList.member = Shapes::ShapeRef.new(shape: JournalKinesisStreamDescription)
198
+
153
199
  JournalS3ExportDescription.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location_name: "LedgerName"))
154
200
  JournalS3ExportDescription.add_member(:export_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location_name: "ExportId"))
155
201
  JournalS3ExportDescription.add_member(:export_creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ExportCreationTime"))
@@ -162,6 +208,10 @@ module Aws::QLDB
162
208
 
163
209
  JournalS3ExportList.member = Shapes::ShapeRef.new(shape: JournalS3ExportDescription)
164
210
 
211
+ KinesisConfiguration.add_member(:stream_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "StreamArn"))
212
+ KinesisConfiguration.add_member(:aggregation_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "AggregationEnabled"))
213
+ KinesisConfiguration.struct_class = Types::KinesisConfiguration
214
+
165
215
  LedgerList.member = Shapes::ShapeRef.new(shape: LedgerSummary)
166
216
 
167
217
  LedgerSummary.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, location_name: "Name"))
@@ -173,6 +223,15 @@ module Aws::QLDB
173
223
  LimitExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
174
224
  LimitExceededException.struct_class = Types::LimitExceededException
175
225
 
226
+ ListJournalKinesisStreamsForLedgerRequest.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
227
+ ListJournalKinesisStreamsForLedgerRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results"))
228
+ ListJournalKinesisStreamsForLedgerRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
229
+ ListJournalKinesisStreamsForLedgerRequest.struct_class = Types::ListJournalKinesisStreamsForLedgerRequest
230
+
231
+ ListJournalKinesisStreamsForLedgerResponse.add_member(:streams, Shapes::ShapeRef.new(shape: JournalKinesisStreamDescriptionList, location_name: "Streams"))
232
+ ListJournalKinesisStreamsForLedgerResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
233
+ ListJournalKinesisStreamsForLedgerResponse.struct_class = Types::ListJournalKinesisStreamsForLedgerResponse
234
+
176
235
  ListJournalS3ExportsForLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
177
236
  ListJournalS3ExportsForLedgerRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results"))
178
237
  ListJournalS3ExportsForLedgerRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
@@ -233,6 +292,18 @@ module Aws::QLDB
233
292
  S3ExportConfiguration.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: S3EncryptionConfiguration, required: true, location_name: "EncryptionConfiguration"))
234
293
  S3ExportConfiguration.struct_class = Types::S3ExportConfiguration
235
294
 
295
+ StreamJournalToKinesisRequest.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
296
+ StreamJournalToKinesisRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoleArn"))
297
+ StreamJournalToKinesisRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
298
+ StreamJournalToKinesisRequest.add_member(:inclusive_start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "InclusiveStartTime"))
299
+ StreamJournalToKinesisRequest.add_member(:exclusive_end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ExclusiveEndTime"))
300
+ StreamJournalToKinesisRequest.add_member(:kinesis_configuration, Shapes::ShapeRef.new(shape: KinesisConfiguration, required: true, location_name: "KinesisConfiguration"))
301
+ StreamJournalToKinesisRequest.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
302
+ StreamJournalToKinesisRequest.struct_class = Types::StreamJournalToKinesisRequest
303
+
304
+ StreamJournalToKinesisResponse.add_member(:stream_id, Shapes::ShapeRef.new(shape: UniqueId, location_name: "StreamId"))
305
+ StreamJournalToKinesisResponse.struct_class = Types::StreamJournalToKinesisResponse
306
+
236
307
  TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
237
308
 
238
309
  TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
@@ -283,6 +354,17 @@ module Aws::QLDB
283
354
  "uid" => "qldb-2019-01-02",
284
355
  }
285
356
 
357
+ api.add_operation(:cancel_journal_kinesis_stream, Seahorse::Model::Operation.new.tap do |o|
358
+ o.name = "CancelJournalKinesisStream"
359
+ o.http_method = "DELETE"
360
+ o.http_request_uri = "/ledgers/{name}/journal-kinesis-streams/{streamId}"
361
+ o.input = Shapes::ShapeRef.new(shape: CancelJournalKinesisStreamRequest)
362
+ o.output = Shapes::ShapeRef.new(shape: CancelJournalKinesisStreamResponse)
363
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
364
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
365
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
366
+ end)
367
+
286
368
  api.add_operation(:create_ledger, Seahorse::Model::Operation.new.tap do |o|
287
369
  o.name = "CreateLedger"
288
370
  o.http_method = "POST"
@@ -307,6 +389,17 @@ module Aws::QLDB
307
389
  o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
308
390
  end)
309
391
 
392
+ api.add_operation(:describe_journal_kinesis_stream, Seahorse::Model::Operation.new.tap do |o|
393
+ o.name = "DescribeJournalKinesisStream"
394
+ o.http_method = "GET"
395
+ o.http_request_uri = "/ledgers/{name}/journal-kinesis-streams/{streamId}"
396
+ o.input = Shapes::ShapeRef.new(shape: DescribeJournalKinesisStreamRequest)
397
+ o.output = Shapes::ShapeRef.new(shape: DescribeJournalKinesisStreamResponse)
398
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
399
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
400
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
401
+ end)
402
+
310
403
  api.add_operation(:describe_journal_s3_export, Seahorse::Model::Operation.new.tap do |o|
311
404
  o.name = "DescribeJournalS3Export"
312
405
  o.http_method = "GET"
@@ -369,6 +462,23 @@ module Aws::QLDB
369
462
  o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
370
463
  end)
371
464
 
465
+ api.add_operation(:list_journal_kinesis_streams_for_ledger, Seahorse::Model::Operation.new.tap do |o|
466
+ o.name = "ListJournalKinesisStreamsForLedger"
467
+ o.http_method = "GET"
468
+ o.http_request_uri = "/ledgers/{name}/journal-kinesis-streams"
469
+ o.input = Shapes::ShapeRef.new(shape: ListJournalKinesisStreamsForLedgerRequest)
470
+ o.output = Shapes::ShapeRef.new(shape: ListJournalKinesisStreamsForLedgerResponse)
471
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
472
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
473
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
474
+ o[:pager] = Aws::Pager.new(
475
+ limit_key: "max_results",
476
+ tokens: {
477
+ "next_token" => "next_token"
478
+ }
479
+ )
480
+ end)
481
+
372
482
  api.add_operation(:list_journal_s3_exports, Seahorse::Model::Operation.new.tap do |o|
373
483
  o.name = "ListJournalS3Exports"
374
484
  o.http_method = "GET"
@@ -421,6 +531,17 @@ module Aws::QLDB
421
531
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
422
532
  end)
423
533
 
534
+ api.add_operation(:stream_journal_to_kinesis, Seahorse::Model::Operation.new.tap do |o|
535
+ o.name = "StreamJournalToKinesis"
536
+ o.http_method = "POST"
537
+ o.http_request_uri = "/ledgers/{name}/journal-kinesis-streams"
538
+ o.input = Shapes::ShapeRef.new(shape: StreamJournalToKinesisRequest)
539
+ o.output = Shapes::ShapeRef.new(shape: StreamJournalToKinesisResponse)
540
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
541
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
542
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
543
+ end)
544
+
424
545
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
425
546
  o.name = "TagResource"
426
547
  o.http_method = "POST"