|
1 | 1 | /* |
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. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"). |
5 | 5 | * You may not use this file except in compliance with the License. |
@@ -484,6 +484,72 @@ public CreateStreamResult createStream(CreateStreamRequest createStreamRequest) |
484 | 484 | } |
485 | 485 | } |
486 | 486 |
|
| 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 | + |
487 | 553 | /** |
488 | 554 | * <p> |
489 | 555 | * Deletes a specified signaling channel. |
@@ -612,8 +678,10 @@ public DeleteStreamResult deleteStream(DeleteStreamRequest deleteStreamRequest) |
612 | 678 | /** |
613 | 679 | * <p> |
614 | 680 | * 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 |
617 | 685 | * Agent. |
618 | 686 | * </p> |
619 | 687 | * |
@@ -719,10 +787,6 @@ public DescribeImageGenerationConfigurationResult describeImageGenerationConfigu |
719 | 787 | } |
720 | 788 |
|
721 | 789 | /** |
722 | | - * <p> |
723 | | - * Returns the most current information about the stream. Either streamName |
724 | | - * or streamARN should be provided in the input. |
725 | | - * </p> |
726 | 790 | * <p> |
727 | 791 | * Returns the most current information about the stream. The |
728 | 792 | * <code>streamName</code> or <code>streamARN</code> should be provided in |
@@ -1118,6 +1182,62 @@ public GetSignalingChannelEndpointResult getSignalingChannelEndpoint( |
1118 | 1182 | } |
1119 | 1183 | } |
1120 | 1184 |
|
| 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 | + |
1121 | 1241 | /** |
1122 | 1242 | * <p> |
1123 | 1243 | * Returns an array of <code>ChannelInfo</code> objects. Each object |
|
0 commit comments