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 { CreateUseCaseRequest, CreateUseCaseResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateUseCaseCommand}. */ export interface CreateUseCaseCommandInput extends CreateUseCaseRequest { } /** * @public * * The output of {@link CreateUseCaseCommand}. */ export interface CreateUseCaseCommandOutput extends CreateUseCaseResponse, __MetadataBearer { } declare const CreateUseCaseCommand_base: { new (input: CreateUseCaseCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateUseCaseCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a use case for an integration association.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectClient, CreateUseCaseCommand } from "@aws-sdk/client-connect"; // ES Modules import * // const { ConnectClient, CreateUseCaseCommand } = 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 = { // CreateUseCaseRequest * InstanceId: "STRING_VALUE", // required * IntegrationAssociationId: "STRING_VALUE", // required * UseCaseType: "RULES_EVALUATION" || "CONNECT_CAMPAIGNS", // required * Tags: { // TagMap * "": "STRING_VALUE", * }, * }; * const command = new CreateUseCaseCommand(input); * const response = await client.send(command); * // { // CreateUseCaseResponse * // UseCaseId: "STRING_VALUE", * // UseCaseArn: "STRING_VALUE", * // }; * * ``` * * @param CreateUseCaseCommandInput - {@link CreateUseCaseCommandInput} * @returns {@link CreateUseCaseCommandOutput} * @see {@link CreateUseCaseCommandInput} for command's `input` shape. * @see {@link CreateUseCaseCommandOutput} for command's `response` shape. * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape. * * @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 InvalidRequestException} (client fault) *

The request is not valid.

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

The specified resource was not found.

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

The throttling limit has been exceeded.

* * @throws {@link ConnectServiceException} *

Base exception class for all service exceptions from Connect service.

* * * @public */ export declare class CreateUseCaseCommand extends CreateUseCaseCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateUseCaseRequest; output: CreateUseCaseResponse; }; sdk: { input: CreateUseCaseCommandInput; output: CreateUseCaseCommandOutput; }; }; }