aws-sdk-kinesis 1.34.0 → 1.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kinesis/async_client.rb +21 -9
- data/lib/aws-sdk-kinesis/client.rb +200 -88
- data/lib/aws-sdk-kinesis/client_api.rb +37 -1
- data/lib/aws-sdk-kinesis/errors.rb +16 -0
- data/lib/aws-sdk-kinesis/types.rb +256 -56
- data/lib/aws-sdk-kinesis.rb +1 -1
- metadata +5 -5
@@ -83,6 +83,8 @@ module Aws::Kinesis
|
|
83
83
|
MetricsNameList = Shapes::ListShape.new(name: 'MetricsNameList')
|
84
84
|
MillisBehindLatest = Shapes::IntegerShape.new(name: 'MillisBehindLatest')
|
85
85
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
86
|
+
OnDemandStreamCountLimitObject = Shapes::IntegerShape.new(name: 'OnDemandStreamCountLimitObject')
|
87
|
+
OnDemandStreamCountObject = Shapes::IntegerShape.new(name: 'OnDemandStreamCountObject')
|
86
88
|
PartitionKey = Shapes::StringShape.new(name: 'PartitionKey')
|
87
89
|
PositiveIntegerObject = Shapes::IntegerShape.new(name: 'PositiveIntegerObject')
|
88
90
|
ProvisionedThroughputExceededException = Shapes::StructureShape.new(name: 'ProvisionedThroughputExceededException')
|
@@ -121,6 +123,8 @@ module Aws::Kinesis
|
|
121
123
|
StreamARN = Shapes::StringShape.new(name: 'StreamARN')
|
122
124
|
StreamDescription = Shapes::StructureShape.new(name: 'StreamDescription')
|
123
125
|
StreamDescriptionSummary = Shapes::StructureShape.new(name: 'StreamDescriptionSummary')
|
126
|
+
StreamMode = Shapes::StringShape.new(name: 'StreamMode')
|
127
|
+
StreamModeDetails = Shapes::StructureShape.new(name: 'StreamModeDetails')
|
124
128
|
StreamName = Shapes::StringShape.new(name: 'StreamName')
|
125
129
|
StreamNameList = Shapes::ListShape.new(name: 'StreamNameList')
|
126
130
|
StreamStatus = Shapes::StringShape.new(name: 'StreamStatus')
|
@@ -137,6 +141,8 @@ module Aws::Kinesis
|
|
137
141
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
138
142
|
UpdateShardCountInput = Shapes::StructureShape.new(name: 'UpdateShardCountInput')
|
139
143
|
UpdateShardCountOutput = Shapes::StructureShape.new(name: 'UpdateShardCountOutput')
|
144
|
+
UpdateStreamModeInput = Shapes::StructureShape.new(name: 'UpdateStreamModeInput')
|
145
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
140
146
|
|
141
147
|
AddTagsToStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
|
142
148
|
AddTagsToStreamInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
|
@@ -165,7 +171,8 @@ module Aws::Kinesis
|
|
165
171
|
ConsumerList.member = Shapes::ShapeRef.new(shape: Consumer)
|
166
172
|
|
167
173
|
CreateStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
|
168
|
-
CreateStreamInput.add_member(:shard_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject,
|
174
|
+
CreateStreamInput.add_member(:shard_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "ShardCount"))
|
175
|
+
CreateStreamInput.add_member(:stream_mode_details, Shapes::ShapeRef.new(shape: StreamModeDetails, location_name: "StreamModeDetails"))
|
169
176
|
CreateStreamInput.struct_class = Types::CreateStreamInput
|
170
177
|
|
171
178
|
DecreaseStreamRetentionPeriodInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
|
@@ -185,6 +192,8 @@ module Aws::Kinesis
|
|
185
192
|
|
186
193
|
DescribeLimitsOutput.add_member(:shard_limit, Shapes::ShapeRef.new(shape: ShardCountObject, required: true, location_name: "ShardLimit"))
|
187
194
|
DescribeLimitsOutput.add_member(:open_shard_count, Shapes::ShapeRef.new(shape: ShardCountObject, required: true, location_name: "OpenShardCount"))
|
195
|
+
DescribeLimitsOutput.add_member(:on_demand_stream_count, Shapes::ShapeRef.new(shape: OnDemandStreamCountObject, required: true, location_name: "OnDemandStreamCount"))
|
196
|
+
DescribeLimitsOutput.add_member(:on_demand_stream_count_limit, Shapes::ShapeRef.new(shape: OnDemandStreamCountLimitObject, required: true, location_name: "OnDemandStreamCountLimit"))
|
188
197
|
DescribeLimitsOutput.struct_class = Types::DescribeLimitsOutput
|
189
198
|
|
190
199
|
DescribeStreamConsumerInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, location_name: "StreamARN"))
|
@@ -442,6 +451,7 @@ module Aws::Kinesis
|
|
442
451
|
StreamDescription.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
|
443
452
|
StreamDescription.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, required: true, location_name: "StreamARN"))
|
444
453
|
StreamDescription.add_member(:stream_status, Shapes::ShapeRef.new(shape: StreamStatus, required: true, location_name: "StreamStatus"))
|
454
|
+
StreamDescription.add_member(:stream_mode_details, Shapes::ShapeRef.new(shape: StreamModeDetails, location_name: "StreamModeDetails"))
|
445
455
|
StreamDescription.add_member(:shards, Shapes::ShapeRef.new(shape: ShardList, required: true, location_name: "Shards"))
|
446
456
|
StreamDescription.add_member(:has_more_shards, Shapes::ShapeRef.new(shape: BooleanObject, required: true, location_name: "HasMoreShards"))
|
447
457
|
StreamDescription.add_member(:retention_period_hours, Shapes::ShapeRef.new(shape: RetentionPeriodHours, required: true, location_name: "RetentionPeriodHours"))
|
@@ -454,6 +464,7 @@ module Aws::Kinesis
|
|
454
464
|
StreamDescriptionSummary.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
|
455
465
|
StreamDescriptionSummary.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, required: true, location_name: "StreamARN"))
|
456
466
|
StreamDescriptionSummary.add_member(:stream_status, Shapes::ShapeRef.new(shape: StreamStatus, required: true, location_name: "StreamStatus"))
|
467
|
+
StreamDescriptionSummary.add_member(:stream_mode_details, Shapes::ShapeRef.new(shape: StreamModeDetails, location_name: "StreamModeDetails"))
|
457
468
|
StreamDescriptionSummary.add_member(:retention_period_hours, Shapes::ShapeRef.new(shape: RetentionPeriodHours, required: true, location_name: "RetentionPeriodHours"))
|
458
469
|
StreamDescriptionSummary.add_member(:stream_creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StreamCreationTimestamp"))
|
459
470
|
StreamDescriptionSummary.add_member(:enhanced_monitoring, Shapes::ShapeRef.new(shape: EnhancedMonitoringList, required: true, location_name: "EnhancedMonitoring"))
|
@@ -463,6 +474,9 @@ module Aws::Kinesis
|
|
463
474
|
StreamDescriptionSummary.add_member(:consumer_count, Shapes::ShapeRef.new(shape: ConsumerCountObject, location_name: "ConsumerCount"))
|
464
475
|
StreamDescriptionSummary.struct_class = Types::StreamDescriptionSummary
|
465
476
|
|
477
|
+
StreamModeDetails.add_member(:stream_mode, Shapes::ShapeRef.new(shape: StreamMode, required: true, location_name: "StreamMode"))
|
478
|
+
StreamModeDetails.struct_class = Types::StreamModeDetails
|
479
|
+
|
466
480
|
StreamNameList.member = Shapes::ShapeRef.new(shape: StreamName)
|
467
481
|
|
468
482
|
SubscribeToShardEvent.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, required: true, location_name: "Records"))
|
@@ -512,6 +526,13 @@ module Aws::Kinesis
|
|
512
526
|
UpdateShardCountOutput.add_member(:target_shard_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "TargetShardCount"))
|
513
527
|
UpdateShardCountOutput.struct_class = Types::UpdateShardCountOutput
|
514
528
|
|
529
|
+
UpdateStreamModeInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, required: true, location_name: "StreamARN"))
|
530
|
+
UpdateStreamModeInput.add_member(:stream_mode_details, Shapes::ShapeRef.new(shape: StreamModeDetails, required: true, location_name: "StreamModeDetails"))
|
531
|
+
UpdateStreamModeInput.struct_class = Types::UpdateStreamModeInput
|
532
|
+
|
533
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
534
|
+
ValidationException.struct_class = Types::ValidationException
|
535
|
+
|
515
536
|
|
516
537
|
# @api private
|
517
538
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -770,6 +791,7 @@ module Aws::Kinesis
|
|
770
791
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
771
792
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
772
793
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
794
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
773
795
|
end)
|
774
796
|
|
775
797
|
api.add_operation(:put_record, Seahorse::Model::Operation.new.tap do |o|
|
@@ -840,6 +862,7 @@ module Aws::Kinesis
|
|
840
862
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
841
863
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
842
864
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
865
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
843
866
|
end)
|
844
867
|
|
845
868
|
api.add_operation(:start_stream_encryption, Seahorse::Model::Operation.new.tap do |o|
|
@@ -895,6 +918,19 @@ module Aws::Kinesis
|
|
895
918
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
896
919
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
897
920
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
921
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
922
|
+
end)
|
923
|
+
|
924
|
+
api.add_operation(:update_stream_mode, Seahorse::Model::Operation.new.tap do |o|
|
925
|
+
o.name = "UpdateStreamMode"
|
926
|
+
o.http_method = "POST"
|
927
|
+
o.http_request_uri = "/"
|
928
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateStreamModeInput)
|
929
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
930
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
931
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
932
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
933
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
898
934
|
end)
|
899
935
|
end
|
900
936
|
|
@@ -32,6 +32,7 @@ module Aws::Kinesis
|
|
32
32
|
# * {InvalidArgumentException}
|
33
33
|
# * {LimitExceededException}
|
34
34
|
# * {ProvisionedThroughputExceededException}
|
35
|
+
# * {ValidationException}
|
35
36
|
#
|
36
37
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
37
38
|
# if they are not defined above.
|
@@ -114,5 +115,20 @@ module Aws::Kinesis
|
|
114
115
|
end
|
115
116
|
end
|
116
117
|
|
118
|
+
class ValidationException < ServiceError
|
119
|
+
|
120
|
+
# @param [Seahorse::Client::RequestContext] context
|
121
|
+
# @param [String] message
|
122
|
+
# @param [Aws::Kinesis::Types::ValidationException] data
|
123
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
124
|
+
super(context, message, data)
|
125
|
+
end
|
126
|
+
|
127
|
+
# @return [String]
|
128
|
+
def message
|
129
|
+
@message || @data[:message]
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
117
133
|
end
|
118
134
|
end
|