public class AWSKinesisVideoClient extends AmazonWebServiceClient implements AWSKinesisVideo
LOGGING_AWS_REQUEST_METRIC
Constructor and Description |
---|
AWSKinesisVideoClient()
Deprecated.
|
AWSKinesisVideoClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on AWSKinesisVideo
using the specified AWS account credentials.
|
AWSKinesisVideoClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AWSKinesisVideo
using the specified AWS account credentials and client configuration
options.
|
AWSKinesisVideoClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on AWSKinesisVideo
using the specified AWS account credentials provider.
|
AWSKinesisVideoClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AWSKinesisVideo
using the specified AWS account credentials provider and client
configuration options.
|
AWSKinesisVideoClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
HttpClient httpClient)
Constructs a new client to invoke service methods on AWSKinesisVideo
using the specified AWS account credentials provider, client
configuration options and request metric collector.
|
AWSKinesisVideoClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
Deprecated.
|
AWSKinesisVideoClient(ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
CreateSignalingChannelResult |
createSignalingChannel(CreateSignalingChannelRequest createSignalingChannelRequest)
Creates a signaling channel.
|
CreateStreamResult |
createStream(CreateStreamRequest createStreamRequest)
Creates a new Kinesis video stream.
|
DeleteSignalingChannelResult |
deleteSignalingChannel(DeleteSignalingChannelRequest deleteSignalingChannelRequest)
Deletes a specified signaling channel.
|
DeleteStreamResult |
deleteStream(DeleteStreamRequest deleteStreamRequest)
Deletes a Kinesis video stream and the data contained in the stream.
|
DescribeSignalingChannelResult |
describeSignalingChannel(DescribeSignalingChannelRequest describeSignalingChannelRequest)
Returns the most current information about the signaling channel.
|
DescribeStreamResult |
describeStream(DescribeStreamRequest describeStreamRequest)
Returns the most current information about the specified stream.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Deprecated.
ResponseMetadata cache can hold up to 50 requests and
responses in memory and will cause memory issue. This method
now always returns null.
|
GetDataEndpointResult |
getDataEndpoint(GetDataEndpointRequest getDataEndpointRequest)
Gets an endpoint for a specified stream for either reading or writing.
|
GetSignalingChannelEndpointResult |
getSignalingChannelEndpoint(GetSignalingChannelEndpointRequest getSignalingChannelEndpointRequest)
Provides an endpoint for the specified signaling channel to send and
receive messages.
|
ListSignalingChannelsResult |
listSignalingChannels(ListSignalingChannelsRequest listSignalingChannelsRequest)
Returns an array of
ChannelInfo objects. |
ListStreamsResult |
listStreams(ListStreamsRequest listStreamsRequest)
Returns an array of
StreamInfo objects. |
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of tags associated with the specified signaling channel.
|
ListTagsForStreamResult |
listTagsForStream(ListTagsForStreamRequest listTagsForStreamRequest)
Returns a list of tags associated with the specified stream.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Adds one or more tags to a signaling channel.
|
TagStreamResult |
tagStream(TagStreamRequest tagStreamRequest)
Adds one or more tags to a stream.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes one or more tags from a signaling channel.
|
UntagStreamResult |
untagStream(UntagStreamRequest untagStreamRequest)
Removes one or more tags from a stream.
|
UpdateDataRetentionResult |
updateDataRetention(UpdateDataRetentionRequest updateDataRetentionRequest)
Increases or decreases the stream's data retention period by the value
that you specify.
|
UpdateSignalingChannelResult |
updateSignalingChannel(UpdateSignalingChannelRequest updateSignalingChannelRequest)
Updates the existing signaling channel.
|
UpdateStreamResult |
updateStream(UpdateStreamRequest updateStreamRequest)
Updates stream metadata, such as the device name and media type.
|
addRequestHandler, addRequestHandler, getEndpoint, getEndpointPrefix, getRegions, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, removeRequestHandler, removeRequestHandler, setConfiguration, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
@Deprecated public AWSKinesisVideoClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
@Deprecated public AWSKinesisVideoClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling
how this client connects to AWSKinesisVideo (ex: proxy
settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AWSKinesisVideoClient(AWSCredentials awsCredentials)
The client requests are authenticated using the AWSCredentials
provided in this constructor. Static AWSCredentials can be passed for
quick testing. However, it is strongly recommended to use Amazon Cognito
vended temporary credentials for use in production. This can be achieved
by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AWSKinesisVideoClient client = new AWSKinesisVideoClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key)
to use when authenticating with AWS services.public AWSKinesisVideoClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
The client requests are authenticated using the AWSCredentials
provided in this constructor. Static AWSCredentials can be passed for
quick testing. However, it is strongly recommended to use Amazon Cognito
vended temporary credentials for use in production. This can be achieved
by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AWSKinesisVideoClient client = new AWSKinesisVideoClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key)
to use when authenticating with AWS services.clientConfiguration
- The client configuration options controlling
how this client connects to AWSKinesisVideo (ex: proxy
settings, retry counts, etc.).public AWSKinesisVideoClient(AWSCredentialsProvider awsCredentialsProvider)
The client requests are authenticated using the AWSCredentials
provided by the AWSCredentialsProvider
. Static AWSCredentials can
be passed for quick testing. However, it is strongly recommended to use
Amazon Cognito vended temporary credentials for use in production. This
can be achieved by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AWSKinesisVideoClient client = new AWSKinesisVideoClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.public AWSKinesisVideoClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
The client requests are authenticated using the AWSCredentials
provided by the AWSCredentialsProvider
. Static AWSCredentials can
be passed for quick testing. However, it is strongly recommended to use
Amazon Cognito vended temporary credentials for use in production. This
can be achieved by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AWSKinesisVideoClient client = new AWSKinesisVideoClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration
- The client configuration options controlling
how this client connects to AWSKinesisVideo (ex: proxy
settings, retry counts, etc.).@Deprecated public AWSKinesisVideoClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration
- The client configuration options controlling
how this client connects to AWSKinesisVideo (ex: proxy
settings, retry counts, etc.).requestMetricCollector
- optional request metric collectorpublic AWSKinesisVideoClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, HttpClient httpClient)
The client requests are authenticated using the AWSCredentials
provided by the AWSCredentialsProvider
. Static AWSCredentials can
be passed for quick testing. However, it is strongly recommended to use
Amazon Cognito vended temporary credentials for use in production. This
can be achieved by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AWSKinesisVideoClient client = new AWSKinesisVideoClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration
- The client configuration options controlling
how this client connects to AWSKinesisVideo (ex: proxy
settings, retry counts, etc.).httpClient
- A http clientpublic CreateSignalingChannelResult createSignalingChannel(CreateSignalingChannelRequest createSignalingChannelRequest) throws AmazonServiceException, AmazonClientException
Creates a signaling channel.
CreateSignalingChannel
is an asynchronous operation.
createSignalingChannel
in interface AWSKinesisVideo
createSignalingChannelRequest
- InvalidArgumentException
ClientLimitExceededException
AccountChannelLimitExceededException
ResourceInUseException
AccessDeniedException
TagsPerResourceExceededLimitException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public CreateStreamResult createStream(CreateStreamRequest createStreamRequest) throws AmazonServiceException, AmazonClientException
Creates a new Kinesis video stream.
When you create a new stream, Kinesis Video Streams assigns it a version number. When you change the stream's metadata, Kinesis Video Streams updates the version.
CreateStream
is an asynchronous operation.
For information about how the service works, see How it Works.
You must have permissions for the KinesisVideo:CreateStream
action.
createStream
in interface AWSKinesisVideo
createStreamRequest
- AccountStreamLimitExceededException
DeviceStreamLimitExceededException
ResourceInUseException
InvalidDeviceException
InvalidArgumentException
ClientLimitExceededException
TagsPerResourceExceededLimitException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public DeleteSignalingChannelResult deleteSignalingChannel(DeleteSignalingChannelRequest deleteSignalingChannelRequest) throws AmazonServiceException, AmazonClientException
Deletes a specified signaling channel.
DeleteSignalingChannel
is an asynchronous operation. If you
don't specify the channel's current version, the most recent version is
deleted.
deleteSignalingChannel
in interface AWSKinesisVideo
deleteSignalingChannelRequest
- InvalidArgumentException
ClientLimitExceededException
ResourceNotFoundException
AccessDeniedException
VersionMismatchException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public DeleteStreamResult deleteStream(DeleteStreamRequest deleteStreamRequest) throws AmazonServiceException, AmazonClientException
Deletes a Kinesis video stream and the data contained in the stream.
This method marks the stream for deletion, and makes the data in the stream inaccessible immediately.
To ensure that you have the latest version of the stream before deleting
it, you can specify the stream version. Kinesis Video Streams assigns a
version to each stream. When you update a stream, Kinesis Video Streams
assigns a new version number. To get the latest stream version, use the
DescribeStream
API.
This operation requires permission for the
KinesisVideo:DeleteStream
action.
deleteStream
in interface AWSKinesisVideo
deleteStreamRequest
- ClientLimitExceededException
InvalidArgumentException
ResourceNotFoundException
NotAuthorizedException
VersionMismatchException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public DescribeSignalingChannelResult describeSignalingChannel(DescribeSignalingChannelRequest describeSignalingChannelRequest) throws AmazonServiceException, AmazonClientException
Returns the most current information about the signaling channel. You must specify either the name or the ARN of the channel that you want to describe.
describeSignalingChannel
in interface AWSKinesisVideo
describeSignalingChannelRequest
- InvalidArgumentException
ClientLimitExceededException
ResourceNotFoundException
AccessDeniedException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public DescribeStreamResult describeStream(DescribeStreamRequest describeStreamRequest) throws AmazonServiceException, AmazonClientException
Returns the most current information about the specified stream. You must
specify either the StreamName
or the StreamARN
.
describeStream
in interface AWSKinesisVideo
describeStreamRequest
- InvalidArgumentException
ResourceNotFoundException
ClientLimitExceededException
NotAuthorizedException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public GetDataEndpointResult getDataEndpoint(GetDataEndpointRequest getDataEndpointRequest) throws AmazonServiceException, AmazonClientException
Gets an endpoint for a specified stream for either reading or writing.
Use this endpoint in your application to read from the specified stream
(using the GetMedia
or GetMediaForFragmentList
operations) or write to it (using the PutMedia
operation).
The returned endpoint does not have the API name appended. The client needs to add the API name to the returned endpoint.
In the request, specify the stream either by StreamName
or
StreamARN
.
getDataEndpoint
in interface AWSKinesisVideo
getDataEndpointRequest
- InvalidArgumentException
ResourceNotFoundException
ClientLimitExceededException
NotAuthorizedException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public GetSignalingChannelEndpointResult getSignalingChannelEndpoint(GetSignalingChannelEndpointRequest getSignalingChannelEndpointRequest) throws AmazonServiceException, AmazonClientException
Provides an endpoint for the specified signaling channel to send and
receive messages. This API uses the
SingleMasterChannelEndpointConfiguration
input parameter,
which consists of the Protocols
and Role
properties.
Protocols
is used to determine the communication mechanism.
For example, specifying WSS
as the protocol, results in this
API producing a secure websocket endpoint, and specifying
HTTPS
as the protocol, results in this API generating an
HTTPS endpoint.
Role
determines the messaging permissions. A
MASTER
role results in this API generating an endpoint that
a client can use to communicate with any of the viewers on the channel. A
VIEWER
role results in this API generating an endpoint that
a client can use to communicate only with a MASTER
.
getSignalingChannelEndpoint
in interface AWSKinesisVideo
getSignalingChannelEndpointRequest
- InvalidArgumentException
ClientLimitExceededException
ResourceNotFoundException
ResourceInUseException
AccessDeniedException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public ListSignalingChannelsResult listSignalingChannels(ListSignalingChannelsRequest listSignalingChannelsRequest) throws AmazonServiceException, AmazonClientException
Returns an array of ChannelInfo
objects. Each object
describes a signaling channel. To retrieve only those channels that
satisfy a specific condition, you can specify a
ChannelNameCondition
.
listSignalingChannels
in interface AWSKinesisVideo
listSignalingChannelsRequest
- InvalidArgumentException
ClientLimitExceededException
AccessDeniedException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public ListStreamsResult listStreams(ListStreamsRequest listStreamsRequest) throws AmazonServiceException, AmazonClientException
Returns an array of StreamInfo
objects. Each object
describes a stream. To retrieve only streams that satisfy a specific
condition, you can specify a StreamNameCondition
.
listStreams
in interface AWSKinesisVideo
listStreamsRequest
- ClientLimitExceededException
InvalidArgumentException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonServiceException, AmazonClientException
Returns a list of tags associated with the specified signaling channel.
listTagsForResource
in interface AWSKinesisVideo
listTagsForResourceRequest
- InvalidArgumentException
ClientLimitExceededException
ResourceNotFoundException
AccessDeniedException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public ListTagsForStreamResult listTagsForStream(ListTagsForStreamRequest listTagsForStreamRequest) throws AmazonServiceException, AmazonClientException
Returns a list of tags associated with the specified stream.
In the request, you must specify either the StreamName
or
the StreamARN
.
listTagsForStream
in interface AWSKinesisVideo
listTagsForStreamRequest
- ClientLimitExceededException
InvalidArgumentException
ResourceNotFoundException
NotAuthorizedException
InvalidResourceFormatException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public TagResourceResult tagResource(TagResourceRequest tagResourceRequest) throws AmazonServiceException, AmazonClientException
Adds one or more tags to a signaling channel. A tag is a key-value pair (the value is optional) that you can define and assign to AWS resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.
tagResource
in interface AWSKinesisVideo
tagResourceRequest
- InvalidArgumentException
ClientLimitExceededException
ResourceNotFoundException
AccessDeniedException
TagsPerResourceExceededLimitException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public TagStreamResult tagStream(TagStreamRequest tagStreamRequest) throws AmazonServiceException, AmazonClientException
Adds one or more tags to a stream. A tag is a key-value pair (the value is optional) that you can define and assign to AWS resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.
You must provide either the StreamName
or the
StreamARN
.
This operation requires permission for the
KinesisVideo:TagStream
action.
Kinesis video streams support up to 50 tags.
tagStream
in interface AWSKinesisVideo
tagStreamRequest
- ClientLimitExceededException
InvalidArgumentException
ResourceNotFoundException
NotAuthorizedException
InvalidResourceFormatException
TagsPerResourceExceededLimitException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest) throws AmazonServiceException, AmazonClientException
Removes one or more tags from a signaling channel. In the request, specify only a tag key or keys; don't specify the value. If you specify a tag key that does not exist, it's ignored.
untagResource
in interface AWSKinesisVideo
untagResourceRequest
- InvalidArgumentException
ClientLimitExceededException
ResourceNotFoundException
AccessDeniedException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public UntagStreamResult untagStream(UntagStreamRequest untagStreamRequest) throws AmazonServiceException, AmazonClientException
Removes one or more tags from a stream. In the request, specify only a tag key or keys; don't specify the value. If you specify a tag key that does not exist, it's ignored.
In the request, you must provide the StreamName
or
StreamARN
.
untagStream
in interface AWSKinesisVideo
untagStreamRequest
- ClientLimitExceededException
InvalidArgumentException
ResourceNotFoundException
NotAuthorizedException
InvalidResourceFormatException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public UpdateDataRetentionResult updateDataRetention(UpdateDataRetentionRequest updateDataRetentionRequest) throws AmazonServiceException, AmazonClientException
Increases or decreases the stream's data retention period by the value
that you specify. To indicate whether you want to increase or decrease
the data retention period, specify the Operation
parameter
in the request body. In the request, you must specify either the
StreamName
or the StreamARN
.
The retention period that you specify replaces the current value.
This operation requires permission for the
KinesisVideo:UpdateDataRetention
action.
Changing the data retention period affects the data in the stream as follows:
If the data retention period is increased, existing data is retained for the new retention period. For example, if the data retention period is increased from one hour to seven hours, all existing data is retained for seven hours.
If the data retention period is decreased, existing data is retained for the new retention period. For example, if the data retention period is decreased from seven hours to one hour, all existing data is retained for one hour, and any data older than one hour is deleted immediately.
updateDataRetention
in interface AWSKinesisVideo
updateDataRetentionRequest
- ClientLimitExceededException
InvalidArgumentException
ResourceNotFoundException
ResourceInUseException
NotAuthorizedException
VersionMismatchException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public UpdateSignalingChannelResult updateSignalingChannel(UpdateSignalingChannelRequest updateSignalingChannelRequest) throws AmazonServiceException, AmazonClientException
Updates the existing signaling channel. This is an asynchronous operation and takes time to complete.
If the MessageTtlSeconds
value is updated (either increased
or reduced), then it only applies to new messages sent via this channel
after it's been updated. Existing messages are still expire as per the
previous MessageTtlSeconds
value.
updateSignalingChannel
in interface AWSKinesisVideo
updateSignalingChannelRequest
- InvalidArgumentException
ClientLimitExceededException
ResourceNotFoundException
ResourceInUseException
AccessDeniedException
VersionMismatchException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.public UpdateStreamResult updateStream(UpdateStreamRequest updateStreamRequest) throws AmazonServiceException, AmazonClientException
Updates stream metadata, such as the device name and media type.
You must provide the stream name or the Amazon Resource Name (ARN) of the stream.
To make sure that you have the latest version of the stream before
updating it, you can specify the stream version. Kinesis Video Streams
assigns a version to each stream. When you update a stream, Kinesis Video
Streams assigns a new version number. To get the latest stream version,
use the DescribeStream
API.
UpdateStream
is an asynchronous operation, and takes time to
complete.
updateStream
in interface AWSKinesisVideo
updateStreamRequest
- ClientLimitExceededException
InvalidArgumentException
ResourceNotFoundException
ResourceInUseException
NotAuthorizedException
VersionMismatchException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by
AWSKinesisVideoFrontend indicating either a problem with the
data in the request, or a server side issue.@Deprecated public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSKinesisVideo
request
- The originally executed requestCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.