aws-sdk-qldb 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f88b86092241e4e7f728c00119d070a27ef9835b8e96332fd5f4ffc9054f1a12
4
- data.tar.gz: a0d80291e9f4a8907da9f29e285290f0272ad22d231d30d846207e6ced1009e8
3
+ metadata.gz: cde39be997cd0b7f01720ad4642a9baab1d5d878f16c941c942ec0def3e2d836
4
+ data.tar.gz: be0bd56a20c630e5e83ab39dbaa4821aa1dac6940b52406c5553bab6d93a77fa
5
5
  SHA512:
6
- metadata.gz: 557e729ce6da3d3ef075e11242c0ae91cea578d5cf3d7ad5b78e2a706d048e5333b15c5cfa184f08e8e51313156bfb48c2afb4efa064524c9705cc628177d177
7
- data.tar.gz: 4c51c999c20832074ba1957adff7140b939edbf69dc9047e0505af62c762ca4bb88c91200cf8976301dd190419bc9afe733387183f95236c3640018f8a2ba771
6
+ metadata.gz: 2798daaf1538b2cc95ccdafdb2f818e1f1d920fc5ecac01a9cf8de2d075dc23c5f74f364929f5939bca870c651dd6fa910ba6b7a4ee4d1b90e72b66eac585d97
7
+ data.tar.gz: 684c276cb6b4ad71e6cc0fe00e1511fabdc95f4b9e2296d74dfef2cd0eb695ef8fb338364acf9e53e476f485ba53c3336717cba7945790487bb2cb7258264e9a
@@ -25,7 +25,7 @@ require_relative 'aws-sdk-qldb/customizations'
25
25
  # structure.
26
26
  #
27
27
  # qldb = Aws::QLDB::Client.new
28
- # resp = qldb.create_ledger(params)
28
+ # resp = qldb.cancel_journal_kinesis_stream(params)
29
29
  #
30
30
  # See {Client} for more information.
31
31
  #
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-qldb/customizations'
45
45
  # @service
46
46
  module Aws::QLDB
47
47
 
48
- GEM_VERSION = '1.3.0'
48
+ GEM_VERSION = '1.4.0'
49
49
 
50
50
  end
@@ -308,6 +308,43 @@ module Aws::QLDB
308
308
 
309
309
  # @!group API Operations
310
310
 
311
+ # Ends a given Amazon QLDB journal stream. Before a stream can be
312
+ # canceled, its current status must be `ACTIVE`.
313
+ #
314
+ # You can't restart a stream after you cancel it. Canceled QLDB stream
315
+ # resources are subject to a 7-day retention period, so they are
316
+ # automatically deleted after this limit expires.
317
+ #
318
+ # @option params [required, String] :ledger_name
319
+ # The name of the ledger.
320
+ #
321
+ # @option params [required, String] :stream_id
322
+ # The unique ID that QLDB assigns to each QLDB journal stream.
323
+ #
324
+ # @return [Types::CancelJournalKinesisStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
325
+ #
326
+ # * {Types::CancelJournalKinesisStreamResponse#stream_id #stream_id} => String
327
+ #
328
+ # @example Request syntax with placeholder values
329
+ #
330
+ # resp = client.cancel_journal_kinesis_stream({
331
+ # ledger_name: "LedgerName", # required
332
+ # stream_id: "UniqueId", # required
333
+ # })
334
+ #
335
+ # @example Response structure
336
+ #
337
+ # resp.stream_id #=> String
338
+ #
339
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/CancelJournalKinesisStream AWS API Documentation
340
+ #
341
+ # @overload cancel_journal_kinesis_stream(params = {})
342
+ # @param [Hash] params ({})
343
+ def cancel_journal_kinesis_stream(params = {}, options = {})
344
+ req = build_request(:cancel_journal_kinesis_stream, params)
345
+ req.send_request(options)
346
+ end
347
+
311
348
  # Creates a new ledger in your AWS account.
312
349
  #
313
350
  # @option params [required, String] :name
@@ -397,16 +434,70 @@ module Aws::QLDB
397
434
  req.send_request(options)
398
435
  end
399
436
 
437
+ # Returns detailed information about a given Amazon QLDB journal stream.
438
+ # The output includes the Amazon Resource Name (ARN), stream name,
439
+ # current status, creation time, and the parameters of your original
440
+ # stream creation request.
441
+ #
442
+ # @option params [required, String] :ledger_name
443
+ # The name of the ledger.
444
+ #
445
+ # @option params [required, String] :stream_id
446
+ # The unique ID that QLDB assigns to each QLDB journal stream.
447
+ #
448
+ # @return [Types::DescribeJournalKinesisStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
449
+ #
450
+ # * {Types::DescribeJournalKinesisStreamResponse#stream #stream} => Types::JournalKinesisStreamDescription
451
+ #
452
+ # @example Request syntax with placeholder values
453
+ #
454
+ # resp = client.describe_journal_kinesis_stream({
455
+ # ledger_name: "LedgerName", # required
456
+ # stream_id: "UniqueId", # required
457
+ # })
458
+ #
459
+ # @example Response structure
460
+ #
461
+ # resp.stream.ledger_name #=> String
462
+ # resp.stream.creation_time #=> Time
463
+ # resp.stream.inclusive_start_time #=> Time
464
+ # resp.stream.exclusive_end_time #=> Time
465
+ # resp.stream.role_arn #=> String
466
+ # resp.stream.stream_id #=> String
467
+ # resp.stream.arn #=> String
468
+ # resp.stream.status #=> String, one of "ACTIVE", "COMPLETED", "CANCELED", "FAILED", "IMPAIRED"
469
+ # resp.stream.kinesis_configuration.stream_arn #=> String
470
+ # resp.stream.kinesis_configuration.aggregation_enabled #=> Boolean
471
+ # resp.stream.error_cause #=> String, one of "KINESIS_STREAM_NOT_FOUND", "IAM_PERMISSION_REVOKED"
472
+ # resp.stream.stream_name #=> String
473
+ #
474
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/DescribeJournalKinesisStream AWS API Documentation
475
+ #
476
+ # @overload describe_journal_kinesis_stream(params = {})
477
+ # @param [Hash] params ({})
478
+ def describe_journal_kinesis_stream(params = {}, options = {})
479
+ req = build_request(:describe_journal_kinesis_stream, params)
480
+ req.send_request(options)
481
+ end
482
+
400
483
  # Returns information about a journal export job, including the ledger
