Skip to content

Commit 98009a9

Browse files
authored
feat(aws-android-sdk-iot): update models to latest (#3070)
1 parent 299f21a commit 98009a9

16 files changed

+1508
-17
lines changed

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

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5412,6 +5412,92 @@ ListProvisioningTemplatesResult listProvisioningTemplates(
54125412
ListProvisioningTemplatesRequest listProvisioningTemplatesRequest)
54135413
throws AmazonClientException, AmazonServiceException;
54145414

5415+
/**
5416+
* <p>
5417+
* The related resources of an Audit finding. The following resources can be
5418+
* returned from calling this API:
5419+
* </p>
5420+
* <ul>
5421+
* <li>
5422+
* <p>
5423+
* DEVICE_CERTIFICATE
5424+
* </p>
5425+
* </li>
5426+
* <li>
5427+
* <p>
5428+
* CA_CERTIFICATE
5429+
* </p>
5430+
* </li>
5431+
* <li>
5432+
* <p>
5433+
* IOT_POLICY
5434+
* </p>
5435+
* </li>
5436+
* <li>
5437+
* <p>
5438+
* COGNITO_IDENTITY_POOL
5439+
* </p>
5440+
* </li>
5441+
* <li>
5442+
* <p>
5443+
* CLIENT_ID
5444+
* </p>
5445+
* </li>
5446+
* <li>
5447+
* <p>
5448+
* ACCOUNT_SETTINGS
5449+
* </p>
5450+
* </li>
5451+
* <li>
5452+
* <p>
5453+
* ROLE_ALIAS
5454+
* </p>
5455+
* </li>
5456+
* <li>
5457+
* <p>
5458+
* IAM_ROLE
5459+
* </p>
5460+
* </li>
5461+
* <li>
5462+
* <p>
5463+
* ISSUER_CERTIFICATE
5464+
* </p>
5465+
* </li>
5466+
* </ul>
5467+
* <note>
5468+
* <p>
5469+
* This API is similar to DescribeAuditFinding's <a href=
5470+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_DescribeAuditFinding.html"
5471+
* >RelatedResources</a> but provides pagination and is not limited to 10
5472+
* resources. When calling <a href=
5473+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_DescribeAuditFinding.html"
5474+
* >DescribeAuditFinding</a> for the intermediate CA revoked for active
5475+
* device certificates check, RelatedResources will not be populated. You
5476+
* must use this API, ListRelatedResourcesForAuditFinding, to list the
5477+
* certificates.
5478+
* </p>
5479+
* </note>
5480+
*
5481+
* @param listRelatedResourcesForAuditFindingRequest
5482+
* @return listRelatedResourcesForAuditFindingResult The response from the
5483+
* ListRelatedResourcesForAuditFinding service method, as returned
5484+
* by AWS IoT.
5485+
* @throws ResourceNotFoundException
5486+
* @throws InvalidRequestException
5487+
* @throws ThrottlingException
5488+
* @throws InternalFailureException
5489+
* @throws AmazonClientException If any internal errors are encountered
5490+
* inside the client while attempting to make the request or
5491+
* handle the response. For example if a network connection is
5492+
* not available.
5493+
* @throws AmazonServiceException If an error response is returned by AWS
5494+
* IoT indicating either a problem with the data in the request,
5495+
* or a server side issue.
5496+
*/
5497+
ListRelatedResourcesForAuditFindingResult listRelatedResourcesForAuditFinding(
5498+
ListRelatedResourcesForAuditFindingRequest listRelatedResourcesForAuditFindingRequest)
5499+
throws AmazonClientException, AmazonServiceException;
5500+
54155501
/**
54165502
* <p>
54175503
* Lists the role aliases registered in your account.
@@ -5841,7 +5927,11 @@ ListThingTypesResult listThingTypes(ListThingTypesRequest listThingTypesRequest)
58415927
* parameters to filter your things. For example, calling
58425928
* <code>ListThings</code> with attributeName=Color and attributeValue=Red
58435929
* retrieves all things in the registry that contain an attribute
5844-
* <b>Color</b> with the value <b>Red</b>.
5930+
* <b>Color</b> with the value <b>Red</b>. For more information, see <a
5931+
* href=
5932+
* "https://docs.aws.amazon.com/iot/latest/developerguide/thing-registry.html#list-things"
5933+
* >List Things</a> from the <i>Amazon Web Services IoT Core Developer
5934+
* Guide</i>.
58455935
* </p>
58465936
* <p>
58475937
* Requires permission to access the <a href=

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

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)