Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iot Update models to latest #2858

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5055,6 +5055,31 @@ ListManagedJobTemplatesResult listManagedJobTemplates(
ListManagedJobTemplatesRequest listManagedJobTemplatesRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Lists the values reported for an IoT Device Defender metric (device-side
* metric, cloud-side metric, or custom metric) by the given thing during
* the specified time period.
* </p>
*
* @param listMetricValuesRequest
* @return listMetricValuesResult The response from the ListMetricValues
* service method, as returned by AWS IoT.
* @throws InvalidRequestException
* @throws ThrottlingException
* @throws InternalFailureException
* @throws ResourceNotFoundException
* @throws 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.
* @throws AmazonServiceException If an error response is returned by AWS
* IoT indicating either a problem with the data in the request,
* or a server side issue.
*/
ListMetricValuesResult listMetricValues(ListMetricValuesRequest listMetricValuesRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Gets a list of all mitigation actions that match the specified filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9405,6 +9405,57 @@ public ListManagedJobTemplatesResult listManagedJobTemplates(
}
}

/**
* <p>
* Lists the values reported for an IoT Device Defender metric (device-side
* metric, cloud-side metric, or custom metric) by the given thing during
* the specified time period.
* </p>
*
* @param listMetricValuesRequest
* @return listMetricValuesResult The response from the ListMetricValues
* service method, as returned by AWS IoT.
* @throws InvalidRequestException
* @throws ThrottlingException
* @throws InternalFailureException
* @throws ResourceNotFoundException
* @throws 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.
* @throws AmazonServiceException If an error response is returned by AWS
* IoT indicating either a problem with the data in the request,
* or a server side issue.
*/
public ListMetricValuesResult listMetricValues(ListMetricValuesRequest listMetricValuesRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(listMetricValuesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request<ListMetricValuesRequest> request = null;
Response<ListMetricValuesResult> response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListMetricValuesRequestMarshaller().marshall(listMetricValuesRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller<ListMetricValuesResult, JsonUnmarshallerContext> unmarshaller = new ListMetricValuesResultJsonUnmarshaller();
JsonResponseHandler<ListMetricValuesResult> responseHandler = new JsonResponseHandler<ListMetricValuesResult>(
unmarshaller);

response = invoke(request, responseHandler, executionContext);

return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}

/**
* <p>
* Gets a list of all mitigation actions that match the specified filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class ActiveViolation implements Serializable {
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 1000<br/>
* <b>Pattern: </b>[\p{Graph}\x20]*<br/>
* <b>Pattern: </b>[^\p{Cntrl}]*<br/>
*/
private String verificationStateDescription;

Expand Down Expand Up @@ -534,7 +534,7 @@ public ActiveViolation withVerificationState(VerificationState verificationState
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 1000<br/>
* <b>Pattern: </b>[\p{Graph}\x20]*<br/>
* <b>Pattern: </b>[^\p{Cntrl}]*<br/>
*
* @return <p>
* The description of the verification state of the violation.
Expand All @@ -551,7 +551,7 @@ public String getVerificationStateDescription() {
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 1000<br/>
* <b>Pattern: </b>[\p{Graph}\x20]*<br/>
* <b>Pattern: </b>[^\p{Cntrl}]*<br/>
*
* @param verificationStateDescription <p>
* The description of the verification state of the violation.
Expand All @@ -571,7 +571,7 @@ public void setVerificationStateDescription(String verificationStateDescription)
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 1000<br/>
* <b>Pattern: </b>[\p{Graph}\x20]*<br/>
* <b>Pattern: </b>[^\p{Cntrl}]*<br/>
*
* @param verificationStateDescription <p>
* The description of the verification state of the violation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,14 @@ public class CustomCodeSigning implements Serializable {

/**
* <p>
* The hash algorithm used to code sign the file. You can use a string as
* the algorithm name if the target over-the-air (OTA) update devices are
* able to verify the signature that was generated using the same signature
* algorithm. For example, FreeRTOS uses <code>SHA256</code> or
* <code>SHA1</code>, so you can pass either of them based on which was used
* for generating the signature.
* The hash algorithm used to code sign the file.
* </p>
*/
private String hashAlgorithm;

/**
* <p>
* The signature algorithm used to code sign the file. You can use a string
* as the algorithm name if the target over-the-air (OTA) update devices are
* able to verify the signature that was generated using the same signature
* algorithm. For example, FreeRTOS uses <code>ECDSA</code> or
* <code>RSA</code>, so you can pass either of them based on which was used
* for generating the signature.
* The signature algorithm used to code sign the file.
* </p>
*/
private String signatureAlgorithm;
Expand Down Expand Up @@ -153,22 +143,11 @@ public CustomCodeSigning withCertificateChain(CodeSigningCertificateChain certif

/**
* <p>
* The hash algorithm used to code sign the file. You can use a string as
* the algorithm name if the target over-the-air (OTA) update devices are
* able to verify the signature that was generated using the same signature
* algorithm. For example, FreeRTOS uses <code>SHA256</code> or
* <code>SHA1</code>, so you can pass either of them based on which was used
* for generating the signature.
* The hash algorithm used to code sign the file.
* </p>
*
* @return <p>
* The hash algorithm used to code sign the file. You can use a
* string as the algorithm name if the target over-the-air (OTA)
* update devices are able to verify the signature that was
* generated using the same signature algorithm. For example,
* FreeRTOS uses <code>SHA256</code> or <code>SHA1</code>, so you
* can pass either of them based on which was used for generating
* the signature.
* The hash algorithm used to code sign the file.
* </p>
*/
public String getHashAlgorithm() {
Expand All @@ -177,22 +156,11 @@ public String getHashAlgorithm() {

/**
* <p>
* The hash algorithm used to code sign the file. You can use a string as
* the algorithm name if the target over-the-air (OTA) update devices are
* able to verify the signature that was generated using the same signature
* algorithm. For example, FreeRTOS uses <code>SHA256</code> or
* <code>SHA1</code>, so you can pass either of them based on which was used
* for generating the signature.
* The hash algorithm used to code sign the file.
* </p>
*
* @param hashAlgorithm <p>
* The hash algorithm used to code sign the file. You can use a
* string as the algorithm name if the target over-the-air (OTA)
* update devices are able to verify the signature that was
* generated using the same signature algorithm. For example,
* FreeRTOS uses <code>SHA256</code> or <code>SHA1</code>, so you
* can pass either of them based on which was used for generating
* the signature.
* The hash algorithm used to code sign the file.
* </p>
*/
public void setHashAlgorithm(String hashAlgorithm) {
Expand All @@ -201,25 +169,14 @@ public void setHashAlgorithm(String hashAlgorithm) {

/**
* <p>
* The hash algorithm used to code sign the file. You can use a string as
* the algorithm name if the target over-the-air (OTA) update devices are
* able to verify the signature that was generated using the same signature
* algorithm. For example, FreeRTOS uses <code>SHA256</code> or
* <code>SHA1</code>, so you can pass either of them based on which was used
* for generating the signature.
* The hash algorithm used to code sign the file.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param hashAlgorithm <p>
* The hash algorithm used to code sign the file. You can use a
* string as the algorithm name if the target over-the-air (OTA)
* update devices are able to verify the signature that was
* generated using the same signature algorithm. For example,
* FreeRTOS uses <code>SHA256</code> or <code>SHA1</code>, so you
* can pass either of them based on which was used for generating
* the signature.
* The hash algorithm used to code sign the file.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
Expand All @@ -231,22 +188,11 @@ public CustomCodeSigning withHashAlgorithm(String hashAlgorithm) {

/**
* <p>
* The signature algorithm used to code sign the file. You can use a string
* as the algorithm name if the target over-the-air (OTA) update devices are
* able to verify the signature that was generated using the same signature
* algorithm. For example, FreeRTOS uses <code>ECDSA</code> or
* <code>RSA</code>, so you can pass either of them based on which was used
* for generating the signature.
* The signature algorithm used to code sign the file.
* </p>
*
* @return <p>
* The signature algorithm used to code sign the file. You can use a
* string as the algorithm name if the target over-the-air (OTA)
* update devices are able to verify the signature that was
* generated using the same signature algorithm. For example,
* FreeRTOS uses <code>ECDSA</code> or <code>RSA</code>, so you can
* pass either of them based on which was used for generating the
* signature.
* The signature algorithm used to code sign the file.
* </p>
*/
public String getSignatureAlgorithm() {
Expand All @@ -255,22 +201,11 @@ public String getSignatureAlgorithm() {

/**
* <p>
* The signature algorithm used to code sign the file. You can use a string
* as the algorithm name if the target over-the-air (OTA) update devices are
* able to verify the signature that was generated using the same signature
* algorithm. For example, FreeRTOS uses <code>ECDSA</code> or
* <code>RSA</code>, so you can pass either of them based on which was used
* for generating the signature.
* The signature algorithm used to code sign the file.
* </p>
*
* @param signatureAlgorithm <p>
* The signature algorithm used to code sign the file. You can
* use a string as the algorithm name if the target over-the-air
* (OTA) update devices are able to verify the signature that was
* generated using the same signature algorithm. For example,
* FreeRTOS uses <code>ECDSA</code> or <code>RSA</code>, so you
* can pass either of them based on which was used for generating
* the signature.
* The signature algorithm used to code sign the file.
* </p>
*/
public void setSignatureAlgorithm(String signatureAlgorithm) {
Expand All @@ -279,25 +214,14 @@ public void setSignatureAlgorithm(String signatureAlgorithm) {

/**
* <p>
* The signature algorithm used to code sign the file. You can use a string
* as the algorithm name if the target over-the-air (OTA) update devices are
* able to verify the signature that was generated using the same signature
* algorithm. For example, FreeRTOS uses <code>ECDSA</code> or
* <code>RSA</code>, so you can pass either of them based on which was used
* for generating the signature.
* The signature algorithm used to code sign the file.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param signatureAlgorithm <p>
* The signature algorithm used to code sign the file. You can
* use a string as the algorithm name if the target over-the-air
* (OTA) update devices are able to verify the signature that was
* generated using the same signature algorithm. For example,
* FreeRTOS uses <code>ECDSA</code> or <code>RSA</code>, so you
* can pass either of them based on which was used for generating
* the signature.
* The signature algorithm used to code sign the file.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
Expand Down
Loading