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 #3070

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 @@ -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