Skip to content

Commit 0d96f97

Browse files
feat(aws-android-sdk-iot): update models to latest (#2641)
Co-authored-by: Erica Eaton <[email protected]>
1 parent 2544e61 commit 0d96f97

20 files changed

+1488
-55
lines changed

aws-android-sdk-iot/src/main/java/com/amazonaws/services/iot/AWSIot.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5976,6 +5976,31 @@ ListViolationEventsResult listViolationEvents(
59765976
ListViolationEventsRequest listViolationEventsRequest) throws AmazonClientException,
59775977
AmazonServiceException;
59785978

5979+
/**
5980+
* <p>
5981+
* Set a verification state and provide a description of that verification
5982+
* state on a violation (detect alarm).
5983+
* </p>
5984+
*
5985+
* @param putVerificationStateOnViolationRequest
5986+
* @return putVerificationStateOnViolationResult The response from the
5987+
* PutVerificationStateOnViolation service method, as returned by
5988+
* AWS IoT.
5989+
* @throws InvalidRequestException
5990+
* @throws ThrottlingException
5991+
* @throws InternalFailureException
5992+
* @throws AmazonClientException If any internal errors are encountered
5993+
* inside the client while attempting to make the request or
5994+
* handle the response. For example if a network connection is
5995+
* not available.
5996+
* @throws AmazonServiceException If an error response is returned by AWS
5997+
* IoT indicating either a problem with the data in the request,
5998+
* or a server side issue.
5999+
*/
6000+
PutVerificationStateOnViolationResult putVerificationStateOnViolation(
6001+
PutVerificationStateOnViolationRequest putVerificationStateOnViolationRequest)
6002+
throws AmazonClientException, AmazonServiceException;
6003+
59796004
/**
59806005
* <p>
59816006
* Registers a CA certificate with IoT. This CA certificate can then be used

aws-android-sdk-iot/src/main/java/com/amazonaws/services/iot/AWSIotClient.java

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11101,6 +11101,58 @@ public ListViolationEventsResult listViolationEvents(
1110111101
}
1110211102
}
1110311103

11104+
/**
11105+
* <p>
11106+
* Set a verification state and provide a description of that verification
11107+
* state on a violation (detect alarm).
11108+
* </p>
11109+
*
11110+
* @param putVerificationStateOnViolationRequest
11111+
* @return putVerificationStateOnViolationResult The response from the
11112+
* PutVerificationStateOnViolation service method, as returned by
11113+
* AWS IoT.
11114+
* @throws InvalidRequestException
11115+
* @throws ThrottlingException
11116+
* @throws InternalFailureException
11117+
* @throws AmazonClientException If any internal errors are encountered
11118+
* inside the client while attempting to make the request or
11119+
* handle the response. For example if a network connection is
11120+
* not available.
11121+
* @throws AmazonServiceException If an error response is returned by AWS
11122+
* IoT indicating either a problem with the data in the request,
11123+
* or a server side issue.
11124+
*/
11125+
public PutVerificationStateOnViolationResult putVerificationStateOnViolation(
11126+
PutVerificationStateOnViolationRequest putVerificationStateOnViolationRequest)
11127+
throws AmazonServiceException, AmazonClientException {
11128+
ExecutionContext executionContext = createExecutionContext(putVerificationStateOnViolationRequest);
11129+
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
11130+
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
11131+
Request<PutVerificationStateOnViolationRequest> request = null;
11132+
Response<PutVerificationStateOnViolationResult> response = null;
11133+
try {
11134+
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
11135+
try {
11136+
request = new PutVerificationStateOnViolationRequestMarshaller()
11137+
.marshall(putVerificationStateOnViolationRequest);
11138+
// Binds the request metrics to the current request.
11139+
request.setAWSRequestMetrics(awsRequestMetrics);
11140+
} finally {
11141+
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
11142+
}
11143+
Unmarshaller<PutVerificationStateOnViolationResult, JsonUnmarshallerContext> unmarshaller = new PutVerificationStateOnViolationResultJsonUnmarshaller();
11144+
JsonResponseHandler<PutVerificationStateOnViolationResult> responseHandler = new JsonResponseHandler<PutVerificationStateOnViolationResult>(
11145+
unmarshaller);
11146+
11147+
response = invoke(request, responseHandler, executionContext);
11148+
11149+
return response.getAwsResponse();
11150+
} finally {
11151+
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
11152+
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
11153+
}
11154+
}
11155+
1110411156
/**
1110511157
* <p>
1110611158
* Registers a CA certificate with IoT. This CA certificate can then be used

aws-android-sdk-iot/src/main/java/com/amazonaws/services/iot/model/Action.java

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,16 @@ public class Action implements Serializable {
111111

112112
/**
113113
* <p>
114-
* Write data to an Amazon Elasticsearch Service domain.
114+
* Write data to an Amazon OpenSearch Service domain.
115115
* </p>
116116
* <note>
117117
* <p>
118-
* This action is deprecated. Use the <a href=
118+
* The <code>Elasticsearch</code> action can only be used by existing rule
119+
* actions. To create a new rule action or to update an existing rule
120+
* action, use the <code>OpenSearch</code> rule action instead. For more
121+
* information, see <a href=
119122
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
120-
* >OpenSearch action</a> instead.
123+
* >OpenSearchAction</a>.
121124
* </p>
122125
* </note>
123126
*/
@@ -746,24 +749,30 @@ public Action withCloudwatchLogs(CloudwatchLogsAction cloudwatchLogs) {
746749

747750
/**
748751
* <p>
749-
* Write data to an Amazon Elasticsearch Service domain.
752+
* Write data to an Amazon OpenSearch Service domain.
750753
* </p>
751754
* <note>
752755
* <p>
753-
* This action is deprecated. Use the <a href=
756+
* The <code>Elasticsearch</code> action can only be used by existing rule
757+
* actions. To create a new rule action or to update an existing rule
758+
* action, use the <code>OpenSearch</code> rule action instead. For more
759+
* information, see <a href=
754760
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
755-
* >OpenSearch action</a> instead.
761+
* >OpenSearchAction</a>.
756762
* </p>
757763
* </note>
758764
*
759765
* @return <p>
760-
* Write data to an Amazon Elasticsearch Service domain.
766+
* Write data to an Amazon OpenSearch Service domain.
761767
* </p>
762768
* <note>
763769
* <p>
764-
* This action is deprecated. Use the <a href=
770+
* The <code>Elasticsearch</code> action can only be used by
771+
* existing rule actions. To create a new rule action or to update
772+
* an existing rule action, use the <code>OpenSearch</code> rule
773+
* action instead. For more information, see <a href=
765774
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
766-
* >OpenSearch action</a> instead.
775+
* >OpenSearchAction</a>.
767776
* </p>
768777
* </note>
769778
*/
@@ -773,24 +782,31 @@ public ElasticsearchAction getElasticsearch() {
773782

774783
/**
775784
* <p>
776-
* Write data to an Amazon Elasticsearch Service domain.
785+
* Write data to an Amazon OpenSearch Service domain.
777786
* </p>
778787
* <note>
779788
* <p>
780-
* This action is deprecated. Use the <a href=
789+
* The <code>Elasticsearch</code> action can only be used by existing rule
790+
* actions. To create a new rule action or to update an existing rule
791+
* action, use the <code>OpenSearch</code> rule action instead. For more
792+
* information, see <a href=
781793
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
782-
* >OpenSearch action</a> instead.
794+
* >OpenSearchAction</a>.
783795
* </p>
784796
* </note>
785797
*
786798
* @param elasticsearch <p>
787-
* Write data to an Amazon Elasticsearch Service domain.
799+
* Write data to an Amazon OpenSearch Service domain.
788800
* </p>
789801
* <note>
790802
* <p>
791-
* This action is deprecated. Use the <a href=
803+
* The <code>Elasticsearch</code> action can only be used by
804+
* existing rule actions. To create a new rule action or to
805+
* update an existing rule action, use the
806+
* <code>OpenSearch</code> rule action instead. For more
807+
* information, see <a href=
792808
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
793-
* >OpenSearch action</a> instead.
809+
* >OpenSearchAction</a>.
794810
* </p>
795811
* </note>
796812
*/
@@ -800,27 +816,34 @@ public void setElasticsearch(ElasticsearchAction elasticsearch) {
800816

801817
/**
802818
* <p>
803-
* Write data to an Amazon Elasticsearch Service domain.
819+
* Write data to an Amazon OpenSearch Service domain.
804820
* </p>
805821
* <note>
806822
* <p>
807-
* This action is deprecated. Use the <a href=
823+
* The <code>Elasticsearch</code> action can only be used by existing rule
824+
* actions. To create a new rule action or to update an existing rule
825+
* action, use the <code>OpenSearch</code> rule action instead. For more
826+
* information, see <a href=
808827
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
809-
* >OpenSearch action</a> instead.
828+
* >OpenSearchAction</a>.
810829
* </p>
811830
* </note>
812831
* <p>
813832
* Returns a reference to this object so that method calls can be chained
814833
* together.
815834
*
816835
* @param elasticsearch <p>
817-
* Write data to an Amazon Elasticsearch Service domain.
836+
* Write data to an Amazon OpenSearch Service domain.
818837
* </p>
819838
* <note>
820839
* <p>
821-
* This action is deprecated. Use the <a href=
840+
* The <code>Elasticsearch</code> action can only be used by
841+
* existing rule actions. To create a new rule action or to
842+
* update an existing rule action, use the
843+
* <code>OpenSearch</code> rule action instead. For more
844+
* information, see <a href=
822845
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
823-
* >OpenSearch action</a> instead.
846+
* >OpenSearchAction</a>.
824847
* </p>
825848
* </note>
826849
* @return A reference to this updated object so that method calls can be

0 commit comments

Comments
 (0)