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 { StartResourceEvaluationRequest, StartResourceEvaluationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link StartResourceEvaluationCommand}. */ export interface StartResourceEvaluationCommandInput extends StartResourceEvaluationRequest { } /** * @public * * The output of {@link StartResourceEvaluationCommand}. */ export interface StartResourceEvaluationCommandOutput extends StartResourceEvaluationResponse, __MetadataBearer { } declare const StartResourceEvaluationCommand_base: { new (input: StartResourceEvaluationCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: StartResourceEvaluationCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Runs an on-demand evaluation for the specified resource to determine whether the resource details will comply with configured Config rules. * You can also use it for evaluation purposes. Config recommends using an evaluation context. It runs an execution against the resource details with all * of the Config rules in your account that match with the specified proactive mode and resource type.

* *

Ensure you have the cloudformation:DescribeType role setup to validate the resource type schema.

*

You can find the * Resource type schema in "Amazon Web Services public extensions" within the CloudFormation registry or with the following CLI commmand: * aws cloudformation describe-type --type-name "AWS::S3::Bucket" --type RESOURCE.

*

For more information, see Managing extensions through the CloudFormation registry * and Amazon Web Services resource and property types reference in the CloudFormation User Guide.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConfigServiceClient, StartResourceEvaluationCommand } from "@aws-sdk/client-config-service"; // ES Modules import * // const { ConfigServiceClient, StartResourceEvaluationCommand } = 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 = { // StartResourceEvaluationRequest * ResourceDetails: { // ResourceDetails * ResourceId: "STRING_VALUE", // required * ResourceType: "STRING_VALUE", // required * ResourceConfiguration: "STRING_VALUE", // required * ResourceConfigurationSchemaType: "CFN_RESOURCE_SCHEMA", * }, * EvaluationContext: { // EvaluationContext * EvaluationContextIdentifier: "STRING_VALUE", * }, * EvaluationMode: "DETECTIVE" || "PROACTIVE", // required * EvaluationTimeout: Number("int"), * ClientToken: "STRING_VALUE", * }; * const command = new StartResourceEvaluationCommand(input); * const response = await client.send(command); * // { // StartResourceEvaluationResponse * // ResourceEvaluationId: "STRING_VALUE", * // }; * * ``` * * @param StartResourceEvaluationCommandInput - {@link StartResourceEvaluationCommandInput} * @returns {@link StartResourceEvaluationCommandOutput} * @see {@link StartResourceEvaluationCommandInput} for command's `input` shape. * @see {@link StartResourceEvaluationCommandOutput} for command's `response` shape. * @see {@link ConfigServiceClientResolvedConfig | config} for ConfigServiceClient's `config` shape. * * @throws {@link IdempotentParameterMismatch} (client fault) *

Using the same client token with one or more different parameters. Specify a new client token with the parameter changes and try again.

* * @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 StartResourceEvaluationCommand extends StartResourceEvaluationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartResourceEvaluationRequest; output: StartResourceEvaluationResponse; }; sdk: { input: StartResourceEvaluationCommandInput; output: StartResourceEvaluationCommandOutput; }; }; }