import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import type { DescribeAuditFindingRequest, DescribeAuditFindingResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeAuditFindingCommand}. */ export interface DescribeAuditFindingCommandInput extends DescribeAuditFindingRequest { } /** * @public * * The output of {@link DescribeAuditFindingCommand}. */ export interface DescribeAuditFindingCommandOutput extends DescribeAuditFindingResponse, __MetadataBearer { } declare const DescribeAuditFindingCommand_base: { new (input: DescribeAuditFindingCommandInput): import("@smithy/core/client").CommandImpl; new (input: DescribeAuditFindingCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, DescribeAuditFindingCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, DescribeAuditFindingCommand } = require("@aws-sdk/client-iot"); // CommonJS import * // import type { IoTClientConfig } from "@aws-sdk/client-iot"; * const config = {}; // type is IoTClientConfig * const client = new IoTClient(config); * const input = { // DescribeAuditFindingRequest * findingId: "STRING_VALUE", // required * }; * const command = new DescribeAuditFindingCommand(input); * const response = await client.send(command); * // { // DescribeAuditFindingResponse * // finding: { // AuditFinding * // findingId: "STRING_VALUE", * // taskId: "STRING_VALUE", * // checkName: "STRING_VALUE", * // taskStartTime: new Date("TIMESTAMP"), * // findingTime: new Date("TIMESTAMP"), * // severity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW", * // nonCompliantResource: { // NonCompliantResource * // resourceType: "DEVICE_CERTIFICATE" || "CA_CERTIFICATE" || "IOT_POLICY" || "COGNITO_IDENTITY_POOL" || "CLIENT_ID" || "ACCOUNT_SETTINGS" || "ROLE_ALIAS" || "IAM_ROLE" || "ISSUER_CERTIFICATE", * // resourceIdentifier: { // ResourceIdentifier * // deviceCertificateId: "STRING_VALUE", * // caCertificateId: "STRING_VALUE", * // cognitoIdentityPoolId: "STRING_VALUE", * // clientId: "STRING_VALUE", * // policyVersionIdentifier: { // PolicyVersionIdentifier * // policyName: "STRING_VALUE", * // policyVersionId: "STRING_VALUE", * // }, * // account: "STRING_VALUE", * // iamRoleArn: "STRING_VALUE", * // roleAliasArn: "STRING_VALUE", * // issuerCertificateIdentifier: { // IssuerCertificateIdentifier * // issuerCertificateSubject: "STRING_VALUE", * // issuerId: "STRING_VALUE", * // issuerCertificateSerialNumber: "STRING_VALUE", * // }, * // deviceCertificateArn: "STRING_VALUE", * // }, * // additionalInfo: { // StringMap * // "": "STRING_VALUE", * // }, * // }, * // relatedResources: [ // RelatedResources * // { // RelatedResource * // resourceType: "DEVICE_CERTIFICATE" || "CA_CERTIFICATE" || "IOT_POLICY" || "COGNITO_IDENTITY_POOL" || "CLIENT_ID" || "ACCOUNT_SETTINGS" || "ROLE_ALIAS" || "IAM_ROLE" || "ISSUER_CERTIFICATE", * // resourceIdentifier: { * // deviceCertificateId: "STRING_VALUE", * // caCertificateId: "STRING_VALUE", * // cognitoIdentityPoolId: "STRING_VALUE", * // clientId: "STRING_VALUE", * // policyVersionIdentifier: { * // policyName: "STRING_VALUE", * // policyVersionId: "STRING_VALUE", * // }, * // account: "STRING_VALUE", * // iamRoleArn: "STRING_VALUE", * // roleAliasArn: "STRING_VALUE", * // issuerCertificateIdentifier: { * // issuerCertificateSubject: "STRING_VALUE", * // issuerId: "STRING_VALUE", * // issuerCertificateSerialNumber: "STRING_VALUE", * // }, * // deviceCertificateArn: "STRING_VALUE", * // }, * // additionalInfo: { * // "": "STRING_VALUE", * // }, * // }, * // ], * // reasonForNonCompliance: "STRING_VALUE", * // reasonForNonComplianceCode: "STRING_VALUE", * // isSuppressed: true || false, * // }, * // }; * * ``` * * @param DescribeAuditFindingCommandInput - {@link DescribeAuditFindingCommandInput} * @returns {@link DescribeAuditFindingCommandOutput} * @see {@link DescribeAuditFindingCommandInput} for command's `input` shape. * @see {@link DescribeAuditFindingCommandOutput} for command's `response` shape. * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape. * * @throws {@link InternalFailureException} (server fault) *

An unexpected error has occurred.

* * @throws {@link InvalidRequestException} (client fault) *

The request is not valid.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource does not exist.

* * @throws {@link ThrottlingException} (client fault) *

The rate exceeds the limit.

* * @throws {@link IoTServiceException} *

Base exception class for all service exceptions from IoT service.

* * * @public */ export declare class DescribeAuditFindingCommand extends DescribeAuditFindingCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeAuditFindingRequest; output: DescribeAuditFindingResponse; }; sdk: { input: DescribeAuditFindingCommandInput; output: DescribeAuditFindingCommandOutput; }; }; }