import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutExternalModelRequest, PutExternalModelResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PutExternalModelCommand}. */ export interface PutExternalModelCommandInput extends PutExternalModelRequest { } /** * @public * * The output of {@link PutExternalModelCommand}. */ export interface PutExternalModelCommandOutput extends PutExternalModelResult, __MetadataBearer { } declare const PutExternalModelCommand_base: { new (input: PutExternalModelCommandInput): import("@smithy/core/client").CommandImpl; new (input: PutExternalModelCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates or updates an Amazon SageMaker model endpoint. You can also use this action to update the configuration of the model endpoint, including the IAM role and/or the mapped variables.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { FraudDetectorClient, PutExternalModelCommand } from "@aws-sdk/client-frauddetector"; // ES Modules import * // const { FraudDetectorClient, PutExternalModelCommand } = require("@aws-sdk/client-frauddetector"); // CommonJS import * // import type { FraudDetectorClientConfig } from "@aws-sdk/client-frauddetector"; * const config = {}; // type is FraudDetectorClientConfig * const client = new FraudDetectorClient(config); * const input = { // PutExternalModelRequest * modelEndpoint: "STRING_VALUE", // required * modelSource: "SAGEMAKER", // required * invokeModelEndpointRoleArn: "STRING_VALUE", // required * inputConfiguration: { // ModelInputConfiguration * eventTypeName: "STRING_VALUE", * format: "TEXT_CSV" || "APPLICATION_JSON", * useEventVariables: true || false, // required * jsonInputTemplate: "STRING_VALUE", * csvInputTemplate: "STRING_VALUE", * }, * outputConfiguration: { // ModelOutputConfiguration * format: "TEXT_CSV" || "APPLICATION_JSONLINES", // required * jsonKeyToVariableMap: { // JsonKeyToVariableMap * "": "STRING_VALUE", * }, * csvIndexToVariableMap: { // CsvIndexToVariableMap * "": "STRING_VALUE", * }, * }, * modelEndpointStatus: "ASSOCIATED" || "DISSOCIATED", // required * tags: [ // tagList * { // Tag * key: "STRING_VALUE", // required * value: "STRING_VALUE", // required * }, * ], * }; * const command = new PutExternalModelCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param PutExternalModelCommandInput - {@link PutExternalModelCommandInput} * @returns {@link PutExternalModelCommandOutput} * @see {@link PutExternalModelCommandInput} for command's `input` shape. * @see {@link PutExternalModelCommandOutput} for command's `response` shape. * @see {@link FraudDetectorClientResolvedConfig | config} for FraudDetectorClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as PutExternalModel, that specifies a role that is not in your account.

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

An exception indicating there was a conflict during a delete operation.

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

An exception indicating an internal server error.

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

An exception indicating a throttling error.

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

An exception indicating a specified value is not allowed.

* * @throws {@link FraudDetectorServiceException} *

Base exception class for all service exceptions from FraudDetector service.

* * * @public */ export declare class PutExternalModelCommand extends PutExternalModelCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutExternalModelRequest; output: {}; }; sdk: { input: PutExternalModelCommandInput; output: PutExternalModelCommandOutput; }; }; }