401
484
  # name, export ID, when it was created, current status, and its start
402
485
  # and end time export parameters.
403
486
  #
487
+ # This action does not return any expired export jobs. For more
488
+ # information, see [Export Job Expiration][1] in the *Amazon QLDB
489
+ # Developer Guide*.
490
+ #
404
491
  # If the export job with the given `ExportId` doesn't exist, then
405
492
  # throws `ResourceNotFoundException`.
406
493
  #
407
494
  # If the ledger with the given `Name` doesn't exist, then throws
408
495
  # `ResourceNotFoundException`.
409
496
  #
497
+ #
498
+ #
499
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration
500
+ #
410
501
  # @option params [required, String] :name
411
502
  # The name of the ledger.
412
503
  #
@@ -722,6 +813,69 @@ module Aws::QLDB
722
813
  req.send_request(options)
723
814
  end
724
815
 
816
+ # Returns an array of all Amazon QLDB journal stream descriptors for a
817
+ # given ledger. The output of each stream descriptor includes the same
818
+ # details that are returned by `DescribeJournalKinesisStream`.
819
+ #
820
+ # This action returns a maximum of `MaxResults` items. It is paginated
821
+ # so that you can retrieve all the items by calling
822
+ # `ListJournalKinesisStreamsForLedger` multiple times.
823
+ #
824
+ # @option params [required, String] :ledger_name
825
+ # The name of the ledger.
826
+ #
827
+ # @option params [Integer] :max_results
828
+ # The maximum number of results to return in a single
829
+ # `ListJournalKinesisStreamsForLedger` request. (The actual number of
830
+ # results returned might be fewer.)
831
+ #
832
+ # @option params [String] :next_token
833
+ # A pagination token, indicating that you want to retrieve the next page
834
+ # of results. If you received a value for `NextToken` in the response
835
+ # from a previous `ListJournalKinesisStreamsForLedger` call, you should
836
+ # use that value as input here.
837
+ #
838
+ # @return [Types::ListJournalKinesisStreamsForLedgerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
839
+ #
840
+ # * {Types::ListJournalKinesisStreamsForLedgerResponse#streams #streams} => Array<Types::JournalKinesisStreamDescription>
841
+ # * {Types::ListJournalKinesisStreamsForLedgerResponse#next_token #next_token} => String
842
+ #
843
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
844
+ #
845
+ # @example Request syntax with placeholder values
846
+ #
847
+ # resp = client.list_journal_kinesis_streams_for_ledger({
848
+ # ledger_name: "LedgerName", # required
849
+ # max_results: 1,
850
+ # next_token: "NextToken",
851
+ # })
852
+ #
853
+ # @example Response structure
854
+ #
855
+ # resp.streams #=> Array
856
+ # resp.streams[0].ledger_name #=> String
857
+ # resp.streams[0].creation_time #=> Time
858
+ # resp.streams[0].inclusive_start_time #=> Time
859
+ # resp.streams[0].exclusive_end_time #=> Time
860
+ # resp.streams[0].role_arn #=> String
861
+ # resp.streams[0].stream_id #=> String
862
+ # resp.streams[0].arn #=> String
863
+ # resp.streams[0].status #=> String, one of "ACTIVE", "COMPLETED", "CANCELED", "FAILED", "IMPAIRED"
864
+ # resp.streams[0].kinesis_configuration.stream_arn #=> String
865
+ # resp.streams[0].kinesis_configuration.aggregation_enabled #=> Boolean
866
+ # resp.streams[0].error_cause #=> String, one of "KINESIS_STREAM_NOT_FOUND", "IAM_PERMISSION_REVOKED"
867
+ # resp.streams[0].stream_name #=> String
868
+ # resp.next_token #=> String
869
+ #
870
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/ListJournalKinesisStreamsForLedger AWS API Documentation
871
+ #
872
+ # @overload list_journal_kinesis_streams_for_ledger(params = {})
873
+ # @param [Hash] params ({})
874
+ def list_journal_kinesis_streams_for_ledger(params = {}, options = {})
875
+ req = build_request(:list_journal_kinesis_streams_for_ledger, params)
876
+ req.send_request(options)
877
+ end
878
+
725
879
  # Returns an array of journal export job descriptions for all ledgers
726
880
  # that are associated with the current AWS account and Region.
727
881
  #
@@ -729,6 +883,14 @@ module Aws::QLDB
729
883
  # so that you can retrieve all the items by calling
730
884
  # `ListJournalS3Exports` multiple times.
731
885
  #
886
+ # This action does not return any expired export jobs. For more
887
+ # information, see [Export Job Expiration][1] in the *Amazon QLDB
888
+ # Developer Guide*.
889
+ #
890
+ #
891
+ #
892
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration
893
+ #
732
894
  # @option params [Integer] :max_results
733
895
  # The maximum number of results to return in a single
734
896
  # `ListJournalS3Exports` request. (The actual number of results returned
@@ -786,6 +948,14 @@ module Aws::QLDB
786
948
  # so that you can retrieve all the items by calling
787
949
  # `ListJournalS3ExportsForLedger` multiple times.
788
950
  #
951
+ # This action does not return any expired export jobs. For more
952
+ # information, see [Export Job Expiration][1] in the *Amazon QLDB
953
+ # Developer Guide*.
954
+ #
955
+ #
956
+ #
957
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration
958
+ #
789
959
  # @option params [required, String] :name
790
960
  # The name of the ledger.
791
961
  #
@@ -920,6 +1090,100 @@ module Aws::QLDB
920
1090
  req.send_request(options)
921
1091
  end
922
1092
 
