import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ApiGatewayV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayV2Client"; import type { CreatePortalRequest, CreatePortalResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreatePortalCommand}. */ export interface CreatePortalCommandInput extends CreatePortalRequest { } /** * @public * * The output of {@link CreatePortalCommand}. */ export interface CreatePortalCommandOutput extends CreatePortalResponse, __MetadataBearer { } declare const CreatePortalCommand_base: { new (input: CreatePortalCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreatePortalCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a portal.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ApiGatewayV2Client, CreatePortalCommand } from "@aws-sdk/client-apigatewayv2"; // ES Modules import * // const { ApiGatewayV2Client, CreatePortalCommand } = require("@aws-sdk/client-apigatewayv2"); // CommonJS import * // import type { ApiGatewayV2ClientConfig } from "@aws-sdk/client-apigatewayv2"; * const config = {}; // type is ApiGatewayV2ClientConfig * const client = new ApiGatewayV2Client(config); * const input = { // CreatePortalRequest * Authorization: { // Authorization * CognitoConfig: { // CognitoConfig * AppClientId: "STRING_VALUE", // required * UserPoolArn: "STRING_VALUE", // required * UserPoolDomain: "STRING_VALUE", // required * }, * None: {}, * }, * EndpointConfiguration: { // EndpointConfigurationRequest * AcmManaged: { // ACMManaged * CertificateArn: "STRING_VALUE", // required * DomainName: "STRING_VALUE", // required * }, * None: {}, * }, * IncludedPortalProductArns: [ // __listOf__stringMin20Max2048 * "STRING_VALUE", * ], * LogoUri: "STRING_VALUE", * PortalContent: { // PortalContent * Description: "STRING_VALUE", * DisplayName: "STRING_VALUE", // required * Theme: { // PortalTheme * CustomColors: { // CustomColors * AccentColor: "STRING_VALUE", // required * BackgroundColor: "STRING_VALUE", // required * ErrorValidationColor: "STRING_VALUE", // required * HeaderColor: "STRING_VALUE", // required * NavigationColor: "STRING_VALUE", // required * TextColor: "STRING_VALUE", // required * }, * LogoLastUploaded: new Date("TIMESTAMP"), * }, * }, * RumAppMonitorName: "STRING_VALUE", * Tags: { // Tags * "": "STRING_VALUE", * }, * }; * const command = new CreatePortalCommand(input); * const response = await client.send(command); * // { // CreatePortalResponse * // Authorization: { // Authorization * // CognitoConfig: { // CognitoConfig * // AppClientId: "STRING_VALUE", // required * // UserPoolArn: "STRING_VALUE", // required * // UserPoolDomain: "STRING_VALUE", // required * // }, * // None: {}, * // }, * // EndpointConfiguration: { // EndpointConfigurationResponse * // CertificateArn: "STRING_VALUE", * // DomainName: "STRING_VALUE", * // PortalDefaultDomainName: "STRING_VALUE", // required * // PortalDomainHostedZoneId: "STRING_VALUE", // required * // }, * // IncludedPortalProductArns: [ // __listOf__stringMin20Max2048 * // "STRING_VALUE", * // ], * // LastModified: new Date("TIMESTAMP"), * // LastPublished: new Date("TIMESTAMP"), * // LastPublishedDescription: "STRING_VALUE", * // PortalArn: "STRING_VALUE", * // PortalContent: { // PortalContent * // Description: "STRING_VALUE", * // DisplayName: "STRING_VALUE", // required * // Theme: { // PortalTheme * // CustomColors: { // CustomColors * // AccentColor: "STRING_VALUE", // required * // BackgroundColor: "STRING_VALUE", // required * // ErrorValidationColor: "STRING_VALUE", // required * // HeaderColor: "STRING_VALUE", // required * // NavigationColor: "STRING_VALUE", // required * // TextColor: "STRING_VALUE", // required * // }, * // LogoLastUploaded: new Date("TIMESTAMP"), * // }, * // }, * // PortalId: "STRING_VALUE", * // PublishStatus: "PUBLISHED" || "PUBLISH_IN_PROGRESS" || "PUBLISH_FAILED" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED" || "DISABLED", * // RumAppMonitorName: "STRING_VALUE", * // StatusException: { // StatusException * // Exception: "STRING_VALUE", * // Message: "STRING_VALUE", * // }, * // Tags: { // Tags * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param CreatePortalCommandInput - {@link CreatePortalCommandInput} * @returns {@link CreatePortalCommandOutput} * @see {@link CreatePortalCommandInput} for command's `input` shape. * @see {@link CreatePortalCommandOutput} for command's `response` shape. * @see {@link ApiGatewayV2ClientResolvedConfig | config} for ApiGatewayV2Client's `config` shape. * * @throws {@link AccessDeniedException} (client fault) * * @throws {@link BadRequestException} (client fault) *

The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.

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

A limit has been exceeded. See the accompanying error message for details.

* * @throws {@link ApiGatewayV2ServiceException} *

Base exception class for all service exceptions from ApiGatewayV2 service.

* * * @public */ export declare class CreatePortalCommand extends CreatePortalCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreatePortalRequest; output: CreatePortalResponse; }; sdk: { input: CreatePortalCommandInput; output: CreatePortalCommandOutput; }; }; }