Skip to content

Commit

Permalink
feat(aws-android-sdk-iot): update models to latest (#3070)
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk authored Nov 14, 2022
1 parent 299f21a commit 98009a9
Show file tree
Hide file tree
Showing 16 changed files with 1,508 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5412,6 +5412,92 @@ ListProvisioningTemplatesResult listProvisioningTemplates(
ListProvisioningTemplatesRequest listProvisioningTemplatesRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* The related resources of an Audit finding. The following resources can be
* returned from calling this API:
* </p>
* <ul>
* <li>
* <p>
* DEVICE_CERTIFICATE
* </p>
* </li>
* <li>
* <p>
* CA_CERTIFICATE
* </p>
* </li>
* <li>
* <p>
* IOT_POLICY
* </p>
* </li>
* <li>
* <p>
* COGNITO_IDENTITY_POOL
* </p>
* </li>
* <li>
* <p>
* CLIENT_ID
* </p>
* </li>
* <li>
* <p>
* ACCOUNT_SETTINGS
* </p>
* </li>
* <li>
* <p>
* ROLE_ALIAS
* </p>
* </li>
* <li>
* <p>
* IAM_ROLE
* </p>
* </li>
* <li>
* <p>
* ISSUER_CERTIFICATE
* </p>
* </li>
* </ul>
* <note>
* <p>
* This API is similar to DescribeAuditFinding's <a href=
* "https://docs.aws.amazon.com/iot/latest/apireference/API_DescribeAuditFinding.html"
* >RelatedResources</a> but provides pagination and is not limited to 10
* resources. When calling <a href=
* "https://docs.aws.amazon.com/iot/latest/apireference/API_DescribeAuditFinding.html"
* >DescribeAuditFinding</a> for the intermediate CA revoked for active
* device certificates check, RelatedResources will not be populated. You
* must use this API, ListRelatedResourcesForAuditFinding, to list the
* certificates.
* </p>
* </note>
*
* @param listRelatedResourcesForAuditFindingRequest
* @return listRelatedResourcesForAuditFindingResult The response from the
* ListRelatedResourcesForAuditFinding service method, as returned
* by AWS IoT.
* @throws ResourceNotFoundException
* @throws InvalidRequestException
* @throws ThrottlingException
* @throws InternalFailureException
* @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.
*/
ListRelatedResourcesForAuditFindingResult listRelatedResourcesForAuditFinding(
ListRelatedResourcesForAuditFindingRequest listRelatedResourcesForAuditFindingRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Lists the role aliases registered in your account.
Expand Down Expand Up @@ -5841,7 +5927,11 @@ ListThingTypesResult listThingTypes(ListThingTypesRequest listThingTypesRequest)
* parameters to filter your things. For example, calling
* <code>ListThings</code> with attributeName=Color and attributeValue=Red
* retrieves all things in the registry that contain an attribute
* <b>Color</b> with the value <b>Red</b>.
* <b>Color</b> with the value <b>Red</b>. For more information, see <a
* href=
* "https://docs.aws.amazon.com/iot/latest/developerguide/thing-registry.html#list-things"
* >List Things</a> from the <i>Amazon Web Services IoT Core Developer
* Guide</i>.
* </p>
* <p>
* Requires permission to access the <a href=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10057,6 +10057,119 @@ public ListProvisioningTemplatesResult listProvisioningTemplates(
}
}

/**
* <p>
* The related resources of an Audit finding. The following resources can be
* returned from calling this API:
* </p>
* <ul>
* <li>
* <p>
* DEVICE_CERTIFICATE
* </p>
* </li>
* <li>
* <p>
* CA_CERTIFICATE
* </p>
* </li>
* <li>
* <p>
* IOT_POLICY
* </p>
* </li>
* <li>
* <p>
* COGNITO_IDENTITY_POOL
* </p>
* </li>
* <li>
* <p>
* CLIENT_ID
* </p>
* </li>
* <li>
* <p>
* ACCOUNT_SETTINGS
* </p>
* </li>
* <li>
* <p>
* ROLE_ALIAS
* </p>
* </li>
* <li>
* <p>
* IAM_ROLE
* </p>
* </li>
* <li>
* <p>
* ISSUER_CERTIFICATE
* </p>
* </li>
* </ul>
* <note>
* <p>
* This API is similar to DescribeAuditFinding's <a href=
* "https://docs.aws.amazon.com/iot/latest/apireference/API_DescribeAuditFinding.html"
* >RelatedResources</a> but provides pagination and is not limited to 10
* resources. When calling <a href=
* "https://docs.aws.amazon.com/iot/latest/apireference/API_DescribeAuditFinding.html"
* >DescribeAuditFinding</a> for the intermediate CA revoked for active
* device certificates check, RelatedResources will not be populated. You
* must use this API, ListRelatedResourcesForAuditFinding, to list the
* certificates.
* </p>
* </note>
*
* @param listRelatedResourcesForAuditFindingRequest
* @return listRelatedResourcesForAuditFindingResult The response from the
* ListRelatedResourcesForAuditFinding service method, as returned
* by AWS IoT.
* @throws ResourceNotFoundException
* @throws InvalidRequestException
* @throws ThrottlingException
* @throws InternalFailureException
* @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 ListRelatedResourcesForAuditFindingResult listRelatedResourcesForAuditFinding(
ListRelatedResourcesForAuditFindingRequest listRelatedResourcesForAuditFindingRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(listRelatedResourcesForAuditFindingRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request<ListRelatedResourcesForAuditFindingRequest> request = null;
Response<ListRelatedResourcesForAuditFindingResult> response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListRelatedResourcesForAuditFindingRequestMarshaller()
.marshall(listRelatedResourcesForAuditFindingRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller<ListRelatedResourcesForAuditFindingResult, JsonUnmarshallerContext> unmarshaller = new ListRelatedResourcesForAuditFindingResultJsonUnmarshaller();
JsonResponseHandler<ListRelatedResourcesForAuditFindingResult> responseHandler = new JsonResponseHandler<ListRelatedResourcesForAuditFindingResult>(
unmarshaller);

response = invoke(request, responseHandler, executionContext);

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

/**
* <p>
* Lists the role aliases registered in your account.
Expand Down Expand Up @@ -10860,7 +10973,11 @@ public ListThingTypesResult listThingTypes(ListThingTypesRequest listThingTypesR
* parameters to filter your things. For example, calling
* <code>ListThings</code> with attributeName=Color and attributeValue=Red
* retrieves all things in the registry that contain an attribute
* <b>Color</b> with the value <b>Red</b>.
* <b>Color</b> with the value <b>Red</b>. For more information, see <a
* href=
* "https://docs.aws.amazon.com/iot/latest/developerguide/thing-registry.html#list-things"
* >List Things</a> from the <i>Amazon Web Services IoT Core Developer
* Guide</i>.
* </p>
* <p>
* Requires permission to access the <a href=
Expand Down
Loading

0 comments on commit 98009a9

Please sign in to comment.