Jump to Content

Class PutExternalModelCommandProtected

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.

import { FraudDetectorClient, PutExternalModelCommand } from "@aws-sdk/client-frauddetector"; // ES Modules import
// const { FraudDetectorClient, PutExternalModelCommand } = require("@aws-sdk/client-frauddetector"); // CommonJS import
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
"<keys>": "STRING_VALUE",
},
csvIndexToVariableMap: { // CsvIndexToVariableMap
"<keys>": "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

Returns

PutExternalModelCommandOutput

See

Throws

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

ConflictException (client fault)

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

Throws

InternalServerException (server fault)

An exception indicating an internal server error.

Throws

ThrottlingException (client fault)

An exception indicating a throttling error.

Throws

ValidationException (client fault)

An exception indicating a specified value is not allowed.

Hierarchy

Constructors

Properties

Methods