aws-sdk-kinesisvideoarchivedmedia 1.21.0 → 1.26.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
- SHA1:
3
- metadata.gz: 51296e836336e18d14c687350a8f1af34e0329ee
4
- data.tar.gz: 9bb0f67b8dbbc67ff7ba92e59e5c4fd2abe029a7
2
+ SHA256:
3
+ metadata.gz: 35560fb76c7b5b4365d977ac0bf1df3fa20e53a872496552bbfb0de25f6f7bfd
4
+ data.tar.gz: 670d243592bdaddb7ab8edcf9dbc01ba5d75dcb9542ce2234babace6fc62d71d
5
5
  SHA512:
6
- metadata.gz: fa8f27d4645bff4f529f5c28a9d5e66f35d07df60f34f5fde26436cdb22bf51b14605d4907ca8730c110d5464d54f051d2e49a4b4c5fe6500316383a28973e4c
7
- data.tar.gz: fa178a348af5ca9dbbefd766099b75ce43af55de742141df47e3995227ca3b875ecc42719e951fc5b0e6174cfade2fedf6a8b5a32a8acc5b4227d0626d567637
6
+ metadata.gz: 2e2d35b750ed0b3b4eef9605e8908f3cacf81a3d8dced1681e301e40f63a8b48284c72c17e65315c62bf99b8120f5859ce923ae25cd936fb786cad044d50c27e
7
+ data.tar.gz: f1d18bed3d4ca214010c5745f55fdedb35a7152eb75454d95c74ed3d6a5813c44d4e18d84edf775c926a181785bea04dc802025dbb52c6326b0406f3f3d55795
@@ -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-kinesisvideoarchivedmedia/customizations'
25
27
  # structure.
26
28
  #
27
29
  # kinesis_video_archived_media = Aws::KinesisVideoArchivedMedia::Client.new
28
- # resp = kinesis_video_archived_media.get_dash_streaming_session_url(params)
30
+ # resp = kinesis_video_archived_media.get_clip(params)
29
31
  #
30
32
  # See {Client} for more information.
31
33
  #
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-kinesisvideoarchivedmedia/customizations'
45
47
  # @service
46
48
  module Aws::KinesisVideoArchivedMedia
47
49
 
48
- GEM_VERSION = '1.21.0'
50
+ GEM_VERSION = '1.26.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
 
@@ -32,11 +35,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:kinesisvideoarchivedmedia)
32
35
  module Aws::KinesisVideoArchivedMedia
33
36
  # An API client for KinesisVideoArchivedMedia. To construct a client, you need to configure a `:region` and `:credentials`.
34
37
  #
35
- # client = Aws::KinesisVideoArchivedMedia::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
38
+ # client = Aws::KinesisVideoArchivedMedia::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
40
43
  #
41
44
  # For details on configuring region and credentials see
42
45
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -69,6 +72,7 @@ module Aws::KinesisVideoArchivedMedia
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
 
@@ -105,7 +109,7 @@ module Aws::KinesisVideoArchivedMedia
105
109
  # @option options [required, String] :region
106
110
  # The AWS region to connect to. The configured `:region` is
107
111
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
109
113
  #
110
114
  # * `Aws.config[:region]`
111
115
  # * `ENV['AWS_REGION']`
@@ -161,7 +165,7 @@ module Aws::KinesisVideoArchivedMedia
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 avalid 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::KinesisVideoArchivedMedia
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.
@@ -229,15 +233,19 @@ module Aws::KinesisVideoArchivedMedia
229
233
  #
230
234
  # @option options [String] :retry_mode ("legacy")
231
235
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
236
+ #
237
+ # * `legacy` - The pre-existing retry behavior. This is default value if
238
+ # no retry mode is provided.
239
+ #
240
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
241
+ # This includes support for retry quotas, which limit the number of
242
+ # unsuccessful retries a client can make.
243
+ #
244
+ # * `adaptive` - An experimental retry mode that includes all the
245
+ # functionality of `standard` mode along with automatic client side
246
+ # throttling. This is a provisional mode that may change behavior
247
+ # in the future.
248
+ #
241
249
  #
242
250
  # @option options [String] :secret_access_key
243
251
  #
@@ -265,8 +273,7 @@ module Aws::KinesisVideoArchivedMedia
265
273
  #
266
274
  # @option options [Integer] :http_read_timeout (60) The default
267
275
  # number of seconds to wait for response data. This value can
268
- # safely be set
269
- # per-request on the session yielded by {#session_for}.
276
+ # safely be set per-request on the session.
270
277
  #
271
278
  # @option options [Float] :http_idle_timeout (5) The number of
272
279
  # seconds a connection is allowed to sit idle before it is
