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 { PutPolicyRequest, PutPolicyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link PutPolicyCommand}. */ export interface PutPolicyCommandInput extends PutPolicyRequest { } /** * @public * * The output of {@link PutPolicyCommand}. */ export interface PutPolicyCommandOutput extends PutPolicyResponse, __MetadataBearer { } declare const PutPolicyCommand_base: { new (input: PutPolicyCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: PutPolicyCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * Create or change your policy. For more information about policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MediaConvertClient, PutPolicyCommand } from "@aws-sdk/client-mediaconvert"; // ES Modules import * // const { MediaConvertClient, PutPolicyCommand } = 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 = { // PutPolicyRequest * Policy: { // Policy * HttpInputs: "ALLOWED" || "DISALLOWED", * HttpsInputs: "ALLOWED" || "DISALLOWED", * S3Inputs: "ALLOWED" || "DISALLOWED", * }, * }; * const command = new PutPolicyCommand(input); * const response = await client.send(command); * // { // PutPolicyResponse * // Policy: { // Policy * // HttpInputs: "ALLOWED" || "DISALLOWED", * // HttpsInputs: "ALLOWED" || "DISALLOWED", * // S3Inputs: "ALLOWED" || "DISALLOWED", * // }, * // }; * * ``` * * @param PutPolicyCommandInput - {@link PutPolicyCommandInput} * @returns {@link PutPolicyCommandOutput} * @see {@link PutPolicyCommandInput} for command's `input` shape. * @see {@link PutPolicyCommandOutput} 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 PutPolicyCommand extends PutPolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutPolicyRequest; output: PutPolicyResponse; }; sdk: { input: PutPolicyCommandInput; output: PutPolicyCommandOutput; }; }; }