1093
+ # Creates a stream for a given Amazon QLDB ledger that delivers the
1094
+ # journal data to a specified Amazon Kinesis Data Streams resource. The
1095
+ # stream captures every document revision that is committed to your
1096
+ # journal and sends it to the Kinesis data stream.
1097
+ #
1098
+ # @option params [required, String] :ledger_name
1099
+ # The name of the ledger.
1100
+ #
1101
+ # @option params [required, String] :role_arn
1102
+ # The Amazon Resource Name (ARN) of the IAM role that grants QLDB
1103
+ # permissions for a journal stream to write data records to a Kinesis
1104
+ # Data Streams resource.
1105
+ #
1106
+ # @option params [Hash<String,String>] :tags
1107
+ # The key-value pairs to add as tags to the stream that you want to
1108
+ # create. Tag keys are case sensitive. Tag values are case sensitive and
1109
+ # can be null.
1110
+ #
1111
+ # @option params [required, Time,DateTime,Date,Integer,String] :inclusive_start_time
1112
+ # The inclusive start date and time from which to start streaming
1113
+ # journal data. This parameter must be in `ISO 8601` date and time
1114
+ # format and in Universal Coordinated Time (UTC). For example:
1115
+ # `2019-06-13T21:36:34Z`
1116
+ #
1117
+ # The `InclusiveStartTime` cannot be in the future and must be before
1118
+ # `ExclusiveEndTime`.
1119
+ #
1120
+ # If you provide an `InclusiveStartTime` that is before the ledger's
1121
+ # `CreationDateTime`, QLDB effectively defaults it to the ledger's
1122
+ # `CreationDateTime`.
1123
+ #
1124
+ # @option params [Time,DateTime,Date,Integer,String] :exclusive_end_time
1125
+ # The exclusive date and time that specifies when the stream ends. If
1126
+ # you keep this parameter blank, the stream runs indefinitely until you
1127
+ # cancel it.
1128
+ #
1129
+ # The `ExclusiveEndTime` must be in `ISO 8601` date and time format and
1130
+ # in Universal Coordinated Time (UTC). For example:
1131
+ # `2019-06-13T21:36:34Z`
1132
+ #
1133
+ # @option params [required, Types::KinesisConfiguration] :kinesis_configuration
1134
+ # The configuration settings of the Kinesis Data Streams destination for
1135
+ # your stream request.
1136
+ #
1137
+ # @option params [required, String] :stream_name
1138
+ # The name that you want to assign to the QLDB journal stream.
1139
+ # User-defined names can help identify and indicate the purpose of a
1140
+ # stream.
1141
+ #
1142
+ # Your stream name must be unique among other *active* streams for a
1143
+ # given ledger. If you try to create a stream with the same name and
1144
+ # configuration of an active, existing stream for the same ledger, QLDB
1145
+ # simply returns the existing stream. Stream names have the same naming
1146
+ # constraints as ledger names, as defined in [Quotas in Amazon QLDB][1]
1147
+ # in the *Amazon QLDB Developer Guide*.
1148
+ #
1149
+ #
1150
+ #
1151
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming
1152
+ #
1153
+ # @return [Types::StreamJournalToKinesisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1154
+ #
1155
+ # * {Types::StreamJournalToKinesisResponse#stream_id #stream_id} => String
1156
+ #
1157
+ # @example Request syntax with placeholder values
1158
+ #
1159
+ # resp = client.stream_journal_to_kinesis({
1160
+ # ledger_name: "LedgerName", # required
1161
+ # role_arn: "Arn", # required
1162
+ # tags: {
1163
+ # "TagKey" => "TagValue",
1164
+ # },
1165
+ # inclusive_start_time: Time.now, # required
1166
+ # exclusive_end_time: Time.now,
1167
+ # kinesis_configuration: { # required
1168
+ # stream_arn: "Arn", # required
1169
+ # aggregation_enabled: false,
1170
+ # },
1171
+ # stream_name: "StreamName", # required
1172
+ # })
1173
+ #
1174
+ # @example Response structure
1175
+ #
1176
+ # resp.stream_id #=> String
1177
+ #
1178
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/StreamJournalToKinesis AWS API Documentation
1179
+ #
1180
+ # @overload stream_journal_to_kinesis(params = {})
1181
+ # @param [Hash] params ({})
1182
+ def stream_journal_to_kinesis(params = {}, options = {})
1183
+ req = build_request(:stream_journal_to_kinesis, params)
1184
+ req.send_request(options)
1185
+ end
1186
+
923
1187
  # Adds one or more tags to a specified Amazon QLDB resource.
924
1188
  #
925
1189
  # A resource can have up to 50 tags. If you try to create more than 50
@@ -1048,7 +1312,7 @@ module Aws::QLDB
1048
1312
  params: params,
1049
1313
  config: config)
1050
1314
  context[:gem_name] = 'aws-sdk-qldb'
1051
- context[:gem_version] = '1.3.0'
1315
+ context[:gem_version] = '1.4.0'
1052
1316
  Seahorse::Client::Request.new(handlers, context)
1053
1317
  end
1054
1318
 
@@ -12,15 +12,21 @@ module Aws::QLDB
12
12
  include Seahorse::Model
13
13
 
14
14
  Arn = Shapes::StringShape.new(name: 'Arn')
15
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
16
+ CancelJournalKinesisStreamRequest = Shapes::StructureShape.new(name: 'CancelJournalKinesisStreamRequest')
17
+ CancelJournalKinesisStreamResponse = Shapes::StructureShape.new(name: 'CancelJournalKinesisStreamResponse')
15
18
  CreateLedgerRequest = Shapes::StructureShape.new(name: 'CreateLedgerRequest')
16
19
  CreateLedgerResponse = Shapes::StructureShape.new(name: 'CreateLedgerResponse')
17
20
  DeleteLedgerRequest = Shapes::StructureShape.new(name: 'DeleteLedgerRequest')
18
21
  DeletionProtection = Shapes::BooleanShape.new(name: 'DeletionProtection')
22
+ DescribeJournalKinesisStreamRequest = Shapes::StructureShape.new(name: 'DescribeJournalKinesisStreamRequest')
23
+ DescribeJournalKinesisStreamResponse = Shapes::StructureShape.new(name: 'DescribeJournalKinesisStreamResponse')
19
24
  DescribeJournalS3ExportRequest = Shapes::StructureShape.new(name: 'DescribeJournalS3ExportRequest')
20
25
  DescribeJournalS3ExportResponse = Shapes::StructureShape.new(name: 'DescribeJournalS3ExportResponse')