@@ -278,7 +285,7 @@ module Aws::KinesisVideoArchivedMedia
278
285
  # request body. This option has no effect unless the request has
279
286
  # "Expect" header set to "100-continue". Defaults to `nil` which
280
287
  # disables this behaviour. This value can safely be set per
281
- # request on the session yielded by {#session_for}.
288
+ # request on the session.
282
289
  #
283
290
  # @option options [Boolean] :http_wire_trace (false) When `true`,
284
291
  # HTTP debug output will be sent to the `:logger`.
@@ -305,6 +312,83 @@ module Aws::KinesisVideoArchivedMedia
305
312
 
306
313
  # @!group API Operations
307
314
 
315
+ # Downloads an MP4 file (clip) containing the archived, on-demand media
316
+ # from the specified video stream over the specified time range.
317
+ #
318
+ # Both the StreamName and the StreamARN parameters are optional, but you
319
+ # must specify either the StreamName or the StreamARN when invoking this
320
+ # API operation.
321
+ #
322
+ # As a prerequsite to using GetCLip API, you must obtain an endpoint
323
+ # using `GetDataEndpoint`, specifying GET\_CLIP for` the APIName
324
+ # parameter. </p> An Amazon Kinesis video stream has the following
325
+ # requirements for providing data through MP4: The media must contain
326
+ # h.264 or h.265 encoded video and, optionally, AAC or G.711 encoded
327
+ # audio. Specifically, the codec ID of track 1 should be V_MPEG/ISO/AVC
328
+ # (for h.264) or V_MPEGH/ISO/HEVC (for H.265). Optionally, the codec ID
329
+ # of track 2 should be A_AAC (for AAC) or A_MS/ACM (for G.711). Data
330
+ # retention must be greater than 0. The video track of each fragment
331
+ # must contain codec private data in the Advanced Video Coding (AVC) for
332
+ # H.264 format and HEVC for H.265 format. For more information, see
333
+ # MPEG-4 specification ISO/IEC 14496-15. For information about adapting
334
+ # stream data to a given format, see NAL Adaptation Flags. The audio
335
+ # track (if present) of each fragment must contain codec private data in
336
+ # the AAC format (AAC specification ISO/IEC 13818-7) or the MS Wave
337
+ # format. You can monitor the amount of outgoing data by monitoring
338
+ # the GetClip.OutgoingBytes Amazon CloudWatch metric. For information
339
+ # about using CloudWatch to monitor Kinesis Video Streams, see
340
+ # Monitoring Kinesis Video Streams. For pricing information, see Amazon
341
+ # Kinesis Video Streams Pricing and AWS Pricing. Charges for outgoing
342
+ # AWS data apply.
343
+ # `
344
+ #
345
+ # @option params [String] :stream_name
346
+ # The name of the stream for which to retrieve the media clip.
347
+ #
348
+ # You must specify either the StreamName or the StreamARN.
349
+ #
350
+ # @option params [String] :stream_arn
351
+ # The Amazon Resource Name (ARN) of the stream for which to retrieve the
352
+ # media clip.
353
+ #
354
+ # You must specify either the StreamName or the StreamARN.
355
+ #
356
+ # @option params [required, Types::ClipFragmentSelector] :clip_fragment_selector
357
+ # The time range of the requested clip and the source of the timestamps.
358
+ #
359
+ # @return [Types::GetClipOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
360
+ #
361
+ # * {Types::GetClipOutput#content_type #content_type} => String
362
+ # * {Types::GetClipOutput#payload #payload} => IO
363
+ #
364
+ # @example Request syntax with placeholder values
365
+ #
366
+ # resp = client.get_clip({
367
+ # stream_name: "StreamName",
368
+ # stream_arn: "ResourceARN",
369
+ # clip_fragment_selector: { # required
370
+ # fragment_selector_type: "PRODUCER_TIMESTAMP", # required, accepts PRODUCER_TIMESTAMP, SERVER_TIMESTAMP
371
+ # timestamp_range: { # required
372
+ # start_timestamp: Time.now, # required
373
+ # end_timestamp: Time.now, # required
374
+ # },
375
+ # },
376
+ # })
377
+ #
378
+ # @example Response structure
379
+ #
380
+ # resp.content_type #=> String
381
+ # resp.payload #=> IO
382
+ #
383
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-video-archived-media-2017-09-30/GetClip AWS API Documentation
384
+ #
385
+ # @overload get_clip(params = {})
386
+ # @param [Hash] params ({})
387
+ def get_clip(params = {}, options = {}, &block)
388
+ req = build_request(:get_clip, params)
389
+ req.send_request(options, &block)
390
+ end
391
+
308
392
  # Retrieves an MPEG Dynamic Adaptive Streaming over HTTP (DASH) URL for
