New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-bedrock

Package Overview
Dependencies
Maintainers
5
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-bedrock - npm Package Compare versions

Comparing version

to
3.561.0

dist-es/commands/CreateEvaluationJobCommand.js

20

dist-es/Bedrock.js
import { createAggregatedClient } from "@smithy/smithy-client";
import { BedrockClient } from "./BedrockClient";
import { CreateEvaluationJobCommand, } from "./commands/CreateEvaluationJobCommand";
import { CreateGuardrailCommand, } from "./commands/CreateGuardrailCommand";
import { CreateGuardrailVersionCommand, } from "./commands/CreateGuardrailVersionCommand";
import { CreateModelCustomizationJobCommand, } from "./commands/CreateModelCustomizationJobCommand";
import { CreateProvisionedModelThroughputCommand, } from "./commands/CreateProvisionedModelThroughputCommand";
import { DeleteCustomModelCommand, } from "./commands/DeleteCustomModelCommand";
import { DeleteGuardrailCommand, } from "./commands/DeleteGuardrailCommand";
import { DeleteModelInvocationLoggingConfigurationCommand, } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
import { DeleteProvisionedModelThroughputCommand, } from "./commands/DeleteProvisionedModelThroughputCommand";
import { GetCustomModelCommand, } from "./commands/GetCustomModelCommand";
import { GetEvaluationJobCommand, } from "./commands/GetEvaluationJobCommand";
import { GetFoundationModelCommand, } from "./commands/GetFoundationModelCommand";
import { GetGuardrailCommand, } from "./commands/GetGuardrailCommand";
import { GetModelCustomizationJobCommand, } from "./commands/GetModelCustomizationJobCommand";

@@ -14,3 +20,5 @@ import { GetModelInvocationLoggingConfigurationCommand, } from "./commands/GetModelInvocationLoggingConfigurationCommand";

import { ListCustomModelsCommand, } from "./commands/ListCustomModelsCommand";
import { ListEvaluationJobsCommand, } from "./commands/ListEvaluationJobsCommand";
import { ListFoundationModelsCommand, } from "./commands/ListFoundationModelsCommand";
import { ListGuardrailsCommand, } from "./commands/ListGuardrailsCommand";
import { ListModelCustomizationJobsCommand, } from "./commands/ListModelCustomizationJobsCommand";

@@ -20,14 +28,22 @@ import { ListProvisionedModelThroughputsCommand, } from "./commands/ListProvisionedModelThroughputsCommand";

import { PutModelInvocationLoggingConfigurationCommand, } from "./commands/PutModelInvocationLoggingConfigurationCommand";
import { StopEvaluationJobCommand, } from "./commands/StopEvaluationJobCommand";
import { StopModelCustomizationJobCommand, } from "./commands/StopModelCustomizationJobCommand";
import { TagResourceCommand } from "./commands/TagResourceCommand";
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
import { UpdateGuardrailCommand, } from "./commands/UpdateGuardrailCommand";
import { UpdateProvisionedModelThroughputCommand, } from "./commands/UpdateProvisionedModelThroughputCommand";
const commands = {
CreateEvaluationJobCommand,
CreateGuardrailCommand,
CreateGuardrailVersionCommand,
CreateModelCustomizationJobCommand,
CreateProvisionedModelThroughputCommand,
DeleteCustomModelCommand,
DeleteGuardrailCommand,
DeleteModelInvocationLoggingConfigurationCommand,
DeleteProvisionedModelThroughputCommand,
GetCustomModelCommand,
GetEvaluationJobCommand,
GetFoundationModelCommand,
GetGuardrailCommand,
GetModelCustomizationJobCommand,

@@ -37,3 +53,5 @@ GetModelInvocationLoggingConfigurationCommand,

ListCustomModelsCommand,
ListEvaluationJobsCommand,
ListFoundationModelsCommand,
ListGuardrailsCommand,
ListModelCustomizationJobsCommand,

@@ -43,5 +61,7 @@ ListProvisionedModelThroughputsCommand,

PutModelInvocationLoggingConfigurationCommand,
StopEvaluationJobCommand,
StopModelCustomizationJobCommand,
TagResourceCommand,
UntagResourceCommand,
UpdateGuardrailCommand,
UpdateProvisionedModelThroughputCommand,

@@ -48,0 +68,0 @@ };

@@ -0,8 +1,14 @@

export * from "./CreateEvaluationJobCommand";
export * from "./CreateGuardrailCommand";
export * from "./CreateGuardrailVersionCommand";
export * from "./CreateModelCustomizationJobCommand";
export * from "./CreateProvisionedModelThroughputCommand";
export * from "./DeleteCustomModelCommand";
export * from "./DeleteGuardrailCommand";
export * from "./DeleteModelInvocationLoggingConfigurationCommand";
export * from "./DeleteProvisionedModelThroughputCommand";
export * from "./GetCustomModelCommand";
export * from "./GetEvaluationJobCommand";
export * from "./GetFoundationModelCommand";
export * from "./GetGuardrailCommand";
export * from "./GetModelCustomizationJobCommand";

@@ -12,3 +18,5 @@ export * from "./GetModelInvocationLoggingConfigurationCommand";

export * from "./ListCustomModelsCommand";
export * from "./ListEvaluationJobsCommand";
export * from "./ListFoundationModelsCommand";
export * from "./ListGuardrailsCommand";
export * from "./ListModelCustomizationJobsCommand";

@@ -18,5 +26,7 @@ export * from "./ListProvisionedModelThroughputsCommand";

export * from "./PutModelInvocationLoggingConfigurationCommand";
export * from "./StopEvaluationJobCommand";
export * from "./StopModelCustomizationJobCommand";
export * from "./TagResourceCommand";
export * from "./UntagResourceCommand";
export * from "./UpdateGuardrailCommand";
export * from "./UpdateProvisionedModelThroughputCommand";

360

dist-es/models/models_0.js

@@ -0,1 +1,2 @@

import { SENSITIVE_STRING } from "@smithy/smithy-client";
import { BedrockServiceException as __BaseException } from "./BedrockServiceException";

