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

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

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

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

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

For PutConfigurationAggregator API, you can see this exception for the following reasons:

* *

For all OrganizationConfigRule and OrganizationConformancePack APIs, Config throws an exception if APIs are called from member accounts. All APIs must be called from organization management account.

* * @throws {@link ConfigServiceServiceException} *

Base exception class for all service exceptions from ConfigService service.

* * * @public */ export declare class GetOrganizationCustomRulePolicyCommand extends GetOrganizationCustomRulePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetOrganizationCustomRulePolicyRequest; output: GetOrganizationCustomRulePolicyResponse; }; sdk: { input: GetOrganizationCustomRulePolicyCommandInput; output: GetOrganizationCustomRulePolicyCommandOutput; }; }; }