309
393
  # the stream. You can then open the URL in a media player to view the
310
394
  # stream contents.
@@ -1208,12 +1292,14 @@ module Aws::KinesisVideoArchivedMedia
1208
1292
  # * {Types::ListFragmentsOutput#fragments #fragments} => Array&lt;Types::Fragment&gt;
1209
1293
  # * {Types::ListFragmentsOutput#next_token #next_token} => String
1210
1294
  #
1295
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1296
+ #
1211
1297
  # @example Request syntax with placeholder values
1212
1298
  #
1213
1299
  # resp = client.list_fragments({
1214
1300
  # stream_name: "StreamName", # required
1215
1301
  # max_results: 1,
1216
- # next_token: "String",
1302
+ # next_token: "NextToken",
1217
1303
  # fragment_selector: {
1218
1304
  # fragment_selector_type: "PRODUCER_TIMESTAMP", # required, accepts PRODUCER_TIMESTAMP, SERVER_TIMESTAMP
1219
1305
  # timestamp_range: { # required
@@ -1255,7 +1341,7 @@ module Aws::KinesisVideoArchivedMedia
1255
1341
  params: params,
1256
1342
  config: config)
1257
1343
  context[:gem_name] = 'aws-sdk-kinesisvideoarchivedmedia'
1258
- context[:gem_version] = '1.21.0'
1344
+ context[:gem_version] = '1.26.0'
1259
1345
  Seahorse::Client::Request.new(handlers, context)
1260
1346
  end
1261
1347
 
@@ -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,6 +14,9 @@ module Aws::KinesisVideoArchivedMedia
12
14
  include Seahorse::Model
13
15
 
14
16
  ClientLimitExceededException = Shapes::StructureShape.new(name: 'ClientLimitExceededException')
17
+ ClipFragmentSelector = Shapes::StructureShape.new(name: 'ClipFragmentSelector')
18
+ ClipFragmentSelectorType = Shapes::StringShape.new(name: 'ClipFragmentSelectorType')
19
+ ClipTimestampRange = Shapes::StructureShape.new(name: 'ClipTimestampRange')
15
20
  ContainerFormat = Shapes::StringShape.new(name: 'ContainerFormat')
16
21
  ContentType = Shapes::StringShape.new(name: 'ContentType')
17
22
  DASHDisplayFragmentNumber = Shapes::StringShape.new(name: 'DASHDisplayFragmentNumber')
@@ -29,6 +34,8 @@ module Aws::KinesisVideoArchivedMedia
29
34
  FragmentNumberString = Shapes::StringShape.new(name: 'FragmentNumberString')
30
35
  FragmentSelector = Shapes::StructureShape.new(name: 'FragmentSelector')
31
36
  FragmentSelectorType = Shapes::StringShape.new(name: 'FragmentSelectorType')
37
+ GetClipInput = Shapes::StructureShape.new(name: 'GetClipInput')
38
+ GetClipOutput = Shapes::StructureShape.new(name: 'GetClipOutput')
32
39
  GetDASHStreamingSessionURLInput = Shapes::StructureShape.new(name: 'GetDASHStreamingSessionURLInput')
33
40
  GetDASHStreamingSessionURLOutput = Shapes::StructureShape.new(name: 'GetDASHStreamingSessionURLOutput')
34
41
  GetHLSStreamingSessionURLInput = Shapes::StructureShape.new(name: 'GetHLSStreamingSessionURLInput')
@@ -44,10 +51,12 @@ module Aws::KinesisVideoArchivedMedia
44
51
  HLSTimestampRange = Shapes::StructureShape.new(name: 'HLSTimestampRange')
45
52
  InvalidArgumentException = Shapes::StructureShape.new(name: 'InvalidArgumentException')
46
53
  InvalidCodecPrivateDataException = Shapes::StructureShape.new(name: 'InvalidCodecPrivateDataException')
54
+ InvalidMediaFrameException = Shapes::StructureShape.new(name: 'InvalidMediaFrameException')
47
55
  ListFragmentsInput = Shapes::StructureShape.new(name: 'ListFragmentsInput')
48
56
  ListFragmentsOutput = Shapes::StructureShape.new(name: 'ListFragmentsOutput')
49
57
  Long = Shapes::IntegerShape.new(name: 'Long')
50
58
  MissingCodecPrivateDataException = Shapes::StructureShape.new(name: 'MissingCodecPrivateDataException')
59
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
51
60
  NoDataRetentionException = Shapes::StructureShape.new(name: 'NoDataRetentionException')
52
61
  NotAuthorizedException = Shapes::StructureShape.new(name: 'NotAuthorizedException')
