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

Returns the policy definition containing the logic for your Config Custom Policy rule.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConfigServiceClient, GetCustomRulePolicyCommand } from "@aws-sdk/client-config-service"; // ES Modules import * // const { ConfigServiceClient, GetCustomRulePolicyCommand } = 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 = { // GetCustomRulePolicyRequest * ConfigRuleName: "STRING_VALUE", * }; * const command = new GetCustomRulePolicyCommand(input); * const response = await client.send(command); * // { // GetCustomRulePolicyResponse * // PolicyText: "STRING_VALUE", * // }; * * ``` * * @param GetCustomRulePolicyCommandInput - {@link GetCustomRulePolicyCommandInput} * @returns {@link GetCustomRulePolicyCommandOutput} * @see {@link GetCustomRulePolicyCommandInput} for command's `input` shape. * @see {@link GetCustomRulePolicyCommandOutput} for command's `response` shape. * @see {@link ConfigServiceClientResolvedConfig | config} for ConfigServiceClient's `config` shape. * * @throws {@link NoSuchConfigRuleException} (client fault) *

The Config rule in the request is not valid. Verify that the rule is an Config Process Check rule, that the rule name is correct, and that valid Amazon Resouce Names (ARNs) are used before trying again.

* * @throws {@link ConfigServiceServiceException} *

Base exception class for all service exceptions from ConfigService service.

* * * @public */ export declare class GetCustomRulePolicyCommand extends GetCustomRulePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetCustomRulePolicyRequest; output: GetCustomRulePolicyResponse; }; sdk: { input: GetCustomRulePolicyCommandInput; output: GetCustomRulePolicyCommandOutput; }; }; }