21
26
  DescribeLedgerRequest = Shapes::StructureShape.new(name: 'DescribeLedgerRequest')
22
27
  DescribeLedgerResponse = Shapes::StructureShape.new(name: 'DescribeLedgerResponse')
23
28
  Digest = Shapes::BlobShape.new(name: 'Digest')
29
+ ErrorCause = Shapes::StringShape.new(name: 'ErrorCause')
24
30
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
25
31
  ExportJournalToS3Request = Shapes::StructureShape.new(name: 'ExportJournalToS3Request')
26
32
  ExportJournalToS3Response = Shapes::StructureShape.new(name: 'ExportJournalToS3Response')
@@ -33,13 +39,18 @@ module Aws::QLDB
33
39
  GetRevisionResponse = Shapes::StructureShape.new(name: 'GetRevisionResponse')
34
40
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
35
41
  IonText = Shapes::StringShape.new(name: 'IonText')
42
+ JournalKinesisStreamDescription = Shapes::StructureShape.new(name: 'JournalKinesisStreamDescription')
43
+ JournalKinesisStreamDescriptionList = Shapes::ListShape.new(name: 'JournalKinesisStreamDescriptionList')
36
44
  JournalS3ExportDescription = Shapes::StructureShape.new(name: 'JournalS3ExportDescription')
37
45
  JournalS3ExportList = Shapes::ListShape.new(name: 'JournalS3ExportList')
46
+ KinesisConfiguration = Shapes::StructureShape.new(name: 'KinesisConfiguration')
38
47
  LedgerList = Shapes::ListShape.new(name: 'LedgerList')
39
48
  LedgerName = Shapes::StringShape.new(name: 'LedgerName')
40
49
  LedgerState = Shapes::StringShape.new(name: 'LedgerState')
41
50
  LedgerSummary = Shapes::StructureShape.new(name: 'LedgerSummary')
42
51
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
52
+ ListJournalKinesisStreamsForLedgerRequest = Shapes::StructureShape.new(name: 'ListJournalKinesisStreamsForLedgerRequest')
53
+ ListJournalKinesisStreamsForLedgerResponse = Shapes::StructureShape.new(name: 'ListJournalKinesisStreamsForLedgerResponse')
43
54
  ListJournalS3ExportsForLedgerRequest = Shapes::StructureShape.new(name: 'ListJournalS3ExportsForLedgerRequest')
44
55
  ListJournalS3ExportsForLedgerResponse = Shapes::StructureShape.new(name: 'ListJournalS3ExportsForLedgerResponse')
45
56
  ListJournalS3ExportsRequest = Shapes::StructureShape.new(name: 'ListJournalS3ExportsRequest')
@@ -63,6 +74,10 @@ module Aws::QLDB
63
74
  S3ExportConfiguration = Shapes::StructureShape.new(name: 'S3ExportConfiguration')
64
75
  S3ObjectEncryptionType = Shapes::StringShape.new(name: 'S3ObjectEncryptionType')
65
76
  S3Prefix = Shapes::StringShape.new(name: 'S3Prefix')
77
+ StreamJournalToKinesisRequest = Shapes::StructureShape.new(name: 'StreamJournalToKinesisRequest')
78
+ StreamJournalToKinesisResponse = Shapes::StructureShape.new(name: 'StreamJournalToKinesisResponse')
79
+ StreamName = Shapes::StringShape.new(name: 'StreamName')
80
+ StreamStatus = Shapes::StringShape.new(name: 'StreamStatus')
66
81
  TagKey = Shapes::StringShape.new(name: 'TagKey')
67
82
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
68
83
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
@@ -77,6 +92,13 @@ module Aws::QLDB
77
92
  UpdateLedgerResponse = Shapes::StructureShape.new(name: 'UpdateLedgerResponse')
78
93
  ValueHolder = Shapes::StructureShape.new(name: 'ValueHolder')
79
94
 
95
+ CancelJournalKinesisStreamRequest.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
96
+ CancelJournalKinesisStreamRequest.add_member(:stream_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location: "uri", location_name: "streamId"))
97
+ CancelJournalKinesisStreamRequest.struct_class = Types::CancelJournalKinesisStreamRequest
98
+
99
+ CancelJournalKinesisStreamResponse.add_member(:stream_id, Shapes::ShapeRef.new(shape: UniqueId, location_name: "StreamId"))
100
+ CancelJournalKinesisStreamResponse.struct_class = Types::CancelJournalKinesisStreamResponse
101
+
80
102
  CreateLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location_name: "Name"))
81
103
  CreateLedgerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
82
104
  CreateLedgerRequest.add_member(:permissions_mode, Shapes::ShapeRef.new(shape: PermissionsMode, required: true, location_name: "PermissionsMode"))
@@ -93,6 +115,13 @@ module Aws::QLDB
93
115
  DeleteLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
94
116
  DeleteLedgerRequest.struct_class = Types::DeleteLedgerRequest
95
117
 
118
+ DescribeJournalKinesisStreamRequest.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
119
+ DescribeJournalKinesisStreamRequest.add_member(:stream_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location: "uri", location_name: "streamId"))
120
+ DescribeJournalKinesisStreamRequest.struct_class = Types::DescribeJournalKinesisStreamRequest
121
+
122
+ DescribeJournalKinesisStreamResponse.add_member(:stream, Shapes::ShapeRef.new(shape: JournalKinesisStreamDescription, location_name: "Stream"))
123
+ DescribeJournalKinesisStreamResponse.struct_class = Types::DescribeJournalKinesisStreamResponse
124
+
96
125
  DescribeJournalS3ExportRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
97
126
  DescribeJournalS3ExportRequest.add_member(:export_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location: "uri", location_name: "exportId"))
98
127
  DescribeJournalS3ExportRequest.struct_class = Types::DescribeJournalS3ExportRequest
@@ -150,6 +179,21 @@ module Aws::QLDB
150
179
  InvalidParameterException.add_member(:parameter_name, Shapes::ShapeRef.new(shape: ParameterName, location_name: "ParameterName"))
151
180
  InvalidParameterException.struct_class = Types::InvalidParameterException
152
181
 
