import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ChimeSDKMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChimeSDKMessagingClient"; 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/smithy-client").CommandImpl; new (input: CreateChannelCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a channel to which you can add users and send messages.

*

* Restriction: You can't change a channel's * privacy.

* *

The x-amz-chime-bearer request header is mandatory. Use the * ARN of the AppInstanceUser or AppInstanceBot that makes the API call as the value in * the header.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ChimeSDKMessagingClient, CreateChannelCommand } from "@aws-sdk/client-chime-sdk-messaging"; // ES Modules import * // const { ChimeSDKMessagingClient, CreateChannelCommand } = require("@aws-sdk/client-chime-sdk-messaging"); // CommonJS import * // import type { ChimeSDKMessagingClientConfig } from "@aws-sdk/client-chime-sdk-messaging"; * const config = {}; // type is ChimeSDKMessagingClientConfig * const client = new ChimeSDKMessagingClient(config); * const input = { // CreateChannelRequest * AppInstanceArn: "STRING_VALUE", // required * Name: "STRING_VALUE", // required * Mode: "UNRESTRICTED" || "RESTRICTED", * Privacy: "PUBLIC" || "PRIVATE", * Metadata: "STRING_VALUE", * ClientRequestToken: "STRING_VALUE", // required * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * ChimeBearer: "STRING_VALUE", // required * ChannelId: "STRING_VALUE", * MemberArns: [ // ChannelMemberArns * "STRING_VALUE", * ], * ModeratorArns: [ // ChannelModeratorArns * "STRING_VALUE", * ], * ElasticChannelConfiguration: { // ElasticChannelConfiguration * MaximumSubChannels: Number("int"), // required * TargetMembershipsPerSubChannel: Number("int"), // required * MinimumMembershipPercentage: Number("int"), // required * }, * ExpirationSettings: { // ExpirationSettings * ExpirationDays: Number("int"), // required * ExpirationCriterion: "CREATED_TIMESTAMP" || "LAST_MESSAGE_TIMESTAMP", // required * }, * }; * const command = new CreateChannelCommand(input); * const response = await client.send(command); * // { // CreateChannelResponse * // ChannelArn: "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 ChimeSDKMessagingClientResolvedConfig | config} for ChimeSDKMessagingClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

The input parameters don't match the service's restrictions.

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

The request could not be processed because of conflict in the current state of the * resource.

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

The client is permanently forbidden from making the request.

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

The request exceeds the resource limit.

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

The service encountered an unexpected error.

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

The service is currently unavailable.

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

The client exceeded its request rate limit.

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

The client is not currently authorized to make the request.

* * @throws {@link ChimeSDKMessagingServiceException} *

Base exception class for all service exceptions from ChimeSDKMessaging 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; }; }; }