53
62
  PageLimit = Shapes::IntegerShape.new(name: 'PageLimit')
@@ -55,7 +64,6 @@ module Aws::KinesisVideoArchivedMedia
55
64
  ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
56
65
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
57
66
  StreamName = Shapes::StringShape.new(name: 'StreamName')
58
- String = Shapes::StringShape.new(name: 'String')
59
67
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
60
68
  TimestampRange = Shapes::StructureShape.new(name: 'TimestampRange')
61
69
  UnsupportedStreamMediaTypeException = Shapes::StructureShape.new(name: 'UnsupportedStreamMediaTypeException')
@@ -63,6 +71,14 @@ module Aws::KinesisVideoArchivedMedia
63
71
  ClientLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
64
72
  ClientLimitExceededException.struct_class = Types::ClientLimitExceededException
65
73
 
74
+ ClipFragmentSelector.add_member(:fragment_selector_type, Shapes::ShapeRef.new(shape: ClipFragmentSelectorType, required: true, location_name: "FragmentSelectorType"))
75
+ ClipFragmentSelector.add_member(:timestamp_range, Shapes::ShapeRef.new(shape: ClipTimestampRange, required: true, location_name: "TimestampRange"))
76
+ ClipFragmentSelector.struct_class = Types::ClipFragmentSelector
77
+
78
+ ClipTimestampRange.add_member(:start_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTimestamp"))
79
+ ClipTimestampRange.add_member(:end_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTimestamp"))
80
+ ClipTimestampRange.struct_class = Types::ClipTimestampRange
81
+
66
82
  DASHFragmentSelector.add_member(:fragment_selector_type, Shapes::ShapeRef.new(shape: DASHFragmentSelectorType, location_name: "FragmentSelectorType"))
67
83
  DASHFragmentSelector.add_member(:timestamp_range, Shapes::ShapeRef.new(shape: DASHTimestampRange, location_name: "TimestampRange"))
68
84
  DASHFragmentSelector.struct_class = Types::DASHFragmentSelector
@@ -71,7 +87,7 @@ module Aws::KinesisVideoArchivedMedia
71
87
  DASHTimestampRange.add_member(:end_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTimestamp"))
72
88
  DASHTimestampRange.struct_class = Types::DASHTimestampRange
73
89
 
74
- Fragment.add_member(:fragment_number, Shapes::ShapeRef.new(shape: String, location_name: "FragmentNumber"))
90
+ Fragment.add_member(:fragment_number, Shapes::ShapeRef.new(shape: FragmentNumberString, location_name: "FragmentNumber"))
75
91
  Fragment.add_member(:fragment_size_in_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "FragmentSizeInBytes"))
76
92
  Fragment.add_member(:producer_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ProducerTimestamp"))
77
93
  Fragment.add_member(:server_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ServerTimestamp"))
@@ -86,6 +102,17 @@ module Aws::KinesisVideoArchivedMedia
86
102
  FragmentSelector.add_member(:timestamp_range, Shapes::ShapeRef.new(shape: TimestampRange, required: true, location_name: "TimestampRange"))
87
103
  FragmentSelector.struct_class = Types::FragmentSelector
88
104
 
105
+ GetClipInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
106
+ GetClipInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: ResourceARN, location_name: "StreamARN"))
107
+ GetClipInput.add_member(:clip_fragment_selector, Shapes::ShapeRef.new(shape: ClipFragmentSelector, required: true, location_name: "ClipFragmentSelector"))
108
+ GetClipInput.struct_class = Types::GetClipInput
109
+
110
+ GetClipOutput.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location: "header", location_name: "Content-Type"))
111
+ GetClipOutput.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "Payload"))
112
+ GetClipOutput.struct_class = Types::GetClipOutput
113
+ GetClipOutput[:payload] = :payload
114
+ GetClipOutput[:payload_member] = GetClipOutput.member(:payload)
115
+
89
116
  GetDASHStreamingSessionURLInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
90
117
  GetDASHStreamingSessionURLInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: ResourceARN, location_name: "StreamARN"))
91
118
  GetDASHStreamingSessionURLInput.add_member(:playback_mode, Shapes::ShapeRef.new(shape: DASHPlaybackMode, location_name: "PlaybackMode"))
@@ -137,14 +164,17 @@ module Aws::KinesisVideoArchivedMedia
137
164
  InvalidCodecPrivateDataException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
138
165
  InvalidCodecPrivateDataException.struct_class = Types::InvalidCodecPrivateDataException
139
166
 
167
+ InvalidMediaFrameException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
168
+ InvalidMediaFrameException.struct_class = Types::InvalidMediaFrameException
169
+
140
170
  ListFragmentsInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
141
171
  ListFragmentsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: PageLimit, location_name: "MaxResults"))