182
+ JournalKinesisStreamDescription.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location_name: "LedgerName"))
183
+ JournalKinesisStreamDescription.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
184
+ JournalKinesisStreamDescription.add_member(:inclusive_start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "InclusiveStartTime"))
185
+ JournalKinesisStreamDescription.add_member(:exclusive_end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ExclusiveEndTime"))
186
+ JournalKinesisStreamDescription.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoleArn"))
187
+ JournalKinesisStreamDescription.add_member(:stream_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location_name: "StreamId"))
188
+ JournalKinesisStreamDescription.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn"))
189
+ JournalKinesisStreamDescription.add_member(:status, Shapes::ShapeRef.new(shape: StreamStatus, required: true, location_name: "Status"))
190
+ JournalKinesisStreamDescription.add_member(:kinesis_configuration, Shapes::ShapeRef.new(shape: KinesisConfiguration, required: true, location_name: "KinesisConfiguration"))
191
+ JournalKinesisStreamDescription.add_member(:error_cause, Shapes::ShapeRef.new(shape: ErrorCause, location_name: "ErrorCause"))
192
+ JournalKinesisStreamDescription.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
193
+ JournalKinesisStreamDescription.struct_class = Types::JournalKinesisStreamDescription
194
+
195
+ JournalKinesisStreamDescriptionList.member = Shapes::ShapeRef.new(shape: JournalKinesisStreamDescription)
196
+
153
197
  JournalS3ExportDescription.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location_name: "LedgerName"))
154
198
  JournalS3ExportDescription.add_member(:export_id, Shapes::ShapeRef.new(shape: UniqueId, required: true, location_name: "ExportId"))
155
199
  JournalS3ExportDescription.add_member(:export_creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ExportCreationTime"))
@@ -162,6 +206,10 @@ module Aws::QLDB
162
206
 
163
207
  JournalS3ExportList.member = Shapes::ShapeRef.new(shape: JournalS3ExportDescription)
164
208
 
209
+ KinesisConfiguration.add_member(:stream_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "StreamArn"))
210
+ KinesisConfiguration.add_member(:aggregation_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "AggregationEnabled"))
211
+ KinesisConfiguration.struct_class = Types::KinesisConfiguration
212
+
165
213
  LedgerList.member = Shapes::ShapeRef.new(shape: LedgerSummary)
166
214
 
167
215
  LedgerSummary.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, location_name: "Name"))
@@ -173,6 +221,15 @@ module Aws::QLDB
173
221
  LimitExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
174
222
  LimitExceededException.struct_class = Types::LimitExceededException
175
223
 
224
+ ListJournalKinesisStreamsForLedgerRequest.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
225
+ ListJournalKinesisStreamsForLedgerRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results"))
226
+ ListJournalKinesisStreamsForLedgerRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
227
+ ListJournalKinesisStreamsForLedgerRequest.struct_class = Types::ListJournalKinesisStreamsForLedgerRequest
228
+
229
+ ListJournalKinesisStreamsForLedgerResponse.add_member(:streams, Shapes::ShapeRef.new(shape: JournalKinesisStreamDescriptionList, location_name: "Streams"))
230
+ ListJournalKinesisStreamsForLedgerResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
231
+ ListJournalKinesisStreamsForLedgerResponse.struct_class = Types::ListJournalKinesisStreamsForLedgerResponse
232
+
176
233
  ListJournalS3ExportsForLedgerRequest.add_member(:name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
177
234
  ListJournalS3ExportsForLedgerRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results"))
178
235
  ListJournalS3ExportsForLedgerRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
@@ -233,6 +290,18 @@ module Aws::QLDB
233
290
  S3ExportConfiguration.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: S3EncryptionConfiguration, required: true, location_name: "EncryptionConfiguration"))
234
291
  S3ExportConfiguration.struct_class = Types::S3ExportConfiguration
235
292
 
293
+ StreamJournalToKinesisRequest.add_member(:ledger_name, Shapes::ShapeRef.new(shape: LedgerName, required: true, location: "uri", location_name: "name"))
294
+ StreamJournalToKinesisRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoleArn"))
295
+ StreamJournalToKinesisRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
296
+ StreamJournalToKinesisRequest.add_member(:inclusive_start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "InclusiveStartTime"))
297
+ StreamJournalToKinesisRequest.add_member(:exclusive_end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ExclusiveEndTime"))
298
+ StreamJournalToKinesisRequest.add_member(:kinesis_configuration, Shapes::ShapeRef.new(shape: KinesisConfiguration, required: true, location_name: "KinesisConfiguration"))
299
+ StreamJournalToKinesisRequest.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
300
+ StreamJournalToKinesisRequest.struct_class = Types::StreamJournalToKinesisRequest
301
+
302
+ StreamJournalToKinesisResponse.add_member(:stream_id, Shapes::ShapeRef.new(shape: UniqueId, location_name: "StreamId"))
303
+ StreamJournalToKinesisResponse.struct_class = Types::StreamJournalToKinesisResponse
304
+
236
305
  TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
237
306
 
238
307
  TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
@@ -283,6 +352,17 @@ module Aws::QLDB
283
352
  "uid" => "qldb-2019-01-02",
284
353
  }
285
354
 
355
+ api.add_operation(:cancel_journal_kinesis_stream, Seahorse::Model::Operation.new.tap do |o|
356
+ o.name = "CancelJournalKinesisStream"
357
+ o.http_method = "DELETE"
358
+ o.http_request_uri = "/ledgers/{name}/journal-kinesis-streams/{streamId}"
359
+ o.input = Shapes::ShapeRef.new(shape: CancelJournalKinesisStreamRequest)
360
+ o.output = Shapes::ShapeRef.new(shape: CancelJournalKinesisStreamResponse)
361
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
362
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
363
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
364
+ end)
365
+
286
366
  api.add_operation(:create_ledger, Seahorse::Model::Operation.new.tap do |o|
287
367
  o.name = "CreateLedger"
288
368
  o.http_method = "POST"
@@ -307,6 +387,17 @@ module Aws::QLDB
307
387
  o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
308
388
  end)
309
389
 
