Client library for Amazon Kinesis Video Streams
npm install --save @datafire/amazonaws_kinesisvideo
let amazonaws_kinesisvideo = require('@datafire/amazonaws_kinesisvideo').create({
accessKeyId: "",
secretAccessKey: "",
region: ""
});
.then(data => {
console.log(data);
});
amazonaws_kinesisvideo.ListTagsForResource({
"ResourceARN": ""
}, context)
- input
object
- NextToken
string
: If you specify this parameter and the result of aListTagsForResource
call is truncated, the response includes a token that you can use in the next request to fetch the next batch of tags. - ResourceARN required
string
: The Amazon Resource Name (ARN) of the signaling channel for which you want to list tags.
- NextToken
- output ListTagsForResourceOutput
amazonaws_kinesisvideo.TagResource({
"ResourceARN": "",
"Tags": []
}, context)
- input
object
- ResourceARN required
string
: The Amazon Resource Name (ARN) of the signaling channel to which you want to add tags. - Tags required
array
: A list of tags to associate with the specified signaling channel. Each tag is a key-value pair.- items Tag
- ResourceARN required
- output TagResourceOutput
amazonaws_kinesisvideo.UntagResource({
"ResourceARN": "",
"TagKeyList": []
}, context)
- input
object
- ResourceARN required
string
: The Amazon Resource Name (ARN) of the signaling channel from which you want to remove tags. - TagKeyList required
array
: A list of the keys of the tags that you want to remove.- items TagKey
- ResourceARN required
- output UntagResourceOutput
amazonaws_kinesisvideo.CreateSignalingChannel({
"ChannelName": ""
}, context)
- input
object
- ChannelName required
string
: A name for the signaling channel that you are creating. It must be unique for each AWS account and AWS Region. - ChannelType
string
(values: SINGLE_MASTER): A type of the signaling channel that you are creating. Currently,SINGLE_MASTER
is the only supported channel type. - SingleMasterConfiguration
object
: A structure that contains the configuration for theSINGLE_MASTER
channel type.- MessageTtlSeconds
- Tags
array
: A set of tags (key-value pairs) that you want to associate with this channel.- items Tag
- ChannelName required
- output CreateSignalingChannelOutput
amazonaws_kinesisvideo.CreateStream({
"StreamName": ""
}, context)
- input
object
- DataRetentionInHours
integer
:The number of hours that you want to retain the data in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.
The default value is 0, indicating that the stream does not persist data.
When the
DataRetentionInHours
value is 0, consumers can still consume the fragments that remain in the service host buffer, which has a retention time limit of 5 minutes and a retention memory limit of 200 MB. Fragments are removed from the buffer when either limit is reached. - DeviceName
string
:The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
- KmsKeyId
string
:The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Streams to use to encrypt stream data.
If no key ID is specified, the default, Kinesis Video-managed key (
aws/kinesisvideo
) is used.For more information, see DescribeKey.
- MediaType
string
:The media type of the stream. Consumers of the stream can use this information when processing the stream. For more information about media types, see Media Types. If you choose to specify the
MediaType
, see Naming Requirements for guidelines.Example valid values include "video/h264" and "video/h264,audio/aac".
This parameter is optional; the default value is
null
(or empty in JSON). - StreamName required
string
:A name for the stream that you are creating.
The stream name is an identifier for the stream, and must be unique for each account and region.
- Tags
object
: A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
- DataRetentionInHours
- output CreateStreamOutput
amazonaws_kinesisvideo.DeleteSignalingChannel({
"ChannelARN": ""
}, context)
- input
object
- ChannelARN required
string
: The Amazon Resource Name (ARN) of the signaling channel that you want to delete. - CurrentVersion
string
: The current version of the signaling channel that you want to delete. You can obtain the current version by invoking theDescribeSignalingChannel
orListSignalingChannels
API operations.
- ChannelARN required
- output DeleteSignalingChannelOutput
amazonaws_kinesisvideo.DeleteStream({
"StreamARN": ""
}, context)
- input
object
- CurrentVersion
string
:Optional: The version of the stream that you want to delete.
Specify the version as a safeguard to ensure that your are deleting the correct stream. To get the stream version, use the
DescribeStream
API.If not specified, only the
CreationTime
is checked before deleting the stream. - StreamARN required
string
: The Amazon Resource Name (ARN) of the stream that you want to delete.
- CurrentVersion
- output DeleteStreamOutput
amazonaws_kinesisvideo.DescribeSignalingChannel({}, context)
- input
object
- ChannelARN
string
: The ARN of the signaling channel that you want to describe. - ChannelName
string
: The name of the signaling channel that you want to describe.
- ChannelARN
amazonaws_kinesisvideo.DescribeStream({}, context)
- input
object
- StreamARN
string
: The Amazon Resource Name (ARN) of the stream. - StreamName
string
: The name of the stream.
- StreamARN
- output DescribeStreamOutput
amazonaws_kinesisvideo.GetDataEndpoint({
"APIName": ""
}, context)
- input
object
- APIName required
string
(values: PUT_MEDIA, GET_MEDIA, LIST_FRAGMENTS, GET_MEDIA_FOR_FRAGMENT_LIST, GET_HLS_STREAMING_SESSION_URL, GET_DASH_STREAMING_SESSION_URL, GET_CLIP): The name of the API action for which to get an endpoint. - StreamARN
string
: The Amazon Resource Name (ARN) of the stream that you want to get the endpoint for. You must specify either this parameter or aStreamName
in the request. - StreamName
string
: The name of the stream that you want to get the endpoint for. You must specify either this parameter or aStreamARN
in the request.
- APIName required
- output GetDataEndpointOutput
amazonaws_kinesisvideo.GetSignalingChannelEndpoint({
"ChannelARN": ""
}, context)
- input
object
- ChannelARN required
string
: The Amazon Resource Name (ARN) of the signalling channel for which you want to get an endpoint. - SingleMasterChannelEndpointConfiguration
object
: An object that contains the endpoint configuration for theSINGLE_MASTER
channel type.- Protocols
- items ChannelProtocol
- Role
- Protocols
- ChannelARN required
amazonaws_kinesisvideo.ListSignalingChannels({}, context)
- input
object
- MaxResults
string
- NextToken
string
- ChannelNameCondition
object
: An optional input parameter for theListSignalingChannels
API. When this parameter is specified while invokingListSignalingChannels
, the API returns only the channels that satisfy a condition specified inChannelNameCondition
.- ComparisonOperator
- ComparisonValue
- MaxResults
integer
: The maximum number of channels to return in the response. The default is 500. - NextToken
string
: If you specify this parameter, when the result of aListSignalingChannels
operation is truncated, the call returns theNextToken
in the response. To get another batch of channels, provide this token in your next request.
- MaxResults
- output ListSignalingChannelsOutput
amazonaws_kinesisvideo.ListStreams({}, context)
- input
object
- MaxResults
string
- NextToken
string
- MaxResults
integer
: The maximum number of streams to return in the response. The default is 10,000. - NextToken
string
: If you specify this parameter, when the result of aListStreams
operation is truncated, the call returns theNextToken
in the response. To get another batch of streams, provide this token in your next request. - StreamNameCondition
object
: Specifies the condition that streams must satisfy to be returned when you list streams (see theListStreams
API). A condition has a comparison operation and a value. Currently, you can specify only theBEGINS_WITH
operator, which finds streams whose names start with a given prefix.- ComparisonOperator
- ComparisonValue
- MaxResults
- output ListStreamsOutput
amazonaws_kinesisvideo.ListTagsForStream({}, context)
- input
object
- NextToken
string
: If you specify this parameter and the result of aListTagsForStream
call is truncated, the response includes a token that you can use in the next request to fetch the next batch of tags. - StreamARN
string
: The Amazon Resource Name (ARN) of the stream that you want to list tags for. - StreamName
string
: The name of the stream that you want to list tags for.
- NextToken
- output ListTagsForStreamOutput
amazonaws_kinesisvideo.TagStream({
"Tags": {}
}, context)
- input
object
- StreamARN
string
: The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to. - StreamName
string
: The name of the stream that you want to add the tag or tags to. - Tags required
object
: A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
- StreamARN
- output TagStreamOutput
amazonaws_kinesisvideo.UntagStream({
"TagKeyList": []
}, context)
- input
object
- StreamARN
string
: The Amazon Resource Name (ARN) of the stream that you want to remove tags from. - StreamName
string
: The name of the stream that you want to remove tags from. - TagKeyList required
array
: A list of the keys of the tags that you want to remove.- items TagKey
- StreamARN
- output UntagStreamOutput
amazonaws_kinesisvideo.UpdateDataRetention({
"CurrentVersion": "",
"Operation": "",
"DataRetentionChangeInHours": 0
}, context)
- input
object
- CurrentVersion required
string
: The version of the stream whose retention period you want to change. To get the version, call either theDescribeStream
or theListStreams
API. - DataRetentionChangeInHours required
integer
: The retention period, in hours. The value you specify replaces the current value. The maximum value for this parameter is 87600 (ten years). - Operation required
string
(values: INCREASE_DATA_RETENTION, DECREASE_DATA_RETENTION): Indicates whether you want to increase or decrease the retention period. - StreamARN
string
: The Amazon Resource Name (ARN) of the stream whose retention period you want to change. - StreamName
string
: The name of the stream whose retention period you want to change.
- CurrentVersion required
- output UpdateDataRetentionOutput
amazonaws_kinesisvideo.UpdateSignalingChannel({
"ChannelARN": "",
"CurrentVersion": ""
}, context)
- input
object
- ChannelARN required
string
: The Amazon Resource Name (ARN) of the signaling channel that you want to update. - CurrentVersion required
string
: The current version of the signaling channel that you want to update. - SingleMasterConfiguration
object
: A structure that contains the configuration for theSINGLE_MASTER
channel type.- MessageTtlSeconds
- ChannelARN required
- output UpdateSignalingChannelOutput
amazonaws_kinesisvideo.UpdateStream({
"CurrentVersion": ""
}, context)
- input
object
- CurrentVersion required
string
: The version of the stream whose metadata you want to update. - DeviceName
string
:The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
- MediaType
string
:The stream's media type. Use
MediaType
to specify the type of content that the stream contains to the consumers of the stream. For more information about media types, see Media Types. If you choose to specify theMediaType
, see Naming Requirements.To play video on the console, you must specify the correct video type. For example, if the video in the stream is H.264, specify
video/h264
as theMediaType
. - StreamARN
string
: The ARN of the stream whose metadata you want to update. - StreamName
string
:The name of the stream whose metadata you want to update.
The stream name is an identifier for the stream, and must be unique for each account and region.
- CurrentVersion required
- output UpdateStreamOutput
- APIName
string
(values: PUT_MEDIA, GET_MEDIA, LIST_FRAGMENTS, GET_MEDIA_FOR_FRAGMENT_LIST, GET_HLS_STREAMING_SESSION_URL, GET_DASH_STREAMING_SESSION_URL, GET_CLIP)
- ChannelInfo
object
: A structure that encapsulates a signaling channel's metadata and properties.- ChannelARN
- ChannelName
- ChannelStatus
- ChannelType
- CreationTime
- SingleMasterConfiguration
- MessageTtlSeconds
- Version
- ChannelInfoList
array
- items ChannelInfo
- ChannelName
string
- ChannelNameCondition
object
: An optional input parameter for theListSignalingChannels
API. When this parameter is specified while invokingListSignalingChannels
, the API returns only the channels that satisfy a condition specified inChannelNameCondition
.- ComparisonOperator
- ComparisonValue
- ChannelProtocol
string
(values: WSS, HTTPS)
- ChannelRole
string
(values: MASTER, VIEWER)
- ChannelType
string
(values: SINGLE_MASTER)
- ComparisonOperator
string
(values: BEGINS_WITH)
- CreateSignalingChannelInput
object
- ChannelName required
- ChannelType
- SingleMasterConfiguration
- MessageTtlSeconds
- Tags
- items Tag
- CreateSignalingChannelOutput
object
- ChannelARN
- CreateStreamInput
object
- DataRetentionInHours
- DeviceName
- KmsKeyId
- MediaType
- StreamName required
- Tags
- CreateStreamOutput
object
- StreamARN
- DataEndpoint
string
- DataRetentionChangeInHours
integer
- DataRetentionInHours
integer
- DeleteSignalingChannelInput
object
- ChannelARN required
- CurrentVersion
- DeleteSignalingChannelOutput
object
- DeleteStreamInput
object
- CurrentVersion
- StreamARN required
- DeleteStreamOutput
object
- DescribeSignalingChannelInput
object
- ChannelARN
- ChannelName
- DescribeSignalingChannelOutput
object
- ChannelInfo
- ChannelARN
- ChannelName
- ChannelStatus
- ChannelType
- CreationTime
- SingleMasterConfiguration
- MessageTtlSeconds
- Version
- ChannelInfo
- DescribeStreamInput
object
- StreamARN
- StreamName
- DescribeStreamOutput
object
- StreamInfo
- CreationTime
- DataRetentionInHours
- DeviceName
- KmsKeyId
- MediaType
- Status
- StreamARN
- StreamName
- Version
- StreamInfo
- DeviceName
string
- GetDataEndpointInput
object
- APIName required
- StreamARN
- StreamName
- GetDataEndpointOutput
object
- DataEndpoint
- GetSignalingChannelEndpointInput
object
- ChannelARN required
- SingleMasterChannelEndpointConfiguration
- Protocols
- items ChannelProtocol
- Role
- Protocols
- GetSignalingChannelEndpointOutput
object
- ResourceEndpointList
- items ResourceEndpointListItem
- ResourceEndpointList
- KmsKeyId
string
- ListOfProtocols
array
- items ChannelProtocol
- ListSignalingChannelsInput
object
- ChannelNameCondition
- ComparisonOperator
- ComparisonValue
- MaxResults
- NextToken
- ChannelNameCondition
- ListSignalingChannelsOutput
object
- ChannelInfoList
- items ChannelInfo
- NextToken
- ChannelInfoList
- ListStreamsInput
object
- MaxResults
- NextToken
- StreamNameCondition
- ComparisonOperator
- ComparisonValue
- ListStreamsInputLimit
integer
- ListStreamsOutput
object
- NextToken
- StreamInfoList
- items StreamInfo
- ListTagsForResourceInput
object
- NextToken
- ResourceARN required
- ListTagsForResourceOutput
object
- NextToken
- Tags
- ListTagsForStreamInput
object
- NextToken
- StreamARN
- StreamName
- ListTagsForStreamOutput
object
- NextToken
- Tags
- MediaType
string
- MessageTtlSeconds
integer
- NextToken
string
- ResourceARN
string
- ResourceEndpoint
string
- ResourceEndpointList
array
- items ResourceEndpointListItem
- ResourceEndpointListItem
object
: An object that describes the endpoint of the signaling channel returned by theGetSignalingChannelEndpoint
API.- Protocol
- ResourceEndpoint
- ResourceTags
object
- SingleMasterChannelEndpointConfiguration
object
: An object that contains the endpoint configuration for theSINGLE_MASTER
channel type.- Protocols
- items ChannelProtocol
- Role
- Protocols
- SingleMasterConfiguration
object
: A structure that contains the configuration for theSINGLE_MASTER
channel type.- MessageTtlSeconds
- Status
string
(values: CREATING, ACTIVE, UPDATING, DELETING)
- StreamInfo
object
: An object describing a Kinesis video stream.- CreationTime
- DataRetentionInHours
- DeviceName
- KmsKeyId
- MediaType
- Status
- StreamARN
- StreamName
- Version
- StreamInfoList
array
- items StreamInfo
- StreamName
string
- StreamNameCondition
object
: Specifies the condition that streams must satisfy to be returned when you list streams (see theListStreams
API). A condition has a comparison operation and a value. Currently, you can specify only theBEGINS_WITH
operator, which finds streams whose names start with a given prefix.- ComparisonOperator
- ComparisonValue
- Tag
object
: A key and value pair that is associated with the specified signaling channel.- Key required
- Value required
- TagKey
string
- TagKeyList
array
- items TagKey
- TagList
array
- items Tag
- TagOnCreateList
array
- items Tag
- TagResourceInput
object
- ResourceARN required
- Tags required
- items Tag
- TagResourceOutput
object
- TagStreamInput
object
- StreamARN
- StreamName
- Tags required
- TagStreamOutput
object
- TagValue
string
- Timestamp
string
- UntagResourceInput
object
- ResourceARN required
- TagKeyList required
- items TagKey
- UntagResourceOutput
object
- UntagStreamInput
object
- StreamARN
- StreamName
- TagKeyList required
- items TagKey
- UntagStreamOutput
object
- UpdateDataRetentionInput
object
- CurrentVersion required
- DataRetentionChangeInHours required
- Operation required
- StreamARN
- StreamName
- UpdateDataRetentionOperation
string
(values: INCREASE_DATA_RETENTION, DECREASE_DATA_RETENTION)
- UpdateDataRetentionOutput
object
- UpdateSignalingChannelInput
object
- ChannelARN required
- CurrentVersion required
- SingleMasterConfiguration
- MessageTtlSeconds
- UpdateSignalingChannelOutput
object
- UpdateStreamInput
object
- CurrentVersion required
- DeviceName
- MediaType
- StreamARN
- StreamName
- UpdateStreamOutput
object
- Version
string