142
- ListFragmentsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
172
+ ListFragmentsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
143
173
  ListFragmentsInput.add_member(:fragment_selector, Shapes::ShapeRef.new(shape: FragmentSelector, location_name: "FragmentSelector"))
144
174
  ListFragmentsInput.struct_class = Types::ListFragmentsInput
145
175
 
146
176
  ListFragmentsOutput.add_member(:fragments, Shapes::ShapeRef.new(shape: FragmentList, location_name: "Fragments"))
147
- ListFragmentsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
177
+ ListFragmentsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
148
178
  ListFragmentsOutput.struct_class = Types::ListFragmentsOutput
149
179
 
150
180
  MissingCodecPrivateDataException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -183,6 +213,23 @@ module Aws::KinesisVideoArchivedMedia
183
213
  "uid" => "kinesis-video-archived-media-2017-09-30",
184
214
  }
185
215
 
216
+ api.add_operation(:get_clip, Seahorse::Model::Operation.new.tap do |o|
217
+ o.name = "GetClip"
218
+ o.http_method = "POST"
219
+ o.http_request_uri = "/getClip"
220
+ o.input = Shapes::ShapeRef.new(shape: GetClipInput)
221
+ o.output = Shapes::ShapeRef.new(shape: GetClipOutput)
222
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
223
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
224
+ o.errors << Shapes::ShapeRef.new(shape: ClientLimitExceededException)
225
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
226
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedStreamMediaTypeException)
227
+ o.errors << Shapes::ShapeRef.new(shape: MissingCodecPrivateDataException)
228
+ o.errors << Shapes::ShapeRef.new(shape: InvalidCodecPrivateDataException)
229
+ o.errors << Shapes::ShapeRef.new(shape: InvalidMediaFrameException)
230
+ o.errors << Shapes::ShapeRef.new(shape: NoDataRetentionException)
231
+ end)
232
+
186
233
  api.add_operation(:get_dash_streaming_session_url, Seahorse::Model::Operation.new.tap do |o|
187
234
  o.name = "GetDASHStreamingSessionURL"
188
235
  o.http_method = "POST"
@@ -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:
@@ -28,6 +30,7 @@ module Aws::KinesisVideoArchivedMedia
28
30
  # * {ClientLimitExceededException}
29
31
  # * {InvalidArgumentException}
30
32
  # * {InvalidCodecPrivateDataException}
33
+ # * {InvalidMediaFrameException}
31
34
  # * {MissingCodecPrivateDataException}
32
35
  # * {NoDataRetentionException}
33
36
  # * {NotAuthorizedException}
@@ -85,6 +88,21 @@ module Aws::KinesisVideoArchivedMedia
85
88
  end
86
89
  end
87
90
 
91
+ class InvalidMediaFrameException < ServiceError
92
+
93
+ # @param [Seahorse::Client::RequestContext] context
94
+ # @param [String] message
95
+ # @param [Aws::KinesisVideoArchivedMedia::Types::InvalidMediaFrameException] data
96
+ def initialize(context, message, data = Aws::EmptyStructure.new)
97
+ super(context, message, data)
98
+ end
99
+
100
+ # @return [String]
101
+ def message
102
+ @message || @data[:message]
103
+ end
104
+ end
105
+
88
106
  class MissingCodecPrivateDataException < ServiceError
89
107
 
90
108
  # @param [Seahorse::Client::RequestContext] context
@@ -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:
@@ -6,13 +8,7 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::KinesisVideoArchivedMedia
9
- # This class provides a resource oriented interface for KinesisVideoArchivedMedia.
10
- # To create a resource object:
11
- # resource = Aws::KinesisVideoArchivedMedia::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::KinesisVideoArchivedMedia::Client.new(region: 'us-west-2')
15
- # resource = Aws::KinesisVideoArchivedMedia::Resource.new(client: client)
11
+
16
12
  class Resource
17
13
 
18
14
  # @param options ({})
@@ -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:
@@ -18,6 +20,94 @@ module Aws::KinesisVideoArchivedMedia
18
20
  #
19
21
  class ClientLimitExceededException < Struct.new(
20
22
  :message)
23
+ SENSITIVE = []
24
+ include Aws::Structure
25
+ end
26
+
27
+ # Describes the timestamp range and timestamp origin of a range of
28
+ # fragments.
29
+ #
30
+ # Fragments that have duplicate producer timestamps are deduplicated.
31
+ # This means that if producers are producing a stream of fragments with
32
+ # producer timestamps that are approximately equal to the true clock
33
+ # time, the clip will contain all of the fragments within the requested
34
+ # timestamp range. If some fragments are ingested within the same time
35
+ # range and very different points in time, only the oldest ingested
36
+ # collection of fragments are returned.
37
+ #
38
+ # @note When making an API call, you may pass ClipFragmentSelector
39
+ # data as a hash:
40
+ #
41
+ # {
42
+ # fragment_selector_type: "PRODUCER_TIMESTAMP", # required, accepts PRODUCER_TIMESTAMP, SERVER_TIMESTAMP
43
+ # timestamp_range: { # required
44
+ # start_timestamp: Time.now, # required
45
+ # end_timestamp: Time.now, # required
46
+ # },
47
+ # }
48
+ #
49
+ # @!attribute [rw] fragment_selector_type
50
+ # The origin of the timestamps to use (Server or Producer).
51
+ # @return [String]
52
+ #
53
+ # @!attribute [rw] timestamp_range
54
+ # The range of timestamps to return.
55
+ # @return [Types::ClipTimestampRange]
56
+ #
57
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-video-archived-media-2017-09-30/ClipFragmentSelector AWS API Documentation
58
+ #
59
+ class ClipFragmentSelector < Struct.new(
60
+ :fragment_selector_type,
61
+ :timestamp_range)
62
+ SENSITIVE = []
63
+ include Aws::Structure
64
+ end
65
+
66
+ # The range of timestamps for which to return fragments.
67
+ #
68
+ # The values in the ClipTimestampRange are `inclusive`. Fragments that
69
+ # begin before the start time but continue past it, or fragments that
70
+ # begin before the end time but continue past it, are included in the
71
+ # session.
72
+ #
73
+ # @note When making an API call, you may pass ClipTimestampRange
74
+ # data as a hash:
75
+ #
76
+ # {
77
+ # start_timestamp: Time.now, # required
78
+ # end_timestamp: Time.now, # required
79
+ # }
80
+ #
81
+ # @!attribute [rw] start_timestamp
82
+ # The starting timestamp in the range of timestamps for which to
83
+ # return fragments.
84
+ #
85
+ # This value is inclusive. Fragments that start before the
86
+ # `StartTimestamp` and continue past it are included in the session.
87
+ # If `FragmentSelectorType` is `SERVER_TIMESTAMP`, the
88
+ # `StartTimestamp` must be later than the stream head.
89
+ # @return [Time]
90
+ #
91
+ # @!attribute [rw] end_timestamp
92
+ # The end of the timestamp range for the requested media.
93
+ #
94
+ # This value must be within 3 hours of the specified `StartTimestamp`,
95
+ # and it must be later than the `StartTimestamp` value. If
96
+ # `FragmentSelectorType` for the request is `SERVER_TIMESTAMP`, this
97
+ # value must be in the past.
98
+ #
99
+ # This value is inclusive. The `EndTimestamp` is compared to the
100
+ # (starting) timestamp of the fragment. Fragments that start before
101
+ # the `EndTimestamp` value and continue past it are included in the
102
+ # session.
103
+ # @return [Time]
104
+ #
105
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-video-archived-media-2017-09-30/ClipTimestampRange AWS API Documentation
106
+ #
107
+ class ClipTimestampRange < Struct.new(
108
+ :start_timestamp,
109
+ :end_timestamp)
110
+ SENSITIVE = []
21
111
  include Aws::Structure
22
112
  end
23
113
 
@@ -78,6 +168,7 @@ module Aws::KinesisVideoArchivedMedia
78
168
  class DASHFragmentSelector < Struct.new(
79
169
  :fragment_selector_type,
80
170
  :timestamp_range)
171
+ SENSITIVE = []
81
172
  include Aws::Structure
82
173
  end
83
174
 
@@ -140,6 +231,7 @@ module Aws::KinesisVideoArchivedMedia
140
231
  class DASHTimestampRange < Struct.new(
141
232
  :start_timestamp,
142
233
  :end_timestamp)
234
+ SENSITIVE = []
143
235
  include Aws::Structure
144
236
  end
145
237
 
@@ -176,6 +268,7 @@ module Aws::KinesisVideoArchivedMedia
176
268
  :producer_timestamp,
177
269
  :server_timestamp,
178
270
  :fragment_length_in_milliseconds)
