import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient"; import type { CreateChannelRequest, CreateChannelResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateChannelCommand}. */ export interface CreateChannelCommandInput extends CreateChannelRequest { } /** * @public * * The output of {@link CreateChannelCommand}. */ export interface CreateChannelCommandOutput extends CreateChannelResponse, __MetadataBearer { } declare const CreateChannelCommand_base: { new (input: CreateChannelCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateChannelCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** * Creates a new Channel. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MediaPackageClient, CreateChannelCommand } from "@aws-sdk/client-mediapackage"; // ES Modules import * // const { MediaPackageClient, CreateChannelCommand } = require("@aws-sdk/client-mediapackage"); // CommonJS import * // import type { MediaPackageClientConfig } from "@aws-sdk/client-mediapackage"; * const config = {}; // type is MediaPackageClientConfig * const client = new MediaPackageClient(config); * const input = { // CreateChannelRequest * Description: "STRING_VALUE", * Id: "STRING_VALUE", // required * Tags: { // Tags * "": "STRING_VALUE", * }, * }; * const command = new CreateChannelCommand(input); * const response = await client.send(command); * // { // CreateChannelResponse * // Arn: "STRING_VALUE", * // CreatedAt: "STRING_VALUE", * // Description: "STRING_VALUE", * // EgressAccessLogs: { // EgressAccessLogs * // LogGroupName: "STRING_VALUE", * // }, * // HlsIngest: { // HlsIngest * // IngestEndpoints: [ // __listOfIngestEndpoint * // { // IngestEndpoint * // Id: "STRING_VALUE", * // Password: "STRING_VALUE", * // Url: "STRING_VALUE", * // Username: "STRING_VALUE", * // }, * // ], * // }, * // Id: "STRING_VALUE", * // IngressAccessLogs: { // IngressAccessLogs * // LogGroupName: "STRING_VALUE", * // }, * // Tags: { // Tags * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateChannelCommandInput - {@link CreateChannelCommandInput} * @returns {@link CreateChannelCommandOutput} * @see {@link CreateChannelCommandInput} for command's `input` shape. * @see {@link CreateChannelCommandOutput} for command's `response` shape. * @see {@link MediaPackageClientResolvedConfig | config} for MediaPackageClient's `config` shape. * * @throws {@link ForbiddenException} (client fault) * The client is not authorized to access the requested resource. * * @throws {@link InternalServerErrorException} (server fault) * An unexpected error occurred. * * @throws {@link NotFoundException} (client fault) * The requested resource does not exist. * * @throws {@link ServiceUnavailableException} (server fault) * An unexpected error occurred. * * @throws {@link TooManyRequestsException} (client fault) * The client has exceeded their resource or throttling limits. * * @throws {@link UnprocessableEntityException} (client fault) * The parameters sent in the request are not valid. * * @throws {@link MediaPackageServiceException} *

Base exception class for all service exceptions from MediaPackage service.

* * * @public */ export declare class CreateChannelCommand extends CreateChannelCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateChannelRequest; output: CreateChannelResponse; }; sdk: { input: CreateChannelCommandInput; output: CreateChannelCommandOutput; }; }; }