import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateAIGuardrailVersionRequest, CreateAIGuardrailVersionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateAIGuardrailVersionCommand}. */ export interface CreateAIGuardrailVersionCommandInput extends CreateAIGuardrailVersionRequest { } /** * @public * * The output of {@link CreateAIGuardrailVersionCommand}. */ export interface CreateAIGuardrailVersionCommandOutput extends CreateAIGuardrailVersionResponse, __MetadataBearer { } declare const CreateAIGuardrailVersionCommand_base: { new (input: CreateAIGuardrailVersionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateAIGuardrailVersionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates an Amazon Q in Connect AI Guardrail version.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { QConnectClient, CreateAIGuardrailVersionCommand } from "@aws-sdk/client-qconnect"; // ES Modules import * // const { QConnectClient, CreateAIGuardrailVersionCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import * // import type { QConnectClientConfig } from "@aws-sdk/client-qconnect"; * const config = {}; // type is QConnectClientConfig * const client = new QConnectClient(config); * const input = { // CreateAIGuardrailVersionRequest * assistantId: "STRING_VALUE", // required * aiGuardrailId: "STRING_VALUE", // required * modifiedTime: new Date("TIMESTAMP"), * clientToken: "STRING_VALUE", * }; * const command = new CreateAIGuardrailVersionCommand(input); * const response = await client.send(command); * // { // CreateAIGuardrailVersionResponse * // aiGuardrail: { // AIGuardrailData * // assistantId: "STRING_VALUE", // required * // assistantArn: "STRING_VALUE", // required * // aiGuardrailArn: "STRING_VALUE", // required * // aiGuardrailId: "STRING_VALUE", // required * // name: "STRING_VALUE", // required * // visibilityStatus: "STRING_VALUE", // required * // blockedInputMessaging: "STRING_VALUE", // required * // blockedOutputsMessaging: "STRING_VALUE", // required * // description: "STRING_VALUE", * // topicPolicyConfig: { // AIGuardrailTopicPolicyConfig * // topicsConfig: [ // GuardrailTopicsConfig // required * // { // GuardrailTopicConfig * // name: "STRING_VALUE", // required * // definition: "STRING_VALUE", // required * // examples: [ // GuardrailTopicExamples * // "STRING_VALUE", * // ], * // type: "STRING_VALUE", // required * // }, * // ], * // }, * // contentPolicyConfig: { // AIGuardrailContentPolicyConfig * // filtersConfig: [ // GuardrailContentFiltersConfig // required * // { // GuardrailContentFilterConfig * // type: "STRING_VALUE", // required * // inputStrength: "STRING_VALUE", // required * // outputStrength: "STRING_VALUE", // required * // }, * // ], * // }, * // wordPolicyConfig: { // AIGuardrailWordPolicyConfig * // wordsConfig: [ // GuardrailWordsConfig * // { // GuardrailWordConfig * // text: "STRING_VALUE", // required * // }, * // ], * // managedWordListsConfig: [ // GuardrailManagedWordListsConfig * // { // GuardrailManagedWordsConfig * // type: "STRING_VALUE", // required * // }, * // ], * // }, * // sensitiveInformationPolicyConfig: { // AIGuardrailSensitiveInformationPolicyConfig * // piiEntitiesConfig: [ // GuardrailPiiEntitiesConfig * // { // GuardrailPiiEntityConfig * // type: "STRING_VALUE", // required * // action: "STRING_VALUE", // required * // }, * // ], * // regexesConfig: [ // GuardrailRegexesConfig * // { // GuardrailRegexConfig * // name: "STRING_VALUE", // required * // description: "STRING_VALUE", * // pattern: "STRING_VALUE", // required * // action: "STRING_VALUE", // required * // }, * // ], * // }, * // contextualGroundingPolicyConfig: { // AIGuardrailContextualGroundingPolicyConfig * // filtersConfig: [ // GuardrailContextualGroundingFiltersConfig // required * // { // GuardrailContextualGroundingFilterConfig * // type: "STRING_VALUE", // required * // threshold: Number("double"), // required * // }, * // ], * // }, * // tags: { // Tags * // "": "STRING_VALUE", * // }, * // status: "STRING_VALUE", * // modifiedTime: new Date("TIMESTAMP"), * // }, * // versionNumber: Number("long"), * // }; * * ``` * * @param CreateAIGuardrailVersionCommandInput - {@link CreateAIGuardrailVersionCommandInput} * @returns {@link CreateAIGuardrailVersionCommandOutput} * @see {@link CreateAIGuardrailVersionCommandInput} for command's `input` shape. * @see {@link CreateAIGuardrailVersionCommandOutput} for command's `response` shape. * @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

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

The request could not be processed because of conflict in the current state of the resource. For example, if you're using a Create API (such as CreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated.

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

The specified resource does not exist.

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

You've exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use service quotas to request a service quota increase.

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

The throttling limit has been exceeded.

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

You do not have permission to perform this action.

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

The input fails to satisfy the constraints specified by a service.

* * @throws {@link QConnectServiceException} *

Base exception class for all service exceptions from QConnect service.

* * * @public */ export declare class CreateAIGuardrailVersionCommand extends CreateAIGuardrailVersionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateAIGuardrailVersionRequest; output: CreateAIGuardrailVersionResponse; }; sdk: { input: CreateAIGuardrailVersionCommandInput; output: CreateAIGuardrailVersionCommandOutput; }; }; }