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 { DescribeComplianceByResourceRequest, DescribeComplianceByResourceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeComplianceByResourceCommand}. */ export interface DescribeComplianceByResourceCommandInput extends DescribeComplianceByResourceRequest { } /** * @public * * The output of {@link DescribeComplianceByResourceCommand}. */ export interface DescribeComplianceByResourceCommandOutput extends DescribeComplianceByResourceResponse, __MetadataBearer { } declare const DescribeComplianceByResourceCommand_base: { new (input: DescribeComplianceByResourceCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeComplianceByResourceCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Indicates whether the specified Amazon Web Services resources are compliant. If * a resource is noncompliant, this operation returns the number of Config rules that the resource does not comply with.

*

A resource is compliant if it complies with all the Config * rules that evaluate it. It is noncompliant if it does not comply * with one or more of these rules.

*

If Config has no current evaluation results for the * resource, it returns INSUFFICIENT_DATA. This result * might indicate one of the following conditions about the rules that * evaluate the resource:

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConfigServiceClient, DescribeComplianceByResourceCommand } from "@aws-sdk/client-config-service"; // ES Modules import * // const { ConfigServiceClient, DescribeComplianceByResourceCommand } = 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 = { // DescribeComplianceByResourceRequest * ResourceType: "STRING_VALUE", * ResourceId: "STRING_VALUE", * ComplianceTypes: [ // ComplianceTypes * "COMPLIANT" || "NON_COMPLIANT" || "NOT_APPLICABLE" || "INSUFFICIENT_DATA", * ], * Limit: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new DescribeComplianceByResourceCommand(input); * const response = await client.send(command); * // { // DescribeComplianceByResourceResponse * // ComplianceByResources: [ // ComplianceByResources * // { // ComplianceByResource * // ResourceType: "STRING_VALUE", * // ResourceId: "STRING_VALUE", * // Compliance: { // Compliance * // ComplianceType: "COMPLIANT" || "NON_COMPLIANT" || "NOT_APPLICABLE" || "INSUFFICIENT_DATA", * // ComplianceContributorCount: { // ComplianceContributorCount * // CappedCount: Number("int"), * // CapExceeded: true || false, * // }, * // }, * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeComplianceByResourceCommandInput - {@link DescribeComplianceByResourceCommandInput} * @returns {@link DescribeComplianceByResourceCommandOutput} * @see {@link DescribeComplianceByResourceCommandInput} for command's `input` shape. * @see {@link DescribeComplianceByResourceCommandOutput} for command's `response` shape. * @see {@link ConfigServiceClientResolvedConfig | config} for ConfigServiceClient's `config` shape. * * @throws {@link InvalidNextTokenException} (client fault) *

The specified next token is not valid. Specify the * nextToken string that was returned in the previous * response to get the next page of results.

* * @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 DescribeComplianceByResourceCommand extends DescribeComplianceByResourceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeComplianceByResourceRequest; output: DescribeComplianceByResourceResponse; }; sdk: { input: DescribeComplianceByResourceCommandInput; output: DescribeComplianceByResourceCommandOutput; }; }; }