271
+ SENSITIVE = []
179
272
  include Aws::Structure
180
273
  end
181
274
 
@@ -223,6 +316,71 @@ module Aws::KinesisVideoArchivedMedia
223
316
  class FragmentSelector < Struct.new(
224
317
  :fragment_selector_type,
225
318
  :timestamp_range)
319
+ SENSITIVE = []
320
+ include Aws::Structure
321
+ end
322
+
323
+ # @note When making an API call, you may pass GetClipInput
324
+ # data as a hash:
325
+ #
326
+ # {
327
+ # stream_name: "StreamName",
328
+ # stream_arn: "ResourceARN",
329
+ # clip_fragment_selector: { # required
330
+ # fragment_selector_type: "PRODUCER_TIMESTAMP", # required, accepts PRODUCER_TIMESTAMP, SERVER_TIMESTAMP
331
+ # timestamp_range: { # required
332
+ # start_timestamp: Time.now, # required
333
+ # end_timestamp: Time.now, # required
334
+ # },
335
+ # },
336
+ # }
337
+ #
338
+ # @!attribute [rw] stream_name
339
+ # The name of the stream for which to retrieve the media clip.
340
+ #
341
+ # You must specify either the StreamName or the StreamARN.
342
+ # @return [String]
343
+ #
344
+ # @!attribute [rw] stream_arn
345
+ # The Amazon Resource Name (ARN) of the stream for which to retrieve
346
+ # the media clip.
347
+ #
348
+ # You must specify either the StreamName or the StreamARN.
349
+ # @return [String]
350
+ #
351
+ # @!attribute [rw] clip_fragment_selector
352
+ # The time range of the requested clip and the source of the
353
+ # timestamps.
354
+ # @return [Types::ClipFragmentSelector]
355
+ #
356
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-video-archived-media-2017-09-30/GetClipInput AWS API Documentation
357
+ #
358
+ class GetClipInput < Struct.new(
359
+ :stream_name,
360
+ :stream_arn,
361
+ :clip_fragment_selector)
362
+ SENSITIVE = []
363
+ include Aws::Structure
364
+ end
365
+
366
+ # @!attribute [rw] content_type
367
+ # The content type of the media in the requested clip.
368
+ # @return [String]
369
+ #
370
+ # @!attribute [rw] payload
371
+ # Traditional MP4 file that contains the media clip from the specified
372
+ # video stream. The output will contain the first 100 MB or the first
373
+ # 200 fragments from the specified start timestamp. For more
374
+ # information, see [Kinesis Video Streams Limits](Kinesis Video
375
+ # Streams Limits).
376
+ # @return [IO]
377
+ #
378
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-video-archived-media-2017-09-30/GetClipOutput AWS API Documentation
379
+ #
380
+ class GetClipOutput < Struct.new(
381
+ :content_type,
382
+ :payload)
383
+ SENSITIVE = []
226
384
  include Aws::Structure
