import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateConstraintInput, CreateConstraintOutput } from "../models/models_0"; import type { ServiceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceCatalogClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateConstraintCommand}. */ export interface CreateConstraintCommandInput extends CreateConstraintInput { } /** * @public * * The output of {@link CreateConstraintCommand}. */ export interface CreateConstraintCommandOutput extends CreateConstraintOutput, __MetadataBearer { } declare const CreateConstraintCommand_base: { new (input: CreateConstraintCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateConstraintCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a constraint.

*

A delegated admin is authorized to invoke this command.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceCatalogClient, CreateConstraintCommand } from "@aws-sdk/client-service-catalog"; // ES Modules import * // const { ServiceCatalogClient, CreateConstraintCommand } = require("@aws-sdk/client-service-catalog"); // CommonJS import * // import type { ServiceCatalogClientConfig } from "@aws-sdk/client-service-catalog"; * const config = {}; // type is ServiceCatalogClientConfig * const client = new ServiceCatalogClient(config); * const input = { // CreateConstraintInput * AcceptLanguage: "STRING_VALUE", * PortfolioId: "STRING_VALUE", // required * ProductId: "STRING_VALUE", // required * Parameters: "STRING_VALUE", // required * Type: "STRING_VALUE", // required * Description: "STRING_VALUE", * IdempotencyToken: "STRING_VALUE", // required * }; * const command = new CreateConstraintCommand(input); * const response = await client.send(command); * // { // CreateConstraintOutput * // ConstraintDetail: { // ConstraintDetail * // ConstraintId: "STRING_VALUE", * // Type: "STRING_VALUE", * // Description: "STRING_VALUE", * // Owner: "STRING_VALUE", * // ProductId: "STRING_VALUE", * // PortfolioId: "STRING_VALUE", * // }, * // ConstraintParameters: "STRING_VALUE", * // Status: "AVAILABLE" || "CREATING" || "FAILED", * // }; * * ``` * * @param CreateConstraintCommandInput - {@link CreateConstraintCommandInput} * @returns {@link CreateConstraintCommandOutput} * @see {@link CreateConstraintCommandInput} for command's `input` shape. * @see {@link CreateConstraintCommandOutput} for command's `response` shape. * @see {@link ServiceCatalogClientResolvedConfig | config} for ServiceCatalogClient's `config` shape. * * @throws {@link DuplicateResourceException} (client fault) *

The specified resource is a duplicate.

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

One or more parameters provided to the operation are not valid.

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

The current limits of the service would have been exceeded by this operation. Decrease your * resource use or increase your service limits and retry the operation.

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

The specified resource was not found.

* * @throws {@link ServiceCatalogServiceException} *

Base exception class for all service exceptions from ServiceCatalog service.

* * * @public */ export declare class CreateConstraintCommand extends CreateConstraintCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateConstraintInput; output: CreateConstraintOutput; }; sdk: { input: CreateConstraintCommandInput; output: CreateConstraintCommandOutput; }; }; }