import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IvschatClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvschatClient"; import type { CreateRoomRequest, CreateRoomResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateRoomCommand}. */ export interface CreateRoomCommandInput extends CreateRoomRequest { } /** * @public * * The output of {@link CreateRoomCommand}. */ export interface CreateRoomCommandOutput extends CreateRoomResponse, __MetadataBearer { } declare const CreateRoomCommand_base: { new (input: CreateRoomCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [CreateRoomCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a room that allows clients to connect and pass messages.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IvschatClient, CreateRoomCommand } from "@aws-sdk/client-ivschat"; // ES Modules import * // const { IvschatClient, CreateRoomCommand } = require("@aws-sdk/client-ivschat"); // CommonJS import * // import type { IvschatClientConfig } from "@aws-sdk/client-ivschat"; * const config = {}; // type is IvschatClientConfig * const client = new IvschatClient(config); * const input = { // CreateRoomRequest * name: "STRING_VALUE", * maximumMessageRatePerSecond: Number("int"), * maximumMessageLength: Number("int"), * messageReviewHandler: { // MessageReviewHandler * uri: "STRING_VALUE", * fallbackResult: "STRING_VALUE", * }, * tags: { // Tags * "": "STRING_VALUE", * }, * loggingConfigurationIdentifiers: [ // LoggingConfigurationIdentifierList * "STRING_VALUE", * ], * }; * const command = new CreateRoomCommand(input); * const response = await client.send(command); * // { // CreateRoomResponse * // arn: "STRING_VALUE", * // id: "STRING_VALUE", * // name: "STRING_VALUE", * // createTime: new Date("TIMESTAMP"), * // updateTime: new Date("TIMESTAMP"), * // maximumMessageRatePerSecond: Number("int"), * // maximumMessageLength: Number("int"), * // messageReviewHandler: { // MessageReviewHandler * // uri: "STRING_VALUE", * // fallbackResult: "STRING_VALUE", * // }, * // tags: { // Tags * // "": "STRING_VALUE", * // }, * // loggingConfigurationIdentifiers: [ // LoggingConfigurationIdentifierList * // "STRING_VALUE", * // ], * // }; * * ``` * * @param CreateRoomCommandInput - {@link CreateRoomCommandInput} * @returns {@link CreateRoomCommandOutput} * @see {@link CreateRoomCommandInput} for command's `input` shape. * @see {@link CreateRoomCommandOutput} for command's `response` shape. * @see {@link IvschatClientResolvedConfig | config} for IvschatClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

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

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

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

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

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

* * @throws {@link IvschatServiceException} *

Base exception class for all service exceptions from Ivschat service.

* * * @public */ export declare class CreateRoomCommand extends CreateRoomCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateRoomRequest; output: CreateRoomResponse; }; sdk: { input: CreateRoomCommandInput; output: CreateRoomCommandOutput; }; }; }