IoT.Client.
describe_audit_finding
(**kwargs)¶Gets information about a single audit finding. Properties include the reason for noncompliance, the severity of the issue, and the start time when the audit that returned the finding.
Requires permission to access the DescribeAuditFinding action.
See also: AWS API Documentation
Request Syntax
response = client.describe_audit_finding(
findingId='string'
)
[REQUIRED]
A unique identifier for a single audit finding. You can use this identifier to apply mitigation actions to the finding.
{
'finding': {
'findingId': 'string',
'taskId': 'string',
'checkName': 'string',
'taskStartTime': datetime(2015, 1, 1),
'findingTime': datetime(2015, 1, 1),
'severity': 'CRITICAL'|'HIGH'|'MEDIUM'|'LOW',
'nonCompliantResource': {
'resourceType': 'DEVICE_CERTIFICATE'|'CA_CERTIFICATE'|'IOT_POLICY'|'COGNITO_IDENTITY_POOL'|'CLIENT_ID'|'ACCOUNT_SETTINGS'|'ROLE_ALIAS'|'IAM_ROLE'|'ISSUER_CERTIFICATE',
'resourceIdentifier': {
'deviceCertificateId': 'string',
'caCertificateId': 'string',
'cognitoIdentityPoolId': 'string',
'clientId': 'string',
'policyVersionIdentifier': {
'policyName': 'string',
'policyVersionId': 'string'
},
'account': 'string',
'iamRoleArn': 'string',
'roleAliasArn': 'string',
'issuerCertificateIdentifier': {
'issuerCertificateSubject': 'string',
'issuerId': 'string',
'issuerCertificateSerialNumber': 'string'
},
'deviceCertificateArn': 'string'
},
'additionalInfo': {
'string': 'string'
}
},
'relatedResources': [
{
'resourceType': 'DEVICE_CERTIFICATE'|'CA_CERTIFICATE'|'IOT_POLICY'|'COGNITO_IDENTITY_POOL'|'CLIENT_ID'|'ACCOUNT_SETTINGS'|'ROLE_ALIAS'|'IAM_ROLE'|'ISSUER_CERTIFICATE',
'resourceIdentifier': {
'deviceCertificateId': 'string',
'caCertificateId': 'string',
'cognitoIdentityPoolId': 'string',
'clientId': 'string',
'policyVersionIdentifier': {
'policyName': 'string',
'policyVersionId': 'string'
},
'account': 'string',
'iamRoleArn': 'string',
'roleAliasArn': 'string',
'issuerCertificateIdentifier': {
'issuerCertificateSubject': 'string',
'issuerId': 'string',
'issuerCertificateSerialNumber': 'string'
},
'deviceCertificateArn': 'string'
},
'additionalInfo': {
'string': 'string'
}
},
],
'reasonForNonCompliance': 'string',
'reasonForNonComplianceCode': 'string',
'isSuppressed': True|False
}
}
Response Structure
The findings (results) of the audit.
A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.
The ID of the audit that generated this result (finding).
The audit check that generated this result.
The time the audit started.
The time the result (finding) was discovered.
The severity of the result (finding).
The resource that was found to be noncompliant with the audit check.
The type of the noncompliant resource.
Information that identifies the noncompliant resource.
The ID of the certificate attached to the resource.
The ID of the CA certificate used to authorize the certificate.
The ID of the Amazon Cognito identity pool.
The client ID.
The version of the policy associated with the resource.
The name of the policy.
The ID of the version of the policy associated with the resource.
The account with which the resource is associated.
The ARN of the IAM role that has overly permissive actions.
The ARN of the role alias that has overly permissive actions.
The issuer certificate identifier.
The subject of the issuer certificate.
The issuer ID.
The issuer certificate serial number.
The ARN of the identified device certificate.
Other information about the noncompliant resource.
The list of related resources.
Information about a related resource.
The type of resource.
Information that identifies the resource.
The ID of the certificate attached to the resource.
The ID of the CA certificate used to authorize the certificate.
The ID of the Amazon Cognito identity pool.
The client ID.
The version of the policy associated with the resource.
The name of the policy.
The ID of the version of the policy associated with the resource.
The account with which the resource is associated.
The ARN of the IAM role that has overly permissive actions.
The ARN of the role alias that has overly permissive actions.
The issuer certificate identifier.
The subject of the issuer certificate.
The issuer ID.
The issuer certificate serial number.
The ARN of the identified device certificate.
Other information about the resource.
The reason the resource was noncompliant.
A code that indicates the reason that the resource was noncompliant.
Indicates whether the audit finding was suppressed or not during reporting.
Exceptions
IoT.Client.exceptions.ResourceNotFoundException
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.InternalFailureException