390
+ api.add_operation(:describe_journal_kinesis_stream, Seahorse::Model::Operation.new.tap do |o|
391
+ o.name = "DescribeJournalKinesisStream"
392
+ o.http_method = "GET"
393
+ o.http_request_uri = "/ledgers/{name}/journal-kinesis-streams/{streamId}"
394
+ o.input = Shapes::ShapeRef.new(shape: DescribeJournalKinesisStreamRequest)
395
+ o.output = Shapes::ShapeRef.new(shape: DescribeJournalKinesisStreamResponse)
396
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
397
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
398
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
399
+ end)
400
+
310
401
  api.add_operation(:describe_journal_s3_export, Seahorse::Model::Operation.new.tap do |o|
311
402
  o.name = "DescribeJournalS3Export"
312
403
  o.http_method = "GET"
@@ -369,6 +460,23 @@ module Aws::QLDB
369
460
  o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
370
461
  end)
371
462
 
463
+ api.add_operation(:list_journal_kinesis_streams_for_ledger, Seahorse::Model::Operation.new.tap do |o|
464
+ o.name = "ListJournalKinesisStreamsForLedger"
465
+ o.http_method = "GET"
466
+ o.http_request_uri = "/ledgers/{name}/journal-kinesis-streams"
467
+ o.input = Shapes::ShapeRef.new(shape: ListJournalKinesisStreamsForLedgerRequest)
468
+ o.output = Shapes::ShapeRef.new(shape: ListJournalKinesisStreamsForLedgerResponse)
469
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
470
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
471
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
472
+ o[:pager] = Aws::Pager.new(
473
+ limit_key: "max_results",
474
+ tokens: {
475
+ "next_token" => "next_token"
476
+ }
477
+ )
478
+ end)
479
+
372
480
  api.add_operation(:list_journal_s3_exports, Seahorse::Model::Operation.new.tap do |o|
373
481
  o.name = "ListJournalS3Exports"
374
482
  o.http_method = "GET"
@@ -421,6 +529,17 @@ module Aws::QLDB
421
529
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
422
530
  end)
423
531
 
532
+ api.add_operation(:stream_journal_to_kinesis, Seahorse::Model::Operation.new.tap do |o|
533
+ o.name = "StreamJournalToKinesis"
534
+ o.http_method = "POST"
535
+ o.http_request_uri = "/ledgers/{name}/journal-kinesis-streams"
536
+ o.input = Shapes::ShapeRef.new(shape: StreamJournalToKinesisRequest)
537
+ o.output = Shapes::ShapeRef.new(shape: StreamJournalToKinesisResponse)
538
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
539
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
540
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePreconditionNotMetException)
541
+ end)
542
+
424
543
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
425
544
  o.name = "TagResource"
426
545
  o.http_method = "POST"
@@ -8,6 +8,41 @@
8
8
  module Aws::QLDB
9
9
  module Types
10
10
 
11
+ # @note When making an API call, you may pass CancelJournalKinesisStreamRequest
12
+ # data as a hash:
13
+ #
14
+ # {
15
+ # ledger_name: "LedgerName", # required
16
+ # stream_id: "UniqueId", # required
17
+ # }
18
+ #
19
+ # @!attribute [rw] ledger_name
20
+ # The name of the ledger.
21
+ # @return [String]
22
+ #
23
+ # @!attribute [rw] stream_id
24
+ # The unique ID that QLDB assigns to each QLDB journal stream.
25
+ # @return [String]
26
+ #
27
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/CancelJournalKinesisStreamRequest AWS API Documentation
28
+ #
29
+ class CancelJournalKinesisStreamRequest < Struct.new(
30
+ :ledger_name,
31
+ :stream_id)
32
+ include Aws::Structure
33
+ end
34
+
35
+ # @!attribute [rw] stream_id
36
+ # The unique ID that QLDB assigns to each QLDB journal stream.
37
+ # @return [String]
38
+ #
39
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/CancelJournalKinesisStreamResponse AWS API Documentation
40
+ #
41
+ class CancelJournalKinesisStreamResponse < Struct.new(
42
+ :stream_id)
43
+ include Aws::Structure
44
+ end
45
+
11
46
  # @note When making an API call, you may pass CreateLedgerRequest
12
47
  # data as a hash:
13
48
  #
@@ -119,6 +154,42 @@ module Aws::QLDB
119
154
  include Aws::Structure
120
155
  end
121
156
 
157
+ # @note When making an API call, you may pass DescribeJournalKinesisStreamRequest
158
+ # data as a hash:
159
+ #
160
+ # {
161
+ # ledger_name: "LedgerName", # required
162
+ # stream_id: "UniqueId", # required
163
+ # }
164
+ #
165
+ # @!attribute [rw] ledger_name
166
+ # The name of the ledger.
167
+ # @return [String]
168
+ #
169
+ # @!attribute [rw] stream_id
170
+ # The unique ID that QLDB assigns to each QLDB journal stream.
171
+ # @return [String]
172
+ #
173
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/DescribeJournalKinesisStreamRequest AWS API Documentation
174
+ #
175
+ class DescribeJournalKinesisStreamRequest < Struct.new(
176
+ :ledger_name,
177
+ :stream_id)
178
+ include Aws::Structure
179
+ end
180
+
181
+ # @!attribute [rw] stream
182
+ # Information about the QLDB journal stream returned by a
183
+ # `DescribeJournalS3Export` request.
184
+ # @return [Types::JournalKinesisStreamDescription]
185
+ #
186
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/DescribeJournalKinesisStreamResponse AWS API Documentation
187
+ #
188
+ class DescribeJournalKinesisStreamResponse < Struct.new(
189
+ :stream)
190
+ include Aws::Structure
191
+ end
192
+
122
193
  # @note When making an API call, you may pass DescribeJournalS3ExportRequest
123
194
  # data as a hash:
124
195
  #
@@ -488,6 +559,81 @@ module Aws::QLDB
488
559
  include Aws::Structure
489
560
  end
490
561
 
