@aws-sdk/client-bedrock 3.1153.0 → 3.1155.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 +26 -5
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +18 -4
- package/dist-types/BedrockClient.d.ts +2 -1
- package/dist-types/commands/CreateGuardrailCommand.d.ts +3 -0
- package/dist-types/commands/GetGuardrailCommand.d.ts +3 -0
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +3 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +17 -37
- package/dist-types/models/models_1.d.ts +54 -2
- package/dist-types/schemas/schemas_0.d.ts +2 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +5 -10
- package/dist-types/ts3.4/models/models_1.d.ts +13 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -86,7 +86,7 @@ const commonParams = {
|
|
|
86
86
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
var version = "3.
|
|
89
|
+
var version = "3.1154.0";
|
|
90
90
|
var packageInfo = {
|
|
91
91
|
version: version};
|
|
92
92
|
|
|
@@ -681,6 +681,9 @@ const _GCGFCu = "GuardrailContextualGroundingFiltersConfig";
|
|
|
681
681
|
const _GCGFu = "GuardrailContextualGroundingFilters";
|
|
682
682
|
const _GCGP = "GuardrailContextualGroundingPolicy";
|
|
683
683
|
const _GCGPC = "GuardrailContextualGroundingPolicyConfig";
|
|
684
|
+
const _GCGT = "GuardrailContextualGroundingTier";
|
|
685
|
+
const _GCGTC = "GuardrailContextualGroundingTierConfig";
|
|
686
|
+
const _GCGTN = "GuardrailContextualGroundingTierName";
|
|
684
687
|
const _GCM = "GetCustomModel";
|
|
685
688
|
const _GCMD = "GetCustomModelDeployment";
|
|
686
689
|
const _GCMDR = "GetCustomModelDeploymentRequest";
|
|
@@ -1738,6 +1741,7 @@ var GuardrailBlockedMessaging = [0, n0, _GBM, 8, 0];
|
|
|
1738
1741
|
var GuardrailContentFilterAction$1 = [0, n0, _GCFA, 8, 0];
|
|
1739
1742
|
var GuardrailContentFiltersTierName$1 = [0, n0, _GCFTN, 8, 0];
|
|
1740
1743
|
var GuardrailContextualGroundingAction$1 = [0, n0, _GCGA, 8, 0];
|
|
1744
|
+
var GuardrailContextualGroundingTierName$1 = [0, n0, _GCGTN, 8, 0];
|
|
1741
1745
|
var GuardrailDescription = [0, n0, _GD, 8, 0];
|
|
1742
1746
|
var GuardrailFailureRecommendation = [0, n0, _GFR, 8, 0];
|
|
1743
1747
|
var GuardrailModality$1 = [0, n0, _GM, 8, 0];
|
|
@@ -3068,13 +3072,23 @@ var GuardrailContextualGroundingFilterConfig$ = [3, n0, _GCGFC,
|
|
|
3068
3072
|
];
|
|
3069
3073
|
var GuardrailContextualGroundingPolicy$ = [3, n0, _GCGP,
|
|
3070
3074
|
0,
|
|
3071
|
-
[_fi],
|
|
3072
|
-
[[() => GuardrailContextualGroundingFilters, 0]], 1
|
|
3075
|
+
[_fi, _ti],
|
|
3076
|
+
[[() => GuardrailContextualGroundingFilters, 0], [() => GuardrailContextualGroundingTier$, 0]], 1
|
|
3073
3077
|
];
|
|
3074
3078
|
var GuardrailContextualGroundingPolicyConfig$ = [3, n0, _GCGPC,
|
|
3075
3079
|
0,
|
|
3076
|
-
[_fC],
|
|
3077
|
-
[[() => GuardrailContextualGroundingFiltersConfig, 0]], 1
|
|
3080
|
+
[_fC, _tCi],
|
|
3081
|
+
[[() => GuardrailContextualGroundingFiltersConfig, 0], [() => GuardrailContextualGroundingTierConfig$, 0]], 1
|
|
3082
|
+
];
|
|
3083
|
+
var GuardrailContextualGroundingTier$ = [3, n0, _GCGT,
|
|
3084
|
+
0,
|
|
3085
|
+
[_tNi],
|
|
3086
|
+
[[() => GuardrailContextualGroundingTierName$1, 0]], 1
|
|
3087
|
+
];
|
|
3088
|
+
var GuardrailContextualGroundingTierConfig$ = [3, n0, _GCGTC,
|
|
3089
|
+
0,
|
|
3090
|
+
[_tNi],
|
|
3091
|
+
[[() => GuardrailContextualGroundingTierName$1, 0]], 1
|
|
3078
3092
|
];
|
|
3079
3093
|
var GuardrailCrossRegionConfig$ = [3, n0, _GCRC,
|
|
3080
3094
|
0,
|
|
@@ -5720,6 +5734,10 @@ const GuardrailContextualGroundingFilterType = {
|
|
|
5720
5734
|
GROUNDING: "GROUNDING",
|
|
5721
5735
|
RELEVANCE: "RELEVANCE",
|
|
5722
5736
|
};
|
|
5737
|
+
const GuardrailContextualGroundingTierName = {
|
|
5738
|
+
CLASSIC: "CLASSIC",
|
|
5739
|
+
STANDARD: "STANDARD",
|
|
5740
|
+
};
|
|
5723
5741
|
const GuardrailSensitiveInformationAction = {
|
|
5724
5742
|
ANONYMIZE: "ANONYMIZE",
|
|
5725
5743
|
BLOCK: "BLOCK",
|
|
@@ -6353,6 +6371,9 @@ exports.GuardrailContextualGroundingFilterConfig$ = GuardrailContextualGrounding
|
|
|
6353
6371
|
exports.GuardrailContextualGroundingFilterType = GuardrailContextualGroundingFilterType;
|
|
6354
6372
|
exports.GuardrailContextualGroundingPolicy$ = GuardrailContextualGroundingPolicy$;
|
|
6355
6373
|
exports.GuardrailContextualGroundingPolicyConfig$ = GuardrailContextualGroundingPolicyConfig$;
|
|
6374
|
+
exports.GuardrailContextualGroundingTier$ = GuardrailContextualGroundingTier$;
|
|
6375
|
+
exports.GuardrailContextualGroundingTierConfig$ = GuardrailContextualGroundingTierConfig$;
|
|
6376
|
+
exports.GuardrailContextualGroundingTierName = GuardrailContextualGroundingTierName;
|
|
6356
6377
|
exports.GuardrailCrossRegionConfig$ = GuardrailCrossRegionConfig$;
|
|
6357
6378
|
exports.GuardrailCrossRegionDetails$ = GuardrailCrossRegionDetails$;
|
|
6358
6379
|
exports.GuardrailFilterStrength = GuardrailFilterStrength;
|
package/dist-es/models/enums.js
CHANGED
|
@@ -227,6 +227,10 @@ export const GuardrailContextualGroundingFilterType = {
|
|
|
227
227
|
GROUNDING: "GROUNDING",
|
|
228
228
|
RELEVANCE: "RELEVANCE",
|
|
229
229
|
};
|
|
230
|
+
export const GuardrailContextualGroundingTierName = {
|
|
231
|
+
CLASSIC: "CLASSIC",
|
|
232
|
+
STANDARD: "STANDARD",
|
|
233
|
+
};
|
|
230
234
|
export const GuardrailSensitiveInformationAction = {
|
|
231
235
|
ANONYMIZE: "ANONYMIZE",
|
|
232
236
|
BLOCK: "BLOCK",
|
|
@@ -390,6 +390,9 @@ const _GCGFCu = "GuardrailContextualGroundingFiltersConfig";
|
|
|
390
390
|
const _GCGFu = "GuardrailContextualGroundingFilters";
|
|
391
391
|
const _GCGP = "GuardrailContextualGroundingPolicy";
|
|
392
392
|
const _GCGPC = "GuardrailContextualGroundingPolicyConfig";
|
|
393
|
+
const _GCGT = "GuardrailContextualGroundingTier";
|
|
394
|
+
const _GCGTC = "GuardrailContextualGroundingTierConfig";
|
|
395
|
+
const _GCGTN = "GuardrailContextualGroundingTierName";
|
|
393
396
|
const _GCM = "GetCustomModel";
|
|
394
397
|
const _GCMD = "GetCustomModelDeployment";
|
|
395
398
|
const _GCMDR = "GetCustomModelDeploymentRequest";
|
|
@@ -1450,6 +1453,7 @@ var GuardrailBlockedMessaging = [0, n0, _GBM, 8, 0];
|
|
|
1450
1453
|
var GuardrailContentFilterAction = [0, n0, _GCFA, 8, 0];
|
|
1451
1454
|
var GuardrailContentFiltersTierName = [0, n0, _GCFTN, 8, 0];
|
|
1452
1455
|
var GuardrailContextualGroundingAction = [0, n0, _GCGA, 8, 0];
|
|
1456
|
+
var GuardrailContextualGroundingTierName = [0, n0, _GCGTN, 8, 0];
|
|
1453
1457
|
var GuardrailDescription = [0, n0, _GD, 8, 0];
|
|
1454
1458
|
var GuardrailFailureRecommendation = [0, n0, _GFR, 8, 0];
|
|
1455
1459
|
var GuardrailModality = [0, n0, _GM, 8, 0];
|
|
@@ -2780,13 +2784,23 @@ export var GuardrailContextualGroundingFilterConfig$ = [3, n0, _GCGFC,
|
|
|
2780
2784
|
];
|
|
2781
2785
|
export var GuardrailContextualGroundingPolicy$ = [3, n0, _GCGP,
|
|
2782
2786
|
0,
|
|
2783
|
-
[_fi],
|
|
2784
|
-
[[() => GuardrailContextualGroundingFilters, 0]], 1
|
|
2787
|
+
[_fi, _ti],
|
|
2788
|
+
[[() => GuardrailContextualGroundingFilters, 0], [() => GuardrailContextualGroundingTier$, 0]], 1
|
|
2785
2789
|
];
|
|
2786
2790
|
export var GuardrailContextualGroundingPolicyConfig$ = [3, n0, _GCGPC,
|
|
2787
2791
|
0,
|
|
2788
|
-
[_fC],
|
|
2789
|
-
[[() => GuardrailContextualGroundingFiltersConfig, 0]], 1
|
|
2792
|
+
[_fC, _tCi],
|
|
2793
|
+
[[() => GuardrailContextualGroundingFiltersConfig, 0], [() => GuardrailContextualGroundingTierConfig$, 0]], 1
|
|
2794
|
+
];
|
|
2795
|
+
export var GuardrailContextualGroundingTier$ = [3, n0, _GCGT,
|
|
2796
|
+
0,
|
|
2797
|
+
[_tNi],
|
|
2798
|
+
[[() => GuardrailContextualGroundingTierName, 0]], 1
|
|
2799
|
+
];
|
|
2800
|
+
export var GuardrailContextualGroundingTierConfig$ = [3, n0, _GCGTC,
|
|
2801
|
+
0,
|
|
2802
|
+
[_tNi],
|
|
2803
|
+
[[() => GuardrailContextualGroundingTierName, 0]], 1
|
|
2790
2804
|
];
|
|
2791
2805
|
export var GuardrailCrossRegionConfig$ = [3, n0, _GCRC,
|
|
2792
2806
|
0,
|
|
@@ -236,7 +236,8 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
236
236
|
maxAttempts?: number | __Provider<number>;
|
|
237
237
|
/**
|
|
238
238
|
* Specifies which retry algorithm to use.
|
|
239
|
-
*
|
|
239
|
+
* Accepted values are "standard" and "adaptive".
|
|
240
|
+
* @see https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html
|
|
240
241
|
*
|
|
241
242
|
*/
|
|
242
243
|
retryMode?: string | __Provider<string>;
|
|
@@ -130,6 +130,9 @@ declare const CreateGuardrailCommand_base: {
|
|
|
130
130
|
* enabled: true || false,
|
|
131
131
|
* },
|
|
132
132
|
* ],
|
|
133
|
+
* tierConfig: { // GuardrailContextualGroundingTierConfig
|
|
134
|
+
* tierName: "CLASSIC" || "STANDARD", // required
|
|
135
|
+
* },
|
|
133
136
|
* },
|
|
134
137
|
* automatedReasoningPolicyConfig: { // GuardrailAutomatedReasoningPolicyConfig
|
|
135
138
|
* policies: [ // AutomatedReasoningPolicyArnList // required
|
|
@@ -140,6 +140,9 @@ declare const GetGuardrailCommand_base: {
|
|
|
140
140
|
* // enabled: true || false,
|
|
141
141
|
* // },
|
|
142
142
|
* // ],
|
|
143
|
+
* // tier: { // GuardrailContextualGroundingTier
|
|
144
|
+
* // tierName: "CLASSIC" || "STANDARD", // required
|
|
145
|
+
* // },
|
|
143
146
|
* // },
|
|
144
147
|
* // automatedReasoningPolicy: { // GuardrailAutomatedReasoningPolicy
|
|
145
148
|
* // policies: [ // AutomatedReasoningPolicyArnList // required
|
|
@@ -131,6 +131,9 @@ declare const UpdateGuardrailCommand_base: {
|
|
|
131
131
|
* enabled: true || false,
|
|
132
132
|
* },
|
|
133
133
|
* ],
|
|
134
|
+
* tierConfig: { // GuardrailContextualGroundingTierConfig
|
|
135
|
+
* tierName: "CLASSIC" || "STANDARD", // required
|
|
136
|
+
* },
|
|
134
137
|
* },
|
|
135
138
|
* automatedReasoningPolicyConfig: { // GuardrailAutomatedReasoningPolicyConfig
|
|
136
139
|
* policies: [ // AutomatedReasoningPolicyArnList // required
|
|
@@ -582,6 +582,18 @@ export declare const GuardrailContextualGroundingFilterType: {
|
|
|
582
582
|
* @public
|
|
583
583
|
*/
|
|
584
584
|
export type GuardrailContextualGroundingFilterType = (typeof GuardrailContextualGroundingFilterType)[keyof typeof GuardrailContextualGroundingFilterType];
|
|
585
|
+
/**
|
|
586
|
+
* @public
|
|
587
|
+
* @enum
|
|
588
|
+
*/
|
|
589
|
+
export declare const GuardrailContextualGroundingTierName: {
|
|
590
|
+
readonly CLASSIC: "CLASSIC";
|
|
591
|
+
readonly STANDARD: "STANDARD";
|
|
592
|
+
};
|
|
593
|
+
/**
|
|
594
|
+
* @public
|
|
595
|
+
*/
|
|
596
|
+
export type GuardrailContextualGroundingTierName = (typeof GuardrailContextualGroundingTierName)[keyof typeof GuardrailContextualGroundingTierName];
|
|
585
597
|
/**
|
|
586
598
|
* @public
|
|
587
599
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { AdvancedPromptOptimizationJobStatus, AgreementStatus, ApplicationType, AttributeType, AutomatedReasoningCheckLogicWarningType, AutomatedReasoningCheckResult, AutomatedReasoningPolicyAnnotationStatus, AutomatedReasoningPolicyBuildDocumentContentType, AutomatedReasoningPolicyBuildMessageType, AutomatedReasoningPolicyBuildResultAssetType, AutomatedReasoningPolicyBuildWorkflowStatus, AutomatedReasoningPolicyBuildWorkflowType, AutomatedReasoningPolicyTestRunResult, AutomatedReasoningPolicyTestRunStatus, ConfigurationOwner, CustomizationType, CustomModelDeploymentStatus, CustomModelDeploymentUpdateStatus, DataRetentionMode, EvaluationJobStatus, EvaluationJobType, EvaluationTaskType, ExternalSourceType, GuardrailContentFilterAction, GuardrailContentFiltersTierName, GuardrailContentFilterType, GuardrailContextualGroundingAction, GuardrailContextualGroundingFilterType, GuardrailFilterStrength, GuardrailModality,
|
|
2
|
+
import type { AdvancedPromptOptimizationJobStatus, AgreementStatus, ApplicationType, AttributeType, AutomatedReasoningCheckLogicWarningType, AutomatedReasoningCheckResult, AutomatedReasoningPolicyAnnotationStatus, AutomatedReasoningPolicyBuildDocumentContentType, AutomatedReasoningPolicyBuildMessageType, AutomatedReasoningPolicyBuildResultAssetType, AutomatedReasoningPolicyBuildWorkflowStatus, AutomatedReasoningPolicyBuildWorkflowType, AutomatedReasoningPolicyTestRunResult, AutomatedReasoningPolicyTestRunStatus, ConfigurationOwner, CustomizationType, CustomModelDeploymentStatus, CustomModelDeploymentUpdateStatus, DataRetentionMode, EvaluationJobStatus, EvaluationJobType, EvaluationTaskType, ExternalSourceType, GuardrailContentFilterAction, GuardrailContentFiltersTierName, GuardrailContentFilterType, GuardrailContextualGroundingAction, GuardrailContextualGroundingFilterType, GuardrailContextualGroundingTierName, GuardrailFilterStrength, GuardrailModality, InputTags, ModelStatus, PerformanceConfigLatency, QueryTransformationType, ReasoningEffort, RerankingMetadataSelectionMode, SelectiveGuardingMode, SortJobsBy, SortModelsBy, SortOrder, Status, VectorSearchRerankingConfigurationType } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* <p>Model-specific information for the enforced guardrail configuration.</p>
|
|
5
5
|
* @public
|
|
@@ -6882,6 +6882,17 @@ export interface GuardrailContextualGroundingFilterConfig {
|
|
|
6882
6882
|
*/
|
|
6883
6883
|
enabled?: boolean | undefined;
|
|
6884
6884
|
}
|
|
6885
|
+
/**
|
|
6886
|
+
* <p>Specifies the tier that your guardrail uses for contextual grounding checks.</p>
|
|
6887
|
+
* @public
|
|
6888
|
+
*/
|
|
6889
|
+
export interface GuardrailContextualGroundingTierConfig {
|
|
6890
|
+
/**
|
|
6891
|
+
* <p>The tier that your guardrail uses for contextual grounding. Valid values include:</p> <ul> <li> <p> <code>CLASSIC</code> tier – Provides established contextual grounding functionality supporting English, French, and Spanish languages.</p> </li> <li> <p> <code>STANDARD</code> tier – Provides a more robust solution than the <code>CLASSIC</code> tier, with support for reasoning, conversational content and more comprehensive language support. This tier requires that your guardrail use <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">cross-Region inference</a>.</p> </li> </ul>
|
|
6892
|
+
* @public
|
|
6893
|
+
*/
|
|
6894
|
+
tierName: GuardrailContextualGroundingTierName | undefined;
|
|
6895
|
+
}
|
|
6885
6896
|
/**
|
|
6886
6897
|
* <p>The policy configuration details for the guardrails contextual grounding policy.</p>
|
|
6887
6898
|
* @public
|
|
@@ -6892,6 +6903,11 @@ export interface GuardrailContextualGroundingPolicyConfig {
|
|
|
6892
6903
|
* @public
|
|
6893
6904
|
*/
|
|
6894
6905
|
filtersConfig: GuardrailContextualGroundingFilterConfig[] | undefined;
|
|
6906
|
+
/**
|
|
6907
|
+
* <p>The tier that your guardrail uses for contextual grounding.</p>
|
|
6908
|
+
* @public
|
|
6909
|
+
*/
|
|
6910
|
+
tierConfig?: GuardrailContextualGroundingTierConfig | undefined;
|
|
6895
6911
|
}
|
|
6896
6912
|
/**
|
|
6897
6913
|
* <p>The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed. Using guardrail profiles helps maintain guardrail performance and reliability when demand increases.</p> <p>For more information, see the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">Amazon Bedrock User Guide</a>.</p>
|
|
@@ -6904,39 +6920,3 @@ export interface GuardrailCrossRegionConfig {
|
|
|
6904
6920
|
*/
|
|
6905
6921
|
guardrailProfileIdentifier: string | undefined;
|
|
6906
6922
|
}
|
|
6907
|
-
/**
|
|
6908
|
-
* <p>The PII entity to configure for the guardrail.</p>
|
|
6909
|
-
* @public
|
|
6910
|
-
*/
|
|
6911
|
-
export interface GuardrailPiiEntityConfig {
|
|
6912
|
-
/**
|
|
6913
|
-
* <p>Configure guardrail type when the PII entity is detected.</p> <p>The following PIIs are used to block or mask sensitive information:</p> <ul> <li> <p> <b>General</b> </p> <ul> <li> <p> <b>ADDRESS</b> </p> <p>A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123". An address can include information such as the street, building, location, city, state, country, county, zip code, precinct, and neighborhood. </p> </li> <li> <p> <b>AGE</b> </p> <p>An individual's age, including the quantity and unit of time. For example, in the phrase "I am 40 years old," Guardrails recognizes "40 years" as an age. </p> </li> <li> <p> <b>NAME</b> </p> <p>An individual's name. This entity type does not include titles, such as Dr., Mr., Mrs., or Miss. guardrails doesn't apply this entity type to names that are part of organizations or addresses. For example, guardrails recognizes the "John Doe Organization" as an organization, and it recognizes "Jane Doe Street" as an address. </p> </li> <li> <p> <b>EMAIL</b> </p> <p>An email address, such as <i>marymajor@email.com</i>.</p> </li> <li> <p> <b>PHONE</b> </p> <p>A phone number. This entity type also includes fax and pager numbers. </p> </li> <li> <p> <b>USERNAME</b> </p> <p>A user name that identifies an account, such as a login name, screen name, nick name, or handle. </p> </li> <li> <p> <b>PASSWORD</b> </p> <p>An alphanumeric string that is used as a password, such as "*<i>very20special#pass*</i>". </p> </li> <li> <p> <b>DRIVER_ID</b> </p> <p>The number assigned to a driver's license, which is an official document permitting an individual to operate one or more motorized vehicles on a public road. A driver's license number consists of alphanumeric characters. </p> </li> <li> <p> <b>LICENSE_PLATE</b> </p> <p>A license plate for a vehicle is issued by the state or country where the vehicle is registered. The format for passenger vehicles is typically five to eight digits, consisting of upper-case letters and numbers. The format varies depending on the location of the issuing state or country. </p> </li> <li> <p> <b>VEHICLE_IDENTIFICATION_NUMBER</b> </p> <p>A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format are defined in the <i>ISO 3779</i> specification. Each country has specific codes and formats for VINs. </p> </li> </ul> </li> <li> <p> <b>Finance</b> </p> <ul> <li> <p> <b>CREDIT_DEBIT_CARD_CVV</b> </p> <p>A three-digit card verification code (CVV) that is present on VISA, MasterCard, and Discover credit and debit cards. For American Express credit or debit cards, the CVV is a four-digit numeric code. </p> </li> <li> <p> <b>CREDIT_DEBIT_CARD_EXPIRY</b> </p> <p>The expiration date for a credit or debit card. This number is usually four digits long and is often formatted as <i>month/year</i> or <i>MM/YY</i>. Guardrails recognizes expiration dates such as <i>01/21</i>, <i>01/2021</i>, and <i>Jan 2021</i>. </p> </li> <li> <p> <b>CREDIT_DEBIT_CARD_NUMBER</b> </p> <p>The number for a credit or debit card. These numbers can vary from 13 to 16 digits in length. However, Amazon Comprehend also recognizes credit or debit card numbers when only the last four digits are present. </p> </li> <li> <p> <b>PIN</b> </p> <p>A four-digit personal identification number (PIN) with which you can access your bank account. </p> </li> <li> <p> <b>INTERNATIONAL_BANK_ACCOUNT_NUMBER</b> </p> <p>An International Bank Account Number has specific formats in each country. For more information, see <a href="https://www.iban.com/structure">www.iban.com/structure</a>.</p> </li> <li> <p> <b>SWIFT_CODE</b> </p> <p>A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a particular bank or branch. Banks use these codes for money transfers such as international wire transfers.</p> <p>SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific branches, while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the head or primary office.</p> </li> </ul> </li> <li> <p> <b>IT</b> </p> <ul> <li> <p> <b>IP_ADDRESS</b> </p> <p>An IPv4 address, such as <i>198.51.100.0</i>. </p> </li> <li> <p> <b>MAC_ADDRESS</b> </p> <p>A <i>media access control</i> (MAC) address is a unique identifier assigned to a network interface controller (NIC). </p> </li> <li> <p> <b>URL</b> </p> <p>A web address, such as <i>www.example.com</i>. </p> </li> <li> <p> <b>AWS_ACCESS_KEY</b> </p> <p>A unique identifier that's associated with a secret access key; you use the access key ID and secret access key to sign programmatic Amazon Web Services requests cryptographically. </p> </li> <li> <p> <b>AWS_SECRET_KEY</b> </p> <p>A unique identifier that's associated with an access key. You use the access key ID and secret access key to sign programmatic Amazon Web Services requests cryptographically. </p> </li> </ul> </li> <li> <p> <b>USA specific</b> </p> <ul> <li> <p> <b>US_BANK_ACCOUNT_NUMBER</b> </p> <p>A US bank account number, which is typically 10 to 12 digits long. </p> </li> <li> <p> <b>US_BANK_ROUTING_NUMBER</b> </p> <p>A US bank account routing number. These are typically nine digits long, </p> </li> <li> <p> <b>US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER</b> </p> <p>A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number that starts with a "9" and contain a "7" or "8" as the fourth digit. An ITIN can be formatted with a space or a dash after the third and forth digits. </p> </li> <li> <p> <b>US_PASSPORT_NUMBER</b> </p> <p>A US passport number. Passport numbers range from six to nine alphanumeric characters. </p> </li> <li> <p> <b>US_SOCIAL_SECURITY_NUMBER</b> </p> <p>A US Social Security Number (SSN) is a nine-digit number that is issued to US citizens, permanent residents, and temporary working residents. </p> </li> </ul> </li> <li> <p> <b>Canada specific</b> </p> <ul> <li> <p> <b>CA_HEALTH_NUMBER</b> </p> <p>A Canadian Health Service Number is a 10-digit unique identifier, required for individuals to access healthcare benefits. </p> </li> <li> <p> <b>CA_SOCIAL_INSURANCE_NUMBER</b> </p> <p>A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, required for individuals to access government programs and benefits.</p> <p>The SIN is formatted as three groups of three digits, such as <i>123-456-789</i>. A SIN can be validated through a simple check-digit process called the <a href="https://www.wikipedia.org/wiki/Luhn_algorithm">Luhn algorithm</a>.</p> </li> </ul> </li> <li> <p> <b>UK Specific</b> </p> <ul> <li> <p> <b>UK_NATIONAL_HEALTH_SERVICE_NUMBER</b> </p> <p>A UK National Health Service Number is a 10-17 digit number, such as <i>485 777 3456</i>. The current system formats the 10-digit number with spaces after the third and sixth digits. The final digit is an error-detecting checksum.</p> </li> <li> <p> <b>UK_NATIONAL_INSURANCE_NUMBER</b> </p> <p>A UK National Insurance Number (NINO) provides individuals with access to National Insurance (social security) benefits. It is also used for some purposes in the UK tax system.</p> <p>The number is nine digits long and starts with two letters, followed by six numbers and one letter. A NINO can be formatted with a space or a dash after the two letters and after the second, forth, and sixth digits.</p> </li> <li> <p> <b>UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER</b> </p> <p>A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a business. </p> </li> </ul> </li> <li> <p> <b>Custom</b> </p> <ul> <li> <p> <b>Regex filter</b> - You can use a regular expressions to define patterns for a guardrail to recognize and act upon such as serial number, booking ID etc..</p> </li> </ul> </li> </ul>
|
|
6914
|
-
* @public
|
|
6915
|
-
*/
|
|
6916
|
-
type: GuardrailPiiEntityType | undefined;
|
|
6917
|
-
/**
|
|
6918
|
-
* <p>Configure guardrail action when the PII entity is detected.</p>
|
|
6919
|
-
* @public
|
|
6920
|
-
*/
|
|
6921
|
-
action: GuardrailSensitiveInformationAction | undefined;
|
|
6922
|
-
/**
|
|
6923
|
-
* <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>ANONYMIZE</code> – Mask the content and replace it with identifier tags.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
|
|
6924
|
-
* @public
|
|
6925
|
-
*/
|
|
6926
|
-
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
6927
|
-
/**
|
|
6928
|
-
* <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>ANONYMIZE</code> – Mask the content and replace it with identifier tags.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
|
|
6929
|
-
* @public
|
|
6930
|
-
*/
|
|
6931
|
-
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
6932
|
-
/**
|
|
6933
|
-
* <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
6934
|
-
* @public
|
|
6935
|
-
*/
|
|
6936
|
-
inputEnabled?: boolean | undefined;
|
|
6937
|
-
/**
|
|
6938
|
-
* <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
6939
|
-
* @public
|
|
6940
|
-
*/
|
|
6941
|
-
outputEnabled?: boolean | undefined;
|
|
6942
|
-
}
|
|
@@ -1,5 +1,41 @@
|
|
|
1
|
-
import type { ApplicationType, AuthorizationStatus, CommitmentDuration, CustomizationType, EntitlementAvailability, EvaluationJobStatus, EvaluationJobType, FineTuningJobStatus, FoundationModelLifecycleStatus, GuardrailContentFilterAction, GuardrailContentFiltersTierName, GuardrailContentFilterType, GuardrailContextualGroundingAction, GuardrailContextualGroundingFilterType, GuardrailFilterStrength, GuardrailManagedWordsType, GuardrailModality, GuardrailPiiEntityType, GuardrailSensitiveInformationAction, GuardrailStatus, GuardrailTopicAction, GuardrailTopicsTierName, GuardrailTopicType, GuardrailWordAction, InferenceProfileStatus, InferenceProfileType, InferenceType, JobStatusDetails, ModelCopyJobStatus, ModelCustomization, ModelCustomizationJobStatus, ModelImportJobStatus, ModelInvocationJobStatus, ModelInvocationType, ModelModality, OfferType, PromptRouterStatus, PromptRouterType, ProvisionedModelStatus, RegionAvailability, RetrieveAndGenerateType, S3InputFormat, SearchType, SortByProvisionedModels, SortJobsBy, SortModelsBy, SortOrder } from "./enums";
|
|
2
|
-
import type { AgreementAvailability, CustomizationConfig, EvaluationConfig, EvaluationModelConfig, EvaluationOutputDataConfig, EvaluationPrecomputedRagSourceConfig, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GenerationConfiguration, GuardrailAutomatedReasoningPolicyConfig, GuardrailContentPolicyConfig, GuardrailContextualGroundingPolicyConfig, GuardrailCrossRegionConfig,
|
|
1
|
+
import type { ApplicationType, AuthorizationStatus, CommitmentDuration, CustomizationType, EntitlementAvailability, EvaluationJobStatus, EvaluationJobType, FineTuningJobStatus, FoundationModelLifecycleStatus, GuardrailContentFilterAction, GuardrailContentFiltersTierName, GuardrailContentFilterType, GuardrailContextualGroundingAction, GuardrailContextualGroundingFilterType, GuardrailContextualGroundingTierName, GuardrailFilterStrength, GuardrailManagedWordsType, GuardrailModality, GuardrailPiiEntityType, GuardrailSensitiveInformationAction, GuardrailStatus, GuardrailTopicAction, GuardrailTopicsTierName, GuardrailTopicType, GuardrailWordAction, InferenceProfileStatus, InferenceProfileType, InferenceType, JobStatusDetails, ModelCopyJobStatus, ModelCustomization, ModelCustomizationJobStatus, ModelImportJobStatus, ModelInvocationJobStatus, ModelInvocationType, ModelModality, OfferType, PromptRouterStatus, PromptRouterType, ProvisionedModelStatus, RegionAvailability, RetrieveAndGenerateType, S3InputFormat, SearchType, SortByProvisionedModels, SortJobsBy, SortModelsBy, SortOrder } from "./enums";
|
|
2
|
+
import type { AgreementAvailability, CustomizationConfig, EvaluationConfig, EvaluationModelConfig, EvaluationOutputDataConfig, EvaluationPrecomputedRagSourceConfig, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GenerationConfiguration, GuardrailAutomatedReasoningPolicyConfig, GuardrailContentPolicyConfig, GuardrailContextualGroundingPolicyConfig, GuardrailCrossRegionConfig, ImplicitFilterConfiguration, ModelDataSource, OrchestrationConfiguration, OutputDataConfig, Tag, TrainingDataConfig, TrainingMetrics, ValidationDataConfig, ValidatorMetric, VectorSearchRerankingConfiguration, VpcConfig } from "./models_0";
|
|
3
|
+
/**
|
|
4
|
+
* <p>The PII entity to configure for the guardrail.</p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface GuardrailPiiEntityConfig {
|
|
8
|
+
/**
|
|
9
|
+
* <p>Configure guardrail type when the PII entity is detected.</p> <p>The following PIIs are used to block or mask sensitive information:</p> <ul> <li> <p> <b>General</b> </p> <ul> <li> <p> <b>ADDRESS</b> </p> <p>A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123". An address can include information such as the street, building, location, city, state, country, county, zip code, precinct, and neighborhood. </p> </li> <li> <p> <b>AGE</b> </p> <p>An individual's age, including the quantity and unit of time. For example, in the phrase "I am 40 years old," Guardrails recognizes "40 years" as an age. </p> </li> <li> <p> <b>NAME</b> </p> <p>An individual's name. This entity type does not include titles, such as Dr., Mr., Mrs., or Miss. guardrails doesn't apply this entity type to names that are part of organizations or addresses. For example, guardrails recognizes the "John Doe Organization" as an organization, and it recognizes "Jane Doe Street" as an address. </p> </li> <li> <p> <b>EMAIL</b> </p> <p>An email address, such as <i>marymajor@email.com</i>.</p> </li> <li> <p> <b>PHONE</b> </p> <p>A phone number. This entity type also includes fax and pager numbers. </p> </li> <li> <p> <b>USERNAME</b> </p> <p>A user name that identifies an account, such as a login name, screen name, nick name, or handle. </p> </li> <li> <p> <b>PASSWORD</b> </p> <p>An alphanumeric string that is used as a password, such as "*<i>very20special#pass*</i>". </p> </li> <li> <p> <b>DRIVER_ID</b> </p> <p>The number assigned to a driver's license, which is an official document permitting an individual to operate one or more motorized vehicles on a public road. A driver's license number consists of alphanumeric characters. </p> </li> <li> <p> <b>LICENSE_PLATE</b> </p> <p>A license plate for a vehicle is issued by the state or country where the vehicle is registered. The format for passenger vehicles is typically five to eight digits, consisting of upper-case letters and numbers. The format varies depending on the location of the issuing state or country. </p> </li> <li> <p> <b>VEHICLE_IDENTIFICATION_NUMBER</b> </p> <p>A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format are defined in the <i>ISO 3779</i> specification. Each country has specific codes and formats for VINs. </p> </li> </ul> </li> <li> <p> <b>Finance</b> </p> <ul> <li> <p> <b>CREDIT_DEBIT_CARD_CVV</b> </p> <p>A three-digit card verification code (CVV) that is present on VISA, MasterCard, and Discover credit and debit cards. For American Express credit or debit cards, the CVV is a four-digit numeric code. </p> </li> <li> <p> <b>CREDIT_DEBIT_CARD_EXPIRY</b> </p> <p>The expiration date for a credit or debit card. This number is usually four digits long and is often formatted as <i>month/year</i> or <i>MM/YY</i>. Guardrails recognizes expiration dates such as <i>01/21</i>, <i>01/2021</i>, and <i>Jan 2021</i>. </p> </li> <li> <p> <b>CREDIT_DEBIT_CARD_NUMBER</b> </p> <p>The number for a credit or debit card. These numbers can vary from 13 to 16 digits in length. However, Amazon Comprehend also recognizes credit or debit card numbers when only the last four digits are present. </p> </li> <li> <p> <b>PIN</b> </p> <p>A four-digit personal identification number (PIN) with which you can access your bank account. </p> </li> <li> <p> <b>INTERNATIONAL_BANK_ACCOUNT_NUMBER</b> </p> <p>An International Bank Account Number has specific formats in each country. For more information, see <a href="https://www.iban.com/structure">www.iban.com/structure</a>.</p> </li> <li> <p> <b>SWIFT_CODE</b> </p> <p>A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a particular bank or branch. Banks use these codes for money transfers such as international wire transfers.</p> <p>SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific branches, while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the head or primary office.</p> </li> </ul> </li> <li> <p> <b>IT</b> </p> <ul> <li> <p> <b>IP_ADDRESS</b> </p> <p>An IPv4 address, such as <i>198.51.100.0</i>. </p> </li> <li> <p> <b>MAC_ADDRESS</b> </p> <p>A <i>media access control</i> (MAC) address is a unique identifier assigned to a network interface controller (NIC). </p> </li> <li> <p> <b>URL</b> </p> <p>A web address, such as <i>www.example.com</i>. </p> </li> <li> <p> <b>AWS_ACCESS_KEY</b> </p> <p>A unique identifier that's associated with a secret access key; you use the access key ID and secret access key to sign programmatic Amazon Web Services requests cryptographically. </p> </li> <li> <p> <b>AWS_SECRET_KEY</b> </p> <p>A unique identifier that's associated with an access key. You use the access key ID and secret access key to sign programmatic Amazon Web Services requests cryptographically. </p> </li> </ul> </li> <li> <p> <b>USA specific</b> </p> <ul> <li> <p> <b>US_BANK_ACCOUNT_NUMBER</b> </p> <p>A US bank account number, which is typically 10 to 12 digits long. </p> </li> <li> <p> <b>US_BANK_ROUTING_NUMBER</b> </p> <p>A US bank account routing number. These are typically nine digits long, </p> </li> <li> <p> <b>US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER</b> </p> <p>A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number that starts with a "9" and contain a "7" or "8" as the fourth digit. An ITIN can be formatted with a space or a dash after the third and forth digits. </p> </li> <li> <p> <b>US_PASSPORT_NUMBER</b> </p> <p>A US passport number. Passport numbers range from six to nine alphanumeric characters. </p> </li> <li> <p> <b>US_SOCIAL_SECURITY_NUMBER</b> </p> <p>A US Social Security Number (SSN) is a nine-digit number that is issued to US citizens, permanent residents, and temporary working residents. </p> </li> </ul> </li> <li> <p> <b>Canada specific</b> </p> <ul> <li> <p> <b>CA_HEALTH_NUMBER</b> </p> <p>A Canadian Health Service Number is a 10-digit unique identifier, required for individuals to access healthcare benefits. </p> </li> <li> <p> <b>CA_SOCIAL_INSURANCE_NUMBER</b> </p> <p>A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, required for individuals to access government programs and benefits.</p> <p>The SIN is formatted as three groups of three digits, such as <i>123-456-789</i>. A SIN can be validated through a simple check-digit process called the <a href="https://www.wikipedia.org/wiki/Luhn_algorithm">Luhn algorithm</a>.</p> </li> </ul> </li> <li> <p> <b>UK Specific</b> </p> <ul> <li> <p> <b>UK_NATIONAL_HEALTH_SERVICE_NUMBER</b> </p> <p>A UK National Health Service Number is a 10-17 digit number, such as <i>485 777 3456</i>. The current system formats the 10-digit number with spaces after the third and sixth digits. The final digit is an error-detecting checksum.</p> </li> <li> <p> <b>UK_NATIONAL_INSURANCE_NUMBER</b> </p> <p>A UK National Insurance Number (NINO) provides individuals with access to National Insurance (social security) benefits. It is also used for some purposes in the UK tax system.</p> <p>The number is nine digits long and starts with two letters, followed by six numbers and one letter. A NINO can be formatted with a space or a dash after the two letters and after the second, forth, and sixth digits.</p> </li> <li> <p> <b>UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER</b> </p> <p>A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a business. </p> </li> </ul> </li> <li> <p> <b>Custom</b> </p> <ul> <li> <p> <b>Regex filter</b> - You can use a regular expressions to define patterns for a guardrail to recognize and act upon such as serial number, booking ID etc..</p> </li> </ul> </li> </ul>
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
type: GuardrailPiiEntityType | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* <p>Configure guardrail action when the PII entity is detected.</p>
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
action: GuardrailSensitiveInformationAction | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>ANONYMIZE</code> – Mask the content and replace it with identifier tags.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>ANONYMIZE</code> – Mask the content and replace it with identifier tags.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
inputEnabled?: boolean | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
outputEnabled?: boolean | undefined;
|
|
38
|
+
}
|
|
3
39
|
/**
|
|
4
40
|
* <p>The regular expression to configure for the guardrail.</p>
|
|
5
41
|
* @public
|
|
@@ -503,6 +539,17 @@ export interface GuardrailContextualGroundingFilter {
|
|
|
503
539
|
*/
|
|
504
540
|
enabled?: boolean | undefined;
|
|
505
541
|
}
|
|
542
|
+
/**
|
|
543
|
+
* <p>Specifies the tier that your guardrail uses for contextual grounding checks.</p>
|
|
544
|
+
* @public
|
|
545
|
+
*/
|
|
546
|
+
export interface GuardrailContextualGroundingTier {
|
|
547
|
+
/**
|
|
548
|
+
* <p>The tier that your guardrail uses for contextual grounding. Valid values include:</p> <ul> <li> <p> <code>CLASSIC</code> tier – Provides established contextual grounding functionality supporting English, French, and Spanish languages.</p> </li> <li> <p> <code>STANDARD</code> tier – Provides a more robust solution than the <code>CLASSIC</code> tier, with support for reasoning, conversational content and more comprehensive language support. This tier requires that your guardrail use <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">cross-Region inference</a>.</p> </li> </ul>
|
|
549
|
+
* @public
|
|
550
|
+
*/
|
|
551
|
+
tierName: GuardrailContextualGroundingTierName | undefined;
|
|
552
|
+
}
|
|
506
553
|
/**
|
|
507
554
|
* <p>The details for the guardrails contextual grounding policy.</p>
|
|
508
555
|
* @public
|
|
@@ -513,6 +560,11 @@ export interface GuardrailContextualGroundingPolicy {
|
|
|
513
560
|
* @public
|
|
514
561
|
*/
|
|
515
562
|
filters: GuardrailContextualGroundingFilter[] | undefined;
|
|
563
|
+
/**
|
|
564
|
+
* <p>The tier that your guardrail uses for contextual grounding.</p>
|
|
565
|
+
* @public
|
|
566
|
+
*/
|
|
567
|
+
tier?: GuardrailContextualGroundingTier | undefined;
|
|
516
568
|
}
|
|
517
569
|
/**
|
|
518
570
|
* <p>Contains details about the system-defined guardrail profile that you're using with your guardrail for cross-Region inference.</p> <p>For more information, see the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">Amazon Bedrock User Guide</a>.</p>
|
|
@@ -281,6 +281,8 @@ export declare var GuardrailContextualGroundingFilter$: StaticStructureSchema;
|
|
|
281
281
|
export declare var GuardrailContextualGroundingFilterConfig$: StaticStructureSchema;
|
|
282
282
|
export declare var GuardrailContextualGroundingPolicy$: StaticStructureSchema;
|
|
283
283
|
export declare var GuardrailContextualGroundingPolicyConfig$: StaticStructureSchema;
|
|
284
|
+
export declare var GuardrailContextualGroundingTier$: StaticStructureSchema;
|
|
285
|
+
export declare var GuardrailContextualGroundingTierConfig$: StaticStructureSchema;
|
|
284
286
|
export declare var GuardrailCrossRegionConfig$: StaticStructureSchema;
|
|
285
287
|
export declare var GuardrailCrossRegionDetails$: StaticStructureSchema;
|
|
286
288
|
export declare var GuardrailManagedWords$: StaticStructureSchema;
|
|
@@ -296,6 +296,12 @@ export declare const GuardrailContextualGroundingFilterType: {
|
|
|
296
296
|
};
|
|
297
297
|
export type GuardrailContextualGroundingFilterType =
|
|
298
298
|
(typeof GuardrailContextualGroundingFilterType)[keyof typeof GuardrailContextualGroundingFilterType];
|
|
299
|
+
export declare const GuardrailContextualGroundingTierName: {
|
|
300
|
+
readonly CLASSIC: "CLASSIC";
|
|
301
|
+
readonly STANDARD: "STANDARD";
|
|
302
|
+
};
|
|
303
|
+
export type GuardrailContextualGroundingTierName =
|
|
304
|
+
(typeof GuardrailContextualGroundingTierName)[keyof typeof GuardrailContextualGroundingTierName];
|
|
299
305
|
export declare const GuardrailSensitiveInformationAction: {
|
|
300
306
|
readonly ANONYMIZE: "ANONYMIZE";
|
|
301
307
|
readonly BLOCK: "BLOCK";
|
|
@@ -28,10 +28,9 @@ import {
|
|
|
28
28
|
GuardrailContentFilterType,
|
|
29
29
|
GuardrailContextualGroundingAction,
|
|
30
30
|
GuardrailContextualGroundingFilterType,
|
|
31
|
+
GuardrailContextualGroundingTierName,
|
|
31
32
|
GuardrailFilterStrength,
|
|
32
33
|
GuardrailModality,
|
|
33
|
-
GuardrailPiiEntityType,
|
|
34
|
-
GuardrailSensitiveInformationAction,
|
|
35
34
|
InputTags,
|
|
36
35
|
ModelStatus,
|
|
37
36
|
PerformanceConfigLatency,
|
|
@@ -2456,17 +2455,13 @@ export interface GuardrailContextualGroundingFilterConfig {
|
|
|
2456
2455
|
action?: GuardrailContextualGroundingAction | undefined;
|
|
2457
2456
|
enabled?: boolean | undefined;
|
|
2458
2457
|
}
|
|
2458
|
+
export interface GuardrailContextualGroundingTierConfig {
|
|
2459
|
+
tierName: GuardrailContextualGroundingTierName | undefined;
|
|
2460
|
+
}
|
|
2459
2461
|
export interface GuardrailContextualGroundingPolicyConfig {
|
|
2460
2462
|
filtersConfig: GuardrailContextualGroundingFilterConfig[] | undefined;
|
|
2463
|
+
tierConfig?: GuardrailContextualGroundingTierConfig | undefined;
|
|
2461
2464
|
}
|
|
2462
2465
|
export interface GuardrailCrossRegionConfig {
|
|
2463
2466
|
guardrailProfileIdentifier: string | undefined;
|
|
2464
2467
|
}
|
|
2465
|
-
export interface GuardrailPiiEntityConfig {
|
|
2466
|
-
type: GuardrailPiiEntityType | undefined;
|
|
2467
|
-
action: GuardrailSensitiveInformationAction | undefined;
|
|
2468
|
-
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2469
|
-
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2470
|
-
inputEnabled?: boolean | undefined;
|
|
2471
|
-
outputEnabled?: boolean | undefined;
|
|
2472
|
-
}
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
GuardrailContentFilterType,
|
|
14
14
|
GuardrailContextualGroundingAction,
|
|
15
15
|
GuardrailContextualGroundingFilterType,
|
|
16
|
+
GuardrailContextualGroundingTierName,
|
|
16
17
|
GuardrailFilterStrength,
|
|
17
18
|
GuardrailManagedWordsType,
|
|
18
19
|
GuardrailModality,
|
|
@@ -61,7 +62,6 @@ import {
|
|
|
61
62
|
GuardrailContentPolicyConfig,
|
|
62
63
|
GuardrailContextualGroundingPolicyConfig,
|
|
63
64
|
GuardrailCrossRegionConfig,
|
|
64
|
-
GuardrailPiiEntityConfig,
|
|
65
65
|
ImplicitFilterConfiguration,
|
|
66
66
|
ModelDataSource,
|
|
67
67
|
OrchestrationConfiguration,
|
|
@@ -74,6 +74,14 @@ import {
|
|
|
74
74
|
VectorSearchRerankingConfiguration,
|
|
75
75
|
VpcConfig,
|
|
76
76
|
} from "./models_0";
|
|
77
|
+
export interface GuardrailPiiEntityConfig {
|
|
78
|
+
type: GuardrailPiiEntityType | undefined;
|
|
79
|
+
action: GuardrailSensitiveInformationAction | undefined;
|
|
80
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
81
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
82
|
+
inputEnabled?: boolean | undefined;
|
|
83
|
+
outputEnabled?: boolean | undefined;
|
|
84
|
+
}
|
|
77
85
|
export interface GuardrailRegexConfig {
|
|
78
86
|
name: string | undefined;
|
|
79
87
|
description?: string | undefined;
|
|
@@ -191,8 +199,12 @@ export interface GuardrailContextualGroundingFilter {
|
|
|
191
199
|
action?: GuardrailContextualGroundingAction | undefined;
|
|
192
200
|
enabled?: boolean | undefined;
|
|
193
201
|
}
|
|
202
|
+
export interface GuardrailContextualGroundingTier {
|
|
203
|
+
tierName: GuardrailContextualGroundingTierName | undefined;
|
|
204
|
+
}
|
|
194
205
|
export interface GuardrailContextualGroundingPolicy {
|
|
195
206
|
filters: GuardrailContextualGroundingFilter[] | undefined;
|
|
207
|
+
tier?: GuardrailContextualGroundingTier | undefined;
|
|
196
208
|
}
|
|
197
209
|
export interface GuardrailCrossRegionDetails {
|
|
198
210
|
guardrailProfileId?: string | undefined;
|
|
@@ -281,6 +281,8 @@ export declare var GuardrailContextualGroundingFilter$: StaticStructureSchema;
|
|
|
281
281
|
export declare var GuardrailContextualGroundingFilterConfig$: StaticStructureSchema;
|
|
282
282
|
export declare var GuardrailContextualGroundingPolicy$: StaticStructureSchema;
|
|
283
283
|
export declare var GuardrailContextualGroundingPolicyConfig$: StaticStructureSchema;
|
|
284
|
+
export declare var GuardrailContextualGroundingTier$: StaticStructureSchema;
|
|
285
|
+
export declare var GuardrailContextualGroundingTierConfig$: StaticStructureSchema;
|
|
284
286
|
export declare var GuardrailCrossRegionConfig$: StaticStructureSchema;
|
|
285
287
|
export declare var GuardrailCrossRegionDetails$: StaticStructureSchema;
|
|
286
288
|
export declare var GuardrailManagedWords$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1155.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.978.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
51
|
-
"@aws-sdk/token-providers": "3.
|
|
52
|
-
"@aws-sdk/types": "^3.
|
|
53
|
-
"@smithy/core": "^3.36.
|
|
49
|
+
"@aws-sdk/core": "^3.978.5",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.88",
|
|
51
|
+
"@aws-sdk/token-providers": "3.1155.0",
|
|
52
|
+
"@aws-sdk/types": "^3.975.0",
|
|
53
|
+
"@smithy/core": "^3.36.1",
|
|
54
54
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
55
55
|
"@smithy/node-http-handler": "^4.12.1",
|
|
56
56
|
"@smithy/types": "^4.19.0",
|