@aws-sdk/client-bedrock 3.934.0 → 3.935.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +389 -389
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +355 -0
- package/dist-es/models/errors.js +123 -0
- package/dist-es/models/models_0.js +1 -355
- package/dist-es/models/models_1.js +1 -123
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/commands/CreateInferenceProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/DeleteInferenceProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/GetGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/GetInferenceProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/ListGuardrailsCommand.d.ts +1 -1
- package/dist-types/commands/ListInferenceProfilesCommand.d.ts +1 -1
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +1 -1
- package/dist-types/index.d.ts +4 -1
- package/dist-types/models/enums.d.ts +891 -0
- package/dist-types/models/errors.d.ts +127 -0
- package/dist-types/models/models_0.d.ts +1306 -696
- package/dist-types/models/models_1.d.ts +2 -1628
- package/dist-types/ts3.4/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListGuardrailsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListInferenceProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/UpdateGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/index.d.ts +4 -1
- package/dist-types/ts3.4/models/enums.d.ts +478 -0
- package/dist-types/ts3.4/models/errors.d.ts +71 -0
- package/dist-types/ts3.4/models/models_0.d.ts +371 -380
- package/dist-types/ts3.4/models/models_1.d.ts +30 -520
- package/package.json +13 -13
- package/dist-es/models/index.js +0 -2
- package/dist-types/models/index.d.ts +0 -2
- package/dist-types/ts3.4/models/index.d.ts +0 -2
|
@@ -1,21 +1,51 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
1
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
import {
|
|
3
|
+
AgreementStatus,
|
|
4
|
+
ApplicationType,
|
|
5
|
+
AttributeType,
|
|
6
|
+
AutomatedReasoningCheckLogicWarningType,
|
|
7
|
+
AutomatedReasoningCheckResult,
|
|
8
|
+
AutomatedReasoningPolicyAnnotationStatus,
|
|
9
|
+
AutomatedReasoningPolicyBuildDocumentContentType,
|
|
10
|
+
AutomatedReasoningPolicyBuildMessageType,
|
|
11
|
+
AutomatedReasoningPolicyBuildResultAssetType,
|
|
12
|
+
AutomatedReasoningPolicyBuildWorkflowStatus,
|
|
13
|
+
AutomatedReasoningPolicyBuildWorkflowType,
|
|
14
|
+
AutomatedReasoningPolicyTestRunResult,
|
|
15
|
+
AutomatedReasoningPolicyTestRunStatus,
|
|
16
|
+
CustomizationType,
|
|
17
|
+
CustomModelDeploymentStatus,
|
|
18
|
+
EvaluationJobStatus,
|
|
19
|
+
EvaluationJobType,
|
|
20
|
+
EvaluationTaskType,
|
|
21
|
+
ExternalSourceType,
|
|
22
|
+
GuardrailContentFilterAction,
|
|
23
|
+
GuardrailContentFiltersTierName,
|
|
24
|
+
GuardrailContentFilterType,
|
|
25
|
+
GuardrailContextualGroundingAction,
|
|
26
|
+
GuardrailContextualGroundingFilterType,
|
|
27
|
+
GuardrailFilterStrength,
|
|
28
|
+
GuardrailManagedWordsType,
|
|
29
|
+
GuardrailModality,
|
|
30
|
+
GuardrailPiiEntityType,
|
|
31
|
+
GuardrailSensitiveInformationAction,
|
|
32
|
+
GuardrailStatus,
|
|
33
|
+
GuardrailTopicAction,
|
|
34
|
+
GuardrailTopicsTierName,
|
|
35
|
+
GuardrailTopicType,
|
|
36
|
+
GuardrailWordAction,
|
|
37
|
+
InferenceProfileStatus,
|
|
38
|
+
InferenceProfileType,
|
|
39
|
+
ModelStatus,
|
|
40
|
+
PerformanceConfigLatency,
|
|
41
|
+
QueryTransformationType,
|
|
42
|
+
RerankingMetadataSelectionMode,
|
|
43
|
+
SortJobsBy,
|
|
44
|
+
SortModelsBy,
|
|
45
|
+
SortOrder,
|
|
46
|
+
Status,
|
|
47
|
+
VectorSearchRerankingConfigurationType,
|
|
48
|
+
} from "./enums";
|
|
19
49
|
export interface AgreementAvailability {
|
|
20
50
|
status: AgreementStatus | undefined;
|
|
21
51
|
errorMessage?: string | undefined;
|
|
@@ -24,34 +54,6 @@ export interface GetUseCaseForModelAccessRequest {}
|
|
|
24
54
|
export interface GetUseCaseForModelAccessResponse {
|
|
25
55
|
formData: Uint8Array | undefined;
|
|
26
56
|
}
|
|
27
|
-
export declare class InternalServerException extends __BaseException {
|
|
28
|
-
readonly name: "InternalServerException";
|
|
29
|
-
readonly $fault: "server";
|
|
30
|
-
constructor(
|
|
31
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
35
|
-
readonly name: "ResourceNotFoundException";
|
|
36
|
-
readonly $fault: "client";
|
|
37
|
-
constructor(
|
|
38
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
export declare class ThrottlingException extends __BaseException {
|
|
42
|
-
readonly name: "ThrottlingException";
|
|
43
|
-
readonly $fault: "client";
|
|
44
|
-
constructor(
|
|
45
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
export declare class ValidationException extends __BaseException {
|
|
49
|
-
readonly name: "ValidationException";
|
|
50
|
-
readonly $fault: "client";
|
|
51
|
-
constructor(
|
|
52
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
57
|
export interface PutUseCaseForModelAccessRequest {
|
|
56
58
|
formData: Uint8Array | undefined;
|
|
57
59
|
}
|
|
@@ -61,11 +63,6 @@ export interface CancelAutomatedReasoningPolicyBuildWorkflowRequest {
|
|
|
61
63
|
buildWorkflowId: string | undefined;
|
|
62
64
|
}
|
|
63
65
|
export interface CancelAutomatedReasoningPolicyBuildWorkflowResponse {}
|
|
64
|
-
export declare class ConflictException extends __BaseException {
|
|
65
|
-
readonly name: "ConflictException";
|
|
66
|
-
readonly $fault: "client";
|
|
67
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
68
|
-
}
|
|
69
66
|
export interface AutomatedReasoningPolicyDefinitionRule {
|
|
70
67
|
id: string | undefined;
|
|
71
68
|
expression: string | undefined;
|
|
@@ -112,32 +109,6 @@ export interface CreateAutomatedReasoningPolicyResponse {
|
|
|
112
109
|
createdAt: Date | undefined;
|
|
113
110
|
updatedAt: Date | undefined;
|
|
114
111
|
}
|
|
115
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
116
|
-
readonly name: "ServiceQuotaExceededException";
|
|
117
|
-
readonly $fault: "client";
|
|
118
|
-
constructor(
|
|
119
|
-
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
export declare class TooManyTagsException extends __BaseException {
|
|
123
|
-
readonly name: "TooManyTagsException";
|
|
124
|
-
readonly $fault: "client";
|
|
125
|
-
resourceName?: string | undefined;
|
|
126
|
-
constructor(
|
|
127
|
-
opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
export declare const AutomatedReasoningCheckResult: {
|
|
131
|
-
readonly IMPOSSIBLE: "IMPOSSIBLE";
|
|
132
|
-
readonly INVALID: "INVALID";
|
|
133
|
-
readonly NO_TRANSLATION: "NO_TRANSLATION";
|
|
134
|
-
readonly SATISFIABLE: "SATISFIABLE";
|
|
135
|
-
readonly TOO_COMPLEX: "TOO_COMPLEX";
|
|
136
|
-
readonly TRANSLATION_AMBIGUOUS: "TRANSLATION_AMBIGUOUS";
|
|
137
|
-
readonly VALID: "VALID";
|
|
138
|
-
};
|
|
139
|
-
export type AutomatedReasoningCheckResult =
|
|
140
|
-
(typeof AutomatedReasoningCheckResult)[keyof typeof AutomatedReasoningCheckResult];
|
|
141
112
|
export interface CreateAutomatedReasoningPolicyTestCaseRequest {
|
|
142
113
|
policyArn: string | undefined;
|
|
143
114
|
guardContent: string | undefined;
|
|
@@ -169,13 +140,6 @@ export interface DeleteAutomatedReasoningPolicyRequest {
|
|
|
169
140
|
force?: boolean | undefined;
|
|
170
141
|
}
|
|
171
142
|
export interface DeleteAutomatedReasoningPolicyResponse {}
|
|
172
|
-
export declare class ResourceInUseException extends __BaseException {
|
|
173
|
-
readonly name: "ResourceInUseException";
|
|
174
|
-
readonly $fault: "client";
|
|
175
|
-
constructor(
|
|
176
|
-
opts: __ExceptionOptionType<ResourceInUseException, __BaseException>
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
143
|
export interface DeleteAutomatedReasoningPolicyBuildWorkflowRequest {
|
|
180
144
|
policyArn: string | undefined;
|
|
181
145
|
buildWorkflowId: string | undefined;
|
|
@@ -594,31 +558,6 @@ export interface GetAutomatedReasoningPolicyBuildWorkflowRequest {
|
|
|
594
558
|
policyArn: string | undefined;
|
|
595
559
|
buildWorkflowId: string | undefined;
|
|
596
560
|
}
|
|
597
|
-
export declare const AutomatedReasoningPolicyBuildWorkflowType: {
|
|
598
|
-
readonly IMPORT_POLICY: "IMPORT_POLICY";
|
|
599
|
-
readonly INGEST_CONTENT: "INGEST_CONTENT";
|
|
600
|
-
readonly REFINE_POLICY: "REFINE_POLICY";
|
|
601
|
-
};
|
|
602
|
-
export type AutomatedReasoningPolicyBuildWorkflowType =
|
|
603
|
-
(typeof AutomatedReasoningPolicyBuildWorkflowType)[keyof typeof AutomatedReasoningPolicyBuildWorkflowType];
|
|
604
|
-
export declare const AutomatedReasoningPolicyBuildDocumentContentType: {
|
|
605
|
-
readonly PDF: "pdf";
|
|
606
|
-
readonly TEXT: "txt";
|
|
607
|
-
};
|
|
608
|
-
export type AutomatedReasoningPolicyBuildDocumentContentType =
|
|
609
|
-
(typeof AutomatedReasoningPolicyBuildDocumentContentType)[keyof typeof AutomatedReasoningPolicyBuildDocumentContentType];
|
|
610
|
-
export declare const AutomatedReasoningPolicyBuildWorkflowStatus: {
|
|
611
|
-
readonly BUILDING: "BUILDING";
|
|
612
|
-
readonly CANCELLED: "CANCELLED";
|
|
613
|
-
readonly CANCEL_REQUESTED: "CANCEL_REQUESTED";
|
|
614
|
-
readonly COMPLETED: "COMPLETED";
|
|
615
|
-
readonly FAILED: "FAILED";
|
|
616
|
-
readonly PREPROCESSING: "PREPROCESSING";
|
|
617
|
-
readonly SCHEDULED: "SCHEDULED";
|
|
618
|
-
readonly TESTING: "TESTING";
|
|
619
|
-
};
|
|
620
|
-
export type AutomatedReasoningPolicyBuildWorkflowStatus =
|
|
621
|
-
(typeof AutomatedReasoningPolicyBuildWorkflowStatus)[keyof typeof AutomatedReasoningPolicyBuildWorkflowStatus];
|
|
622
561
|
export interface GetAutomatedReasoningPolicyBuildWorkflowResponse {
|
|
623
562
|
policyArn: string | undefined;
|
|
624
563
|
buildWorkflowId: string | undefined;
|
|
@@ -632,14 +571,6 @@ export interface GetAutomatedReasoningPolicyBuildWorkflowResponse {
|
|
|
632
571
|
createdAt: Date | undefined;
|
|
633
572
|
updatedAt: Date | undefined;
|
|
634
573
|
}
|
|
635
|
-
export declare const AutomatedReasoningPolicyBuildResultAssetType: {
|
|
636
|
-
readonly BUILD_LOG: "BUILD_LOG";
|
|
637
|
-
readonly GENERATED_TEST_CASES: "GENERATED_TEST_CASES";
|
|
638
|
-
readonly POLICY_DEFINITION: "POLICY_DEFINITION";
|
|
639
|
-
readonly QUALITY_REPORT: "QUALITY_REPORT";
|
|
640
|
-
};
|
|
641
|
-
export type AutomatedReasoningPolicyBuildResultAssetType =
|
|
642
|
-
(typeof AutomatedReasoningPolicyBuildResultAssetType)[keyof typeof AutomatedReasoningPolicyBuildResultAssetType];
|
|
643
574
|
export interface GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest {
|
|
644
575
|
policyArn: string | undefined;
|
|
645
576
|
buildWorkflowId: string | undefined;
|
|
@@ -848,13 +779,6 @@ export declare namespace AutomatedReasoningPolicyBuildStepContext {
|
|
|
848
779
|
_: (name: string, value: any) => T;
|
|
849
780
|
}
|
|
850
781
|
}
|
|
851
|
-
export declare const AutomatedReasoningPolicyBuildMessageType: {
|
|
852
|
-
readonly ERROR: "ERROR";
|
|
853
|
-
readonly INFO: "INFO";
|
|
854
|
-
readonly WARNING: "WARNING";
|
|
855
|
-
};
|
|
856
|
-
export type AutomatedReasoningPolicyBuildMessageType =
|
|
857
|
-
(typeof AutomatedReasoningPolicyBuildMessageType)[keyof typeof AutomatedReasoningPolicyBuildMessageType];
|
|
858
782
|
export interface AutomatedReasoningPolicyBuildStepMessage {
|
|
859
783
|
message: string | undefined;
|
|
860
784
|
messageType: AutomatedReasoningPolicyBuildMessageType | undefined;
|
|
@@ -903,12 +827,6 @@ export interface AutomatedReasoningPolicyBuildStep {
|
|
|
903
827
|
priorElement?: AutomatedReasoningPolicyDefinitionElement | undefined;
|
|
904
828
|
messages: AutomatedReasoningPolicyBuildStepMessage[] | undefined;
|
|
905
829
|
}
|
|
906
|
-
export declare const AutomatedReasoningPolicyAnnotationStatus: {
|
|
907
|
-
readonly APPLIED: "APPLIED";
|
|
908
|
-
readonly FAILED: "FAILED";
|
|
909
|
-
};
|
|
910
|
-
export type AutomatedReasoningPolicyAnnotationStatus =
|
|
911
|
-
(typeof AutomatedReasoningPolicyAnnotationStatus)[keyof typeof AutomatedReasoningPolicyAnnotationStatus];
|
|
912
830
|
export interface AutomatedReasoningPolicyBuildLogEntry {
|
|
913
831
|
annotation: AutomatedReasoningPolicyAnnotation | undefined;
|
|
914
832
|
status: AutomatedReasoningPolicyAnnotationStatus | undefined;
|
|
@@ -1048,12 +966,6 @@ export interface AutomatedReasoningLogicStatement {
|
|
|
1048
966
|
logic: string | undefined;
|
|
1049
967
|
naturalLanguage?: string | undefined;
|
|
1050
968
|
}
|
|
1051
|
-
export declare const AutomatedReasoningCheckLogicWarningType: {
|
|
1052
|
-
readonly ALWAYS_FALSE: "ALWAYS_FALSE";
|
|
1053
|
-
readonly ALWAYS_TRUE: "ALWAYS_TRUE";
|
|
1054
|
-
};
|
|
1055
|
-
export type AutomatedReasoningCheckLogicWarningType =
|
|
1056
|
-
(typeof AutomatedReasoningCheckLogicWarningType)[keyof typeof AutomatedReasoningCheckLogicWarningType];
|
|
1057
969
|
export interface AutomatedReasoningCheckLogicWarning {
|
|
1058
970
|
type?: AutomatedReasoningCheckLogicWarningType | undefined;
|
|
1059
971
|
premises?: AutomatedReasoningLogicStatement[] | undefined;
|
|
@@ -1208,21 +1120,6 @@ export declare namespace AutomatedReasoningCheckFinding {
|
|
|
1208
1120
|
_: (name: string, value: any) => T;
|
|
1209
1121
|
}
|
|
1210
1122
|
}
|
|
1211
|
-
export declare const AutomatedReasoningPolicyTestRunResult: {
|
|
1212
|
-
readonly FAILED: "FAILED";
|
|
1213
|
-
readonly PASSED: "PASSED";
|
|
1214
|
-
};
|
|
1215
|
-
export type AutomatedReasoningPolicyTestRunResult =
|
|
1216
|
-
(typeof AutomatedReasoningPolicyTestRunResult)[keyof typeof AutomatedReasoningPolicyTestRunResult];
|
|
1217
|
-
export declare const AutomatedReasoningPolicyTestRunStatus: {
|
|
1218
|
-
readonly COMPLETED: "COMPLETED";
|
|
1219
|
-
readonly FAILED: "FAILED";
|
|
1220
|
-
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
1221
|
-
readonly NOT_STARTED: "NOT_STARTED";
|
|
1222
|
-
readonly SCHEDULED: "SCHEDULED";
|
|
1223
|
-
};
|
|
1224
|
-
export type AutomatedReasoningPolicyTestRunStatus =
|
|
1225
|
-
(typeof AutomatedReasoningPolicyTestRunStatus)[keyof typeof AutomatedReasoningPolicyTestRunStatus];
|
|
1226
1123
|
export interface AutomatedReasoningPolicyTestResult {
|
|
1227
1124
|
testCase: AutomatedReasoningPolicyTestCase | undefined;
|
|
1228
1125
|
policyArn: string | undefined;
|
|
@@ -1429,11 +1326,6 @@ export interface CreateMarketplaceModelEndpointRequest {
|
|
|
1429
1326
|
clientRequestToken?: string | undefined;
|
|
1430
1327
|
tags?: Tag[] | undefined;
|
|
1431
1328
|
}
|
|
1432
|
-
export declare const Status: {
|
|
1433
|
-
readonly INCOMPATIBLE_ENDPOINT: "INCOMPATIBLE_ENDPOINT";
|
|
1434
|
-
readonly REGISTERED: "REGISTERED";
|
|
1435
|
-
};
|
|
1436
|
-
export type Status = (typeof Status)[keyof typeof Status];
|
|
1437
1329
|
export interface MarketplaceModelEndpoint {
|
|
1438
1330
|
endpointArn: string | undefined;
|
|
1439
1331
|
modelSourceIdentifier: string | undefined;
|
|
@@ -1456,13 +1348,6 @@ export interface DeregisterMarketplaceModelEndpointRequest {
|
|
|
1456
1348
|
endpointArn: string | undefined;
|
|
1457
1349
|
}
|
|
1458
1350
|
export interface DeregisterMarketplaceModelEndpointResponse {}
|
|
1459
|
-
export declare class ServiceUnavailableException extends __BaseException {
|
|
1460
|
-
readonly name: "ServiceUnavailableException";
|
|
1461
|
-
readonly $fault: "server";
|
|
1462
|
-
constructor(
|
|
1463
|
-
opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
|
|
1464
|
-
);
|
|
1465
|
-
}
|
|
1466
1351
|
export interface GetMarketplaceModelEndpointRequest {
|
|
1467
1352
|
endpointArn: string | undefined;
|
|
1468
1353
|
}
|
|
@@ -1518,13 +1403,6 @@ export interface DeleteCustomModelDeploymentResponse {}
|
|
|
1518
1403
|
export interface GetCustomModelDeploymentRequest {
|
|
1519
1404
|
customModelDeploymentIdentifier: string | undefined;
|
|
1520
1405
|
}
|
|
1521
|
-
export declare const CustomModelDeploymentStatus: {
|
|
1522
|
-
readonly ACTIVE: "Active";
|
|
1523
|
-
readonly CREATING: "Creating";
|
|
1524
|
-
readonly FAILED: "Failed";
|
|
1525
|
-
};
|
|
1526
|
-
export type CustomModelDeploymentStatus =
|
|
1527
|
-
(typeof CustomModelDeploymentStatus)[keyof typeof CustomModelDeploymentStatus];
|
|
1528
1406
|
export interface GetCustomModelDeploymentResponse {
|
|
1529
1407
|
customModelDeploymentArn: string | undefined;
|
|
1530
1408
|
modelDeploymentName: string | undefined;
|
|
@@ -1535,15 +1413,6 @@ export interface GetCustomModelDeploymentResponse {
|
|
|
1535
1413
|
failureMessage?: string | undefined;
|
|
1536
1414
|
lastUpdatedAt?: Date | undefined;
|
|
1537
1415
|
}
|
|
1538
|
-
export declare const SortModelsBy: {
|
|
1539
|
-
readonly CREATION_TIME: "CreationTime";
|
|
1540
|
-
};
|
|
1541
|
-
export type SortModelsBy = (typeof SortModelsBy)[keyof typeof SortModelsBy];
|
|
1542
|
-
export declare const SortOrder: {
|
|
1543
|
-
readonly ASCENDING: "Ascending";
|
|
1544
|
-
readonly DESCENDING: "Descending";
|
|
1545
|
-
};
|
|
1546
|
-
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
1547
1416
|
export interface ListCustomModelDeploymentsRequest {
|
|
1548
1417
|
createdBefore?: Date | undefined;
|
|
1549
1418
|
createdAfter?: Date | undefined;
|
|
@@ -1630,20 +1499,6 @@ export declare namespace CustomizationConfig {
|
|
|
1630
1499
|
_: (name: string, value: any) => T;
|
|
1631
1500
|
}
|
|
1632
1501
|
}
|
|
1633
|
-
export declare const CustomizationType: {
|
|
1634
|
-
readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
|
|
1635
|
-
readonly DISTILLATION: "DISTILLATION";
|
|
1636
|
-
readonly FINE_TUNING: "FINE_TUNING";
|
|
1637
|
-
readonly IMPORTED: "IMPORTED";
|
|
1638
|
-
};
|
|
1639
|
-
export type CustomizationType =
|
|
1640
|
-
(typeof CustomizationType)[keyof typeof CustomizationType];
|
|
1641
|
-
export declare const ModelStatus: {
|
|
1642
|
-
readonly ACTIVE: "Active";
|
|
1643
|
-
readonly CREATING: "Creating";
|
|
1644
|
-
readonly FAILED: "Failed";
|
|
1645
|
-
};
|
|
1646
|
-
export type ModelStatus = (typeof ModelStatus)[keyof typeof ModelStatus];
|
|
1647
1502
|
export interface OutputDataConfig {
|
|
1648
1503
|
s3Uri: string | undefined;
|
|
1649
1504
|
}
|
|
@@ -1793,16 +1648,6 @@ export interface BatchDeleteEvaluationJobError {
|
|
|
1793
1648
|
code: string | undefined;
|
|
1794
1649
|
message?: string | undefined;
|
|
1795
1650
|
}
|
|
1796
|
-
export declare const EvaluationJobStatus: {
|
|
1797
|
-
readonly COMPLETED: "Completed";
|
|
1798
|
-
readonly DELETING: "Deleting";
|
|
1799
|
-
readonly FAILED: "Failed";
|
|
1800
|
-
readonly IN_PROGRESS: "InProgress";
|
|
1801
|
-
readonly STOPPED: "Stopped";
|
|
1802
|
-
readonly STOPPING: "Stopping";
|
|
1803
|
-
};
|
|
1804
|
-
export type EvaluationJobStatus =
|
|
1805
|
-
(typeof EvaluationJobStatus)[keyof typeof EvaluationJobStatus];
|
|
1806
1651
|
export interface BatchDeleteEvaluationJobItem {
|
|
1807
1652
|
jobIdentifier: string | undefined;
|
|
1808
1653
|
jobStatus: EvaluationJobStatus | undefined;
|
|
@@ -1811,12 +1656,6 @@ export interface BatchDeleteEvaluationJobResponse {
|
|
|
1811
1656
|
errors: BatchDeleteEvaluationJobError[] | undefined;
|
|
1812
1657
|
evaluationJobs: BatchDeleteEvaluationJobItem[] | undefined;
|
|
1813
1658
|
}
|
|
1814
|
-
export declare const ApplicationType: {
|
|
1815
|
-
readonly MODEL_EVALUATION: "ModelEvaluation";
|
|
1816
|
-
readonly RAG_EVALUATION: "RagEvaluation";
|
|
1817
|
-
};
|
|
1818
|
-
export type ApplicationType =
|
|
1819
|
-
(typeof ApplicationType)[keyof typeof ApplicationType];
|
|
1820
1659
|
export type RatingScaleItemValue =
|
|
1821
1660
|
| RatingScaleItemValue.FloatValueMember
|
|
1822
1661
|
| RatingScaleItemValue.StringValueMember
|
|
@@ -1900,15 +1739,6 @@ export interface EvaluationDataset {
|
|
|
1900
1739
|
name: string | undefined;
|
|
1901
1740
|
datasetLocation?: EvaluationDatasetLocation | undefined;
|
|
1902
1741
|
}
|
|
1903
|
-
export declare const EvaluationTaskType: {
|
|
1904
|
-
readonly CLASSIFICATION: "Classification";
|
|
1905
|
-
readonly CUSTOM: "Custom";
|
|
1906
|
-
readonly GENERATION: "Generation";
|
|
1907
|
-
readonly QUESTION_AND_ANSWER: "QuestionAndAnswer";
|
|
1908
|
-
readonly SUMMARIZATION: "Summarization";
|
|
1909
|
-
};
|
|
1910
|
-
export type EvaluationTaskType =
|
|
1911
|
-
(typeof EvaluationTaskType)[keyof typeof EvaluationTaskType];
|
|
1912
1742
|
export interface EvaluationDatasetMetricConfig {
|
|
1913
1743
|
taskType: EvaluationTaskType | undefined;
|
|
1914
1744
|
dataset: EvaluationDataset | undefined;
|
|
@@ -1979,12 +1809,6 @@ export declare namespace EvaluationConfig {
|
|
|
1979
1809
|
_: (name: string, value: any) => T;
|
|
1980
1810
|
}
|
|
1981
1811
|
}
|
|
1982
|
-
export declare const PerformanceConfigLatency: {
|
|
1983
|
-
readonly OPTIMIZED: "optimized";
|
|
1984
|
-
readonly STANDARD: "standard";
|
|
1985
|
-
};
|
|
1986
|
-
export type PerformanceConfigLatency =
|
|
1987
|
-
(typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
|
|
1988
1812
|
export interface PerformanceConfiguration {
|
|
1989
1813
|
latency?: PerformanceConfigLatency | undefined;
|
|
1990
1814
|
}
|
|
@@ -2054,12 +1878,6 @@ export interface ByteContentDoc {
|
|
|
2054
1878
|
export interface S3ObjectDoc {
|
|
2055
1879
|
uri: string | undefined;
|
|
2056
1880
|
}
|
|
2057
|
-
export declare const ExternalSourceType: {
|
|
2058
|
-
readonly BYTE_CONTENT: "BYTE_CONTENT";
|
|
2059
|
-
readonly S3: "S3";
|
|
2060
|
-
};
|
|
2061
|
-
export type ExternalSourceType =
|
|
2062
|
-
(typeof ExternalSourceType)[keyof typeof ExternalSourceType];
|
|
2063
1881
|
export interface ExternalSource {
|
|
2064
1882
|
sourceType: ExternalSourceType | undefined;
|
|
2065
1883
|
s3Location?: S3ObjectDoc | undefined;
|
|
@@ -2076,11 +1894,6 @@ export interface GenerationConfiguration {
|
|
|
2076
1894
|
kbInferenceConfig?: KbInferenceConfig | undefined;
|
|
2077
1895
|
additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
|
|
2078
1896
|
}
|
|
2079
|
-
export declare const QueryTransformationType: {
|
|
2080
|
-
readonly QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION";
|
|
2081
|
-
};
|
|
2082
|
-
export type QueryTransformationType =
|
|
2083
|
-
(typeof QueryTransformationType)[keyof typeof QueryTransformationType];
|
|
2084
1897
|
export interface QueryTransformationConfiguration {
|
|
2085
1898
|
type: QueryTransformationType | undefined;
|
|
2086
1899
|
}
|
|
@@ -2093,13 +1906,6 @@ export interface FilterAttribute {
|
|
|
2093
1906
|
key: string | undefined;
|
|
2094
1907
|
value: __DocumentType | undefined;
|
|
2095
1908
|
}
|
|
2096
|
-
export declare const AttributeType: {
|
|
2097
|
-
readonly BOOLEAN: "BOOLEAN";
|
|
2098
|
-
readonly NUMBER: "NUMBER";
|
|
2099
|
-
readonly STRING: "STRING";
|
|
2100
|
-
readonly STRING_LIST: "STRING_LIST";
|
|
2101
|
-
};
|
|
2102
|
-
export type AttributeType = (typeof AttributeType)[keyof typeof AttributeType];
|
|
2103
1909
|
export interface MetadataAttributeSchema {
|
|
2104
1910
|
key: string | undefined;
|
|
2105
1911
|
type: AttributeType | undefined;
|
|
@@ -2109,17 +1915,6 @@ export interface ImplicitFilterConfiguration {
|
|
|
2109
1915
|
metadataAttributes: MetadataAttributeSchema[] | undefined;
|
|
2110
1916
|
modelArn: string | undefined;
|
|
2111
1917
|
}
|
|
2112
|
-
export declare const SearchType: {
|
|
2113
|
-
readonly HYBRID: "HYBRID";
|
|
2114
|
-
readonly SEMANTIC: "SEMANTIC";
|
|
2115
|
-
};
|
|
2116
|
-
export type SearchType = (typeof SearchType)[keyof typeof SearchType];
|
|
2117
|
-
export declare const RerankingMetadataSelectionMode: {
|
|
2118
|
-
readonly ALL: "ALL";
|
|
2119
|
-
readonly SELECTIVE: "SELECTIVE";
|
|
2120
|
-
};
|
|
2121
|
-
export type RerankingMetadataSelectionMode =
|
|
2122
|
-
(typeof RerankingMetadataSelectionMode)[keyof typeof RerankingMetadataSelectionMode];
|
|
2123
1918
|
export interface FieldForReranking {
|
|
2124
1919
|
fieldName: string | undefined;
|
|
2125
1920
|
}
|
|
@@ -2166,23 +1961,12 @@ export interface VectorSearchBedrockRerankingConfiguration {
|
|
|
2166
1961
|
numberOfRerankedResults?: number | undefined;
|
|
2167
1962
|
metadataConfiguration?: MetadataConfigurationForReranking | undefined;
|
|
2168
1963
|
}
|
|
2169
|
-
export declare const VectorSearchRerankingConfigurationType: {
|
|
2170
|
-
readonly BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL";
|
|
2171
|
-
};
|
|
2172
|
-
export type VectorSearchRerankingConfigurationType =
|
|
2173
|
-
(typeof VectorSearchRerankingConfigurationType)[keyof typeof VectorSearchRerankingConfigurationType];
|
|
2174
1964
|
export interface VectorSearchRerankingConfiguration {
|
|
2175
1965
|
type: VectorSearchRerankingConfigurationType | undefined;
|
|
2176
1966
|
bedrockRerankingConfiguration?:
|
|
2177
1967
|
| VectorSearchBedrockRerankingConfiguration
|
|
2178
1968
|
| undefined;
|
|
2179
1969
|
}
|
|
2180
|
-
export declare const RetrieveAndGenerateType: {
|
|
2181
|
-
readonly EXTERNAL_SOURCES: "EXTERNAL_SOURCES";
|
|
2182
|
-
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
2183
|
-
};
|
|
2184
|
-
export type RetrieveAndGenerateType =
|
|
2185
|
-
(typeof RetrieveAndGenerateType)[keyof typeof RetrieveAndGenerateType];
|
|
2186
1970
|
export interface EvaluationPrecomputedRetrieveAndGenerateSourceConfig {
|
|
2187
1971
|
ragSourceIdentifier: string | undefined;
|
|
2188
1972
|
}
|
|
@@ -2228,16 +2012,6 @@ export interface CreateEvaluationJobResponse {
|
|
|
2228
2012
|
export interface GetEvaluationJobRequest {
|
|
2229
2013
|
jobIdentifier: string | undefined;
|
|
2230
2014
|
}
|
|
2231
|
-
export declare const EvaluationJobType: {
|
|
2232
|
-
readonly AUTOMATED: "Automated";
|
|
2233
|
-
readonly HUMAN: "Human";
|
|
2234
|
-
};
|
|
2235
|
-
export type EvaluationJobType =
|
|
2236
|
-
(typeof EvaluationJobType)[keyof typeof EvaluationJobType];
|
|
2237
|
-
export declare const SortJobsBy: {
|
|
2238
|
-
readonly CREATION_TIME: "CreationTime";
|
|
2239
|
-
};
|
|
2240
|
-
export type SortJobsBy = (typeof SortJobsBy)[keyof typeof SortJobsBy];
|
|
2241
2015
|
export interface ListEvaluationJobsRequest {
|
|
2242
2016
|
creationTimeAfter?: Date | undefined;
|
|
2243
2017
|
creationTimeBefore?: Date | undefined;
|
|
@@ -2287,36 +2061,6 @@ export interface GuardrailAutomatedReasoningPolicyConfig {
|
|
|
2287
2061
|
policies: string[] | undefined;
|
|
2288
2062
|
confidenceThreshold?: number | undefined;
|
|
2289
2063
|
}
|
|
2290
|
-
export declare const GuardrailContentFilterAction: {
|
|
2291
|
-
readonly BLOCK: "BLOCK";
|
|
2292
|
-
readonly NONE: "NONE";
|
|
2293
|
-
};
|
|
2294
|
-
export type GuardrailContentFilterAction =
|
|
2295
|
-
(typeof GuardrailContentFilterAction)[keyof typeof GuardrailContentFilterAction];
|
|
2296
|
-
export declare const GuardrailModality: {
|
|
2297
|
-
readonly IMAGE: "IMAGE";
|
|
2298
|
-
readonly TEXT: "TEXT";
|
|
2299
|
-
};
|
|
2300
|
-
export type GuardrailModality =
|
|
2301
|
-
(typeof GuardrailModality)[keyof typeof GuardrailModality];
|
|
2302
|
-
export declare const GuardrailFilterStrength: {
|
|
2303
|
-
readonly HIGH: "HIGH";
|
|
2304
|
-
readonly LOW: "LOW";
|
|
2305
|
-
readonly MEDIUM: "MEDIUM";
|
|
2306
|
-
readonly NONE: "NONE";
|
|
2307
|
-
};
|
|
2308
|
-
export type GuardrailFilterStrength =
|
|
2309
|
-
(typeof GuardrailFilterStrength)[keyof typeof GuardrailFilterStrength];
|
|
2310
|
-
export declare const GuardrailContentFilterType: {
|
|
2311
|
-
readonly HATE: "HATE";
|
|
2312
|
-
readonly INSULTS: "INSULTS";
|
|
2313
|
-
readonly MISCONDUCT: "MISCONDUCT";
|
|
2314
|
-
readonly PROMPT_ATTACK: "PROMPT_ATTACK";
|
|
2315
|
-
readonly SEXUAL: "SEXUAL";
|
|
2316
|
-
readonly VIOLENCE: "VIOLENCE";
|
|
2317
|
-
};
|
|
2318
|
-
export type GuardrailContentFilterType =
|
|
2319
|
-
(typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType];
|
|
2320
2064
|
export interface GuardrailContentFilterConfig {
|
|
2321
2065
|
type: GuardrailContentFilterType | undefined;
|
|
2322
2066
|
inputStrength: GuardrailFilterStrength | undefined;
|
|
@@ -2328,12 +2072,6 @@ export interface GuardrailContentFilterConfig {
|
|
|
2328
2072
|
inputEnabled?: boolean | undefined;
|
|
2329
2073
|
outputEnabled?: boolean | undefined;
|
|
2330
2074
|
}
|
|
2331
|
-
export declare const GuardrailContentFiltersTierName: {
|
|
2332
|
-
readonly CLASSIC: "CLASSIC";
|
|
2333
|
-
readonly STANDARD: "STANDARD";
|
|
2334
|
-
};
|
|
2335
|
-
export type GuardrailContentFiltersTierName =
|
|
2336
|
-
(typeof GuardrailContentFiltersTierName)[keyof typeof GuardrailContentFiltersTierName];
|
|
2337
2075
|
export interface GuardrailContentFiltersTierConfig {
|
|
2338
2076
|
tierName: GuardrailContentFiltersTierName | undefined;
|
|
2339
2077
|
}
|
|
@@ -2341,18 +2079,6 @@ export interface GuardrailContentPolicyConfig {
|
|
|
2341
2079
|
filtersConfig: GuardrailContentFilterConfig[] | undefined;
|
|
2342
2080
|
tierConfig?: GuardrailContentFiltersTierConfig | undefined;
|
|
2343
2081
|
}
|
|
2344
|
-
export declare const GuardrailContextualGroundingAction: {
|
|
2345
|
-
readonly BLOCK: "BLOCK";
|
|
2346
|
-
readonly NONE: "NONE";
|
|
2347
|
-
};
|
|
2348
|
-
export type GuardrailContextualGroundingAction =
|
|
2349
|
-
(typeof GuardrailContextualGroundingAction)[keyof typeof GuardrailContextualGroundingAction];
|
|
2350
|
-
export declare const GuardrailContextualGroundingFilterType: {
|
|
2351
|
-
readonly GROUNDING: "GROUNDING";
|
|
2352
|
-
readonly RELEVANCE: "RELEVANCE";
|
|
2353
|
-
};
|
|
2354
|
-
export type GuardrailContextualGroundingFilterType =
|
|
2355
|
-
(typeof GuardrailContextualGroundingFilterType)[keyof typeof GuardrailContextualGroundingFilterType];
|
|
2356
2082
|
export interface GuardrailContextualGroundingFilterConfig {
|
|
2357
2083
|
type: GuardrailContextualGroundingFilterType | undefined;
|
|
2358
2084
|
threshold: number | undefined;
|
|
@@ -2365,48 +2091,6 @@ export interface GuardrailContextualGroundingPolicyConfig {
|
|
|
2365
2091
|
export interface GuardrailCrossRegionConfig {
|
|
2366
2092
|
guardrailProfileIdentifier: string | undefined;
|
|
2367
2093
|
}
|
|
2368
|
-
export declare const GuardrailSensitiveInformationAction: {
|
|
2369
|
-
readonly ANONYMIZE: "ANONYMIZE";
|
|
2370
|
-
readonly BLOCK: "BLOCK";
|
|
2371
|
-
readonly NONE: "NONE";
|
|
2372
|
-
};
|
|
2373
|
-
export type GuardrailSensitiveInformationAction =
|
|
2374
|
-
(typeof GuardrailSensitiveInformationAction)[keyof typeof GuardrailSensitiveInformationAction];
|
|
2375
|
-
export declare const GuardrailPiiEntityType: {
|
|
2376
|
-
readonly ADDRESS: "ADDRESS";
|
|
2377
|
-
readonly AGE: "AGE";
|
|
2378
|
-
readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
|
|
2379
|
-
readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
|
|
2380
|
-
readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
|
|
2381
|
-
readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
|
|
2382
|
-
readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
|
|
2383
|
-
readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
|
|
2384
|
-
readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
|
|
2385
|
-
readonly DRIVER_ID: "DRIVER_ID";
|
|
2386
|
-
readonly EMAIL: "EMAIL";
|
|
2387
|
-
readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
|
|
2388
|
-
readonly IP_ADDRESS: "IP_ADDRESS";
|
|
2389
|
-
readonly LICENSE_PLATE: "LICENSE_PLATE";
|
|
2390
|
-
readonly MAC_ADDRESS: "MAC_ADDRESS";
|
|
2391
|
-
readonly NAME: "NAME";
|
|
2392
|
-
readonly PASSWORD: "PASSWORD";
|
|
2393
|
-
readonly PHONE: "PHONE";
|
|
2394
|
-
readonly PIN: "PIN";
|
|
2395
|
-
readonly SWIFT_CODE: "SWIFT_CODE";
|
|
2396
|
-
readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
|
|
2397
|
-
readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
|
|
2398
|
-
readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
|
|
2399
|
-
readonly URL: "URL";
|
|
2400
|
-
readonly USERNAME: "USERNAME";
|
|
2401
|
-
readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
|
|
2402
|
-
readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
|
|
2403
|
-
readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
|
|
2404
|
-
readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
|
|
2405
|
-
readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
|
|
2406
|
-
readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
|
|
2407
|
-
};
|
|
2408
|
-
export type GuardrailPiiEntityType =
|
|
2409
|
-
(typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
|
|
2410
2094
|
export interface GuardrailPiiEntityConfig {
|
|
2411
2095
|
type: GuardrailPiiEntityType | undefined;
|
|
2412
2096
|
action: GuardrailSensitiveInformationAction | undefined;
|
|
@@ -2429,26 +2113,9 @@ export interface GuardrailSensitiveInformationPolicyConfig {
|
|
|
2429
2113
|
piiEntitiesConfig?: GuardrailPiiEntityConfig[] | undefined;
|
|
2430
2114
|
regexesConfig?: GuardrailRegexConfig[] | undefined;
|
|
2431
2115
|
}
|
|
2432
|
-
export declare const GuardrailTopicsTierName: {
|
|
2433
|
-
readonly CLASSIC: "CLASSIC";
|
|
2434
|
-
readonly STANDARD: "STANDARD";
|
|
2435
|
-
};
|
|
2436
|
-
export type GuardrailTopicsTierName =
|
|
2437
|
-
(typeof GuardrailTopicsTierName)[keyof typeof GuardrailTopicsTierName];
|
|
2438
2116
|
export interface GuardrailTopicsTierConfig {
|
|
2439
2117
|
tierName: GuardrailTopicsTierName | undefined;
|
|
2440
2118
|
}
|
|
2441
|
-
export declare const GuardrailTopicAction: {
|
|
2442
|
-
readonly BLOCK: "BLOCK";
|
|
2443
|
-
readonly NONE: "NONE";
|
|
2444
|
-
};
|
|
2445
|
-
export type GuardrailTopicAction =
|
|
2446
|
-
(typeof GuardrailTopicAction)[keyof typeof GuardrailTopicAction];
|
|
2447
|
-
export declare const GuardrailTopicType: {
|
|
2448
|
-
readonly DENY: "DENY";
|
|
2449
|
-
};
|
|
2450
|
-
export type GuardrailTopicType =
|
|
2451
|
-
(typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
|
|
2452
2119
|
export interface GuardrailTopicConfig {
|
|
2453
2120
|
name: string | undefined;
|
|
2454
2121
|
definition: string | undefined;
|
|
@@ -2459,3 +2126,327 @@ export interface GuardrailTopicConfig {
|
|
|
2459
2126
|
inputEnabled?: boolean | undefined;
|
|
2460
2127
|
outputEnabled?: boolean | undefined;
|
|
2461
2128
|
}
|
|
2129
|
+
export interface GuardrailTopicPolicyConfig {
|
|
2130
|
+
topicsConfig: GuardrailTopicConfig[] | undefined;
|
|
2131
|
+
tierConfig?: GuardrailTopicsTierConfig | undefined;
|
|
2132
|
+
}
|
|
2133
|
+
export interface GuardrailManagedWordsConfig {
|
|
2134
|
+
type: GuardrailManagedWordsType | undefined;
|
|
2135
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
2136
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
2137
|
+
inputEnabled?: boolean | undefined;
|
|
2138
|
+
outputEnabled?: boolean | undefined;
|
|
2139
|
+
}
|
|
2140
|
+
export interface GuardrailWordConfig {
|
|
2141
|
+
text: string | undefined;
|
|
2142
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
2143
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
2144
|
+
inputEnabled?: boolean | undefined;
|
|
2145
|
+
outputEnabled?: boolean | undefined;
|
|
2146
|
+
}
|
|
2147
|
+
export interface GuardrailWordPolicyConfig {
|
|
2148
|
+
wordsConfig?: GuardrailWordConfig[] | undefined;
|
|
2149
|
+
managedWordListsConfig?: GuardrailManagedWordsConfig[] | undefined;
|
|
2150
|
+
}
|
|
2151
|
+
export interface CreateGuardrailRequest {
|
|
2152
|
+
name: string | undefined;
|
|
2153
|
+
description?: string | undefined;
|
|
2154
|
+
topicPolicyConfig?: GuardrailTopicPolicyConfig | undefined;
|
|
2155
|
+
contentPolicyConfig?: GuardrailContentPolicyConfig | undefined;
|
|
2156
|
+
wordPolicyConfig?: GuardrailWordPolicyConfig | undefined;
|
|
2157
|
+
sensitiveInformationPolicyConfig?:
|
|
2158
|
+
| GuardrailSensitiveInformationPolicyConfig
|
|
2159
|
+
| undefined;
|
|
2160
|
+
contextualGroundingPolicyConfig?:
|
|
2161
|
+
| GuardrailContextualGroundingPolicyConfig
|
|
2162
|
+
| undefined;
|
|
2163
|
+
automatedReasoningPolicyConfig?:
|
|
2164
|
+
| GuardrailAutomatedReasoningPolicyConfig
|
|
2165
|
+
| undefined;
|
|
2166
|
+
crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
|
|
2167
|
+
blockedInputMessaging: string | undefined;
|
|
2168
|
+
blockedOutputsMessaging: string | undefined;
|
|
2169
|
+
kmsKeyId?: string | undefined;
|
|
2170
|
+
tags?: Tag[] | undefined;
|
|
2171
|
+
clientRequestToken?: string | undefined;
|
|
2172
|
+
}
|
|
2173
|
+
export interface CreateGuardrailResponse {
|
|
2174
|
+
guardrailId: string | undefined;
|
|
2175
|
+
guardrailArn: string | undefined;
|
|
2176
|
+
version: string | undefined;
|
|
2177
|
+
createdAt: Date | undefined;
|
|
2178
|
+
}
|
|
2179
|
+
export interface CreateGuardrailVersionRequest {
|
|
2180
|
+
guardrailIdentifier: string | undefined;
|
|
2181
|
+
description?: string | undefined;
|
|
2182
|
+
clientRequestToken?: string | undefined;
|
|
2183
|
+
}
|
|
2184
|
+
export interface CreateGuardrailVersionResponse {
|
|
2185
|
+
guardrailId: string | undefined;
|
|
2186
|
+
version: string | undefined;
|
|
2187
|
+
}
|
|
2188
|
+
export interface DeleteGuardrailRequest {
|
|
2189
|
+
guardrailIdentifier: string | undefined;
|
|
2190
|
+
guardrailVersion?: string | undefined;
|
|
2191
|
+
}
|
|
2192
|
+
export interface DeleteGuardrailResponse {}
|
|
2193
|
+
export interface GetGuardrailRequest {
|
|
2194
|
+
guardrailIdentifier: string | undefined;
|
|
2195
|
+
guardrailVersion?: string | undefined;
|
|
2196
|
+
}
|
|
2197
|
+
export interface GuardrailAutomatedReasoningPolicy {
|
|
2198
|
+
policies: string[] | undefined;
|
|
2199
|
+
confidenceThreshold?: number | undefined;
|
|
2200
|
+
}
|
|
2201
|
+
export interface GuardrailContentFilter {
|
|
2202
|
+
type: GuardrailContentFilterType | undefined;
|
|
2203
|
+
inputStrength: GuardrailFilterStrength | undefined;
|
|
2204
|
+
outputStrength: GuardrailFilterStrength | undefined;
|
|
2205
|
+
inputModalities?: GuardrailModality[] | undefined;
|
|
2206
|
+
outputModalities?: GuardrailModality[] | undefined;
|
|
2207
|
+
inputAction?: GuardrailContentFilterAction | undefined;
|
|
2208
|
+
outputAction?: GuardrailContentFilterAction | undefined;
|
|
2209
|
+
inputEnabled?: boolean | undefined;
|
|
2210
|
+
outputEnabled?: boolean | undefined;
|
|
2211
|
+
}
|
|
2212
|
+
export interface GuardrailContentFiltersTier {
|
|
2213
|
+
tierName: GuardrailContentFiltersTierName | undefined;
|
|
2214
|
+
}
|
|
2215
|
+
export interface GuardrailContentPolicy {
|
|
2216
|
+
filters?: GuardrailContentFilter[] | undefined;
|
|
2217
|
+
tier?: GuardrailContentFiltersTier | undefined;
|
|
2218
|
+
}
|
|
2219
|
+
export interface GuardrailContextualGroundingFilter {
|
|
2220
|
+
type: GuardrailContextualGroundingFilterType | undefined;
|
|
2221
|
+
threshold: number | undefined;
|
|
2222
|
+
action?: GuardrailContextualGroundingAction | undefined;
|
|
2223
|
+
enabled?: boolean | undefined;
|
|
2224
|
+
}
|
|
2225
|
+
export interface GuardrailContextualGroundingPolicy {
|
|
2226
|
+
filters: GuardrailContextualGroundingFilter[] | undefined;
|
|
2227
|
+
}
|
|
2228
|
+
export interface GuardrailCrossRegionDetails {
|
|
2229
|
+
guardrailProfileId?: string | undefined;
|
|
2230
|
+
guardrailProfileArn?: string | undefined;
|
|
2231
|
+
}
|
|
2232
|
+
export interface GuardrailPiiEntity {
|
|
2233
|
+
type: GuardrailPiiEntityType | undefined;
|
|
2234
|
+
action: GuardrailSensitiveInformationAction | undefined;
|
|
2235
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2236
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2237
|
+
inputEnabled?: boolean | undefined;
|
|
2238
|
+
outputEnabled?: boolean | undefined;
|
|
2239
|
+
}
|
|
2240
|
+
export interface GuardrailRegex {
|
|
2241
|
+
name: string | undefined;
|
|
2242
|
+
description?: string | undefined;
|
|
2243
|
+
pattern: string | undefined;
|
|
2244
|
+
action: GuardrailSensitiveInformationAction | undefined;
|
|
2245
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2246
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2247
|
+
inputEnabled?: boolean | undefined;
|
|
2248
|
+
outputEnabled?: boolean | undefined;
|
|
2249
|
+
}
|
|
2250
|
+
export interface GuardrailSensitiveInformationPolicy {
|
|
2251
|
+
piiEntities?: GuardrailPiiEntity[] | undefined;
|
|
2252
|
+
regexes?: GuardrailRegex[] | undefined;
|
|
2253
|
+
}
|
|
2254
|
+
export interface GuardrailTopicsTier {
|
|
2255
|
+
tierName: GuardrailTopicsTierName | undefined;
|
|
2256
|
+
}
|
|
2257
|
+
export interface GuardrailTopic {
|
|
2258
|
+
name: string | undefined;
|
|
2259
|
+
definition: string | undefined;
|
|
2260
|
+
examples?: string[] | undefined;
|
|
2261
|
+
type?: GuardrailTopicType | undefined;
|
|
2262
|
+
inputAction?: GuardrailTopicAction | undefined;
|
|
2263
|
+
outputAction?: GuardrailTopicAction | undefined;
|
|
2264
|
+
inputEnabled?: boolean | undefined;
|
|
2265
|
+
outputEnabled?: boolean | undefined;
|
|
2266
|
+
}
|
|
2267
|
+
export interface GuardrailTopicPolicy {
|
|
2268
|
+
topics: GuardrailTopic[] | undefined;
|
|
2269
|
+
tier?: GuardrailTopicsTier | undefined;
|
|
2270
|
+
}
|
|
2271
|
+
export interface GuardrailManagedWords {
|
|
2272
|
+
type: GuardrailManagedWordsType | undefined;
|
|
2273
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
2274
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
2275
|
+
inputEnabled?: boolean | undefined;
|
|
2276
|
+
outputEnabled?: boolean | undefined;
|
|
2277
|
+
}
|
|
2278
|
+
export interface GuardrailWord {
|
|
2279
|
+
text: string | undefined;
|
|
2280
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
2281
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
2282
|
+
inputEnabled?: boolean | undefined;
|
|
2283
|
+
outputEnabled?: boolean | undefined;
|
|
2284
|
+
}
|
|
2285
|
+
export interface GuardrailWordPolicy {
|
|
2286
|
+
words?: GuardrailWord[] | undefined;
|
|
2287
|
+
managedWordLists?: GuardrailManagedWords[] | undefined;
|
|
2288
|
+
}
|
|
2289
|
+
export interface GetGuardrailResponse {
|
|
2290
|
+
name: string | undefined;
|
|
2291
|
+
description?: string | undefined;
|
|
2292
|
+
guardrailId: string | undefined;
|
|
2293
|
+
guardrailArn: string | undefined;
|
|
2294
|
+
version: string | undefined;
|
|
2295
|
+
status: GuardrailStatus | undefined;
|
|
2296
|
+
topicPolicy?: GuardrailTopicPolicy | undefined;
|
|
2297
|
+
contentPolicy?: GuardrailContentPolicy | undefined;
|
|
2298
|
+
wordPolicy?: GuardrailWordPolicy | undefined;
|
|
2299
|
+
sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicy | undefined;
|
|
2300
|
+
contextualGroundingPolicy?: GuardrailContextualGroundingPolicy | undefined;
|
|
2301
|
+
automatedReasoningPolicy?: GuardrailAutomatedReasoningPolicy | undefined;
|
|
2302
|
+
crossRegionDetails?: GuardrailCrossRegionDetails | undefined;
|
|
2303
|
+
createdAt: Date | undefined;
|
|
2304
|
+
updatedAt: Date | undefined;
|
|
2305
|
+
statusReasons?: string[] | undefined;
|
|
2306
|
+
failureRecommendations?: string[] | undefined;
|
|
2307
|
+
blockedInputMessaging: string | undefined;
|
|
2308
|
+
blockedOutputsMessaging: string | undefined;
|
|
2309
|
+
kmsKeyArn?: string | undefined;
|
|
2310
|
+
}
|
|
2311
|
+
export interface ListGuardrailsRequest {
|
|
2312
|
+
guardrailIdentifier?: string | undefined;
|
|
2313
|
+
maxResults?: number | undefined;
|
|
2314
|
+
nextToken?: string | undefined;
|
|
2315
|
+
}
|
|
2316
|
+
export interface GuardrailSummary {
|
|
2317
|
+
id: string | undefined;
|
|
2318
|
+
arn: string | undefined;
|
|
2319
|
+
status: GuardrailStatus | undefined;
|
|
2320
|
+
name: string | undefined;
|
|
2321
|
+
description?: string | undefined;
|
|
2322
|
+
version: string | undefined;
|
|
2323
|
+
createdAt: Date | undefined;
|
|
2324
|
+
updatedAt: Date | undefined;
|
|
2325
|
+
crossRegionDetails?: GuardrailCrossRegionDetails | undefined;
|
|
2326
|
+
}
|
|
2327
|
+
export interface ListGuardrailsResponse {
|
|
2328
|
+
guardrails: GuardrailSummary[] | undefined;
|
|
2329
|
+
nextToken?: string | undefined;
|
|
2330
|
+
}
|
|
2331
|
+
export interface UpdateGuardrailRequest {
|
|
2332
|
+
guardrailIdentifier: string | undefined;
|
|
2333
|
+
name: string | undefined;
|
|
2334
|
+
description?: string | undefined;
|
|
2335
|
+
topicPolicyConfig?: GuardrailTopicPolicyConfig | undefined;
|
|
2336
|
+
contentPolicyConfig?: GuardrailContentPolicyConfig | undefined;
|
|
2337
|
+
wordPolicyConfig?: GuardrailWordPolicyConfig | undefined;
|
|
2338
|
+
sensitiveInformationPolicyConfig?:
|
|
2339
|
+
| GuardrailSensitiveInformationPolicyConfig
|
|
2340
|
+
| undefined;
|
|
2341
|
+
contextualGroundingPolicyConfig?:
|
|
2342
|
+
| GuardrailContextualGroundingPolicyConfig
|
|
2343
|
+
| undefined;
|
|
2344
|
+
automatedReasoningPolicyConfig?:
|
|
2345
|
+
| GuardrailAutomatedReasoningPolicyConfig
|
|
2346
|
+
| undefined;
|
|
2347
|
+
crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
|
|
2348
|
+
blockedInputMessaging: string | undefined;
|
|
2349
|
+
blockedOutputsMessaging: string | undefined;
|
|
2350
|
+
kmsKeyId?: string | undefined;
|
|
2351
|
+
}
|
|
2352
|
+
export interface UpdateGuardrailResponse {
|
|
2353
|
+
guardrailId: string | undefined;
|
|
2354
|
+
guardrailArn: string | undefined;
|
|
2355
|
+
version: string | undefined;
|
|
2356
|
+
updatedAt: Date | undefined;
|
|
2357
|
+
}
|
|
2358
|
+
export type InferenceProfileModelSource =
|
|
2359
|
+
| InferenceProfileModelSource.CopyFromMember
|
|
2360
|
+
| InferenceProfileModelSource.$UnknownMember;
|
|
2361
|
+
export declare namespace InferenceProfileModelSource {
|
|
2362
|
+
interface CopyFromMember {
|
|
2363
|
+
copyFrom: string;
|
|
2364
|
+
$unknown?: never;
|
|
2365
|
+
}
|
|
2366
|
+
interface $UnknownMember {
|
|
2367
|
+
copyFrom?: never;
|
|
2368
|
+
$unknown: [string, any];
|
|
2369
|
+
}
|
|
2370
|
+
interface Visitor<T> {
|
|
2371
|
+
copyFrom: (value: string) => T;
|
|
2372
|
+
_: (name: string, value: any) => T;
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
export interface CreateInferenceProfileRequest {
|
|
2376
|
+
inferenceProfileName: string | undefined;
|
|
2377
|
+
description?: string | undefined;
|
|
2378
|
+
clientRequestToken?: string | undefined;
|
|
2379
|
+
modelSource: InferenceProfileModelSource | undefined;
|
|
2380
|
+
tags?: Tag[] | undefined;
|
|
2381
|
+
}
|
|
2382
|
+
export interface CreateInferenceProfileResponse {
|
|
2383
|
+
inferenceProfileArn: string | undefined;
|
|
2384
|
+
status?: InferenceProfileStatus | undefined;
|
|
2385
|
+
}
|
|
2386
|
+
export interface DeleteInferenceProfileRequest {
|
|
2387
|
+
inferenceProfileIdentifier: string | undefined;
|
|
2388
|
+
}
|
|
2389
|
+
export interface DeleteInferenceProfileResponse {}
|
|
2390
|
+
export interface GetInferenceProfileRequest {
|
|
2391
|
+
inferenceProfileIdentifier: string | undefined;
|
|
2392
|
+
}
|
|
2393
|
+
export interface InferenceProfileModel {
|
|
2394
|
+
modelArn?: string | undefined;
|
|
2395
|
+
}
|
|
2396
|
+
export interface GetInferenceProfileResponse {
|
|
2397
|
+
inferenceProfileName: string | undefined;
|
|
2398
|
+
description?: string | undefined;
|
|
2399
|
+
createdAt?: Date | undefined;
|
|
2400
|
+
updatedAt?: Date | undefined;
|
|
2401
|
+
inferenceProfileArn: string | undefined;
|
|
2402
|
+
models: InferenceProfileModel[] | undefined;
|
|
2403
|
+
inferenceProfileId: string | undefined;
|
|
2404
|
+
status: InferenceProfileStatus | undefined;
|
|
2405
|
+
type: InferenceProfileType | undefined;
|
|
2406
|
+
}
|
|
2407
|
+
export interface ListInferenceProfilesRequest {
|
|
2408
|
+
maxResults?: number | undefined;
|
|
2409
|
+
nextToken?: string | undefined;
|
|
2410
|
+
typeEquals?: InferenceProfileType | undefined;
|
|
2411
|
+
}
|
|
2412
|
+
export interface InferenceProfileSummary {
|
|
2413
|
+
inferenceProfileName: string | undefined;
|
|
2414
|
+
description?: string | undefined;
|
|
2415
|
+
createdAt?: Date | undefined;
|
|
2416
|
+
updatedAt?: Date | undefined;
|
|
2417
|
+
inferenceProfileArn: string | undefined;
|
|
2418
|
+
models: InferenceProfileModel[] | undefined;
|
|
2419
|
+
inferenceProfileId: string | undefined;
|
|
2420
|
+
status: InferenceProfileStatus | undefined;
|
|
2421
|
+
type: InferenceProfileType | undefined;
|
|
2422
|
+
}
|
|
2423
|
+
export interface ListInferenceProfilesResponse {
|
|
2424
|
+
inferenceProfileSummaries?: InferenceProfileSummary[] | undefined;
|
|
2425
|
+
nextToken?: string | undefined;
|
|
2426
|
+
}
|
|
2427
|
+
export interface DeleteModelInvocationLoggingConfigurationRequest {}
|
|
2428
|
+
export interface DeleteModelInvocationLoggingConfigurationResponse {}
|
|
2429
|
+
export interface GetModelInvocationLoggingConfigurationRequest {}
|
|
2430
|
+
export interface S3Config {
|
|
2431
|
+
bucketName: string | undefined;
|
|
2432
|
+
keyPrefix?: string | undefined;
|
|
2433
|
+
}
|
|
2434
|
+
export interface CloudWatchConfig {
|
|
2435
|
+
logGroupName: string | undefined;
|
|
2436
|
+
roleArn: string | undefined;
|
|
2437
|
+
largeDataDeliveryS3Config?: S3Config | undefined;
|
|
2438
|
+
}
|
|
2439
|
+
export interface LoggingConfig {
|
|
2440
|
+
cloudWatchConfig?: CloudWatchConfig | undefined;
|
|
2441
|
+
s3Config?: S3Config | undefined;
|
|
2442
|
+
textDataDeliveryEnabled?: boolean | undefined;
|
|
2443
|
+
imageDataDeliveryEnabled?: boolean | undefined;
|
|
2444
|
+
embeddingDataDeliveryEnabled?: boolean | undefined;
|
|
2445
|
+
videoDataDeliveryEnabled?: boolean | undefined;
|
|
2446
|
+
}
|
|
2447
|
+
export interface GetModelInvocationLoggingConfigurationResponse {
|
|
2448
|
+
loggingConfig?: LoggingConfig | undefined;
|
|
2449
|
+
}
|
|
2450
|
+
export interface PutModelInvocationLoggingConfigurationRequest {
|
|
2451
|
+
loggingConfig: LoggingConfig | undefined;
|
|
2452
|
+
}
|