import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetPolicyRequest, GetPolicyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetPolicyCommand}. */ export interface GetPolicyCommandInput extends GetPolicyRequest { } /** * @public * * The output of {@link GetPolicyCommand}. */ export interface GetPolicyCommandOutput extends GetPolicyResponse, __MetadataBearer { } declare const GetPolicyCommand_base: { new (input: GetPolicyCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetPolicyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

* Returns the JSON-formatted resource-based policy on a profiling group. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeGuruProfilerClient, GetPolicyCommand } from "@aws-sdk/client-codeguruprofiler"; // ES Modules import * // const { CodeGuruProfilerClient, GetPolicyCommand } = require("@aws-sdk/client-codeguruprofiler"); // CommonJS import * // import type { CodeGuruProfilerClientConfig } from "@aws-sdk/client-codeguruprofiler"; * const config = {}; // type is CodeGuruProfilerClientConfig * const client = new CodeGuruProfilerClient(config); * const input = { // GetPolicyRequest * profilingGroupName: "STRING_VALUE", // required * }; * const command = new GetPolicyCommand(input); * const response = await client.send(command); * // { // GetPolicyResponse * // policy: "STRING_VALUE", // required * // revisionId: "STRING_VALUE", // required * // }; * * ``` * * @param GetPolicyCommandInput - {@link GetPolicyCommandInput} * @returns {@link GetPolicyCommandOutput} * @see {@link GetPolicyCommandInput} for command's `input` shape. * @see {@link GetPolicyCommandOutput} for command's `response` shape. * @see {@link CodeGuruProfilerClientResolvedConfig | config} for CodeGuruProfilerClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

The server encountered an internal error and is unable to complete the request.

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

The resource specified in the request does not exist.

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

The request was denied due to request throttling.

* * @throws {@link CodeGuruProfilerServiceException} *

Base exception class for all service exceptions from CodeGuruProfiler service.

* * * @public */ export declare class GetPolicyCommand extends GetPolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetPolicyRequest; output: GetPolicyResponse; }; sdk: { input: GetPolicyCommandInput; output: GetPolicyCommandOutput; }; }; }