@@ -14,2 +15,55 @@ export class AccessDeniedException extends __BaseException {

}
export class ConflictException extends __BaseException {
constructor(opts) {
super({
name: "ConflictException",
$fault: "client",
...opts,
});
this.name = "ConflictException";
this.$fault = "client";
Object.setPrototypeOf(this, ConflictException.prototype);
}
}
export var EvaluationDatasetLocation;
(function (EvaluationDatasetLocation) {
EvaluationDatasetLocation.visit = (value, visitor) => {
if (value.s3Uri !== undefined)
return visitor.s3Uri(value.s3Uri);
return visitor._(value.$unknown[0], value.$unknown[1]);
};
})(EvaluationDatasetLocation || (EvaluationDatasetLocation = {}));
export const EvaluationTaskType = {
CLASSIFICATION: "Classification",
CUSTOM: "Custom",
GENERATION: "Generation",
QUESTION_AND_ANSWER: "QuestionAndAnswer",
SUMMARIZATION: "Summarization",
};
export var EvaluationConfig;
(function (EvaluationConfig) {
EvaluationConfig.visit = (value, visitor) => {
if (value.automated !== undefined)
return visitor.automated(value.automated);
if (value.human !== undefined)
return visitor.human(value.human);
return visitor._(value.$unknown[0], value.$unknown[1]);
};
})(EvaluationConfig || (EvaluationConfig = {}));
export var EvaluationModelConfig;
(function (EvaluationModelConfig) {
EvaluationModelConfig.visit = (value, visitor) => {
if (value.bedrockModel !== undefined)
return visitor.bedrockModel(value.bedrockModel);
return visitor._(value.$unknown[0], value.$unknown[1]);
};
})(EvaluationModelConfig || (EvaluationModelConfig = {}));
export var EvaluationInferenceConfig;
(function (EvaluationInferenceConfig) {
EvaluationInferenceConfig.visit = (value, visitor) => {
if (value.models !== undefined)
return visitor.models(value.models);
return visitor._(value.$unknown[0], value.$unknown[1]);
};
})(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
export class InternalServerException extends __BaseException {

@@ -27,2 +81,26 @@ constructor(opts) {

}
export class ResourceNotFoundException extends __BaseException {
constructor(opts) {
super({
name: "ResourceNotFoundException",
$fault: "client",
...opts,
});
this.name = "ResourceNotFoundException";
this.$fault = "client";
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
}
}
export class ServiceQuotaExceededException extends __BaseException {
constructor(opts) {
super({
name: "ServiceQuotaExceededException",
$fault: "client",
...opts,
});
this.name = "ServiceQuotaExceededException";
this.$fault = "client";
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
}
}
export class ThrottlingException extends __BaseException {

@@ -52,26 +130,98 @@ constructor(opts) {

}
export class ConflictException extends __BaseException {
export const EvaluationJobType = {
AUTOMATED: "Automated",
HUMAN: "Human",
};
export const EvaluationJobStatus = {
COMPLETED: "Completed",
FAILED: "Failed",
IN_PROGRESS: "InProgress",
STOPPED: "Stopped",
STOPPING: "Stopping",
};
export const SortJobsBy = {
CREATION_TIME: "CreationTime",
};
export const SortOrder = {
ASCENDING: "Ascending",
DESCENDING: "Descending",
};
export const GuardrailFilterStrength = {
HIGH: "HIGH",
LOW: "LOW",
MEDIUM: "MEDIUM",
NONE: "NONE",
};
export const GuardrailContentFilterType = {
HATE: "HATE",
INSULTS: "INSULTS",
MISCONDUCT: "MISCONDUCT",
PROMPT_ATTACK: "PROMPT_ATTACK",
SEXUAL: "SEXUAL",
VIOLENCE: "VIOLENCE",
};
export const GuardrailSensitiveInformationAction = {
ANONYMIZE: "ANONYMIZE",
BLOCK: "BLOCK",
};
export const GuardrailPiiEntityType = {
ADDRESS: "ADDRESS",
AGE: "AGE",
AWS_ACCESS_KEY: "AWS_ACCESS_KEY",
AWS_SECRET_KEY: "AWS_SECRET_KEY",
CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER",
CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER",
CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV",
CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY",
CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER",
DRIVER_ID: "DRIVER_ID",
EMAIL: "EMAIL",
INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER",
IP_ADDRESS: "IP_ADDRESS",
LICENSE_PLATE: "LICENSE_PLATE",
MAC_ADDRESS: "MAC_ADDRESS",
NAME: "NAME",
PASSWORD: "PASSWORD",
PHONE: "PHONE",
PIN: "PIN",
SWIFT_CODE: "SWIFT_CODE",
UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER",
UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER",
UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
URL: "URL",
USERNAME: "USERNAME",
US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER",
US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER",
US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER",
US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER",
VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER",
};
export const GuardrailTopicType = {
DENY: "DENY",
};
export const GuardrailManagedWordsType = {
PROFANITY: "PROFANITY",
};
export class TooManyTagsException extends __BaseException {
constructor(opts) {
super({
name: "ConflictException",
name: "TooManyTagsException",
$fault: "client",
...opts,
});
this.name = "ConflictException";
this.name = "TooManyTagsException";
this.$fault = "client";
Object.setPrototypeOf(this, ConflictException.prototype);
Object.setPrototypeOf(this, TooManyTagsException.prototype);
this.resourceName = opts.resourceName;
}
}
export class ResourceNotFoundException extends __BaseException {
constructor(opts) {
super({
name: "ResourceNotFoundException",
$fault: "client",
...opts,
});
this.name = "ResourceNotFoundException";
this.$fault = "client";
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
}
}
export const GuardrailStatus = {
CREATING: "CREATING",
DELETING: "DELETING",
FAILED: "FAILED",
READY: "READY",
UPDATING: "UPDATING",
VERSIONING: "VERSIONING",
};
export const CustomizationType = {

@@ -101,6 +251,2 @@ CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",

};
export const SortOrder = {
ASCENDING: "Ascending",
DESCENDING: "Descending",
};
export const CommitmentDuration = {

@@ -110,27 +256,2 @@ ONE_MONTH: "OneMonth",

};
export class ServiceQuotaExceededException extends __BaseException {
constructor(opts) {
super({
name: "ServiceQuotaExceededException",
$fault: "client",
...opts,
});
this.name = "ServiceQuotaExceededException";
this.$fault = "client";
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
}
}
export class TooManyTagsException extends __BaseException {
constructor(opts) {
super({
name: "TooManyTagsException",
$fault: "client",
...opts,
});
this.name = "TooManyTagsException";
this.$fault = "client";
Object.setPrototypeOf(this, TooManyTagsException.prototype);
this.resourceName = opts.resourceName;
}
}
export const ProvisionedModelStatus = {

@@ -152,5 +273,2 @@ CREATING: "Creating",

};
export const SortJobsBy = {
CREATION_TIME: "CreationTime",
};
export const FineTuningJobStatus = {

@@ -163,1 +281,147 @@ COMPLETED: "Completed",

};
export const EvaluationDatasetFilterSensitiveLog = (obj) => ({
...obj,
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.datasetLocation && { datasetLocation: obj.datasetLocation }),
});
export const EvaluationDatasetMetricConfigFilterSensitiveLog = (obj) => ({
...obj,
...(obj.dataset && { dataset: EvaluationDatasetFilterSensitiveLog(obj.dataset) }),
...(obj.metricNames && { metricNames: SENSITIVE_STRING }),
});
export const AutomatedEvaluationConfigFilterSensitiveLog = (obj) => ({
...obj,
...(obj.datasetMetricConfigs && {
datasetMetricConfigs: obj.datasetMetricConfigs.map((item) => EvaluationDatasetMetricConfigFilterSensitiveLog(item)),
}),
});
export const HumanEvaluationCustomMetricFilterSensitiveLog = (obj) => ({
...obj,
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.description && { description: SENSITIVE_STRING }),
});
export const HumanWorkflowConfigFilterSensitiveLog = (obj) => ({
...obj,
...(obj.instructions && { instructions: SENSITIVE_STRING }),
});
export const HumanEvaluationConfigFilterSensitiveLog = (obj) => ({
...obj,
...(obj.humanWorkflowConfig && {
humanWorkflowConfig: HumanWorkflowConfigFilterSensitiveLog(obj.humanWorkflowConfig),
}),
...(obj.customMetrics && {
customMetrics: obj.customMetrics.map((item) => HumanEvaluationCustomMetricFilterSensitiveLog(item)),
}),
...(obj.datasetMetricConfigs && {
datasetMetricConfigs: obj.datasetMetricConfigs.map((item) => EvaluationDatasetMetricConfigFilterSensitiveLog(item)),
}),
});
export const EvaluationConfigFilterSensitiveLog = (obj) => {
if (obj.automated !== undefined)
return { automated: AutomatedEvaluationConfigFilterSensitiveLog(obj.automated) };
if (obj.human !== undefined)
return { human: HumanEvaluationConfigFilterSensitiveLog(obj.human) };
if (obj.$unknown !== undefined)
return { [obj.$unknown[0]]: "UNKNOWN" };
};
export const EvaluationBedrockModelFilterSensitiveLog = (obj) => ({
...obj,
...(obj.inferenceParams && { inferenceParams: SENSITIVE_STRING }),
});
export const EvaluationModelConfigFilterSensitiveLog = (obj) => {
if (obj.bedrockModel !== undefined)
return { bedrockModel: EvaluationBedrockModelFilterSensitiveLog(obj.bedrockModel) };
if (obj.$unknown !== undefined)
return { [obj.$unknown[0]]: "UNKNOWN" };
};
export const EvaluationInferenceConfigFilterSensitiveLog = (obj) => {
if (obj.models !== undefined)
return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
if (obj.$unknown !== undefined)
return { [obj.$unknown[0]]: "UNKNOWN" };
};
export const CreateEvaluationJobRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
});
export const GetEvaluationJobRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.jobIdentifier && { jobIdentifier: SENSITIVE_STRING }),
});
export const GetEvaluationJobResponseFilterSensitiveLog = (obj) => ({
...obj,
...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
});
export const StopEvaluationJobRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.jobIdentifier && { jobIdentifier: SENSITIVE_STRING }),
});
export const GuardrailTopicConfigFilterSensitiveLog = (obj) => ({
...obj,
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.definition && { definition: SENSITIVE_STRING }),
...(obj.examples && { examples: SENSITIVE_STRING }),
});
export const GuardrailTopicPolicyConfigFilterSensitiveLog = (obj) => ({
...obj,
...(obj.topicsConfig && {
topicsConfig: obj.topicsConfig.map((item) => GuardrailTopicConfigFilterSensitiveLog(item)),
}),
});
export const CreateGuardrailRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.description && { description: SENSITIVE_STRING }),
...(obj.topicPolicyConfig && {
topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig),
}),
...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
});
export const CreateGuardrailVersionRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.description && { description: SENSITIVE_STRING }),
});
export const GuardrailTopicFilterSensitiveLog = (obj) => ({
...obj,
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.definition && { definition: SENSITIVE_STRING }),
...(obj.examples && { examples: SENSITIVE_STRING }),
});
export const GuardrailTopicPolicyFilterSensitiveLog = (obj) => ({
...obj,
...(obj.topics && { topics: obj.topics.map((item) => GuardrailTopicFilterSensitiveLog(item)) }),
});
export const GetGuardrailResponseFilterSensitiveLog = (obj) => ({
...obj,
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.description && { description: SENSITIVE_STRING }),
...(obj.topicPolicy && { topicPolicy: GuardrailTopicPolicyFilterSensitiveLog(obj.topicPolicy) }),
...(obj.statusReasons && { statusReasons: SENSITIVE_STRING }),
...(obj.failureRecommendations && { failureRecommendations: SENSITIVE_STRING }),
...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
});
export const GuardrailSummaryFilterSensitiveLog = (obj) => ({
...obj,
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.description && { description: SENSITIVE_STRING }),
});
export const ListGuardrailsResponseFilterSensitiveLog = (obj) => ({
...obj,
...(obj.guardrails && { guardrails: obj.guardrails.map((item) => GuardrailSummaryFilterSensitiveLog(item)) }),
});
export const UpdateGuardrailRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.description && { description: SENSITIVE_STRING }),
...(obj.topicPolicyConfig && {
topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig),
}),
...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
});
export * from "./Interfaces";
export * from "./ListCustomModelsPaginator";
export * from "./ListEvaluationJobsPaginator";
export * from "./ListGuardrailsPaginator";
export * from "./ListModelCustomizationJobsPaginator";
export * from "./ListProvisionedModelThroughputsPaginator";

@@ -1,2 +0,2 @@

import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
import { requestBuilder as rb } from "@smithy/core";

@@ -7,2 +7,61 @@ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";