227
385
  end
228
386
 
@@ -412,6 +570,7 @@ module Aws::KinesisVideoArchivedMedia
412
570
  :dash_fragment_selector,
413
571
  :expires,
414
572
  :max_manifest_fragment_results)
573
+ SENSITIVE = []
415
574
  include Aws::Structure
416
575
  end
417
576
 
@@ -424,6 +583,7 @@ module Aws::KinesisVideoArchivedMedia
424
583
  #
425
584
  class GetDASHStreamingSessionURLOutput < Struct.new(
426
585
  :dash_streaming_session_url)
586
+ SENSITIVE = []
427
587
  include Aws::Structure
428
588
  end
429
589
 
@@ -649,6 +809,7 @@ module Aws::KinesisVideoArchivedMedia
649
809
  :display_fragment_timestamp,
650
810
  :expires,
651
811
  :max_media_playlist_fragment_results)
812
+ SENSITIVE = []
652
813
  include Aws::Structure
653
814
  end
654
815
 
@@ -661,6 +822,7 @@ module Aws::KinesisVideoArchivedMedia
661
822
  #
662
823
  class GetHLSStreamingSessionURLOutput < Struct.new(
663
824
  :hls_streaming_session_url)
825
+ SENSITIVE = []
664
826
  include Aws::Structure
665
827
  end
666
828
 
@@ -686,6 +848,7 @@ module Aws::KinesisVideoArchivedMedia
686
848
  class GetMediaForFragmentListInput < Struct.new(
687
849
  :stream_name,
688
850
  :fragments)
851
+ SENSITIVE = []
689
852
  include Aws::Structure
690
853
  end
691
854
 
@@ -730,6 +893,7 @@ module Aws::KinesisVideoArchivedMedia
730
893
  class GetMediaForFragmentListOutput < Struct.new(
731
894
  :content_type,
732
895
  :payload)
896
+ SENSITIVE = []
733
897
  include Aws::Structure
734
898
  end
735
899
 
@@ -790,6 +954,7 @@ module Aws::KinesisVideoArchivedMedia
790
954
  class HLSFragmentSelector < Struct.new(
791
955
  :fragment_selector_type,
792
956
  :timestamp_range)
957
+ SENSITIVE = []
793
958
  include Aws::Structure
794
959
  end
795
960
 
