@@ -10057,6 +10057,119 @@ public ListProvisioningTemplatesResult listProvisioningTemplates(
1005710057 }
1005810058 }
1005910059
10060+ /**
10061+ * <p>
10062+ * The related resources of an Audit finding. The following resources can be
10063+ * returned from calling this API:
10064+ * </p>
10065+ * <ul>
10066+ * <li>
10067+ * <p>
10068+ * DEVICE_CERTIFICATE
10069+ * </p>
10070+ * </li>
10071+ * <li>
10072+ * <p>
10073+ * CA_CERTIFICATE
10074+ * </p>
10075+ * </li>
10076+ * <li>
10077+ * <p>
10078+ * IOT_POLICY
10079+ * </p>
10080+ * </li>
10081+ * <li>
10082+ * <p>
10083+ * COGNITO_IDENTITY_POOL
10084+ * </p>
10085+ * </li>
10086+ * <li>
10087+ * <p>
10088+ * CLIENT_ID
10089+ * </p>
10090+ * </li>
10091+ * <li>
10092+ * <p>
10093+ * ACCOUNT_SETTINGS
10094+ * </p>
10095+ * </li>
10096+ * <li>
10097+ * <p>
10098+ * ROLE_ALIAS
10099+ * </p>
10100+ * </li>
10101+ * <li>
10102+ * <p>
10103+ * IAM_ROLE
10104+ * </p>
10105+ * </li>
10106+ * <li>
10107+ * <p>
10108+ * ISSUER_CERTIFICATE
10109+ * </p>
10110+ * </li>
10111+ * </ul>
10112+ * <note>
10113+ * <p>
10114+ * This API is similar to DescribeAuditFinding's <a href=
10115+ * "https://docs.aws.amazon.com/iot/latest/apireference/API_DescribeAuditFinding.html"
10116+ * >RelatedResources</a> but provides pagination and is not limited to 10
10117+ * resources. When calling <a href=
10118+ * "https://docs.aws.amazon.com/iot/latest/apireference/API_DescribeAuditFinding.html"
10119+ * >DescribeAuditFinding</a> for the intermediate CA revoked for active
10120+ * device certificates check, RelatedResources will not be populated. You
10121+ * must use this API, ListRelatedResourcesForAuditFinding, to list the
10122+ * certificates.
10123+ * </p>
10124+ * </note>
10125+ *
10126+ * @param listRelatedResourcesForAuditFindingRequest
10127+ * @return listRelatedResourcesForAuditFindingResult The response from the
10128+ * ListRelatedResourcesForAuditFinding service method, as returned
10129+ * by AWS IoT.
10130+ * @throws ResourceNotFoundException
10131+ * @throws InvalidRequestException
10132+ * @throws ThrottlingException
10133+ * @throws InternalFailureException
10134+ * @throws AmazonClientException If any internal errors are encountered
10135+ * inside the client while attempting to make the request or
10136+ * handle the response. For example if a network connection is
10137+ * not available.
10138+ * @throws AmazonServiceException If an error response is returned by AWS
10139+ * IoT indicating either a problem with the data in the request,
10140+ * or a server side issue.
10141+ */
10142+ public ListRelatedResourcesForAuditFindingResult listRelatedResourcesForAuditFinding(
10143+ ListRelatedResourcesForAuditFindingRequest listRelatedResourcesForAuditFindingRequest)
10144+ throws AmazonServiceException, AmazonClientException {
10145+ ExecutionContext executionContext = createExecutionContext(listRelatedResourcesForAuditFindingRequest);
10146+ AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
10147+ awsRequestMetrics.startEvent(Field.ClientExecuteTime);
10148+ Request<ListRelatedResourcesForAuditFindingRequest> request = null;
10149+ Response<ListRelatedResourcesForAuditFindingResult> response = null;
10150+ try {
10151+ awsRequestMetrics.startEvent(Field.RequestMarshallTime);
10152+ try {
10153+ request = new ListRelatedResourcesForAuditFindingRequestMarshaller()
10154+ .marshall(listRelatedResourcesForAuditFindingRequest);
10155+ // Binds the request metrics to the current request.
10156+ request.setAWSRequestMetrics(awsRequestMetrics);
10157+ } finally {
10158+ awsRequestMetrics.endEvent(Field.RequestMarshallTime);
10159+ }
10160+ Unmarshaller<ListRelatedResourcesForAuditFindingResult, JsonUnmarshallerContext> unmarshaller = new ListRelatedResourcesForAuditFindingResultJsonUnmarshaller();
10161+ JsonResponseHandler<ListRelatedResourcesForAuditFindingResult> responseHandler = new JsonResponseHandler<ListRelatedResourcesForAuditFindingResult>(
10162+ unmarshaller);
10163+
10164+ response = invoke(request, responseHandler, executionContext);
10165+
10166+ return response.getAwsResponse();
10167+ } finally {
10168+ awsRequestMetrics.endEvent(Field.ClientExecuteTime);
10169+ endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
10170+ }
10171+ }
10172+
1006010173 /**
1006110174 * <p>
1006210175 * Lists the role aliases registered in your account.
@@ -10860,7 +10973,11 @@ public ListThingTypesResult listThingTypes(ListThingTypesRequest listThingTypesR
1086010973 * parameters to filter your things. For example, calling
1086110974 * <code>ListThings</code> with attributeName=Color and attributeValue=Red
1086210975 * retrieves all things in the registry that contain an attribute
10863- * <b>Color</b> with the value <b>Red</b>.
10976+ * <b>Color</b> with the value <b>Red</b>. For more information, see <a
10977+ * href=
10978+ * "https://docs.aws.amazon.com/iot/latest/developerguide/thing-registry.html#list-things"
10979+ * >List Things</a> from the <i>Amazon Web Services IoT Core Developer
10980+ * Guide</i>.
1086410981 * </p>
1086510982 * <p>
1086610983 * Requires permission to access the <a href=
0 commit comments