562
+ # The information about an Amazon QLDB journal stream, including the
563
+ # Amazon Resource Name (ARN), stream name, creation time, current
564
+ # status, and the parameters of your original stream creation request.
565
+ #
566
+ # @!attribute [rw] ledger_name
567
+ # The name of the ledger.
568
+ # @return [String]
569
+ #
570
+ # @!attribute [rw] creation_time
571
+ # The date and time, in epoch time format, when the QLDB journal
572
+ # stream was created. (Epoch time format is the number of seconds
573
+ # elapsed since 12:00:00 AM January 1, 1970 UTC.)
574
+ # @return [Time]
575
+ #
576
+ # @!attribute [rw] inclusive_start_time
577
+ # The inclusive start date and time from which to start streaming
578
+ # journal data.
579
+ # @return [Time]
580
+ #
581
+ # @!attribute [rw] exclusive_end_time
582
+ # The exclusive date and time that specifies when the stream ends. If
583
+ # this parameter is blank, the stream runs indefinitely until you
584
+ # cancel it.
585
+ # @return [Time]
586
+ #
587
+ # @!attribute [rw] role_arn
588
+ # The Amazon Resource Name (ARN) of the IAM role that grants QLDB
589
+ # permissions for a journal stream to write data records to a Kinesis
590
+ # Data Streams resource.
591
+ # @return [String]
592
+ #
593
+ # @!attribute [rw] stream_id
594
+ # The unique ID that QLDB assigns to each QLDB journal stream.
595
+ # @return [String]
596
+ #
597
+ # @!attribute [rw] arn
598
+ # The Amazon Resource Name (ARN) of the QLDB journal stream.
599
+ # @return [String]
600
+ #
601
+ # @!attribute [rw] status
602
+ # The current state of the QLDB journal stream.
603
+ # @return [String]
604
+ #
605
+ # @!attribute [rw] kinesis_configuration
606
+ # The configuration settings of the Amazon Kinesis Data Streams
607
+ # destination for your QLDB journal stream.
608
+ # @return [Types::KinesisConfiguration]
609
+ #
610
+ # @!attribute [rw] error_cause
611
+ # The error message that describes the reason that a stream has a
612
+ # status of `IMPAIRED` or `FAILED`. This is not applicable to streams
613
+ # that have other status values.
614
+ # @return [String]
615
+ #
616
+ # @!attribute [rw] stream_name
617
+ # The user-defined name of the QLDB journal stream.
618
+ # @return [String]
619
+ #
620
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/JournalKinesisStreamDescription AWS API Documentation
621
+ #
622
+ class JournalKinesisStreamDescription < Struct.new(
623
+ :ledger_name,
624
+ :creation_time,
625
+ :inclusive_start_time,
626
+ :exclusive_end_time,
627
+ :role_arn,
628
+ :stream_id,
629
+ :arn,
630
+ :status,
631
+ :kinesis_configuration,
632
+ :error_cause,
633
+ :stream_name)
634
+ include Aws::Structure
635
+ end
636
+
491
637
  # The information about a journal export job, including the ledger name,
492
638
  # export ID, when it was created, current status, and its start and end
493
639
  # time export parameters.
@@ -551,6 +697,39 @@ module Aws::QLDB
551
697
  include Aws::Structure
552
698
  end
553
699
 
700
+ # The configuration settings of the Amazon Kinesis Data Streams
701
+ # destination for your Amazon QLDB journal stream.
702
+ #
703
+ # @note When making an API call, you may pass KinesisConfiguration
704
+ # data as a hash:
705
+ #
706
+ # {
707
+ # stream_arn: "Arn", # required
708
+ # aggregation_enabled: false,
709
+ # }
710
+ #
711
+ # @!attribute [rw] stream_arn
712
+ # The Amazon Resource Name (ARN) of the Kinesis data stream resource.
713
+ # @return [String]
714
+ #
715
+ # @!attribute [rw] aggregation_enabled
716
+ # Enables QLDB to publish multiple stream records in a single Kinesis
717
+ # Data Streams record. To learn more, see [KPL Key Concepts][1] in the
718
+ # *Amazon Kinesis Data Streams Developer Guide*.
719
+ #
720
+ #
721
+ #
722
+ # [1]: https://docs.aws.amazon.com/streams/latest/dev/kinesis-kpl-concepts.html
723
+ # @return [Boolean]
724
+ #
725
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/KinesisConfiguration AWS API Documentation
726
+ #
727
+ class KinesisConfiguration < Struct.new(
728
+ :stream_arn,
729
+ :aggregation_enabled)
730
+ include Aws::Structure
731
+ end
732
+
554
733
  # Information about a ledger, including its name, state, and when it was
555
734
  # created.
556
735
  #
@@ -594,6 +773,63 @@ module Aws::QLDB
594
773
  include Aws::Structure
595
774
  end
596
775
 
776
+ # @note When making an API call, you may pass ListJournalKinesisStreamsForLedgerRequest
777
+ # data as a hash:
778
+ #
779
+ # {
780
+ # ledger_name: "LedgerName", # required
781
+ # max_results: 1,
782
+ # next_token: "NextToken",
783
+ # }
784
+ #
785
+ # @!attribute [rw] ledger_name
786
+ # The name of the ledger.
787
+ # @return [String]
788
+ #
789
+ # @!attribute [rw] max_results
790
+ # The maximum number of results to return in a single
791
+ # `ListJournalKinesisStreamsForLedger` request. (The actual number of
792
+ # results returned might be fewer.)
793
+ # @return [Integer]
794
+ #
795
+ # @!attribute [rw] next_token
796
+ # A pagination token, indicating that you want to retrieve the next
797
+ # page of results. If you received a value for `NextToken` in the
798
+ # response from a previous `ListJournalKinesisStreamsForLedger` call,
799
+ # you should use that value as input here.
800
+ # @return [String]
801
+ #
802
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/ListJournalKinesisStreamsForLedgerRequest AWS API Documentation
803
+ #
804
+ class ListJournalKinesisStreamsForLedgerRequest < Struct.new(
805
+ :ledger_name,
806
+ :max_results,
807
+ :next_token)
808
+ include Aws::Structure
809
+ end
810
+
811
+ # @!attribute [rw] streams
812
+ # The array of QLDB journal stream descriptors that are associated
813
+ # with the given ledger.
814
+ # @return [Array<Types::JournalKinesisStreamDescription>]
815
+ #
816
+ # @!attribute [rw] next_token
817
+ # * If `NextToken` is empty, the last page of results has been
818
+ # processed and there are no more results to be retrieved.
819
+ #
820
+ # * If `NextToken` is *not* empty, more results are available. To
821
+ # retrieve the next page of results, use the value of `NextToken` in
822
+ # a subsequent `ListJournalKinesisStreamsForLedger` call.
823
+ # @return [String]
824
+ #
825
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/ListJournalKinesisStreamsForLedgerResponse AWS API Documentation
826
+ #
827
+ class ListJournalKinesisStreamsForLedgerResponse < Struct.new(
828
+ :streams,
829
+ :next_token)
830
+ include Aws::Structure
831
+ end
832
+
597
833
  # @note When making an API call, you may pass ListJournalS3ExportsForLedgerRequest
