import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateTemplateRequest, CreateTemplateResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateTemplateCommand}. */ export interface CreateTemplateCommandInput extends CreateTemplateRequest { } /** * @public * * The output of {@link CreateTemplateCommand}. */ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __MetadataBearer { } declare const CreateTemplateCommand_base: { new (input: CreateTemplateCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateTemplateCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a template in the Cases domain. This template is used to define the case object model (that is, to define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template. A template can be either Active or Inactive, as indicated by its status. Inactive templates cannot be used to create cases.

Other template APIs are:

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectCasesClient, CreateTemplateCommand } from "@aws-sdk/client-connectcases"; // ES Modules import * // const { ConnectCasesClient, CreateTemplateCommand } = require("@aws-sdk/client-connectcases"); // CommonJS import * // import type { ConnectCasesClientConfig } from "@aws-sdk/client-connectcases"; * const config = {}; // type is ConnectCasesClientConfig * const client = new ConnectCasesClient(config); * const input = { // CreateTemplateRequest * domainId: "STRING_VALUE", // required * name: "STRING_VALUE", // required * description: "STRING_VALUE", * layoutConfiguration: { // LayoutConfiguration * defaultLayout: "STRING_VALUE", * }, * requiredFields: [ // RequiredFieldList * { // RequiredField * fieldId: "STRING_VALUE", // required * }, * ], * status: "STRING_VALUE", * rules: [ // TemplateCaseRuleList * { // TemplateRule * caseRuleId: "STRING_VALUE", // required * fieldId: "STRING_VALUE", * }, * ], * tagPropagationConfigurations: [ // TagPropagationConfigurationList * { // TagPropagationConfiguration * resourceType: "STRING_VALUE", // required * tagMap: { // MutableTags // required * "": "STRING_VALUE", * }, * }, * ], * }; * const command = new CreateTemplateCommand(input); * const response = await client.send(command); * // { // CreateTemplateResponse * // templateId: "STRING_VALUE", // required * // templateArn: "STRING_VALUE", // required * // }; * * ``` * * @param CreateTemplateCommandInput - {@link CreateTemplateCommandInput} * @returns {@link CreateTemplateCommandOutput} * @see {@link CreateTemplateCommandInput} for command's `input` shape. * @see {@link CreateTemplateCommandOutput} for command's `response` shape. * @see {@link ConnectCasesClientResolvedConfig | config} for ConnectCasesClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @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. See the accompanying error message for details.

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

We couldn't process your request because of an issue with the server. Try again later.

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

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

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

The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

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

The rate has been exceeded for this API. Please try again after a few minutes.

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

The request isn't valid. Check the syntax and try again.

* * @throws {@link ConnectCasesServiceException} *

Base exception class for all service exceptions from ConnectCases service.

* * * @public */ export declare class CreateTemplateCommand extends CreateTemplateCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateTemplateRequest; output: CreateTemplateResponse; }; sdk: { input: CreateTemplateCommandInput; output: CreateTemplateCommandOutput; }; }; }