import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ConfigServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConfigServiceClient"; import type { GetComplianceDetailsByResourceRequest, GetComplianceDetailsByResourceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetComplianceDetailsByResourceCommand}. */ export interface GetComplianceDetailsByResourceCommandInput extends GetComplianceDetailsByResourceRequest { } /** * @public * * The output of {@link GetComplianceDetailsByResourceCommand}. */ export interface GetComplianceDetailsByResourceCommandOutput extends GetComplianceDetailsByResourceResponse, __MetadataBearer { } declare const GetComplianceDetailsByResourceCommand_base: { new (input: GetComplianceDetailsByResourceCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [GetComplianceDetailsByResourceCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns the evaluation results for the specified Amazon Web Services resource. * The results indicate which Config rules were used to evaluate * the resource, when each rule was last invoked, and whether the resource * complies with each rule.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConfigServiceClient, GetComplianceDetailsByResourceCommand } from "@aws-sdk/client-config-service"; // ES Modules import * // const { ConfigServiceClient, GetComplianceDetailsByResourceCommand } = require("@aws-sdk/client-config-service"); // CommonJS import * // import type { ConfigServiceClientConfig } from "@aws-sdk/client-config-service"; * const config = {}; // type is ConfigServiceClientConfig * const client = new ConfigServiceClient(config); * const input = { // GetComplianceDetailsByResourceRequest * ResourceType: "STRING_VALUE", * ResourceId: "STRING_VALUE", * ComplianceTypes: [ // ComplianceTypes * "COMPLIANT" || "NON_COMPLIANT" || "NOT_APPLICABLE" || "INSUFFICIENT_DATA", * ], * NextToken: "STRING_VALUE", * ResourceEvaluationId: "STRING_VALUE", * }; * const command = new GetComplianceDetailsByResourceCommand(input); * const response = await client.send(command); * // { // GetComplianceDetailsByResourceResponse * // EvaluationResults: [ // EvaluationResults * // { // EvaluationResult * // EvaluationResultIdentifier: { // EvaluationResultIdentifier * // EvaluationResultQualifier: { // EvaluationResultQualifier * // ConfigRuleName: "STRING_VALUE", * // ResourceType: "STRING_VALUE", * // ResourceId: "STRING_VALUE", * // EvaluationMode: "DETECTIVE" || "PROACTIVE", * // }, * // OrderingTimestamp: new Date("TIMESTAMP"), * // ResourceEvaluationId: "STRING_VALUE", * // }, * // ComplianceType: "COMPLIANT" || "NON_COMPLIANT" || "NOT_APPLICABLE" || "INSUFFICIENT_DATA", * // ResultRecordedTime: new Date("TIMESTAMP"), * // ConfigRuleInvokedTime: new Date("TIMESTAMP"), * // Annotation: "STRING_VALUE", * // ResultToken: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param GetComplianceDetailsByResourceCommandInput - {@link GetComplianceDetailsByResourceCommandInput} * @returns {@link GetComplianceDetailsByResourceCommandOutput} * @see {@link GetComplianceDetailsByResourceCommandInput} for command's `input` shape. * @see {@link GetComplianceDetailsByResourceCommandOutput} for command's `response` shape. * @see {@link ConfigServiceClientResolvedConfig | config} for ConfigServiceClient's `config` shape. * * @throws {@link InvalidParameterValueException} (client fault) *

One or more of the specified parameters are not valid. Verify * that your parameters are valid and try again.

* * @throws {@link ConfigServiceServiceException} *

Base exception class for all service exceptions from ConfigService service.

* * * @public */ export declare class GetComplianceDetailsByResourceCommand extends GetComplianceDetailsByResourceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetComplianceDetailsByResourceRequest; output: GetComplianceDetailsByResourceResponse; }; sdk: { input: GetComplianceDetailsByResourceCommandInput; output: GetComplianceDetailsByResourceCommandOutput; }; }; }