import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { MediaConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConnectClient"; import type { CreateGatewayRequest, CreateGatewayResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateGatewayCommand}. */ export interface CreateGatewayCommandInput extends CreateGatewayRequest { } /** * @public * * The output of {@link CreateGatewayCommand}. */ export interface CreateGatewayCommandOutput extends CreateGatewayResponse, __MetadataBearer { } declare const CreateGatewayCommand_base: { new (input: CreateGatewayCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateGatewayCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a new gateway. The request must include at least one network (up to four).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MediaConnectClient, CreateGatewayCommand } from "@aws-sdk/client-mediaconnect"; // ES Modules import * // const { MediaConnectClient, CreateGatewayCommand } = require("@aws-sdk/client-mediaconnect"); // CommonJS import * // import type { MediaConnectClientConfig } from "@aws-sdk/client-mediaconnect"; * const config = {}; // type is MediaConnectClientConfig * const client = new MediaConnectClient(config); * const input = { // CreateGatewayRequest * EgressCidrBlocks: [ // __listOfString // required * "STRING_VALUE", * ], * Name: "STRING_VALUE", // required * Networks: [ // __listOfGatewayNetwork // required * { // GatewayNetwork * CidrBlock: "STRING_VALUE", // required * Name: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateGatewayCommand(input); * const response = await client.send(command); * // { // CreateGatewayResponse * // Gateway: { // Gateway * // EgressCidrBlocks: [ // __listOfString // required * // "STRING_VALUE", * // ], * // GatewayArn: "STRING_VALUE", // required * // GatewayMessages: [ // __listOfMessageDetail * // { // MessageDetail * // Code: "STRING_VALUE", // required * // Message: "STRING_VALUE", // required * // ResourceName: "STRING_VALUE", * // }, * // ], * // GatewayState: "CREATING" || "ACTIVE" || "UPDATING" || "ERROR" || "DELETING" || "DELETED", * // Name: "STRING_VALUE", // required * // Networks: [ // __listOfGatewayNetwork // required * // { // GatewayNetwork * // CidrBlock: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // }, * // ], * // }, * // }; * * ``` * * @param CreateGatewayCommandInput - {@link CreateGatewayCommandInput} * @returns {@link CreateGatewayCommandOutput} * @see {@link CreateGatewayCommandInput} for command's `input` shape. * @see {@link CreateGatewayCommandOutput} for command's `response` shape. * @see {@link MediaConnectClientResolvedConfig | config} for MediaConnectClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

This exception is thrown if the request contains a semantic error. The precise meaning depends on the API, and is documented in the error message.

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

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.

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

Exception raised by Elemental MediaConnect when creating the gateway. See the error message for the operation for more information on the cause of this exception.

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

You do not have sufficient access to perform this action.

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

The server encountered an internal error and is unable to complete the request.

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

The service is currently unavailable or busy.

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

The request was denied due to request throttling.

* * @throws {@link MediaConnectServiceException} *

Base exception class for all service exceptions from MediaConnect service.

* * * @public */ export declare class CreateGatewayCommand extends CreateGatewayCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateGatewayRequest; output: CreateGatewayResponse; }; sdk: { input: CreateGatewayCommandInput; output: CreateGatewayCommandOutput; }; }; }