598
834
  # data as a hash:
599
835
  #
@@ -900,8 +1136,9 @@ module Aws::QLDB
900
1136
  # @return [String]
901
1137
  #
902
1138
  # @!attribute [rw] kms_key_arn
903
- # The Amazon Resource Name (ARN) for a customer master key (CMK) in
904
- # AWS Key Management Service (AWS KMS).
1139
+ # The Amazon Resource Name (ARN) for a symmetric customer master key
1140
+ # (CMK) in AWS Key Management Service (AWS KMS). Amazon QLDB does not
1141
+ # support asymmetric CMKs.
905
1142
  #
906
1143
  # You must provide a `KmsKeyArn` if you specify `SSE_KMS` as the
907
1144
  # `ObjectEncryptionType`.
@@ -981,6 +1218,110 @@ module Aws::QLDB
981
1218
  include Aws::Structure
982
1219
  end
983
1220
 
1221
+ # @note When making an API call, you may pass StreamJournalToKinesisRequest
1222
+ # data as a hash:
1223
+ #
1224
+ # {
1225
+ # ledger_name: "LedgerName", # required
1226
+ # role_arn: "Arn", # required
1227
+ # tags: {
1228
+ # "TagKey" => "TagValue",
1229
+ # },
1230
+ # inclusive_start_time: Time.now, # required
1231
+ # exclusive_end_time: Time.now,
1232
+ # kinesis_configuration: { # required
1233
+ # stream_arn: "Arn", # required
1234
+ # aggregation_enabled: false,
1235
+ # },
1236
+ # stream_name: "StreamName", # required
1237
+ # }
1238
+ #
1239
+ # @!attribute [rw] ledger_name
1240
+ # The name of the ledger.
1241
+ # @return [String]
1242
+ #
1243
+ # @!attribute [rw] role_arn
1244
+ # The Amazon Resource Name (ARN) of the IAM role that grants QLDB
1245
+ # permissions for a journal stream to write data records to a Kinesis
1246
+ # Data Streams resource.
1247
+ # @return [String]
1248
+ #
1249
+ # @!attribute [rw] tags
1250
+ # The key-value pairs to add as tags to the stream that you want to
1251
+ # create. Tag keys are case sensitive. Tag values are case sensitive
1252
+ # and can be null.
1253
+ # @return [Hash<String,String>]
1254
+ #
1255
+ # @!attribute [rw] inclusive_start_time
1256
+ # The inclusive start date and time from which to start streaming
1257
+ # journal data. This parameter must be in `ISO 8601` date and time
1258
+ # format and in Universal Coordinated Time (UTC). For example:
1259
+ # `2019-06-13T21:36:34Z`
1260
+ #
1261
+ # The `InclusiveStartTime` cannot be in the future and must be before
1262
+ # `ExclusiveEndTime`.
1263
+ #
1264
+ # If you provide an `InclusiveStartTime` that is before the ledger's
1265
+ # `CreationDateTime`, QLDB effectively defaults it to the ledger's
1266
+ # `CreationDateTime`.
1267
+ # @return [Time]
1268
+ #
1269
+ # @!attribute [rw] exclusive_end_time
1270
+ # The exclusive date and time that specifies when the stream ends. If
1271
+ # you keep this parameter blank, the stream runs indefinitely until
1272
+ # you cancel it.
1273
+ #
1274
+ # The `ExclusiveEndTime` must be in `ISO 8601` date and time format
1275
+ # and in Universal Coordinated Time (UTC). For example:
1276
+ # `2019-06-13T21:36:34Z`
1277
+ # @return [Time]
1278
+ #
1279
+ # @!attribute [rw] kinesis_configuration
1280
+ # The configuration settings of the Kinesis Data Streams destination
1281
+ # for your stream request.
1282
+ # @return [Types::KinesisConfiguration]
1283
+ #
1284
+ # @!attribute [rw] stream_name
1285
+ # The name that you want to assign to the QLDB journal stream.
1286
+ # User-defined names can help identify and indicate the purpose of a
1287
+ # stream.
1288
+ #
1289
+ # Your stream name must be unique among other *active* streams for a
1290
+ # given ledger. If you try to create a stream with the same name and
1291
+ # configuration of an active, existing stream for the same ledger,
1292
+ # QLDB simply returns the existing stream. Stream names have the same
1293
+ # naming constraints as ledger names, as defined in [Quotas in Amazon
1294
+ # QLDB][1] in the *Amazon QLDB Developer Guide*.
1295
+ #
1296
+ #
1297
+ #
1298
+ # [1]: https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming
1299
+ # @return [String]
1300
+ #
1301
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/StreamJournalToKinesisRequest AWS API Documentation
1302
+ #
1303
+ class StreamJournalToKinesisRequest < Struct.new(
1304
+ :ledger_name,
1305
+ :role_arn,
1306
+ :tags,
1307
+ :inclusive_start_time,
1308
+ :exclusive_end_time,
1309
+ :kinesis_configuration,
1310
+ :stream_name)
1311
+ include Aws::Structure
1312
+ end
1313
+
1314
+ # @!attribute [rw] stream_id
1315
+ # The unique ID that QLDB assigns to each QLDB journal stream.
1316
+ # @return [String]
1317
+ #
1318
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/StreamJournalToKinesisResponse AWS API Documentation
1319
+ #
1320
+ class StreamJournalToKinesisResponse < Struct.new(
1321
+ :stream_id)
1322
+ include Aws::Structure
1323
+ end
1324
+
984
1325
  # @note When making an API call, you may pass TagResourceRequest
985
1326
  # data as a hash:
986
1327
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-qldb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-07 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core