@@ -852,6 +1017,7 @@ module Aws::KinesisVideoArchivedMedia
852
1017
  class HLSTimestampRange < Struct.new(
853
1018
  :start_timestamp,
854
1019
  :end_timestamp)
1020
+ SENSITIVE = []
855
1021
  include Aws::Structure
856
1022
  end
857
1023
 
@@ -865,6 +1031,7 @@ module Aws::KinesisVideoArchivedMedia
865
1031
  #
866
1032
  class InvalidArgumentException < Struct.new(
867
1033
  :message)
1034
+ SENSITIVE = []
868
1035
  include Aws::Structure
869
1036
  end
870
1037
 
@@ -878,6 +1045,21 @@ module Aws::KinesisVideoArchivedMedia
878
1045
  #
879
1046
  class InvalidCodecPrivateDataException < Struct.new(
880
1047
  :message)
1048
+ SENSITIVE = []
1049
+ include Aws::Structure
1050
+ end
1051
+
1052
+ # One or more frames in the requested clip could not be parsed based on
1053
+ # the specified codec.
1054
+ #
1055
+ # @!attribute [rw] message
1056
+ # @return [String]
1057
+ #
1058
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-video-archived-media-2017-09-30/InvalidMediaFrameException AWS API Documentation
1059
+ #
1060
+ class InvalidMediaFrameException < Struct.new(
1061
+ :message)
1062
+ SENSITIVE = []
881
1063
  include Aws::Structure
882
1064
  end
883
1065
 
@@ -887,7 +1069,7 @@ module Aws::KinesisVideoArchivedMedia
887
1069
  # {
888
1070
  # stream_name: "StreamName", # required
889
1071
  # max_results: 1,
890
- # next_token: "String",
1072
+ # next_token: "NextToken",
891
1073
  # fragment_selector: {
892
1074
  # fragment_selector_type: "PRODUCER_TIMESTAMP", # required, accepts PRODUCER_TIMESTAMP, SERVER_TIMESTAMP
893
1075
  # timestamp_range: { # required
@@ -925,6 +1107,7 @@ module Aws::KinesisVideoArchivedMedia
925
1107
  :max_results,
926
1108
  :next_token,
927
1109
  :fragment_selector)
1110
+ SENSITIVE = []
928
1111
  include Aws::Structure
929
1112
  end
930
1113
 
@@ -945,6 +1128,7 @@ module Aws::KinesisVideoArchivedMedia
945
1128
  class ListFragmentsOutput < Struct.new(
946
1129
  :fragments,
947
1130
  :next_token)
1131
+ SENSITIVE = []
948
1132
  include Aws::Structure
949
1133
  end
950
1134
 
@@ -958,6 +1142,7 @@ module Aws::KinesisVideoArchivedMedia
958
1142
  #
959
1143
  class MissingCodecPrivateDataException < Struct.new(
960
1144
  :message)
1145
+ SENSITIVE = []
961
1146
  include Aws::Structure
962
1147
  end
963
1148
 
@@ -971,6 +1156,7 @@ module Aws::KinesisVideoArchivedMedia
971
1156
  #
972
1157
  class NoDataRetentionException < Struct.new(
973
1158
  :message)
1159
+ SENSITIVE = []
974
1160
  include Aws::Structure
975
1161
  end
976
1162
 
@@ -984,6 +1170,7 @@ module Aws::KinesisVideoArchivedMedia
984
1170
  #
985
1171
  class NotAuthorizedException < Struct.new(
986
1172
  :message)
1173
+ SENSITIVE = []
987
1174
  include Aws::Structure
988
1175
  end
989
1176
 
@@ -1004,6 +1191,7 @@ module Aws::KinesisVideoArchivedMedia
1004
1191
  #
1005
1192
  class ResourceNotFoundException < Struct.new(
1006
1193
  :message)
1194
+ SENSITIVE = []
1007
1195
  include Aws::Structure
1008
1196
  end
1009
1197
 
@@ -1032,6 +1220,7 @@ module Aws::KinesisVideoArchivedMedia
1032
1220
  class TimestampRange < Struct.new(
1033
1221
  :start_timestamp,
1034
1222
  :end_timestamp)
1223
+ SENSITIVE = []
1035
1224
  include Aws::Structure
1036
1225
  end
1037
1226
 
@@ -1048,6 +1237,7 @@ module Aws::KinesisVideoArchivedMedia
1048
1237
  #
1049
1238
  class UnsupportedStreamMediaTypeException < Struct.new(
1050
1239
  :message)
1240
+ SENSITIVE = []
1051
1241
  include Aws::Structure
1052
1242
  end
1053
1243
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kinesisvideoarchivedmedia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.26.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-03-09 00:00:00.000000000 Z
11
+ date: 2020-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - Kinesis Video Archived Media