import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConvertClient"; import type { GetPolicyRequest, GetPolicyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @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/smithy-client").CommandImpl; new (...[input]: [] | [GetPolicyCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * Retrieve the JSON for your policy. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MediaConvertClient, GetPolicyCommand } from "@aws-sdk/client-mediaconvert"; // ES Modules import * // const { MediaConvertClient, GetPolicyCommand } = require("@aws-sdk/client-mediaconvert"); // CommonJS import * // import type { MediaConvertClientConfig } from "@aws-sdk/client-mediaconvert"; * const config = {}; // type is MediaConvertClientConfig * const client = new MediaConvertClient(config); * const input = {}; * const command = new GetPolicyCommand(input); * const response = await client.send(command); * // { // GetPolicyResponse * // Policy: { // Policy * // HttpInputs: "ALLOWED" || "DISALLOWED", * // HttpsInputs: "ALLOWED" || "DISALLOWED", * // S3Inputs: "ALLOWED" || "DISALLOWED", * // }, * // }; * * ``` * * @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 MediaConvertClientResolvedConfig | config} for MediaConvertClient's `config` shape. * * @throws {@link BadRequestException} (client fault) * The service can't process your request because of a problem in the request. Please check your request form and syntax. * * @throws {@link ConflictException} (client fault) * The service couldn't complete your request because there is a conflict with the current state of the resource. * * @throws {@link ForbiddenException} (client fault) * You don't have permissions for this action with the credentials you sent. * * @throws {@link InternalServerErrorException} (server fault) * The service encountered an unexpected condition and can't fulfill your request. * * @throws {@link NotFoundException} (client fault) * The resource you requested doesn't exist. * * @throws {@link ServiceQuotaExceededException} (client fault) * You attempted to create more resources than the service allows based on service quotas. * * @throws {@link TooManyRequestsException} (client fault) * Too many requests have been sent in too short of a time. The service limits the rate at which it will accept requests. * * @throws {@link MediaConvertServiceException} *

Base exception class for all service exceptions from MediaConvert service.

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