lib/aws-sdk-kinesisvideoarchivedmedia/client.rb in aws-sdk-kinesisvideoarchivedmedia-1.30.0 vs lib/aws-sdk-kinesisvideoarchivedmedia/client.rb in aws-sdk-kinesisvideoarchivedmedia-1.31.0
- old
+ new
@@ -332,11 +332,11 @@
#
# Both the StreamName and the StreamARN parameters are optional, but you
# must specify either the StreamName or the StreamARN when invoking this
# API operation.
#
- # As a prerequsite to using GetCLip API, you must obtain an endpoint
+ # As a prerequisite to using GetCLip API, you must obtain an endpoint
# using `GetDataEndpoint`, specifying GET\_CLIP for` the APIName
# parameter. </p> An Amazon Kinesis video stream has the following
# requirements for providing data through MP4: The media must contain
# h.264 or h.265 encoded video and, optionally, AAC or G.711 encoded
# audio. Specifically, the codec ID of track 1 should be V_MPEG/ISO/AVC
@@ -1209,13 +1209,19 @@
#
#
# [1]: https://docs.aws.amazon.com/cli/latest/reference/
# [2]: https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/CommonErrors.html
#
- # @option params [required, String] :stream_name
- # The name of the stream from which to retrieve fragment media.
+ # @option params [String] :stream_name
+ # The name of the stream from which to retrieve fragment media. Specify
+ # either this parameter or the `StreamARN` parameter.
#
+ # @option params [String] :stream_arn
+ # The Amazon Resource Name (ARN) of the stream from which to retrieve
+ # fragment media. Specify either this parameter or the `StreamName`
+ # parameter.
+ #
# @option params [required, Array<String>] :fragments
# A list of the numbers of fragments for which to retrieve media. You
# retrieve these values with ListFragments.
#
# @return [Types::GetMediaForFragmentListOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -1224,11 +1230,12 @@
# * {Types::GetMediaForFragmentListOutput#payload #payload} => IO
#
# @example Request syntax with placeholder values
#
# resp = client.get_media_for_fragment_list({
- # stream_name: "StreamName", # required
+ # stream_name: "StreamName",
+ # stream_arn: "ResourceARN",
# fragments: ["FragmentNumberString"], # required
# })
#
# @example Response structure
#
@@ -1283,13 +1290,19 @@
#
#
# [1]: https://docs.aws.amazon.com/cli/latest/reference/
# [2]: https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/CommonErrors.html
#
- # @option params [required, String] :stream_name
- # The name of the stream from which to retrieve a fragment list.
+ # @option params [String] :stream_name
+ # The name of the stream from which to retrieve a fragment list. Specify
+ # either this parameter or the `StreamARN` parameter.
#
+ # @option params [String] :stream_arn
+ # The Amazon Resource Name (ARN) of the stream from which to retrieve a
+ # fragment list. Specify either this parameter or the `StreamName`
+ # parameter.
+ #
# @option params [Integer] :max_results
# The total number of fragments to return. If the total number of
# fragments available is more than the value specified in `max-results`,
# then a ListFragmentsOutput$NextToken is provided in the output that
# you can use to resume pagination.
@@ -1310,11 +1323,12 @@
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
#
# @example Request syntax with placeholder values
#
# resp = client.list_fragments({
- # stream_name: "StreamName", # required
+ # stream_name: "StreamName",
+ # stream_arn: "ResourceARN",
# max_results: 1,
# next_token: "NextToken",
# fragment_selector: {
# fragment_selector_type: "PRODUCER_TIMESTAMP", # required, accepts PRODUCER_TIMESTAMP, SERVER_TIMESTAMP
# timestamp_range: { # required
@@ -1354,10 +1368,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-kinesisvideoarchivedmedia'
- context[:gem_version] = '1.30.0'
+ context[:gem_version] = '1.31.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated