import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient"; import type { CreateViewRequest, CreateViewResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateViewCommand}. */ export interface CreateViewCommandInput extends CreateViewRequest { } /** * @public * * The output of {@link CreateViewCommand}. */ export interface CreateViewCommandOutput extends CreateViewResponse, __MetadataBearer { } declare const CreateViewCommand_base: { new (input: CreateViewCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateViewCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a new view with the possible status of SAVED or PUBLISHED.

*

The views will have a unique name for each connect instance.

*

It performs basic content validation if the status is SAVED or full content validation if the * status is set to PUBLISHED. An error is returned if validation fails. It associates either the * $SAVED qualifier or both of the $SAVED and $LATEST qualifiers with the * provided view content based on the status. The view is idempotent if ClientToken is provided.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectClient, CreateViewCommand } from "@aws-sdk/client-connect"; // ES Modules import * // const { ConnectClient, CreateViewCommand } = require("@aws-sdk/client-connect"); // CommonJS import * // import type { ConnectClientConfig } from "@aws-sdk/client-connect"; * const config = {}; // type is ConnectClientConfig * const client = new ConnectClient(config); * const input = { // CreateViewRequest * InstanceId: "STRING_VALUE", // required * ClientToken: "STRING_VALUE", * Status: "PUBLISHED" || "SAVED", // required * Content: { // ViewInputContent * Template: "STRING_VALUE", * Actions: [ // ViewActions * "STRING_VALUE", * ], * }, * Description: "STRING_VALUE", * Name: "STRING_VALUE", // required * Tags: { // TagMap * "": "STRING_VALUE", * }, * }; * const command = new CreateViewCommand(input); * const response = await client.send(command); * // { // CreateViewResponse * // View: { // View * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // Name: "STRING_VALUE", * // Status: "PUBLISHED" || "SAVED", * // Type: "CUSTOMER_MANAGED" || "AWS_MANAGED", * // Description: "STRING_VALUE", * // Version: Number("int"), * // VersionDescription: "STRING_VALUE", * // Content: { // ViewContent * // InputSchema: "STRING_VALUE", * // Template: "STRING_VALUE", * // Actions: [ // ViewActions * // "STRING_VALUE", * // ], * // }, * // Tags: { // TagMap * // "": "STRING_VALUE", * // }, * // CreatedTime: new Date("TIMESTAMP"), * // LastModifiedTime: new Date("TIMESTAMP"), * // ViewContentSha256: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateViewCommandInput - {@link CreateViewCommandInput} * @returns {@link CreateViewCommandOutput} * @see {@link CreateViewCommandInput} for command's `input` shape. * @see {@link CreateViewCommandOutput} for command's `response` shape. * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient permissions to perform this action.

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

A resource with the specified name already exists.

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

Request processing failed because of an error or failure with the service.

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

One or more of the specified parameters are not valid.

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

The request is not valid.

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

That resource is already in use (for example, you're trying to add a record with the same name as an existing * record). If you are trying to delete a resource (for example, DeleteHoursOfOperation or DeletePredefinedAttribute), * remove its reference from related resources and then try again.

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

The specified resource was not found.

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

The service quota has been exceeded.

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

Displayed when rate-related API limits are exceeded.

* * @throws {@link ConnectServiceException} *

Base exception class for all service exceptions from Connect service.

* * * @public */ export declare class CreateViewCommand extends CreateViewCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateViewRequest; output: CreateViewResponse; }; sdk: { input: CreateViewCommandInput; output: CreateViewCommandOutput; }; }; }