Skip to content

Commit 8887f19

Browse files
feat(aws-android-sdk-kinesisvideo): update models to latest (#3339)
Co-authored-by: Erica Eaton <[email protected]>
1 parent e683b00 commit 8887f19

File tree

243 files changed

+3973
-337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+3973
-337
lines changed

aws-android-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/AWSKinesisVideo.java

Lines changed: 73 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
@@ -159,6 +159,45 @@ CreateSignalingChannelResult createSignalingChannel(
159159
CreateStreamResult createStream(CreateStreamRequest createStreamRequest)
160160
throws AmazonClientException, AmazonServiceException;
161161

162+
/**
163+
* <p>
164+
* An asynchronous API that deletes a stream’s existing edge configuration,
165+
* as well as the corresponding media from the Edge Agent.
166+
* </p>
167+
* <p>
168+
* When you invoke this API, the sync status is set to <code>DELETING</code>
169+
* . A deletion process starts, in which active edge jobs are stopped and
170+
* all media is deleted from the edge device. The time to delete varies,
171+
* depending on the total amount of stored media. If the deletion process
172+
* fails, the sync status changes to <code>DELETE_FAILED</code>. You will
173+
* need to re-try the deletion.
174+
* </p>
175+
* <p>
176+
* When the deletion process has completed successfully, the edge
177+
* configuration is no longer accessible.
178+
* </p>
179+
*
180+
* @param deleteEdgeConfigurationRequest
181+
* @return deleteEdgeConfigurationResult The response from the
182+
* DeleteEdgeConfiguration service method, as returned by
183+
* AWSKinesisVideoFrontend.
184+
* @throws AccessDeniedException
185+
* @throws ClientLimitExceededException
186+
* @throws InvalidArgumentException
187+
* @throws ResourceNotFoundException
188+
* @throws StreamEdgeConfigurationNotFoundException
189+
* @throws AmazonClientException If any internal errors are encountered
190+
* inside the client while attempting to make the request or
191+
* handle the response. For example if a network connection is
192+
* not available.
193+
* @throws AmazonServiceException If an error response is returned by
194+
* AWSKinesisVideoFrontend indicating either a problem with the
195+
* data in the request, or a server side issue.
196+
*/
197+
DeleteEdgeConfigurationResult deleteEdgeConfiguration(
198+
DeleteEdgeConfigurationRequest deleteEdgeConfigurationRequest)
199+
throws AmazonClientException, AmazonServiceException;
200+
162201
/**
163202
* <p>
164203
* Deletes a specified signaling channel.
@@ -234,8 +273,10 @@ DeleteStreamResult deleteStream(DeleteStreamRequest deleteStreamRequest)
234273
/**
235274
* <p>
236275
* Describes a stream’s edge configuration that was set using the
237-
* <code>StartEdgeConfigurationUpdate</code> API. Use this API to get the
238-
* status of the configuration if the configuration is in sync with the Edge
276+
* <code>StartEdgeConfigurationUpdate</code> API and the latest status of
277+
* the edge agent's recorder and uploader jobs. Use this API to get the
278+
* status of the configuration to determine if the configuration is in sync
279+
* with the Edge Agent. Use this API to evaluate the health of the Edge
239280
* Agent.
240281
* </p>
241282
*
@@ -287,10 +328,6 @@ DescribeImageGenerationConfigurationResult describeImageGenerationConfiguration(
287328
throws AmazonClientException, AmazonServiceException;
288329

289330
/**
290-
* <p>
291-
* Returns the most current information about the stream. Either streamName
292-
* or streamARN should be provided in the input.
293-
* </p>
294331
* <p>
295332
* Returns the most current information about the stream. The
296333
* <code>streamName</code> or <code>streamARN</code> should be provided in
@@ -499,6 +536,35 @@ GetSignalingChannelEndpointResult getSignalingChannelEndpoint(
499536
GetSignalingChannelEndpointRequest getSignalingChannelEndpointRequest)
500537
throws AmazonClientException, AmazonServiceException;
501538

539+
/**
540+
* <p>
541+
* Returns an array of edge configurations associated with the specified
542+
* Edge Agent.
543+
* </p>
544+
* <p>
545+
* In the request, you must specify the Edge Agent <code>HubDeviceArn</code>
546+
* .
547+
* </p>
548+
*
549+
* @param listEdgeAgentConfigurationsRequest
550+
* @return listEdgeAgentConfigurationsResult The response from the
551+
* ListEdgeAgentConfigurations service method, as returned by
552+
* AWSKinesisVideoFrontend.
553+
* @throws NotAuthorizedException
554+
* @throws ClientLimitExceededException
555+
* @throws InvalidArgumentException
556+
* @throws AmazonClientException If any internal errors are encountered
557+
* inside the client while attempting to make the request or
558+
* handle the response. For example if a network connection is
559+
* not available.
560+
* @throws AmazonServiceException If an error response is returned by
561+
* AWSKinesisVideoFrontend indicating either a problem with the
562+
* data in the request, or a server side issue.
563+
*/
564+
ListEdgeAgentConfigurationsResult listEdgeAgentConfigurations(
565+
ListEdgeAgentConfigurationsRequest listEdgeAgentConfigurationsRequest)
566+
throws AmazonClientException, AmazonServiceException;
567+
502568
/**
503569
* <p>
504570
* Returns an array of <code>ChannelInfo</code> objects. Each object

aws-android-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/AWSKinesisVideoClient.java

Lines changed: 127 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
@@ -484,6 +484,72 @@ public CreateStreamResult createStream(CreateStreamRequest createStreamRequest)
484484
}
485485
}
486486

487+
/**
488+
* <p>
489+
* An asynchronous API that deletes a stream’s existing edge configuration,
490+
* as well as the corresponding media from the Edge Agent.
491+
* </p>
492+
* <p>
493+
* When you invoke this API, the sync status is set to <code>DELETING</code>
494+
* . A deletion process starts, in which active edge jobs are stopped and
495+
* all media is deleted from the edge device. The time to delete varies,
496+
* depending on the total amount of stored media. If the deletion process
497+
* fails, the sync status changes to <code>DELETE_FAILED</code>. You will
498+
* need to re-try the deletion.
499+
* </p>
500+
* <p>
501+
* When the deletion process has completed successfully, the edge
502+
* configuration is no longer accessible.
503+
* </p>
504+
*
505+
* @param deleteEdgeConfigurationRequest
506+
* @return deleteEdgeConfigurationResult The response from the
507+
* DeleteEdgeConfiguration service method, as returned by
508+
* AWSKinesisVideoFrontend.
509+
* @throws AccessDeniedException
510+
* @throws ClientLimitExceededException
511+
* @throws InvalidArgumentException
512+
* @throws ResourceNotFoundException
513+
* @throws StreamEdgeConfigurationNotFoundException
514+
* @throws AmazonClientException If any internal errors are encountered
515+
* inside the client while attempting to make the request or
516+
* handle the response. For example if a network connection is
517+
* not available.
518+
* @throws AmazonServiceException If an error response is returned by
519+
* AWSKinesisVideoFrontend indicating either a problem with the
520+
* data in the request, or a server side issue.
521+
*/
522+
public DeleteEdgeConfigurationResult deleteEdgeConfiguration(
523+
DeleteEdgeConfigurationRequest deleteEdgeConfigurationRequest)
524+
throws AmazonServiceException, AmazonClientException {
525+
ExecutionContext executionContext = createExecutionContext(deleteEdgeConfigurationRequest);
526+
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
527+
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
528+
Request<DeleteEdgeConfigurationRequest> request = null;
529+
Response<DeleteEdgeConfigurationResult> response = null;
530+
try {
531+
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
532+
try {
533+
request = new DeleteEdgeConfigurationRequestMarshaller()
534+
.marshall(deleteEdgeConfigurationRequest);
535+
// Binds the request metrics to the current request.
536+
request.setAWSRequestMetrics(awsRequestMetrics);
537+
} finally {
538+
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
539+
}
540+
Unmarshaller<DeleteEdgeConfigurationResult, JsonUnmarshallerContext> unmarshaller = new DeleteEdgeConfigurationResultJsonUnmarshaller();
541+
JsonResponseHandler<DeleteEdgeConfigurationResult> responseHandler = new JsonResponseHandler<DeleteEdgeConfigurationResult>(
542+
unmarshaller);
543+
544+
response = invoke(request, responseHandler, executionContext);
545+
546+
return response.getAwsResponse();
547+
} finally {
548+
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
549+
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
550+
}
551+
}
552+
487553
/**
488554
* <p>
489555
* Deletes a specified signaling channel.
@@ -612,8 +678,10 @@ public DeleteStreamResult deleteStream(DeleteStreamRequest deleteStreamRequest)
612678
/**
613679
* <p>
614680
* Describes a stream’s edge configuration that was set using the
615-
* <code>StartEdgeConfigurationUpdate</code> API. Use this API to get the
616-
* status of the configuration if the configuration is in sync with the Edge
681+
* <code>StartEdgeConfigurationUpdate</code> API and the latest status of
682+
* the edge agent's recorder and uploader jobs. Use this API to get the
683+
* status of the configuration to determine if the configuration is in sync
684+
* with the Edge Agent. Use this API to evaluate the health of the Edge
617685
* Agent.
618686
* </p>
619687
*
@@ -719,10 +787,6 @@ public DescribeImageGenerationConfigurationResult describeImageGenerationConfigu
719787
}
720788

721789
/**
722-
* <p>
723-
* Returns the most current information about the stream. Either streamName
724-
* or streamARN should be provided in the input.
725-
* </p>
726790
* <p>
727791
* Returns the most current information about the stream. The
728792
* <code>streamName</code> or <code>streamARN</code> should be provided in
@@ -1118,6 +1182,62 @@ public GetSignalingChannelEndpointResult getSignalingChannelEndpoint(
11181182
}
11191183
}
11201184

1185+
/**
1186+
* <p>
1187+
* Returns an array of edge configurations associated with the specified
1188+
* Edge Agent.
1189+
* </p>
1190+
* <p>
1191+
* In the request, you must specify the Edge Agent <code>HubDeviceArn</code>
1192+
* .
1193+
* </p>
1194+
*
1195+
* @param listEdgeAgentConfigurationsRequest
1196+
* @return listEdgeAgentConfigurationsResult The response from the
1197+
* ListEdgeAgentConfigurations service method, as returned by
1198+
* AWSKinesisVideoFrontend.
1199+
* @throws NotAuthorizedException
1200+
* @throws ClientLimitExceededException
1201+
* @throws InvalidArgumentException
1202+
* @throws AmazonClientException If any internal errors are encountered
1203+
* inside the client while attempting to make the request or
1204+
* handle the response. For example if a network connection is
1205+
* not available.
1206+
* @throws AmazonServiceException If an error response is returned by
1207+
* AWSKinesisVideoFrontend indicating either a problem with the
1208+
* data in the request, or a server side issue.
1209+
*/
1210+
public ListEdgeAgentConfigurationsResult listEdgeAgentConfigurations(
1211+
ListEdgeAgentConfigurationsRequest listEdgeAgentConfigurationsRequest)
1212+
throws AmazonServiceException, AmazonClientException {
1213+
ExecutionContext executionContext = createExecutionContext(listEdgeAgentConfigurationsRequest);
1214+
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1215+
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1216+
Request<ListEdgeAgentConfigurationsRequest> request = null;
1217+
Response<ListEdgeAgentConfigurationsResult> response = null;
1218+
try {
1219+
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1220+
try {
1221+
request = new ListEdgeAgentConfigurationsRequestMarshaller()
1222+
.marshall(listEdgeAgentConfigurationsRequest);
1223+
// Binds the request metrics to the current request.
1224+
request.setAWSRequestMetrics(awsRequestMetrics);
1225+
} finally {
1226+
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1227+
}
1228+
Unmarshaller<ListEdgeAgentConfigurationsResult, JsonUnmarshallerContext> unmarshaller = new ListEdgeAgentConfigurationsResultJsonUnmarshaller();
1229+
JsonResponseHandler<ListEdgeAgentConfigurationsResult> responseHandler = new JsonResponseHandler<ListEdgeAgentConfigurationsResult>(
1230+
unmarshaller);
1231+
1232+
response = invoke(request, responseHandler, executionContext);
1233+
1234+
return response.getAwsResponse();
1235+
} finally {
1236+
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
1237+
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
1238+
}
1239+
}
1240+
11211241
/**
11221242
* <p>
11231243
* Returns an array of <code>ChannelInfo</code> objects. Each object

aws-android-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/APIName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/AccessDeniedException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/AccountChannelLimitExceededException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/AccountStreamLimitExceededException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/ChannelInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/ChannelNameCondition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/ChannelProtocol.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/ChannelRole.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)