import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateChannelGroupRequest, CreateChannelGroupResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateChannelGroupCommand}. */ export interface CreateChannelGroupCommandInput extends CreateChannelGroupRequest { } /** * @public * * The output of {@link CreateChannelGroupCommand}. */ export interface CreateChannelGroupCommandOutput extends CreateChannelGroupResponse, __MetadataBearer { } declare const CreateChannelGroupCommand_base: { new (input: CreateChannelGroupCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateChannelGroupCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Create a channel group to group your channels and origin endpoints. A channel group is the top-level resource that consists of channels and origin endpoints that are associated with it and that provides predictable URLs for stream delivery. All channels and origin endpoints within the channel group are guaranteed to share the DNS. You can create only one channel group with each request.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MediaPackageV2Client, CreateChannelGroupCommand } from "@aws-sdk/client-mediapackagev2"; // ES Modules import * // const { MediaPackageV2Client, CreateChannelGroupCommand } = require("@aws-sdk/client-mediapackagev2"); // CommonJS import * // import type { MediaPackageV2ClientConfig } from "@aws-sdk/client-mediapackagev2"; * const config = {}; // type is MediaPackageV2ClientConfig * const client = new MediaPackageV2Client(config); * const input = { // CreateChannelGroupRequest * ChannelGroupName: "STRING_VALUE", // required * ClientToken: "STRING_VALUE", * Description: "STRING_VALUE", * Tags: { // TagMap * "": "STRING_VALUE", * }, * }; * const command = new CreateChannelGroupCommand(input); * const response = await client.send(command); * // { // CreateChannelGroupResponse * // ChannelGroupName: "STRING_VALUE", // required * // Arn: "STRING_VALUE", // required * // EgressDomain: "STRING_VALUE", // required * // CreatedAt: new Date("TIMESTAMP"), // required * // ModifiedAt: new Date("TIMESTAMP"), // required * // ETag: "STRING_VALUE", * // Description: "STRING_VALUE", * // Tags: { // TagMap * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateChannelGroupCommandInput - {@link CreateChannelGroupCommandInput} * @returns {@link CreateChannelGroupCommandOutput} * @see {@link CreateChannelGroupCommandInput} for command's `input` shape. * @see {@link CreateChannelGroupCommandOutput} for command's `response` shape. * @see {@link MediaPackageV2ClientResolvedConfig | config} for MediaPackageV2Client's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

Access is denied because either you don't have permissions to perform the requested operation or MediaPackage is getting throttling errors with CDN authorization. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide. Or, if you're using CDN authorization, you will receive this exception if MediaPackage receives a throttling error from Secrets Manager.

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

Updating or deleting this resource can cause an inconsistent state.

* * @throws {@link InternalServerException} (server fault) *

Indicates that an error from the service occurred while trying to process a request.

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

The specified resource doesn't exist.

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

The request would cause a service quota to be exceeded.

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

The request throughput limit was exceeded.

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

The input failed to meet the constraints specified by the AWS service.

* * @throws {@link MediaPackageV2ServiceException} *

Base exception class for all service exceptions from MediaPackageV2 service.

* * * @example Creating a Channel Group * ```javascript * // * const input = { * ChannelGroupName: "exampleChannelGroup", * Description: "Description for exampleChannelGroup", * Tags: { * key1: "value1", * key2: "value2" * } * }; * const command = new CreateChannelGroupCommand(input); * const response = await client.send(command); * /* response is * { * Arn: "arn:aws:mediapackagev2:us-west-2:123456789012:channelGroup/exampleChannelGroup", * ChannelGroupName: "exampleChannelGroup", * CreatedAt: "2022-10-18T09:36:00.00Z", * Description: "Description for exampleChannelGroup", * ETag: "GlfT+dwAyGIR4wuy8nKWl1RDPwSrjQej9qUutLZxoxk=", * EgressDomain: "abcde.egress.vwxyz.mediapackagev2.us-west-2.amazonaws.com", * ModifiedAt: "2022-10-18T09:36:00.00Z", * Tags: { * key1: "value1", * key2: "value2" * } * } * *\/ * ``` * * @public */ export declare class CreateChannelGroupCommand extends CreateChannelGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateChannelGroupRequest; output: CreateChannelGroupResponse; }; sdk: { input: CreateChannelGroupCommandInput; output: CreateChannelGroupCommandOutput; }; }; }