import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
export const se_CreateEvaluationJobCommand = async (input, context) => {
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
b.bp("/evaluation-jobs");
let body;
body = JSON.stringify(take(input, {
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
customerEncryptionKeyId: [],
evaluationConfig: (_) => _json(_),
inferenceConfig: (_) => _json(_),
jobDescription: [],
jobName: [],
jobTags: (_) => _json(_),
outputDataConfig: (_) => _json(_),
roleArn: [],
}));
b.m("POST").h(headers).b(body);
return b.build();
};
export const se_CreateGuardrailCommand = async (input, context) => {
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
b.bp("/guardrails");
let body;
body = JSON.stringify(take(input, {
blockedInputMessaging: [],
blockedOutputsMessaging: [],
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
contentPolicyConfig: (_) => _json(_),
description: [],
kmsKeyId: [],
name: [],
sensitiveInformationPolicyConfig: (_) => _json(_),
tags: (_) => _json(_),
topicPolicyConfig: (_) => _json(_),
wordPolicyConfig: (_) => _json(_),
}));
b.m("POST").h(headers).b(body);
return b.build();
};
export const se_CreateGuardrailVersionCommand = async (input, context) => {
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
b.bp("/guardrails/{guardrailIdentifier}");
b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
let body;
body = JSON.stringify(take(input, {
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
description: [],
}));
b.m("POST").h(headers).b(body);
return b.build();
};
export const se_CreateModelCustomizationJobCommand = async (input, context) => {

@@ -61,2 +120,14 @@ const b = rb(input, context);

};
export const se_DeleteGuardrailCommand = async (input, context) => {
const b = rb(input, context);
const headers = {};
b.bp("/guardrails/{guardrailIdentifier}");
b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
const query = map({
[_gV]: [, input[_gV]],
});
let body;
b.m("DELETE").h(headers).q(query).b(body);
return b.build();
};
export const se_DeleteModelInvocationLoggingConfigurationCommand = async (input, context) => {

@@ -91,2 +162,11 @@ const b = rb(input, context);

};
export const se_GetEvaluationJobCommand = async (input, context) => {
const b = rb(input, context);
const headers = {};
b.bp("/evaluation-jobs/{jobIdentifier}");
b.p("jobIdentifier", () => input.jobIdentifier, "{jobIdentifier}", false);
let body;
b.m("GET").h(headers).b(body);
return b.build();
};
export const se_GetFoundationModelCommand = async (input, context) => {

@@ -101,2 +181,14 @@ const b = rb(input, context);

};
export const se_GetGuardrailCommand = async (input, context) => {
const b = rb(input, context);
const headers = {};
b.bp("/guardrails/{guardrailIdentifier}");
b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
const query = map({
[_gV]: [, input[_gV]],
});
let body;
b.m("GET").h(headers).q(query).b(body);
return b.build();
};
export const se_GetModelCustomizationJobCommand = async (input, context) => {

@@ -156,2 +248,26 @@ const b = rb(input, context);

};
export const se_ListEvaluationJobsCommand = async (input, context) => {
const b = rb(input, context);
const headers = {};
b.bp("/evaluation-jobs");
const query = map({
[_cTA]: [
() => input.creationTimeAfter !== void 0,
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString(),
],
[_cTB]: [
() => input.creationTimeBefore !== void 0,
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString(),
],
[_sE]: [, input[_sE]],
[_nC]: [, input[_nC]],
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
[_nT]: [, input[_nT]],
[_sB]: [, input[_sB]],
[_sO]: [, input[_sO]],
});
let body;
b.m("GET").h(headers).q(query).b(body);
return b.build();
};
export const se_ListFoundationModelsCommand = async (input, context) => {

@@ -171,2 +287,15 @@ const b = rb(input, context);

};
export const se_ListGuardrailsCommand = async (input, context) => {
const b = rb(input, context);
const headers = {};
b.bp("/guardrails");
const query = map({
[_gI]: [, input[_gI]],
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
[_nT]: [, input[_nT]],
});
let body;
b.m("GET").h(headers).q(query).b(body);
return b.build();
};
export const se_ListModelCustomizationJobsCommand = async (input, context) => {

@@ -247,2 +376,11 @@ const b = rb(input, context);

};
export const se_StopEvaluationJobCommand = async (input, context) => {
const b = rb(input, context);
const headers = {};
b.bp("/evaluation-job/{jobIdentifier}/stop");
b.p("jobIdentifier", () => input.jobIdentifier, "{jobIdentifier}", false);
let body;
b.m("POST").h(headers).b(body);
return b.build();
};
export const se_StopModelCustomizationJobCommand = async (input, context) => {

@@ -285,2 +423,24 @@ const b = rb(input, context);

};
export const se_UpdateGuardrailCommand = async (input, context) => {
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
b.bp("/guardrails/{guardrailIdentifier}");
b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
let body;
body = JSON.stringify(take(input, {
blockedInputMessaging: [],
blockedOutputsMessaging: [],
contentPolicyConfig: (_) => _json(_),
description: [],
kmsKeyId: [],
name: [],
sensitiveInformationPolicyConfig: (_) => _json(_),
topicPolicyConfig: (_) => _json(_),
wordPolicyConfig: (_) => _json(_),
}));
b.m("PUT").h(headers).b(body);
return b.build();
};
export const se_UpdateProvisionedModelThroughputCommand = async (input, context) => {

@@ -301,2 +461,48 @@ const b = rb(input, context);

};
export const de_CreateEvaluationJobCommand = async (output, context) => {
if (output.statusCode !== 202 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
jobArn: __expectString,
});
Object.assign(contents, doc);
return contents;
};
export const de_CreateGuardrailCommand = async (output, context) => {
if (output.statusCode !== 202 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
guardrailArn: __expectString,
guardrailId: __expectString,
version: __expectString,
});
Object.assign(contents, doc);
return contents;
};
export const de_CreateGuardrailVersionCommand = async (output, context) => {
if (output.statusCode !== 202 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
guardrailId: __expectString,
version: __expectString,
});
Object.assign(contents, doc);
return contents;
};
export const de_CreateModelCustomizationJobCommand = async (output, context) => {

@@ -340,2 +546,12 @@ if (output.statusCode !== 201 && output.statusCode >= 300) {

};
export const de_DeleteGuardrailCommand = async (output, context) => {
if (output.statusCode !== 202 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
await collectBody(output.body, context);
return contents;
};
export const de_DeleteModelInvocationLoggingConfigurationCommand = async (output, context) => {

@@ -388,2 +604,28 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

};
export const de_GetEvaluationJobCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
customerEncryptionKeyId: __expectString,
evaluationConfig: (_) => _json(__expectUnion(_)),
failureMessages: _json,
inferenceConfig: (_) => _json(__expectUnion(_)),
jobArn: __expectString,
jobDescription: __expectString,
jobName: __expectString,
jobType: __expectString,
lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
outputDataConfig: _json,
roleArn: __expectString,
status: __expectString,
});
Object.assign(contents, doc);
return contents;
};
export const de_GetFoundationModelCommand = async (output, context) => {

@@ -403,2 +645,32 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

};
export const de_GetGuardrailCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
blockedInputMessaging: __expectString,
blockedOutputsMessaging: __expectString,
contentPolicy: _json,
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
description: __expectString,
failureRecommendations: _json,
guardrailArn: __expectString,
guardrailId: __expectString,
kmsKeyArn: __expectString,
name: __expectString,
sensitiveInformationPolicy: _json,
status: __expectString,
statusReasons: _json,
topicPolicy: _json,
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
version: __expectString,
wordPolicy: _json,
});
Object.assign(contents, doc);
return contents;
};
export const de_GetModelCustomizationJobCommand = async (output, context) => {

@@ -493,2 +765,17 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

};
export const de_ListEvaluationJobsCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
jobSummaries: (_) => de_EvaluationSummaries(_, context),
nextToken: __expectString,
});
Object.assign(contents, doc);
return contents;
};
export const de_ListFoundationModelsCommand = async (output, context) => {

@@ -508,2 +795,17 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

};
export const de_ListGuardrailsCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
guardrails: (_) => de_GuardrailSummaries(_, context),
nextToken: __expectString,
});
Object.assign(contents, doc);
return contents;
};
export const de_ListModelCustomizationJobsCommand = async (output, context) => {

@@ -563,2 +865,12 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

};
export const de_StopEvaluationJobCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
await collectBody(output.body, context);
return contents;
};
export const de_StopModelCustomizationJobCommand = async (output, context) => {

@@ -594,2 +906,19 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

};
export const de_UpdateGuardrailCommand = async (output, context) => {
if (output.statusCode !== 202 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
guardrailArn: __expectString,
guardrailId: __expectString,
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
version: __expectString,
});
Object.assign(contents, doc);
return contents;
};
export const de_UpdateProvisionedModelThroughputCommand = async (output, context) => {

@@ -630,8 +959,8 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

throw await de_ThrottlingExceptionRes(parsedOutput, context);
case "ValidationException":
case "com.amazonaws.bedrock#ValidationException":
throw await de_ValidationExceptionRes(parsedOutput, context);
case "TooManyTagsException":
case "com.amazonaws.bedrock#TooManyTagsException":
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
case "ValidationException":
case "com.amazonaws.bedrock#ValidationException":
throw await de_ValidationExceptionRes(parsedOutput, context);
default:

@@ -770,2 +1099,41 @@ const parsedBody = parsedOutput.body;

};
const de_EvaluationSummaries = (output, context) => {
const retVal = (output || [])
.filter((e) => e != null)
.map((entry) => {
return de_EvaluationSummary(entry, context);
});
return retVal;
};
const de_EvaluationSummary = (output, context) => {
return take(output, {
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
evaluationTaskTypes: _json,
jobArn: __expectString,
jobName: __expectString,
jobType: __expectString,
modelIdentifiers: _json,
status: __expectString,
});
};
const de_GuardrailSummaries = (output, context) => {
const retVal = (output || [])
.filter((e) => e != null)
.map((entry) => {
return de_GuardrailSummary(entry, context);
});
return retVal;
};
const de_GuardrailSummary = (output, context) => {
return take(output, {
arn: __expectString,
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
description: __expectString,
id: __expectString,
name: __expectString,
status: __expectString,
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
version: __expectString,
});
};
const de_ModelCustomizationJobSummaries = (output, context) => {

@@ -855,2 +1223,4 @@ const retVal = (output || [])

const _fMAE = "foundationModelArnEquals";
const _gI = "guardrailIdentifier";
const _gV = "guardrailVersion";
const _mAE = "modelArnEquals";

@@ -857,0 +1227,0 @@ const _mR = "maxResults";

import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
import { BedrockClient } from "./BedrockClient";
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "./commands/DeleteGuardrailCommand";
import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./commands/GetEvaluationJobCommand";
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";

@@ -14,3 +20,5 @@ import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";

import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./commands/ListCustomModelsCommand";
import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "./commands/ListEvaluationJobsCommand";
import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";

@@ -20,8 +28,28 @@ import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";

import { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
import { StopEvaluationJobCommandInput, StopEvaluationJobCommandOutput } from "./commands/StopEvaluationJobCommand";
import { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import { UpdateGuardrailCommandInput, UpdateGuardrailCommandOutput } from "./commands/UpdateGuardrailCommand";
import { UpdateProvisionedModelThroughputCommandInput, UpdateProvisionedModelThroughputCommandOutput } from "./commands/UpdateProvisionedModelThroughputCommand";
export interface Bedrock {
/**
* @see {@link CreateEvaluationJobCommand}
*/
createEvaluationJob(args: CreateEvaluationJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateEvaluationJobCommandOutput>;
createEvaluationJob(args: CreateEvaluationJobCommandInput, cb: (err: any, data?: CreateEvaluationJobCommandOutput) => void): void;
createEvaluationJob(args: CreateEvaluationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEvaluationJobCommandOutput) => void): void;
/**
* @see {@link CreateGuardrailCommand}
*/
createGuardrail(args: CreateGuardrailCommandInput, options?: __HttpHandlerOptions): Promise<CreateGuardrailCommandOutput>;
createGuardrail(args: CreateGuardrailCommandInput, cb: (err: any, data?: CreateGuardrailCommandOutput) => void): void;
createGuardrail(args: CreateGuardrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGuardrailCommandOutput) => void): void;
/**
* @see {@link CreateGuardrailVersionCommand}
*/
createGuardrailVersion(args: CreateGuardrailVersionCommandInput, options?: __HttpHandlerOptions): Promise<CreateGuardrailVersionCommandOutput>;
createGuardrailVersion(args: CreateGuardrailVersionCommandInput, cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void): void;
createGuardrailVersion(args: CreateGuardrailVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void): void;
/**
* @see {@link CreateModelCustomizationJobCommand}

@@ -45,2 +73,8 @@ */

/**
* @see {@link DeleteGuardrailCommand}
*/
deleteGuardrail(args: DeleteGuardrailCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGuardrailCommandOutput>;
deleteGuardrail(args: DeleteGuardrailCommandInput, cb: (err: any, data?: DeleteGuardrailCommandOutput) => void): void;
deleteGuardrail(args: DeleteGuardrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGuardrailCommandOutput) => void): void;
/**
* @see {@link DeleteModelInvocationLoggingConfigurationCommand}

@@ -65,2 +99,8 @@ */

/**
* @see {@link GetEvaluationJobCommand}
*/
getEvaluationJob(args: GetEvaluationJobCommandInput, options?: __HttpHandlerOptions): Promise<GetEvaluationJobCommandOutput>;
getEvaluationJob(args: GetEvaluationJobCommandInput, cb: (err: any, data?: GetEvaluationJobCommandOutput) => void): void;
getEvaluationJob(args: GetEvaluationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEvaluationJobCommandOutput) => void): void;
/**
* @see {@link GetFoundationModelCommand}

@@ -72,2 +112,8 @@ */

/**
* @see {@link GetGuardrailCommand}
*/
getGuardrail(args: GetGuardrailCommandInput, options?: __HttpHandlerOptions): Promise<GetGuardrailCommandOutput>;
getGuardrail(args: GetGuardrailCommandInput, cb: (err: any, data?: GetGuardrailCommandOutput) => void): void;
getGuardrail(args: GetGuardrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGuardrailCommandOutput) => void): void;
/**
* @see {@link GetModelCustomizationJobCommand}

@@ -99,2 +145,9 @@ */

/**
* @see {@link ListEvaluationJobsCommand}
*/
listEvaluationJobs(): Promise<ListEvaluationJobsCommandOutput>;
listEvaluationJobs(args: ListEvaluationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListEvaluationJobsCommandOutput>;
listEvaluationJobs(args: ListEvaluationJobsCommandInput, cb: (err: any, data?: ListEvaluationJobsCommandOutput) => void): void;
listEvaluationJobs(args: ListEvaluationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEvaluationJobsCommandOutput) => void): void;
/**
* @see {@link ListFoundationModelsCommand}

@@ -107,2 +160,9 @@ */

/**
* @see {@link ListGuardrailsCommand}
*/
listGuardrails(): Promise<ListGuardrailsCommandOutput>;
listGuardrails(args: ListGuardrailsCommandInput, options?: __HttpHandlerOptions): Promise<ListGuardrailsCommandOutput>;
listGuardrails(args: ListGuardrailsCommandInput, cb: (err: any, data?: ListGuardrailsCommandOutput) => void): void;
listGuardrails(args: ListGuardrailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGuardrailsCommandOutput) => void): void;
/**
* @see {@link ListModelCustomizationJobsCommand}

@@ -134,2 +194,8 @@ */

/**
* @see {@link StopEvaluationJobCommand}
*/
stopEvaluationJob(args: StopEvaluationJobCommandInput, options?: __HttpHandlerOptions): Promise<StopEvaluationJobCommandOutput>;
stopEvaluationJob(args: StopEvaluationJobCommandInput, cb: (err: any, data?: StopEvaluationJobCommandOutput) => void): void;
stopEvaluationJob(args: StopEvaluationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopEvaluationJobCommandOutput) => void): void;
/**
* @see {@link StopModelCustomizationJobCommand}

@@ -153,2 +219,8 @@ */

/**
* @see {@link UpdateGuardrailCommand}
*/
updateGuardrail(args: UpdateGuardrailCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGuardrailCommandOutput>;
updateGuardrail(args: UpdateGuardrailCommandInput, cb: (err: any, data?: UpdateGuardrailCommandOutput) => void): void;
updateGuardrail(args: UpdateGuardrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateGuardrailCommandOutput) => void): void;
/**
* @see {@link UpdateProvisionedModelThroughputCommand}

@@ -161,3 +233,3 @@ */

/**
* <p>Describes the API operations for creating and managing Amazon Bedrock models.</p>
* <p>Describes the API operations for creating, managing, fine-turning, and evaluating Amazon Bedrock models.</p>
* @public

@@ -164,0 +236,0 @@ */

@@ -10,9 +10,15 @@ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";

import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "./commands/DeleteGuardrailCommand";
import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./commands/GetEvaluationJobCommand";
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";

@@ -22,3 +28,5 @@ import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";

import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./commands/ListCustomModelsCommand";
import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "./commands/ListEvaluationJobsCommand";
import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";

@@ -28,5 +36,7 @@ import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";

import { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
import { StopEvaluationJobCommandInput, StopEvaluationJobCommandOutput } from "./commands/StopEvaluationJobCommand";
import { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import { UpdateGuardrailCommandInput, UpdateGuardrailCommandOutput } from "./commands/UpdateGuardrailCommand";
import { UpdateProvisionedModelThroughputCommandInput, UpdateProvisionedModelThroughputCommandOutput } from "./commands/UpdateProvisionedModelThroughputCommand";

@@ -39,7 +49,7 @@ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";

*/
export type ServiceInputTypes = CreateModelCustomizationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | GetCustomModelCommandInput | GetFoundationModelCommandInput | GetModelCustomizationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListFoundationModelsCommandInput | ListModelCustomizationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopModelCustomizationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateProvisionedModelThroughputCommandInput;
export type ServiceInputTypes = CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateModelCustomizationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetModelCustomizationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListModelCustomizationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateProvisionedModelThroughputCommandInput;
/**
* @public
*/
export type ServiceOutputTypes = CreateModelCustomizationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | GetCustomModelCommandOutput | GetFoundationModelCommandOutput | GetModelCustomizationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListFoundationModelsCommandOutput | ListModelCustomizationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopModelCustomizationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
export type ServiceOutputTypes = CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateModelCustomizationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetModelCustomizationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListModelCustomizationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
/**

@@ -178,3 +188,3 @@ * @public

/**
* <p>Describes the API operations for creating and managing Amazon Bedrock models.</p>
* <p>Describes the API operations for creating, managing, fine-turning, and evaluating Amazon Bedrock models.</p>
* @public

@@ -181,0 +191,0 @@ */

14

dist-types/commands/CreateModelCustomizationJobCommand.d.ts

@@ -31,11 +31,9 @@ import { Command as $Command } from "@smithy/smithy-client";

* <p>You specify the base foundation model and the location of the training data.
* After the model-customization job completes successfully, your custom model resource will be ready to use. Training data
* contains input and output text for each record in a JSONL format. Optionally, you can specify validation data
* in the same format as the training data. Amazon Bedrock returns validation loss metrics and output generations
* after the job completes.
* After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes.
* </p>
* <p>For information on the format of training and validation data, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-prepare.html">Prepare the datasets</a>.</p>
* <p>
* Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.
* To monitor a job, use the <code>GetModelCustomizationJob</code> operation to retrieve the job status.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
* Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.
* To monitor a job, use the <code>GetModelCustomizationJob</code> operation to retrieve the job status.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -116,3 +114,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -119,0 +117,0 @@ * @throws {@link ServiceQuotaExceededException} (client fault)

@@ -29,4 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Creates a provisioned throughput with dedicated capacity for a foundation model or a fine-tuned model.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned throughput</a> in the Bedrock User Guide.</p>
* <p>Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see <a href="http://aws.amazon.com/bedrock/pricing/">Amazon Bedrock Pricing</a>. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -72,3 +71,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -75,0 +74,0 @@ * @throws {@link ServiceQuotaExceededException} (client fault)

@@ -29,3 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Deletes a custom model that you created earlier. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
* <p>Deletes a custom model that you created earlier. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -62,3 +62,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -65,0 +65,0 @@ * @throws {@link ThrottlingException} (client fault)

@@ -29,3 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Deletes a provisioned throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned throughput</a> in the Bedrock User Guide.</p>
* <p>Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -62,3 +62,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -65,0 +65,0 @@ * @throws {@link ThrottlingException} (client fault)

@@ -29,3 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
* <p>Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -92,3 +92,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -95,0 +95,0 @@ * @throws {@link ThrottlingException} (client fault)

@@ -81,3 +81,3 @@ import { Command as $Command } from "@smithy/smithy-client";

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -84,0 +84,0 @@ * @throws {@link ThrottlingException} (client fault)

@@ -30,3 +30,3 @@ import { Command as $Command } from "@smithy/smithy-client";

* <p>Retrieves the properties associated with a model-customization job, including the status of the job.
* For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
* For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -107,3 +107,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -110,0 +110,0 @@ * @throws {@link ThrottlingException} (client fault)

@@ -29,3 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Get details for a provisioned throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned throughput</a> in the Bedrock User Guide.</p>
* <p>Returns details for a Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -73,3 +73,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -76,0 +76,0 @@ * @throws {@link ThrottlingException} (client fault)

@@ -0,8 +1,14 @@

export * from "./CreateEvaluationJobCommand";
export * from "./CreateGuardrailCommand";
export * from "./CreateGuardrailVersionCommand";
export * from "./CreateModelCustomizationJobCommand";
export * from "./CreateProvisionedModelThroughputCommand";
export * from "./DeleteCustomModelCommand";
export * from "./DeleteGuardrailCommand";
export * from "./DeleteModelInvocationLoggingConfigurationCommand";
export * from "./DeleteProvisionedModelThroughputCommand";
export * from "./GetCustomModelCommand";
export * from "./GetEvaluationJobCommand";
export * from "./GetFoundationModelCommand";
export * from "./GetGuardrailCommand";
export * from "./GetModelCustomizationJobCommand";

@@ -12,3 +18,5 @@ export * from "./GetModelInvocationLoggingConfigurationCommand";

export * from "./ListCustomModelsCommand";
export * from "./ListEvaluationJobsCommand";
export * from "./ListFoundationModelsCommand";
export * from "./ListGuardrailsCommand";
export * from "./ListModelCustomizationJobsCommand";

@@ -18,5 +26,7 @@ export * from "./ListProvisionedModelThroughputsCommand";

export * from "./PutModelInvocationLoggingConfigurationCommand";
export * from "./StopEvaluationJobCommand";
export * from "./StopModelCustomizationJobCommand";
export * from "./TagResourceCommand";
export * from "./UntagResourceCommand";
export * from "./UpdateGuardrailCommand";
export * from "./UpdateProvisionedModelThroughputCommand";

@@ -30,3 +30,3 @@ import { Command as $Command } from "@smithy/smithy-client";

* <p>Returns a list of the custom models that you have created with the <code>CreateModelCustomizationJob</code> operation.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -33,0 +33,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -29,3 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>List of Amazon Bedrock foundation models that you can use. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html">Foundation models</a> in the Bedrock User Guide.</p>
* <p>Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html">Foundation models</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -32,0 +32,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -30,4 +30,4 @@ import { Command as $Command } from "@smithy/smithy-client";

* <p>Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on
* one or more criteria.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
* one or more criteria.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -34,0 +34,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -29,3 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>List the provisioned capacities. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned throughput</a> in the Bedrock User Guide.</p>
* <p>Lists the Provisioned Throughputs in the account. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -32,0 +32,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -30,3 +30,3 @@ import { Command as $Command } from "@smithy/smithy-client";

* <p>List the tags associated with the specified resource.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the Bedrock User Guide.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html">Tagging resources</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -67,3 +67,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -70,0 +70,0 @@ * @throws {@link ThrottlingException} (client fault)

@@ -29,3 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Stops an active model customization job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
* <p>Stops an active model customization job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -62,3 +62,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -65,0 +65,0 @@ * @throws {@link ThrottlingException} (client fault)

@@ -29,3 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Associate tags with a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the Bedrock User Guide.</p>
* <p>Associate tags with a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html">Tagging resources</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -65,3 +65,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -68,0 +68,0 @@ * @throws {@link ThrottlingException} (client fault)

@@ -29,3 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Remove one or more tags from a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the Bedrock User Guide.</p>
* <p>Remove one or more tags from a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html">Tagging resources</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -62,3 +62,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -65,0 +65,0 @@ * @throws {@link ThrottlingException} (client fault)

@@ -29,3 +29,3 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Update a provisioned throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned throughput</a> in the Bedrock User Guide.</p>
* <p>Updates the name or associated model for a Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
* @example

@@ -61,3 +61,3 @@ * Use a bare-bones client and the command you need to make an API call.

* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
*

@@ -64,0 +64,0 @@ * @throws {@link ThrottlingException} (client fault)

/**
* <p>Describes the API operations for creating and managing Amazon Bedrock models.</p>
* <p>Describes the API operations for creating, managing, fine-turning, and evaluating Amazon Bedrock models.</p>
*

@@ -4,0 +4,0 @@ * @packageDocumentation

export * from "./Interfaces";
export * from "./ListCustomModelsPaginator";
export * from "./ListEvaluationJobsPaginator";
export * from "./ListGuardrailsPaginator";
export * from "./ListModelCustomizationJobsPaginator";
export * from "./ListProvisionedModelThroughputsPaginator";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { SerdeContext as __SerdeContext } from "@smithy/types";
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "../commands/CreateEvaluationJobCommand";
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "../commands/CreateGuardrailCommand";
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "../commands/CreateGuardrailVersionCommand";
import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "../commands/CreateModelCustomizationJobCommand";
import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "../commands/CreateProvisionedModelThroughputCommand";
import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "../commands/DeleteCustomModelCommand";
import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "../commands/DeleteGuardrailCommand";
import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "../commands/DeleteModelInvocationLoggingConfigurationCommand";
import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "../commands/DeleteProvisionedModelThroughputCommand";
import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "../commands/GetCustomModelCommand";
import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "../commands/GetEvaluationJobCommand";
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "../commands/GetFoundationModelCommand";
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "../commands/GetGuardrailCommand";
import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "../commands/GetModelCustomizationJobCommand";

@@ -14,3 +20,5 @@ import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "../commands/GetModelInvocationLoggingConfigurationCommand";

import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "../commands/ListCustomModelsCommand";
import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "../commands/ListEvaluationJobsCommand";
import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "../commands/ListFoundationModelsCommand";
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "../commands/ListGuardrailsCommand";
import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "../commands/ListModelCustomizationJobsCommand";

@@ -20,7 +28,21 @@ import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "../commands/ListProvisionedModelThroughputsCommand";

import { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "../commands/PutModelInvocationLoggingConfigurationCommand";
import { StopEvaluationJobCommandInput, StopEvaluationJobCommandOutput } from "../commands/StopEvaluationJobCommand";
import { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "../commands/StopModelCustomizationJobCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
import { UpdateGuardrailCommandInput, UpdateGuardrailCommandOutput } from "../commands/UpdateGuardrailCommand";
import { UpdateProvisionedModelThroughputCommandInput, UpdateProvisionedModelThroughputCommandOutput } from "../commands/UpdateProvisionedModelThroughputCommand";
/**
* serializeAws_restJson1CreateEvaluationJobCommand
*/
export declare const se_CreateEvaluationJobCommand: (input: CreateEvaluationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1CreateGuardrailCommand
*/
export declare const se_CreateGuardrailCommand: (input: CreateGuardrailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1CreateGuardrailVersionCommand
*/
export declare const se_CreateGuardrailVersionCommand: (input: CreateGuardrailVersionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1CreateModelCustomizationJobCommand

@@ -38,2 +60,6 @@ */

/**
* serializeAws_restJson1DeleteGuardrailCommand
*/
export declare const se_DeleteGuardrailCommand: (input: DeleteGuardrailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1DeleteModelInvocationLoggingConfigurationCommand

@@ -51,2 +77,6 @@ */

/**
* serializeAws_restJson1GetEvaluationJobCommand
*/
export declare const se_GetEvaluationJobCommand: (input: GetEvaluationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1GetFoundationModelCommand

@@ -56,2 +86,6 @@ */

/**
* serializeAws_restJson1GetGuardrailCommand
*/
export declare const se_GetGuardrailCommand: (input: GetGuardrailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1GetModelCustomizationJobCommand

@@ -73,2 +107,6 @@ */

/**
* serializeAws_restJson1ListEvaluationJobsCommand
*/
export declare const se_ListEvaluationJobsCommand: (input: ListEvaluationJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1ListFoundationModelsCommand

@@ -78,2 +116,6 @@ */

/**
* serializeAws_restJson1ListGuardrailsCommand
*/
export declare const se_ListGuardrailsCommand: (input: ListGuardrailsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1ListModelCustomizationJobsCommand

@@ -95,2 +137,6 @@ */

/**
* serializeAws_restJson1StopEvaluationJobCommand
*/
export declare const se_StopEvaluationJobCommand: (input: StopEvaluationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1StopModelCustomizationJobCommand

@@ -108,2 +154,6 @@ */

/**
* serializeAws_restJson1UpdateGuardrailCommand
*/
export declare const se_UpdateGuardrailCommand: (input: UpdateGuardrailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1UpdateProvisionedModelThroughputCommand

@@ -113,2 +163,14 @@ */

/**
* deserializeAws_restJson1CreateEvaluationJobCommand
*/
export declare const de_CreateEvaluationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateEvaluationJobCommandOutput>;
/**
* deserializeAws_restJson1CreateGuardrailCommand
*/
export declare const de_CreateGuardrailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateGuardrailCommandOutput>;
/**
* deserializeAws_restJson1CreateGuardrailVersionCommand
*/
export declare const de_CreateGuardrailVersionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateGuardrailVersionCommandOutput>;
/**
* deserializeAws_restJson1CreateModelCustomizationJobCommand

@@ -126,2 +188,6 @@ */

/**
* deserializeAws_restJson1DeleteGuardrailCommand
*/
export declare const de_DeleteGuardrailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteGuardrailCommandOutput>;
/**
* deserializeAws_restJson1DeleteModelInvocationLoggingConfigurationCommand

@@ -139,2 +205,6 @@ */

/**
* deserializeAws_restJson1GetEvaluationJobCommand
*/
export declare const de_GetEvaluationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetEvaluationJobCommandOutput>;
/**
* deserializeAws_restJson1GetFoundationModelCommand

@@ -144,2 +214,6 @@ */

/**
* deserializeAws_restJson1GetGuardrailCommand
*/
export declare const de_GetGuardrailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetGuardrailCommandOutput>;
/**
* deserializeAws_restJson1GetModelCustomizationJobCommand

@@ -161,2 +235,6 @@ */

/**
* deserializeAws_restJson1ListEvaluationJobsCommand
*/
export declare const de_ListEvaluationJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEvaluationJobsCommandOutput>;
/**
* deserializeAws_restJson1ListFoundationModelsCommand

@@ -166,2 +244,6 @@ */

/**
* deserializeAws_restJson1ListGuardrailsCommand
*/
export declare const de_ListGuardrailsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListGuardrailsCommandOutput>;
/**
* deserializeAws_restJson1ListModelCustomizationJobsCommand

@@ -183,2 +265,6 @@ */

/**
* deserializeAws_restJson1StopEvaluationJobCommand
*/
export declare const de_StopEvaluationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopEvaluationJobCommandOutput>;
/**
* deserializeAws_restJson1StopModelCustomizationJobCommand

@@ -196,4 +282,8 @@ */

/**
* deserializeAws_restJson1UpdateGuardrailCommand
*/
export declare const de_UpdateGuardrailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateGuardrailCommandOutput>;
/**
* deserializeAws_restJson1UpdateProvisionedModelThroughputCommand
*/
export declare const de_UpdateProvisionedModelThroughputCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateProvisionedModelThroughputCommandOutput>;
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
import { BedrockClient } from "./BedrockClient";
import {
CreateEvaluationJobCommandInput,
CreateEvaluationJobCommandOutput,
} from "./commands/CreateEvaluationJobCommand";
import {
CreateGuardrailCommandInput,
CreateGuardrailCommandOutput,
} from "./commands/CreateGuardrailCommand";
import {
CreateGuardrailVersionCommandInput,
CreateGuardrailVersionCommandOutput,
} from "./commands/CreateGuardrailVersionCommand";
import {
CreateModelCustomizationJobCommandInput,

@@ -16,2 +28,6 @@ CreateModelCustomizationJobCommandOutput,

import {
DeleteGuardrailCommandInput,
DeleteGuardrailCommandOutput,
} from "./commands/DeleteGuardrailCommand";
import {
DeleteModelInvocationLoggingConfigurationCommandInput,

@@ -29,2 +45,6 @@ DeleteModelInvocationLoggingConfigurationCommandOutput,

import {
GetEvaluationJobCommandInput,
GetEvaluationJobCommandOutput,
} from "./commands/GetEvaluationJobCommand";
import {
GetFoundationModelCommandInput,

@@ -34,2 +54,6 @@ GetFoundationModelCommandOutput,

import {
GetGuardrailCommandInput,
GetGuardrailCommandOutput,
} from "./commands/GetGuardrailCommand";
import {
GetModelCustomizationJobCommandInput,

@@ -51,2 +75,6 @@ GetModelCustomizationJobCommandOutput,

import {
ListEvaluationJobsCommandInput,
ListEvaluationJobsCommandOutput,
} from "./commands/ListEvaluationJobsCommand";
import {
ListFoundationModelsCommandInput,

@@ -56,2 +84,6 @@ ListFoundationModelsCommandOutput,

import {
ListGuardrailsCommandInput,
ListGuardrailsCommandOutput,
} from "./commands/ListGuardrailsCommand";
import {
ListModelCustomizationJobsCommandInput,

@@ -73,2 +105,6 @@ ListModelCustomizationJobsCommandOutput,

import {
StopEvaluationJobCommandInput,
StopEvaluationJobCommandOutput,
} from "./commands/StopEvaluationJobCommand";
import {
StopModelCustomizationJobCommandInput,

@@ -86,2 +122,6 @@ StopModelCustomizationJobCommandOutput,

import {
UpdateGuardrailCommandInput,
UpdateGuardrailCommandOutput,
} from "./commands/UpdateGuardrailCommand";
import {
UpdateProvisionedModelThroughputCommandInput,

@@ -91,2 +131,41 @@ UpdateProvisionedModelThroughputCommandOutput,

export interface Bedrock {
createEvaluationJob(
args: CreateEvaluationJobCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateEvaluationJobCommandOutput>;
createEvaluationJob(
args: CreateEvaluationJobCommandInput,
cb: (err: any, data?: CreateEvaluationJobCommandOutput) => void
): void;
createEvaluationJob(
args: CreateEvaluationJobCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateEvaluationJobCommandOutput) => void
): void;
createGuardrail(
args: CreateGuardrailCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateGuardrailCommandOutput>;
createGuardrail(
args: CreateGuardrailCommandInput,
cb: (err: any, data?: CreateGuardrailCommandOutput) => void
): void;
createGuardrail(
args: CreateGuardrailCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateGuardrailCommandOutput) => void
): void;
createGuardrailVersion(
args: CreateGuardrailVersionCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateGuardrailVersionCommandOutput>;
createGuardrailVersion(
args: CreateGuardrailVersionCommandInput,
cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void
): void;
createGuardrailVersion(
args: CreateGuardrailVersionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void
): void;
createModelCustomizationJob(

@@ -131,2 +210,15 @@ args: CreateModelCustomizationJobCommandInput,

): void;
deleteGuardrail(
args: DeleteGuardrailCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteGuardrailCommandOutput>;
deleteGuardrail(
args: DeleteGuardrailCommandInput,
cb: (err: any, data?: DeleteGuardrailCommandOutput) => void
): void;
deleteGuardrail(
args: DeleteGuardrailCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteGuardrailCommandOutput) => void
): void;
deleteModelInvocationLoggingConfiguration(): Promise<DeleteModelInvocationLoggingConfigurationCommandOutput>;

@@ -178,2 +270,15 @@ deleteModelInvocationLoggingConfiguration(

): void;
getEvaluationJob(
args: GetEvaluationJobCommandInput,
options?: __HttpHandlerOptions
): Promise<GetEvaluationJobCommandOutput>;
getEvaluationJob(
args: GetEvaluationJobCommandInput,
cb: (err: any, data?: GetEvaluationJobCommandOutput) => void
): void;
getEvaluationJob(
args: GetEvaluationJobCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetEvaluationJobCommandOutput) => void
): void;
getFoundationModel(

@@ -192,2 +297,15 @@ args: GetFoundationModelCommandInput,

): void;
getGuardrail(
args: GetGuardrailCommandInput,
options?: __HttpHandlerOptions
): Promise<GetGuardrailCommandOutput>;
getGuardrail(
args: GetGuardrailCommandInput,
cb: (err: any, data?: GetGuardrailCommandOutput) => void
): void;
getGuardrail(
args: GetGuardrailCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetGuardrailCommandOutput) => void
): void;
getModelCustomizationJob(

@@ -253,2 +371,16 @@ args: GetModelCustomizationJobCommandInput,

): void;
listEvaluationJobs(): Promise<ListEvaluationJobsCommandOutput>;
listEvaluationJobs(
args: ListEvaluationJobsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListEvaluationJobsCommandOutput>;
listEvaluationJobs(
args: ListEvaluationJobsCommandInput,
cb: (err: any, data?: ListEvaluationJobsCommandOutput) => void
): void;
listEvaluationJobs(
args: ListEvaluationJobsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListEvaluationJobsCommandOutput) => void
): void;
listFoundationModels(): Promise<ListFoundationModelsCommandOutput>;

@@ -268,2 +400,16 @@ listFoundationModels(

): void;
listGuardrails(): Promise<ListGuardrailsCommandOutput>;
listGuardrails(
args: ListGuardrailsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListGuardrailsCommandOutput>;
listGuardrails(
args: ListGuardrailsCommandInput,
cb: (err: any, data?: ListGuardrailsCommandOutput) => void
): void;
listGuardrails(
args: ListGuardrailsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListGuardrailsCommandOutput) => void
): void;
listModelCustomizationJobs(): Promise<ListModelCustomizationJobsCommandOutput>;

@@ -329,2 +475,15 @@ listModelCustomizationJobs(

): void;
stopEvaluationJob(
args: StopEvaluationJobCommandInput,
options?: __HttpHandlerOptions
): Promise<StopEvaluationJobCommandOutput>;
stopEvaluationJob(
args: StopEvaluationJobCommandInput,
cb: (err: any, data?: StopEvaluationJobCommandOutput) => void
): void;
stopEvaluationJob(
args: StopEvaluationJobCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: StopEvaluationJobCommandOutput) => void
): void;
stopModelCustomizationJob(

@@ -369,2 +528,15 @@ args: StopModelCustomizationJobCommandInput,

): void;
updateGuardrail(
args: UpdateGuardrailCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateGuardrailCommandOutput>;
updateGuardrail(
args: UpdateGuardrailCommandInput,
cb: (err: any, data?: UpdateGuardrailCommandOutput) => void
): void;
updateGuardrail(
args: UpdateGuardrailCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateGuardrailCommandOutput) => void
): void;
updateProvisionedModelThroughput(

@@ -371,0 +543,0 @@ args: UpdateProvisionedModelThroughputCommandInput,

@@ -49,2 +49,14 @@ import {

import {
CreateEvaluationJobCommandInput,
CreateEvaluationJobCommandOutput,
} from "./commands/CreateEvaluationJobCommand";
import {
CreateGuardrailCommandInput,
CreateGuardrailCommandOutput,
} from "./commands/CreateGuardrailCommand";
import {
CreateGuardrailVersionCommandInput,
CreateGuardrailVersionCommandOutput,
} from "./commands/CreateGuardrailVersionCommand";
import {
CreateModelCustomizationJobCommandInput,

@@ -62,2 +74,6 @@ CreateModelCustomizationJobCommandOutput,

import {
DeleteGuardrailCommandInput,
DeleteGuardrailCommandOutput,
} from "./commands/DeleteGuardrailCommand";
import {
DeleteModelInvocationLoggingConfigurationCommandInput,

@@ -75,2 +91,6 @@ DeleteModelInvocationLoggingConfigurationCommandOutput,

import {
GetEvaluationJobCommandInput,
GetEvaluationJobCommandOutput,
} from "./commands/GetEvaluationJobCommand";
import {
GetFoundationModelCommandInput,

@@ -80,2 +100,6 @@ GetFoundationModelCommandOutput,

import {
GetGuardrailCommandInput,
GetGuardrailCommandOutput,
} from "./commands/GetGuardrailCommand";
import {
GetModelCustomizationJobCommandInput,

@@ -97,2 +121,6 @@ GetModelCustomizationJobCommandOutput,

import {
ListEvaluationJobsCommandInput,
ListEvaluationJobsCommandOutput,
} from "./commands/ListEvaluationJobsCommand";
import {
ListFoundationModelsCommandInput,

@@ -102,2 +130,6 @@ ListFoundationModelsCommandOutput,

import {
ListGuardrailsCommandInput,
ListGuardrailsCommandOutput,
} from "./commands/ListGuardrailsCommand";
import {
ListModelCustomizationJobsCommandInput,

@@ -119,2 +151,6 @@ ListModelCustomizationJobsCommandOutput,

import {
StopEvaluationJobCommandInput,
StopEvaluationJobCommandOutput,
} from "./commands/StopEvaluationJobCommand";
import {
StopModelCustomizationJobCommandInput,

@@ -132,2 +168,6 @@ StopModelCustomizationJobCommandOutput,

import {
UpdateGuardrailCommandInput,
UpdateGuardrailCommandOutput,
} from "./commands/UpdateGuardrailCommand";
import {
UpdateProvisionedModelThroughputCommandInput,

@@ -144,9 +184,15 @@ UpdateProvisionedModelThroughputCommandOutput,

export type ServiceInputTypes =
| CreateEvaluationJobCommandInput
| CreateGuardrailCommandInput
| CreateGuardrailVersionCommandInput
| CreateModelCustomizationJobCommandInput
| CreateProvisionedModelThroughputCommandInput
| DeleteCustomModelCommandInput
| DeleteGuardrailCommandInput
| DeleteModelInvocationLoggingConfigurationCommandInput
| DeleteProvisionedModelThroughputCommandInput
| GetCustomModelCommandInput
| GetEvaluationJobCommandInput
| GetFoundationModelCommandInput
| GetGuardrailCommandInput
| GetModelCustomizationJobCommandInput

@@ -156,3 +202,5 @@ | GetModelInvocationLoggingConfigurationCommandInput

| ListCustomModelsCommandInput
| ListEvaluationJobsCommandInput
| ListFoundationModelsCommandInput
| ListGuardrailsCommandInput
| ListModelCustomizationJobsCommandInput

@@ -162,14 +210,22 @@ | ListProvisionedModelThroughputsCommandInput

| PutModelInvocationLoggingConfigurationCommandInput
| StopEvaluationJobCommandInput
| StopModelCustomizationJobCommandInput
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdateGuardrailCommandInput
| UpdateProvisionedModelThroughputCommandInput;
export type ServiceOutputTypes =
| CreateEvaluationJobCommandOutput
| CreateGuardrailCommandOutput
| CreateGuardrailVersionCommandOutput
| CreateModelCustomizationJobCommandOutput
| CreateProvisionedModelThroughputCommandOutput
| DeleteCustomModelCommandOutput
| DeleteGuardrailCommandOutput
| DeleteModelInvocationLoggingConfigurationCommandOutput
| DeleteProvisionedModelThroughputCommandOutput
| GetCustomModelCommandOutput
| GetEvaluationJobCommandOutput
| GetFoundationModelCommandOutput
| GetGuardrailCommandOutput
| GetModelCustomizationJobCommandOutput

@@ -179,3 +235,5 @@ | GetModelInvocationLoggingConfigurationCommandOutput

| ListCustomModelsCommandOutput
| ListEvaluationJobsCommandOutput
| ListFoundationModelsCommandOutput
| ListGuardrailsCommandOutput
| ListModelCustomizationJobsCommandOutput

@@ -185,5 +243,7 @@ | ListProvisionedModelThroughputsCommandOutput

| PutModelInvocationLoggingConfigurationCommandOutput
| StopEvaluationJobCommandOutput
| StopModelCustomizationJobCommandOutput
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdateGuardrailCommandOutput
| UpdateProvisionedModelThroughputCommandOutput;

@@ -190,0 +250,0 @@ export interface ClientDefaults

@@ -0,8 +1,14 @@

export * from "./CreateEvaluationJobCommand";
export * from "./CreateGuardrailCommand";
export * from "./CreateGuardrailVersionCommand";
export * from "./CreateModelCustomizationJobCommand";
export * from "./CreateProvisionedModelThroughputCommand";
export * from "./DeleteCustomModelCommand";
export * from "./DeleteGuardrailCommand";
export * from "./DeleteModelInvocationLoggingConfigurationCommand";
export * from "./DeleteProvisionedModelThroughputCommand";
export * from "./GetCustomModelCommand";
export * from "./GetEvaluationJobCommand";
export * from "./GetFoundationModelCommand";
export * from "./GetGuardrailCommand";
export * from "./GetModelCustomizationJobCommand";

@@ -12,3 +18,5 @@ export * from "./GetModelInvocationLoggingConfigurationCommand";

export * from "./ListCustomModelsCommand";
export * from "./ListEvaluationJobsCommand";
export * from "./ListFoundationModelsCommand";
export * from "./ListGuardrailsCommand";
export * from "./ListModelCustomizationJobsCommand";

@@ -18,5 +26,7 @@ export * from "./ListProvisionedModelThroughputsCommand";

export * from "./PutModelInvocationLoggingConfigurationCommand";
export * from "./StopEvaluationJobCommand";
export * from "./StopModelCustomizationJobCommand";
export * from "./TagResourceCommand";
export * from "./UntagResourceCommand";
export * from "./UpdateGuardrailCommand";
export * from "./UpdateProvisionedModelThroughputCommand";

@@ -10,4 +10,148 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";

}
export interface DeleteModelInvocationLoggingConfigurationRequest {}
export interface DeleteModelInvocationLoggingConfigurationResponse {}
export declare class ConflictException extends __BaseException {
readonly name: "ConflictException";
readonly $fault: "client";
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
}
export type EvaluationDatasetLocation =
| EvaluationDatasetLocation.S3UriMember
| EvaluationDatasetLocation.$UnknownMember;
export declare namespace EvaluationDatasetLocation {
interface S3UriMember {
s3Uri: string;
$unknown?: never;
}
interface $UnknownMember {
s3Uri?: never;
$unknown: [string, any];
}
interface Visitor<T> {
s3Uri: (value: string) => T;
_: (name: string, value: any) => T;
}
const visit: <T>(value: EvaluationDatasetLocation, visitor: Visitor<T>) => T;
}
export interface EvaluationDataset {
name: string | undefined;
datasetLocation?: EvaluationDatasetLocation;
}
export declare const EvaluationTaskType: {
readonly CLASSIFICATION: "Classification";
readonly CUSTOM: "Custom";
readonly GENERATION: "Generation";
readonly QUESTION_AND_ANSWER: "QuestionAndAnswer";
readonly SUMMARIZATION: "Summarization";
};
export type EvaluationTaskType =
(typeof EvaluationTaskType)[keyof typeof EvaluationTaskType];
export interface EvaluationDatasetMetricConfig {
taskType: EvaluationTaskType | undefined;
dataset: EvaluationDataset | undefined;
metricNames: string[] | undefined;
}
export interface AutomatedEvaluationConfig {
datasetMetricConfigs: EvaluationDatasetMetricConfig[] | undefined;
}
export interface HumanEvaluationCustomMetric {
name: string | undefined;
description?: string;
ratingMethod: string | undefined;
}
export interface HumanWorkflowConfig {
flowDefinitionArn: string | undefined;
instructions?: string;
}
export interface HumanEvaluationConfig {
humanWorkflowConfig?: HumanWorkflowConfig;
customMetrics?: HumanEvaluationCustomMetric[];
datasetMetricConfigs: EvaluationDatasetMetricConfig[] | undefined;
}
export type EvaluationConfig =
| EvaluationConfig.AutomatedMember
| EvaluationConfig.HumanMember
| EvaluationConfig.$UnknownMember;
export declare namespace EvaluationConfig {
interface AutomatedMember {
automated: AutomatedEvaluationConfig;
human?: never;
$unknown?: never;
}
interface HumanMember {
automated?: never;
human: HumanEvaluationConfig;
$unknown?: never;
}
interface $UnknownMember {
automated?: never;
human?: never;
$unknown: [string, any];
}
interface Visitor<T> {
automated: (value: AutomatedEvaluationConfig) => T;
human: (value: HumanEvaluationConfig) => T;
_: (name: string, value: any) => T;
}
const visit: <T>(value: EvaluationConfig, visitor: Visitor<T>) => T;
}
export interface EvaluationBedrockModel {
modelIdentifier: string | undefined;
inferenceParams: string | undefined;
}
export type EvaluationModelConfig =
| EvaluationModelConfig.BedrockModelMember
| EvaluationModelConfig.$UnknownMember;
export declare namespace EvaluationModelConfig {
interface BedrockModelMember {
bedrockModel: EvaluationBedrockModel;
$unknown?: never;
}
interface $UnknownMember {
bedrockModel?: never;
$unknown: [string, any];
}
interface Visitor<T> {
bedrockModel: (value: EvaluationBedrockModel) => T;
_: (name: string, value: any) => T;
}
const visit: <T>(value: EvaluationModelConfig, visitor: Visitor<T>) => T;
}
export type EvaluationInferenceConfig =
| EvaluationInferenceConfig.ModelsMember
| EvaluationInferenceConfig.$UnknownMember;
export declare namespace EvaluationInferenceConfig {
interface ModelsMember {
models: EvaluationModelConfig[];
$unknown?: never;
}
interface $UnknownMember {
models?: never;
$unknown: [string, any];
}
interface Visitor<T> {
models: (value: EvaluationModelConfig[]) => T;
_: (name: string, value: any) => T;
}
const visit: <T>(value: EvaluationInferenceConfig, visitor: Visitor<T>) => T;
}
export interface Tag {
key: string | undefined;
value: string | undefined;
}
export interface EvaluationOutputDataConfig {
s3Uri: string | undefined;
}
export interface CreateEvaluationJobRequest {
jobName: string | undefined;
jobDescription?: string;
clientRequestToken?: string;
roleArn: string | undefined;
customerEncryptionKeyId?: string;
jobTags?: Tag[];
evaluationConfig: EvaluationConfig | undefined;
inferenceConfig: EvaluationInferenceConfig | undefined;
outputDataConfig: EvaluationOutputDataConfig | undefined;
}
export interface CreateEvaluationJobResponse {
jobArn: string | undefined;
}
export declare class InternalServerException extends __BaseException {

@@ -20,2 +164,16 @@ readonly name: "InternalServerException";

}
export declare class ResourceNotFoundException extends __BaseException {
readonly name: "ResourceNotFoundException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
);
}
export declare class ServiceQuotaExceededException extends __BaseException {
readonly name: "ServiceQuotaExceededException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
);
}
export declare class ThrottlingException extends __BaseException {

@@ -28,2 +186,342 @@ readonly name: "ThrottlingException";

}
export declare class ValidationException extends __BaseException {
readonly name: "ValidationException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ValidationException, __BaseException>
);
}
export interface GetEvaluationJobRequest {
jobIdentifier: string | undefined;
}
export declare const EvaluationJobType: {
readonly AUTOMATED: "Automated";
readonly HUMAN: "Human";
};
export type EvaluationJobType =
(typeof EvaluationJobType)[keyof typeof EvaluationJobType];
export declare const EvaluationJobStatus: {
readonly COMPLETED: "Completed";
readonly FAILED: "Failed";
readonly IN_PROGRESS: "InProgress";
readonly STOPPED: "Stopped";
readonly STOPPING: "Stopping";
};
export type EvaluationJobStatus =
(typeof EvaluationJobStatus)[keyof typeof EvaluationJobStatus];
export interface GetEvaluationJobResponse {
jobName: string | undefined;
status: EvaluationJobStatus | undefined;
jobArn: string | undefined;
jobDescription?: string;
roleArn: string | undefined;
customerEncryptionKeyId?: string;
jobType: EvaluationJobType | undefined;
evaluationConfig: EvaluationConfig | undefined;
inferenceConfig: EvaluationInferenceConfig | undefined;
outputDataConfig: EvaluationOutputDataConfig | undefined;
creationTime: Date | undefined;
lastModifiedTime?: Date;
failureMessages?: string[];
}
export declare const SortJobsBy: {
readonly CREATION_TIME: "CreationTime";
};
export type SortJobsBy = (typeof SortJobsBy)[keyof typeof SortJobsBy];
export declare const SortOrder: {
readonly ASCENDING: "Ascending";
readonly DESCENDING: "Descending";
};
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
export interface ListEvaluationJobsRequest {
creationTimeAfter?: Date;
creationTimeBefore?: Date;
statusEquals?: EvaluationJobStatus;
nameContains?: string;
maxResults?: number;
nextToken?: string;
sortBy?: SortJobsBy;
sortOrder?: SortOrder;
}
export interface EvaluationSummary {
jobArn: string | undefined;
jobName: string | undefined;
status: EvaluationJobStatus | undefined;
creationTime: Date | undefined;
jobType: EvaluationJobType | undefined;
evaluationTaskTypes: EvaluationTaskType[] | undefined;
modelIdentifiers: string[] | undefined;
}
export interface ListEvaluationJobsResponse {
nextToken?: string;
jobSummaries?: EvaluationSummary[];
}
export interface StopEvaluationJobRequest {
jobIdentifier: string | undefined;
}
export interface StopEvaluationJobResponse {}
export declare const GuardrailFilterStrength: {
readonly HIGH: "HIGH";
readonly LOW: "LOW";
readonly MEDIUM: "MEDIUM";
readonly NONE: "NONE";
};
export type GuardrailFilterStrength =
(typeof GuardrailFilterStrength)[keyof typeof GuardrailFilterStrength];
export declare const GuardrailContentFilterType: {
readonly HATE: "HATE";
readonly INSULTS: "INSULTS";
readonly MISCONDUCT: "MISCONDUCT";
readonly PROMPT_ATTACK: "PROMPT_ATTACK";
readonly SEXUAL: "SEXUAL";
readonly VIOLENCE: "VIOLENCE";
};
export type GuardrailContentFilterType =
(typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType];
export interface GuardrailContentFilterConfig {
type: GuardrailContentFilterType | undefined;
inputStrength: GuardrailFilterStrength | undefined;
outputStrength: GuardrailFilterStrength | undefined;
}
export interface GuardrailContentPolicyConfig {
filtersConfig: GuardrailContentFilterConfig[] | undefined;
}
export declare const GuardrailSensitiveInformationAction: {
readonly ANONYMIZE: "ANONYMIZE";
readonly BLOCK: "BLOCK";
};
export type GuardrailSensitiveInformationAction =
(typeof GuardrailSensitiveInformationAction)[keyof typeof GuardrailSensitiveInformationAction];
export declare const GuardrailPiiEntityType: {
readonly ADDRESS: "ADDRESS";
readonly AGE: "AGE";
readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
readonly DRIVER_ID: "DRIVER_ID";
readonly EMAIL: "EMAIL";
readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
readonly IP_ADDRESS: "IP_ADDRESS";
readonly LICENSE_PLATE: "LICENSE_PLATE";
readonly MAC_ADDRESS: "MAC_ADDRESS";
readonly NAME: "NAME";
readonly PASSWORD: "PASSWORD";
readonly PHONE: "PHONE";
readonly PIN: "PIN";
readonly SWIFT_CODE: "SWIFT_CODE";
readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
readonly URL: "URL";
readonly USERNAME: "USERNAME";
readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
};
export type GuardrailPiiEntityType =
(typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
export interface GuardrailPiiEntityConfig {
type: GuardrailPiiEntityType | undefined;
action: GuardrailSensitiveInformationAction | undefined;
}
export interface GuardrailRegexConfig {
name: string | undefined;
description?: string;
pattern: string | undefined;
action: GuardrailSensitiveInformationAction | undefined;
}
export interface GuardrailSensitiveInformationPolicyConfig {
piiEntitiesConfig?: GuardrailPiiEntityConfig[];
regexesConfig?: GuardrailRegexConfig[];
}
export declare const GuardrailTopicType: {
readonly DENY: "DENY";
};
export type GuardrailTopicType =
(typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
export interface GuardrailTopicConfig {
name: string | undefined;
definition: string | undefined;
examples?: string[];
type: GuardrailTopicType | undefined;
}
export interface GuardrailTopicPolicyConfig {
topicsConfig: GuardrailTopicConfig[] | undefined;
}
export declare const GuardrailManagedWordsType: {
readonly PROFANITY: "PROFANITY";
};
export type GuardrailManagedWordsType =
(typeof GuardrailManagedWordsType)[keyof typeof GuardrailManagedWordsType];
export interface GuardrailManagedWordsConfig {
type: GuardrailManagedWordsType | undefined;
}
export interface GuardrailWordConfig {
text: string | undefined;
}
export interface GuardrailWordPolicyConfig {
wordsConfig?: GuardrailWordConfig[];
managedWordListsConfig?: GuardrailManagedWordsConfig[];
}
export interface CreateGuardrailRequest {
name: string | undefined;
description?: string;
topicPolicyConfig?: GuardrailTopicPolicyConfig;
contentPolicyConfig?: GuardrailContentPolicyConfig;
wordPolicyConfig?: GuardrailWordPolicyConfig;
sensitiveInformationPolicyConfig?: GuardrailSensitiveInformationPolicyConfig;
blockedInputMessaging: string | undefined;
blockedOutputsMessaging: string | undefined;
kmsKeyId?: string;
tags?: Tag[];
clientRequestToken?: string;
}
export interface CreateGuardrailResponse {
guardrailId: string | undefined;
guardrailArn: string | undefined;
version: string | undefined;
createdAt: Date | undefined;
}
export declare class TooManyTagsException extends __BaseException {
readonly name: "TooManyTagsException";
readonly $fault: "client";
resourceName?: string;
constructor(
opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
);
}
export interface CreateGuardrailVersionRequest {
guardrailIdentifier: string | undefined;
description?: string;
clientRequestToken?: string;
}
export interface CreateGuardrailVersionResponse {
guardrailId: string | undefined;
version: string | undefined;
}
export interface DeleteGuardrailRequest {
guardrailIdentifier: string | undefined;
guardrailVersion?: string;
}
export interface DeleteGuardrailResponse {}
export interface GetGuardrailRequest {
guardrailIdentifier: string | undefined;
guardrailVersion?: string;
}
export interface GuardrailContentFilter {
type: GuardrailContentFilterType | undefined;
inputStrength: GuardrailFilterStrength | undefined;
outputStrength: GuardrailFilterStrength | undefined;
}
export interface GuardrailContentPolicy {
filters?: GuardrailContentFilter[];
}
export interface GuardrailPiiEntity {
type: GuardrailPiiEntityType | undefined;
action: GuardrailSensitiveInformationAction | undefined;
}
export interface GuardrailRegex {
name: string | undefined;
description?: string;
pattern: string | undefined;
action: GuardrailSensitiveInformationAction | undefined;
}
export interface GuardrailSensitiveInformationPolicy {
piiEntities?: GuardrailPiiEntity[];
regexes?: GuardrailRegex[];
}
export declare const GuardrailStatus: {
readonly CREATING: "CREATING";
readonly DELETING: "DELETING";
readonly FAILED: "FAILED";
readonly READY: "READY";
readonly UPDATING: "UPDATING";
readonly VERSIONING: "VERSIONING";
};
export type GuardrailStatus =
(typeof GuardrailStatus)[keyof typeof GuardrailStatus];
export interface GuardrailTopic {
name: string | undefined;
definition: string | undefined;
examples?: string[];
type?: GuardrailTopicType;
}
export interface GuardrailTopicPolicy {
topics: GuardrailTopic[] | undefined;
}
export interface GuardrailManagedWords {
type: GuardrailManagedWordsType | undefined;
}
export interface GuardrailWord {
text: string | undefined;
}
export interface GuardrailWordPolicy {
words?: GuardrailWord[];
managedWordLists?: GuardrailManagedWords[];
}
export interface GetGuardrailResponse {
name: string | undefined;
description?: string;
guardrailId: string | undefined;
guardrailArn: string | undefined;
version: string | undefined;
status: GuardrailStatus | undefined;
topicPolicy?: GuardrailTopicPolicy;
contentPolicy?: GuardrailContentPolicy;
wordPolicy?: GuardrailWordPolicy;
sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicy;
createdAt: Date | undefined;
updatedAt: Date | undefined;
statusReasons?: string[];
failureRecommendations?: string[];
blockedInputMessaging: string | undefined;
blockedOutputsMessaging: string | undefined;
kmsKeyArn?: string;
}
export interface ListGuardrailsRequest {
guardrailIdentifier?: string;
maxResults?: number;
nextToken?: string;
}
export interface GuardrailSummary {
id: string | undefined;
arn: string | undefined;
status: GuardrailStatus | undefined;
name: string | undefined;
description?: string;
version: string | undefined;
createdAt: Date | undefined;
updatedAt: Date | undefined;
}
export interface ListGuardrailsResponse {
guardrails: GuardrailSummary[] | undefined;
nextToken?: string;
}
export interface UpdateGuardrailRequest {
guardrailIdentifier: string | undefined;
name: string | undefined;
description?: string;
topicPolicyConfig?: GuardrailTopicPolicyConfig;
contentPolicyConfig?: GuardrailContentPolicyConfig;
wordPolicyConfig?: GuardrailWordPolicyConfig;
sensitiveInformationPolicyConfig?: GuardrailSensitiveInformationPolicyConfig;
blockedInputMessaging: string | undefined;
blockedOutputsMessaging: string | undefined;
kmsKeyId?: string;
}
export interface UpdateGuardrailResponse {
guardrailId: string | undefined;
guardrailArn: string | undefined;
version: string | undefined;
updatedAt: Date | undefined;
}
export interface DeleteModelInvocationLoggingConfigurationRequest {}
export interface DeleteModelInvocationLoggingConfigurationResponse {}
export interface GetModelInvocationLoggingConfigurationRequest {}

@@ -53,14 +551,2 @@ export interface S3Config {

export interface PutModelInvocationLoggingConfigurationResponse {}
export declare class ValidationException extends __BaseException {
readonly name: "ValidationException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ValidationException, __BaseException>
);
}
export declare class ConflictException extends __BaseException {
readonly name: "ConflictException";
readonly $fault: "client";
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
}
export interface DeleteCustomModelRequest {

@@ -70,9 +556,2 @@ modelIdentifier: string | undefined;

export interface DeleteCustomModelResponse {}
export declare class ResourceNotFoundException extends __BaseException {
readonly name: "ResourceNotFoundException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
);
}
export interface GetCustomModelRequest {

@@ -169,7 +648,2 @@ modelIdentifier: string | undefined;

export type SortModelsBy = (typeof SortModelsBy)[keyof typeof SortModelsBy];
export declare const SortOrder: {
readonly ASCENDING: "Ascending";
readonly DESCENDING: "Descending";
};
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
export interface ListCustomModelsRequest {

@@ -225,6 +699,2 @@ creationTimeBefore?: Date;

(typeof CommitmentDuration)[keyof typeof CommitmentDuration];
export interface Tag {
key: string | undefined;
value: string | undefined;
}
export interface CreateProvisionedModelThroughputRequest {

@@ -241,17 +711,2 @@ clientRequestToken?: string;

}
export declare class ServiceQuotaExceededException extends __BaseException {
readonly name: "ServiceQuotaExceededException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
);
}
export declare class TooManyTagsException extends __BaseException {
readonly name: "TooManyTagsException";
readonly $fault: "client";
resourceName?: string;
constructor(
opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
);
}
export interface DeleteProvisionedModelThroughputRequest {

@@ -401,6 +856,2 @@ provisionedModelId: string | undefined;

}
export declare const SortJobsBy: {
readonly CREATION_TIME: "CreationTime";
};
export type SortJobsBy = (typeof SortJobsBy)[keyof typeof SortJobsBy];
export declare const FineTuningJobStatus: {

@@ -445,1 +896,73 @@ readonly COMPLETED: "Completed";

export interface StopModelCustomizationJobResponse {}
export declare const EvaluationDatasetFilterSensitiveLog: (
obj: EvaluationDataset
) => any;
export declare const EvaluationDatasetMetricConfigFilterSensitiveLog: (
obj: EvaluationDatasetMetricConfig
) => any;
export declare const AutomatedEvaluationConfigFilterSensitiveLog: (
obj: AutomatedEvaluationConfig
) => any;
export declare const HumanEvaluationCustomMetricFilterSensitiveLog: (
obj: HumanEvaluationCustomMetric
) => any;
export declare const HumanWorkflowConfigFilterSensitiveLog: (
obj: HumanWorkflowConfig
) => any;
export declare const HumanEvaluationConfigFilterSensitiveLog: (
obj: HumanEvaluationConfig
) => any;
export declare const EvaluationConfigFilterSensitiveLog: (
obj: EvaluationConfig
) => any;
export declare const EvaluationBedrockModelFilterSensitiveLog: (
obj: EvaluationBedrockModel
) => any;
export declare const EvaluationModelConfigFilterSensitiveLog: (
obj: EvaluationModelConfig
) => any;
export declare const EvaluationInferenceConfigFilterSensitiveLog: (
obj: EvaluationInferenceConfig
) => any;
export declare const CreateEvaluationJobRequestFilterSensitiveLog: (
obj: CreateEvaluationJobRequest
) => any;
export declare const GetEvaluationJobRequestFilterSensitiveLog: (
obj: GetEvaluationJobRequest
) => any;
export declare const GetEvaluationJobResponseFilterSensitiveLog: (
obj: GetEvaluationJobResponse
) => any;
export declare const StopEvaluationJobRequestFilterSensitiveLog: (
obj: StopEvaluationJobRequest
) => any;
export declare const GuardrailTopicConfigFilterSensitiveLog: (
obj: GuardrailTopicConfig
) => any;
export declare const GuardrailTopicPolicyConfigFilterSensitiveLog: (
obj: GuardrailTopicPolicyConfig
) => any;
export declare const CreateGuardrailRequestFilterSensitiveLog: (
obj: CreateGuardrailRequest
) => any;
export declare const CreateGuardrailVersionRequestFilterSensitiveLog: (
obj: CreateGuardrailVersionRequest
) => any;
export declare const GuardrailTopicFilterSensitiveLog: (
obj: GuardrailTopic
) => any;
export declare const GuardrailTopicPolicyFilterSensitiveLog: (
obj: GuardrailTopicPolicy
) => any;
export declare const GetGuardrailResponseFilterSensitiveLog: (
obj: GetGuardrailResponse
) => any;
export declare const GuardrailSummaryFilterSensitiveLog: (
obj: GuardrailSummary
) => any;
export declare const ListGuardrailsResponseFilterSensitiveLog: (
obj: ListGuardrailsResponse
) => any;
export declare const UpdateGuardrailRequestFilterSensitiveLog: (
obj: UpdateGuardrailRequest
) => any;
export * from "./Interfaces";
export * from "./ListCustomModelsPaginator";
export * from "./ListEvaluationJobsPaginator";
export * from "./ListGuardrailsPaginator";
export * from "./ListModelCustomizationJobsPaginator";
export * from "./ListProvisionedModelThroughputsPaginator";

@@ -7,2 +7,14 @@ import {

import {
CreateEvaluationJobCommandInput,
CreateEvaluationJobCommandOutput,
} from "../commands/CreateEvaluationJobCommand";
import {
CreateGuardrailCommandInput,
CreateGuardrailCommandOutput,
} from "../commands/CreateGuardrailCommand";
import {
CreateGuardrailVersionCommandInput,
CreateGuardrailVersionCommandOutput,
} from "../commands/CreateGuardrailVersionCommand";
import {
CreateModelCustomizationJobCommandInput,

@@ -20,2 +32,6 @@ CreateModelCustomizationJobCommandOutput,

import {
DeleteGuardrailCommandInput,
DeleteGuardrailCommandOutput,
} from "../commands/DeleteGuardrailCommand";
import {
DeleteModelInvocationLoggingConfigurationCommandInput,

@@ -33,2 +49,6 @@ DeleteModelInvocationLoggingConfigurationCommandOutput,

import {
GetEvaluationJobCommandInput,
GetEvaluationJobCommandOutput,
} from "../commands/GetEvaluationJobCommand";
import {
GetFoundationModelCommandInput,

@@ -38,2 +58,6 @@ GetFoundationModelCommandOutput,

import {
GetGuardrailCommandInput,
GetGuardrailCommandOutput,
} from "../commands/GetGuardrailCommand";
import {
GetModelCustomizationJobCommandInput,

@@ -55,2 +79,6 @@ GetModelCustomizationJobCommandOutput,

import {
ListEvaluationJobsCommandInput,
ListEvaluationJobsCommandOutput,
} from "../commands/ListEvaluationJobsCommand";
import {
ListFoundationModelsCommandInput,

@@ -60,2 +88,6 @@ ListFoundationModelsCommandOutput,

import {
ListGuardrailsCommandInput,
ListGuardrailsCommandOutput,
} from "../commands/ListGuardrailsCommand";
import {
ListModelCustomizationJobsCommandInput,

@@ -77,2 +109,6 @@ ListModelCustomizationJobsCommandOutput,

import {
StopEvaluationJobCommandInput,
StopEvaluationJobCommandOutput,
} from "../commands/StopEvaluationJobCommand";
import {
StopModelCustomizationJobCommandInput,

@@ -90,5 +126,21 @@ StopModelCustomizationJobCommandOutput,

import {
UpdateGuardrailCommandInput,
UpdateGuardrailCommandOutput,
} from "../commands/UpdateGuardrailCommand";
import {
UpdateProvisionedModelThroughputCommandInput,
UpdateProvisionedModelThroughputCommandOutput,
} from "../commands/UpdateProvisionedModelThroughputCommand";
export declare const se_CreateEvaluationJobCommand: (
input: CreateEvaluationJobCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_CreateGuardrailCommand: (
input: CreateGuardrailCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_CreateGuardrailVersionCommand: (
input: CreateGuardrailVersionCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_CreateModelCustomizationJobCommand: (

@@ -106,2 +158,6 @@ input: CreateModelCustomizationJobCommandInput,

) => Promise<__HttpRequest>;
export declare const se_DeleteGuardrailCommand: (
input: DeleteGuardrailCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_DeleteModelInvocationLoggingConfigurationCommand: (

@@ -119,2 +175,6 @@ input: DeleteModelInvocationLoggingConfigurationCommandInput,

) => Promise<__HttpRequest>;
export declare const se_GetEvaluationJobCommand: (
input: GetEvaluationJobCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_GetFoundationModelCommand: (

@@ -124,2 +184,6 @@ input: GetFoundationModelCommandInput,

) => Promise<__HttpRequest>;
export declare const se_GetGuardrailCommand: (
input: GetGuardrailCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_GetModelCustomizationJobCommand: (

@@ -141,2 +205,6 @@ input: GetModelCustomizationJobCommandInput,

) => Promise<__HttpRequest>;
export declare const se_ListEvaluationJobsCommand: (
input: ListEvaluationJobsCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_ListFoundationModelsCommand: (

@@ -146,2 +214,6 @@ input: ListFoundationModelsCommandInput,

) => Promise<__HttpRequest>;
export declare const se_ListGuardrailsCommand: (
input: ListGuardrailsCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_ListModelCustomizationJobsCommand: (

@@ -163,2 +235,6 @@ input: ListModelCustomizationJobsCommandInput,

) => Promise<__HttpRequest>;
export declare const se_StopEvaluationJobCommand: (
input: StopEvaluationJobCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_StopModelCustomizationJobCommand: (

@@ -176,2 +252,6 @@ input: StopModelCustomizationJobCommandInput,

) => Promise<__HttpRequest>;
export declare const se_UpdateGuardrailCommand: (
input: UpdateGuardrailCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_UpdateProvisionedModelThroughputCommand: (

@@ -181,2 +261,14 @@ input: UpdateProvisionedModelThroughputCommandInput,

) => Promise<__HttpRequest>;
export declare const de_CreateEvaluationJobCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<CreateEvaluationJobCommandOutput>;
export declare const de_CreateGuardrailCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<CreateGuardrailCommandOutput>;
export declare const de_CreateGuardrailVersionCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<CreateGuardrailVersionCommandOutput>;
export declare const de_CreateModelCustomizationJobCommand: (

@@ -194,2 +286,6 @@ output: __HttpResponse,

) => Promise<DeleteCustomModelCommandOutput>;
export declare const de_DeleteGuardrailCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<DeleteGuardrailCommandOutput>;
export declare const de_DeleteModelInvocationLoggingConfigurationCommand: (

@@ -207,2 +303,6 @@ output: __HttpResponse,

) => Promise<GetCustomModelCommandOutput>;
export declare const de_GetEvaluationJobCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<GetEvaluationJobCommandOutput>;
export declare const de_GetFoundationModelCommand: (

@@ -212,2 +312,6 @@ output: __HttpResponse,

) => Promise<GetFoundationModelCommandOutput>;
export declare const de_GetGuardrailCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<GetGuardrailCommandOutput>;
export declare const de_GetModelCustomizationJobCommand: (

@@ -229,2 +333,6 @@ output: __HttpResponse,

) => Promise<ListCustomModelsCommandOutput>;
export declare const de_ListEvaluationJobsCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<ListEvaluationJobsCommandOutput>;
export declare const de_ListFoundationModelsCommand: (

@@ -234,2 +342,6 @@ output: __HttpResponse,

) => Promise<ListFoundationModelsCommandOutput>;
export declare const de_ListGuardrailsCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<ListGuardrailsCommandOutput>;
export declare const de_ListModelCustomizationJobsCommand: (

@@ -251,2 +363,6 @@ output: __HttpResponse,

) => Promise<PutModelInvocationLoggingConfigurationCommandOutput>;
export declare const de_StopEvaluationJobCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<StopEvaluationJobCommandOutput>;
export declare const de_StopModelCustomizationJobCommand: (

@@ -264,2 +380,6 @@ output: __HttpResponse,

) => Promise<UntagResourceCommandOutput>;
export declare const de_UpdateGuardrailCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<UpdateGuardrailCommandOutput>;
export declare const de_UpdateProvisionedModelThroughputCommand: (

@@ -266,0 +386,0 @@ output: __HttpResponse,

{
"name": "@aws-sdk/client-bedrock",
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
"version": "3.556.0",
"version": "3.561.0",
"scripts": {

@@ -6,0 +6,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

@@ -9,3 +9,3 @@ <!-- generated file, do not edit directly -->

<p>Describes the API operations for creating and managing Amazon Bedrock models.</p>
<p>Describes the API operations for creating, managing, fine-turning, and evaluating Amazon Bedrock models.</p>

@@ -209,2 +209,26 @@ ## Installing

<summary>
CreateEvaluationJob
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateEvaluationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateEvaluationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateEvaluationJobCommandOutput/)
</details>
<details>
<summary>
CreateGuardrail
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailCommandOutput/)
</details>
<details>
<summary>
CreateGuardrailVersion
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateGuardrailVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailVersionCommandOutput/)
</details>
<details>
<summary>
CreateModelCustomizationJob

@@ -234,2 +258,10 @@ </summary>

<summary>
DeleteGuardrail
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeleteGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteGuardrailCommandOutput/)
</details>
<details>
<summary>
DeleteModelInvocationLoggingConfiguration

@@ -259,2 +291,10 @@ </summary>

<summary>
GetEvaluationJob
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetEvaluationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetEvaluationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetEvaluationJobCommandOutput/)
</details>
<details>
<summary>
GetFoundationModel

@@ -268,2 +308,10 @@ </summary>

<summary>
GetGuardrail
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetGuardrailCommandOutput/)
</details>
<details>
<summary>
GetModelCustomizationJob

@@ -301,2 +349,10 @@ </summary>

<summary>
ListEvaluationJobs
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListEvaluationJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListEvaluationJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListEvaluationJobsCommandOutput/)
</details>
<details>
<summary>
ListFoundationModels

@@ -310,2 +366,10 @@ </summary>

<summary>
ListGuardrails
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListGuardrailsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListGuardrailsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListGuardrailsCommandOutput/)
</details>
<details>
<summary>
ListModelCustomizationJobs

@@ -343,2 +407,10 @@ </summary>

<summary>
StopEvaluationJob
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/StopEvaluationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/StopEvaluationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/StopEvaluationJobCommandOutput/)
</details>
<details>
<summary>
StopModelCustomizationJob

@@ -368,2 +440,10 @@ </summary>

<summary>
UpdateGuardrail
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/UpdateGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/UpdateGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/UpdateGuardrailCommandOutput/)
</details>
<details>
<summary>
UpdateProvisionedModelThroughput

@@ -370,0 +450,0 @@ </summary>

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display