@aws-sdk/client-bedrock 3.782.0 → 3.784.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 +134 -5
- package/dist-es/models/models_0.js +91 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +28 -2
- package/dist-types/commands/GetGuardrailCommand.d.ts +28 -2
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +28 -2
- package/dist-types/models/models_0.d.ts +705 -0
- package/dist-types/ts3.4/models/models_0.d.ts +107 -0
- package/package.json +1 -1
|
@@ -1574,6 +1574,18 @@ export interface StopEvaluationJobRequest {
|
|
|
1574
1574
|
*/
|
|
1575
1575
|
export interface StopEvaluationJobResponse {
|
|
1576
1576
|
}
|
|
1577
|
+
/**
|
|
1578
|
+
* @public
|
|
1579
|
+
* @enum
|
|
1580
|
+
*/
|
|
1581
|
+
export declare const GuardrailContentFilterAction: {
|
|
1582
|
+
readonly BLOCK: "BLOCK";
|
|
1583
|
+
readonly NONE: "NONE";
|
|
1584
|
+
};
|
|
1585
|
+
/**
|
|
1586
|
+
* @public
|
|
1587
|
+
*/
|
|
1588
|
+
export type GuardrailContentFilterAction = (typeof GuardrailContentFilterAction)[keyof typeof GuardrailContentFilterAction];
|
|
1577
1589
|
/**
|
|
1578
1590
|
* @public
|
|
1579
1591
|
* @enum
|
|
@@ -1677,6 +1689,52 @@ export interface GuardrailContentFilterConfig {
|
|
|
1677
1689
|
* @public
|
|
1678
1690
|
*/
|
|
1679
1691
|
outputModalities?: GuardrailModality[] | undefined;
|
|
1692
|
+
/**
|
|
1693
|
+
* <p>Specifies the action to take when harmful content is detected. Supported values include:</p>
|
|
1694
|
+
* <ul>
|
|
1695
|
+
* <li>
|
|
1696
|
+
* <p>
|
|
1697
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
1698
|
+
* messaging.</p>
|
|
1699
|
+
* </li>
|
|
1700
|
+
* <li>
|
|
1701
|
+
* <p>
|
|
1702
|
+
* <code>NONE</code> – Take no action but return detection information in the
|
|
1703
|
+
* trace response.</p>
|
|
1704
|
+
* </li>
|
|
1705
|
+
* </ul>
|
|
1706
|
+
* @public
|
|
1707
|
+
*/
|
|
1708
|
+
inputAction?: GuardrailContentFilterAction | undefined;
|
|
1709
|
+
/**
|
|
1710
|
+
* <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p>
|
|
1711
|
+
* <ul>
|
|
1712
|
+
* <li>
|
|
1713
|
+
* <p>
|
|
1714
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
1715
|
+
* messaging.</p>
|
|
1716
|
+
* </li>
|
|
1717
|
+
* <li>
|
|
1718
|
+
* <p>
|
|
1719
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
1720
|
+
* response.</p>
|
|
1721
|
+
* </li>
|
|
1722
|
+
* </ul>
|
|
1723
|
+
* @public
|
|
1724
|
+
*/
|
|
1725
|
+
outputAction?: GuardrailContentFilterAction | undefined;
|
|
1726
|
+
/**
|
|
1727
|
+
* <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't
|
|
1728
|
+
* charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
1729
|
+
* @public
|
|
1730
|
+
*/
|
|
1731
|
+
inputEnabled?: boolean | undefined;
|
|
1732
|
+
/**
|
|
1733
|
+
* <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you
|
|
1734
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
1735
|
+
* @public
|
|
1736
|
+
*/
|
|
1737
|
+
outputEnabled?: boolean | undefined;
|
|
1680
1738
|
}
|
|
1681
1739
|
/**
|
|
1682
1740
|
* <p>Contains details about how to handle harmful content.</p>
|
|
@@ -1689,6 +1747,18 @@ export interface GuardrailContentPolicyConfig {
|
|
|
1689
1747
|
*/
|
|
1690
1748
|
filtersConfig: GuardrailContentFilterConfig[] | undefined;
|
|
1691
1749
|
}
|
|
1750
|
+
/**
|
|
1751
|
+
* @public
|
|
1752
|
+
* @enum
|
|
1753
|
+
*/
|
|
1754
|
+
export declare const GuardrailContextualGroundingAction: {
|
|
1755
|
+
readonly BLOCK: "BLOCK";
|
|
1756
|
+
readonly NONE: "NONE";
|
|
1757
|
+
};
|
|
1758
|
+
/**
|
|
1759
|
+
* @public
|
|
1760
|
+
*/
|
|
1761
|
+
export type GuardrailContextualGroundingAction = (typeof GuardrailContextualGroundingAction)[keyof typeof GuardrailContextualGroundingAction];
|
|
1692
1762
|
/**
|
|
1693
1763
|
* @public
|
|
1694
1764
|
* @enum
|
|
@@ -1716,6 +1786,28 @@ export interface GuardrailContextualGroundingFilterConfig {
|
|
|
1716
1786
|
* @public
|
|
1717
1787
|
*/
|
|
1718
1788
|
threshold: number | undefined;
|
|
1789
|
+
/**
|
|
1790
|
+
* <p>Specifies the action to take when content fails the contextual grounding evaluation. Supported values include:</p>
|
|
1791
|
+
* <ul>
|
|
1792
|
+
* <li>
|
|
1793
|
+
* <p>
|
|
1794
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
1795
|
+
* messaging.</p>
|
|
1796
|
+
* </li>
|
|
1797
|
+
* <li>
|
|
1798
|
+
* <p>
|
|
1799
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
1800
|
+
* response.</p>
|
|
1801
|
+
* </li>
|
|
1802
|
+
* </ul>
|
|
1803
|
+
* @public
|
|
1804
|
+
*/
|
|
1805
|
+
action?: GuardrailContextualGroundingAction | undefined;
|
|
1806
|
+
/**
|
|
1807
|
+
* <p>Specifies whether to enable contextual grounding evaluation. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
1808
|
+
* @public
|
|
1809
|
+
*/
|
|
1810
|
+
enabled?: boolean | undefined;
|
|
1719
1811
|
}
|
|
1720
1812
|
/**
|
|
1721
1813
|
* <p>The policy configuration details for the guardrails contextual grounding policy.</p>
|
|
@@ -1735,6 +1827,7 @@ export interface GuardrailContextualGroundingPolicyConfig {
|
|
|
1735
1827
|
export declare const GuardrailSensitiveInformationAction: {
|
|
1736
1828
|
readonly ANONYMIZE: "ANONYMIZE";
|
|
1737
1829
|
readonly BLOCK: "BLOCK";
|
|
1830
|
+
readonly NONE: "NONE";
|
|
1738
1831
|
};
|
|
1739
1832
|
/**
|
|
1740
1833
|
* @public
|
|
@@ -2119,6 +2212,62 @@ export interface GuardrailPiiEntityConfig {
|
|
|
2119
2212
|
* @public
|
|
2120
2213
|
*/
|
|
2121
2214
|
action: GuardrailSensitiveInformationAction | undefined;
|
|
2215
|
+
/**
|
|
2216
|
+
* <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p>
|
|
2217
|
+
* <ul>
|
|
2218
|
+
* <li>
|
|
2219
|
+
* <p>
|
|
2220
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2221
|
+
* messaging.</p>
|
|
2222
|
+
* </li>
|
|
2223
|
+
* <li>
|
|
2224
|
+
* <p>
|
|
2225
|
+
* <code>ANONYMIZE</code> – Mask the content and replace it with identifier
|
|
2226
|
+
* tags.</p>
|
|
2227
|
+
* </li>
|
|
2228
|
+
* <li>
|
|
2229
|
+
* <p>
|
|
2230
|
+
* <code>NONE</code> – Take no action but return detection information in the
|
|
2231
|
+
* trace response.</p>
|
|
2232
|
+
* </li>
|
|
2233
|
+
* </ul>
|
|
2234
|
+
* @public
|
|
2235
|
+
*/
|
|
2236
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2237
|
+
/**
|
|
2238
|
+
* <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p>
|
|
2239
|
+
* <ul>
|
|
2240
|
+
* <li>
|
|
2241
|
+
* <p>
|
|
2242
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2243
|
+
* messaging.</p>
|
|
2244
|
+
* </li>
|
|
2245
|
+
* <li>
|
|
2246
|
+
* <p>
|
|
2247
|
+
* <code>ANONYMIZE</code> – Mask the content and replace it with identifier
|
|
2248
|
+
* tags.</p>
|
|
2249
|
+
* </li>
|
|
2250
|
+
* <li>
|
|
2251
|
+
* <p>
|
|
2252
|
+
* <code>NONE</code> – Take no action but return detection information in the
|
|
2253
|
+
* trace response.</p>
|
|
2254
|
+
* </li>
|
|
2255
|
+
* </ul>
|
|
2256
|
+
* @public
|
|
2257
|
+
*/
|
|
2258
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2259
|
+
/**
|
|
2260
|
+
* <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't
|
|
2261
|
+
* charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2262
|
+
* @public
|
|
2263
|
+
*/
|
|
2264
|
+
inputEnabled?: boolean | undefined;
|
|
2265
|
+
/**
|
|
2266
|
+
* <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you
|
|
2267
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2268
|
+
* @public
|
|
2269
|
+
*/
|
|
2270
|
+
outputEnabled?: boolean | undefined;
|
|
2122
2271
|
}
|
|
2123
2272
|
/**
|
|
2124
2273
|
* <p>The regular expression to configure for the guardrail.</p>
|
|
@@ -2145,6 +2294,52 @@ export interface GuardrailRegexConfig {
|
|
|
2145
2294
|
* @public
|
|
2146
2295
|
*/
|
|
2147
2296
|
action: GuardrailSensitiveInformationAction | undefined;
|
|
2297
|
+
/**
|
|
2298
|
+
* <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p>
|
|
2299
|
+
* <ul>
|
|
2300
|
+
* <li>
|
|
2301
|
+
* <p>
|
|
2302
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2303
|
+
* messaging.</p>
|
|
2304
|
+
* </li>
|
|
2305
|
+
* <li>
|
|
2306
|
+
* <p>
|
|
2307
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
2308
|
+
* response.</p>
|
|
2309
|
+
* </li>
|
|
2310
|
+
* </ul>
|
|
2311
|
+
* @public
|
|
2312
|
+
*/
|
|
2313
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2314
|
+
/**
|
|
2315
|
+
* <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p>
|
|
2316
|
+
* <ul>
|
|
2317
|
+
* <li>
|
|
2318
|
+
* <p>
|
|
2319
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2320
|
+
* messaging.</p>
|
|
2321
|
+
* </li>
|
|
2322
|
+
* <li>
|
|
2323
|
+
* <p>
|
|
2324
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
2325
|
+
* response.</p>
|
|
2326
|
+
* </li>
|
|
2327
|
+
* </ul>
|
|
2328
|
+
* @public
|
|
2329
|
+
*/
|
|
2330
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2331
|
+
/**
|
|
2332
|
+
* <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't
|
|
2333
|
+
* charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2334
|
+
* @public
|
|
2335
|
+
*/
|
|
2336
|
+
inputEnabled?: boolean | undefined;
|
|
2337
|
+
/**
|
|
2338
|
+
* <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you
|
|
2339
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2340
|
+
* @public
|
|
2341
|
+
*/
|
|
2342
|
+
outputEnabled?: boolean | undefined;
|
|
2148
2343
|
}
|
|
2149
2344
|
/**
|
|
2150
2345
|
* <p>Contains details about PII entities and regular expressions to configure for the guardrail.</p>
|
|
@@ -2162,6 +2357,18 @@ export interface GuardrailSensitiveInformationPolicyConfig {
|
|
|
2162
2357
|
*/
|
|
2163
2358
|
regexesConfig?: GuardrailRegexConfig[] | undefined;
|
|
2164
2359
|
}
|
|
2360
|
+
/**
|
|
2361
|
+
* @public
|
|
2362
|
+
* @enum
|
|
2363
|
+
*/
|
|
2364
|
+
export declare const GuardrailTopicAction: {
|
|
2365
|
+
readonly BLOCK: "BLOCK";
|
|
2366
|
+
readonly NONE: "NONE";
|
|
2367
|
+
};
|
|
2368
|
+
/**
|
|
2369
|
+
* @public
|
|
2370
|
+
*/
|
|
2371
|
+
export type GuardrailTopicAction = (typeof GuardrailTopicAction)[keyof typeof GuardrailTopicAction];
|
|
2165
2372
|
/**
|
|
2166
2373
|
* @public
|
|
2167
2374
|
* @enum
|
|
@@ -2198,6 +2405,52 @@ export interface GuardrailTopicConfig {
|
|
|
2198
2405
|
* @public
|
|
2199
2406
|
*/
|
|
2200
2407
|
type: GuardrailTopicType | undefined;
|
|
2408
|
+
/**
|
|
2409
|
+
* <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p>
|
|
2410
|
+
* <ul>
|
|
2411
|
+
* <li>
|
|
2412
|
+
* <p>
|
|
2413
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2414
|
+
* messaging.</p>
|
|
2415
|
+
* </li>
|
|
2416
|
+
* <li>
|
|
2417
|
+
* <p>
|
|
2418
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
2419
|
+
* response.</p>
|
|
2420
|
+
* </li>
|
|
2421
|
+
* </ul>
|
|
2422
|
+
* @public
|
|
2423
|
+
*/
|
|
2424
|
+
inputAction?: GuardrailTopicAction | undefined;
|
|
2425
|
+
/**
|
|
2426
|
+
* <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p>
|
|
2427
|
+
* <ul>
|
|
2428
|
+
* <li>
|
|
2429
|
+
* <p>
|
|
2430
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2431
|
+
* messaging.</p>
|
|
2432
|
+
* </li>
|
|
2433
|
+
* <li>
|
|
2434
|
+
* <p>
|
|
2435
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
2436
|
+
* response.</p>
|
|
2437
|
+
* </li>
|
|
2438
|
+
* </ul>
|
|
2439
|
+
* @public
|
|
2440
|
+
*/
|
|
2441
|
+
outputAction?: GuardrailTopicAction | undefined;
|
|
2442
|
+
/**
|
|
2443
|
+
* <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't
|
|
2444
|
+
* charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2445
|
+
* @public
|
|
2446
|
+
*/
|
|
2447
|
+
inputEnabled?: boolean | undefined;
|
|
2448
|
+
/**
|
|
2449
|
+
* <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you
|
|
2450
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2451
|
+
* @public
|
|
2452
|
+
*/
|
|
2453
|
+
outputEnabled?: boolean | undefined;
|
|
2201
2454
|
}
|
|
2202
2455
|
/**
|
|
2203
2456
|
* <p>Contains details about topics that the guardrail should identify and deny.</p>
|
|
@@ -2210,6 +2463,18 @@ export interface GuardrailTopicPolicyConfig {
|
|
|
2210
2463
|
*/
|
|
2211
2464
|
topicsConfig: GuardrailTopicConfig[] | undefined;
|
|
2212
2465
|
}
|
|
2466
|
+
/**
|
|
2467
|
+
* @public
|
|
2468
|
+
* @enum
|
|
2469
|
+
*/
|
|
2470
|
+
export declare const GuardrailWordAction: {
|
|
2471
|
+
readonly BLOCK: "BLOCK";
|
|
2472
|
+
readonly NONE: "NONE";
|
|
2473
|
+
};
|
|
2474
|
+
/**
|
|
2475
|
+
* @public
|
|
2476
|
+
*/
|
|
2477
|
+
export type GuardrailWordAction = (typeof GuardrailWordAction)[keyof typeof GuardrailWordAction];
|
|
2213
2478
|
/**
|
|
2214
2479
|
* @public
|
|
2215
2480
|
* @enum
|
|
@@ -2231,6 +2496,52 @@ export interface GuardrailManagedWordsConfig {
|
|
|
2231
2496
|
* @public
|
|
2232
2497
|
*/
|
|
2233
2498
|
type: GuardrailManagedWordsType | undefined;
|
|
2499
|
+
/**
|
|
2500
|
+
* <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p>
|
|
2501
|
+
* <ul>
|
|
2502
|
+
* <li>
|
|
2503
|
+
* <p>
|
|
2504
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2505
|
+
* messaging.</p>
|
|
2506
|
+
* </li>
|
|
2507
|
+
* <li>
|
|
2508
|
+
* <p>
|
|
2509
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
2510
|
+
* response.</p>
|
|
2511
|
+
* </li>
|
|
2512
|
+
* </ul>
|
|
2513
|
+
* @public
|
|
2514
|
+
*/
|
|
2515
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
2516
|
+
/**
|
|
2517
|
+
* <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p>
|
|
2518
|
+
* <ul>
|
|
2519
|
+
* <li>
|
|
2520
|
+
* <p>
|
|
2521
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2522
|
+
* messaging.</p>
|
|
2523
|
+
* </li>
|
|
2524
|
+
* <li>
|
|
2525
|
+
* <p>
|
|
2526
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
2527
|
+
* response.</p>
|
|
2528
|
+
* </li>
|
|
2529
|
+
* </ul>
|
|
2530
|
+
* @public
|
|
2531
|
+
*/
|
|
2532
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
2533
|
+
/**
|
|
2534
|
+
* <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you
|
|
2535
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2536
|
+
* @public
|
|
2537
|
+
*/
|
|
2538
|
+
inputEnabled?: boolean | undefined;
|
|
2539
|
+
/**
|
|
2540
|
+
* <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you
|
|
2541
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2542
|
+
* @public
|
|
2543
|
+
*/
|
|
2544
|
+
outputEnabled?: boolean | undefined;
|
|
2234
2545
|
}
|
|
2235
2546
|
/**
|
|
2236
2547
|
* <p>A word to configure for the guardrail.</p>
|
|
@@ -2242,6 +2553,52 @@ export interface GuardrailWordConfig {
|
|
|
2242
2553
|
* @public
|
|
2243
2554
|
*/
|
|
2244
2555
|
text: string | undefined;
|
|
2556
|
+
/**
|
|
2557
|
+
* <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p>
|
|
2558
|
+
* <ul>
|
|
2559
|
+
* <li>
|
|
2560
|
+
* <p>
|
|
2561
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2562
|
+
* messaging.</p>
|
|
2563
|
+
* </li>
|
|
2564
|
+
* <li>
|
|
2565
|
+
* <p>
|
|
2566
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
2567
|
+
* response.</p>
|
|
2568
|
+
* </li>
|
|
2569
|
+
* </ul>
|
|
2570
|
+
* @public
|
|
2571
|
+
*/
|
|
2572
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
2573
|
+
/**
|
|
2574
|
+
* <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p>
|
|
2575
|
+
* <ul>
|
|
2576
|
+
* <li>
|
|
2577
|
+
* <p>
|
|
2578
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2579
|
+
* messaging.</p>
|
|
2580
|
+
* </li>
|
|
2581
|
+
* <li>
|
|
2582
|
+
* <p>
|
|
2583
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
2584
|
+
* response.</p>
|
|
2585
|
+
* </li>
|
|
2586
|
+
* </ul>
|
|
2587
|
+
* @public
|
|
2588
|
+
*/
|
|
2589
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
2590
|
+
/**
|
|
2591
|
+
* <p>Specifies whether to enable guardrail evaluation on the intput. When disabled, you
|
|
2592
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2593
|
+
* @public
|
|
2594
|
+
*/
|
|
2595
|
+
inputEnabled?: boolean | undefined;
|
|
2596
|
+
/**
|
|
2597
|
+
* <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you
|
|
2598
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2599
|
+
* @public
|
|
2600
|
+
*/
|
|
2601
|
+
outputEnabled?: boolean | undefined;
|
|
2245
2602
|
}
|
|
2246
2603
|
/**
|
|
2247
2604
|
* <p>Contains details about the word policy to configured for the guardrail.</p>
|
|
@@ -2515,6 +2872,52 @@ export interface GuardrailContentFilter {
|
|
|
2515
2872
|
* @public
|
|
2516
2873
|
*/
|
|
2517
2874
|
outputModalities?: GuardrailModality[] | undefined;
|
|
2875
|
+
/**
|
|
2876
|
+
* <p>The action to take when harmful content is detected in the input. Supported values include:</p>
|
|
2877
|
+
* <ul>
|
|
2878
|
+
* <li>
|
|
2879
|
+
* <p>
|
|
2880
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2881
|
+
* messaging.</p>
|
|
2882
|
+
* </li>
|
|
2883
|
+
* <li>
|
|
2884
|
+
* <p>
|
|
2885
|
+
* <code>NONE</code> – Take no action but return detection information in the
|
|
2886
|
+
* trace response.</p>
|
|
2887
|
+
* </li>
|
|
2888
|
+
* </ul>
|
|
2889
|
+
* @public
|
|
2890
|
+
*/
|
|
2891
|
+
inputAction?: GuardrailContentFilterAction | undefined;
|
|
2892
|
+
/**
|
|
2893
|
+
* <p>The action to take when harmful content is detected in the output. Supported values include:</p>
|
|
2894
|
+
* <ul>
|
|
2895
|
+
* <li>
|
|
2896
|
+
* <p>
|
|
2897
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2898
|
+
* messaging.</p>
|
|
2899
|
+
* </li>
|
|
2900
|
+
* <li>
|
|
2901
|
+
* <p>
|
|
2902
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
2903
|
+
* response.</p>
|
|
2904
|
+
* </li>
|
|
2905
|
+
* </ul>
|
|
2906
|
+
* @public
|
|
2907
|
+
*/
|
|
2908
|
+
outputAction?: GuardrailContentFilterAction | undefined;
|
|
2909
|
+
/**
|
|
2910
|
+
* <p>Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't
|
|
2911
|
+
* charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2912
|
+
* @public
|
|
2913
|
+
*/
|
|
2914
|
+
inputEnabled?: boolean | undefined;
|
|
2915
|
+
/**
|
|
2916
|
+
* <p>Indicates whether guardrail evaluation is enabled on the output. When disabled, you
|
|
2917
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2918
|
+
* @public
|
|
2919
|
+
*/
|
|
2920
|
+
outputEnabled?: boolean | undefined;
|
|
2518
2921
|
}
|
|
2519
2922
|
/**
|
|
2520
2923
|
* <p>Contains details about how to handle harmful content.</p>
|
|
@@ -2550,6 +2953,28 @@ export interface GuardrailContextualGroundingFilter {
|
|
|
2550
2953
|
* @public
|
|
2551
2954
|
*/
|
|
2552
2955
|
threshold: number | undefined;
|
|
2956
|
+
/**
|
|
2957
|
+
* <p>The action to take when content fails the contextual grounding evaluation. Supported values include:</p>
|
|
2958
|
+
* <ul>
|
|
2959
|
+
* <li>
|
|
2960
|
+
* <p>
|
|
2961
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
2962
|
+
* messaging.</p>
|
|
2963
|
+
* </li>
|
|
2964
|
+
* <li>
|
|
2965
|
+
* <p>
|
|
2966
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
2967
|
+
* response.</p>
|
|
2968
|
+
* </li>
|
|
2969
|
+
* </ul>
|
|
2970
|
+
* @public
|
|
2971
|
+
*/
|
|
2972
|
+
action?: GuardrailContextualGroundingAction | undefined;
|
|
2973
|
+
/**
|
|
2974
|
+
* <p>Indicates whether contextual grounding is enabled for evaluation. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
2975
|
+
* @public
|
|
2976
|
+
*/
|
|
2977
|
+
enabled?: boolean | undefined;
|
|
2553
2978
|
}
|
|
2554
2979
|
/**
|
|
2555
2980
|
* <p>The details for the guardrails contextual grounding policy.</p>
|
|
@@ -2577,6 +3002,62 @@ export interface GuardrailPiiEntity {
|
|
|
2577
3002
|
* @public
|
|
2578
3003
|
*/
|
|
2579
3004
|
action: GuardrailSensitiveInformationAction | undefined;
|
|
3005
|
+
/**
|
|
3006
|
+
* <p>The action to take when harmful content is detected in the input. Supported values include:</p>
|
|
3007
|
+
* <ul>
|
|
3008
|
+
* <li>
|
|
3009
|
+
* <p>
|
|
3010
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
3011
|
+
* messaging.</p>
|
|
3012
|
+
* </li>
|
|
3013
|
+
* <li>
|
|
3014
|
+
* <p>
|
|
3015
|
+
* <code>ANONYMIZE</code> – Mask the content and replace it with identifier
|
|
3016
|
+
* tags.</p>
|
|
3017
|
+
* </li>
|
|
3018
|
+
* <li>
|
|
3019
|
+
* <p>
|
|
3020
|
+
* <code>NONE</code> – Take no action but return detection information in the
|
|
3021
|
+
* trace response.</p>
|
|
3022
|
+
* </li>
|
|
3023
|
+
* </ul>
|
|
3024
|
+
* @public
|
|
3025
|
+
*/
|
|
3026
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
3027
|
+
/**
|
|
3028
|
+
* <p>The action to take when harmful content is detected in the output. Supported values include:</p>
|
|
3029
|
+
* <ul>
|
|
3030
|
+
* <li>
|
|
3031
|
+
* <p>
|
|
3032
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
3033
|
+
* messaging.</p>
|
|
3034
|
+
* </li>
|
|
3035
|
+
* <li>
|
|
3036
|
+
* <p>
|
|
3037
|
+
* <code>ANONYMIZE</code> – Mask the content and replace it with identifier
|
|
3038
|
+
* tags.</p>
|
|
3039
|
+
* </li>
|
|
3040
|
+
* <li>
|
|
3041
|
+
* <p>
|
|
3042
|
+
* <code>NONE</code> – Take no action but return detection information in the
|
|
3043
|
+
* trace response.</p>
|
|
3044
|
+
* </li>
|
|
3045
|
+
* </ul>
|
|
3046
|
+
* @public
|
|
3047
|
+
*/
|
|
3048
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
3049
|
+
/**
|
|
3050
|
+
* <p>Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't
|
|
3051
|
+
* charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
3052
|
+
* @public
|
|
3053
|
+
*/
|
|
3054
|
+
inputEnabled?: boolean | undefined;
|
|
3055
|
+
/**
|
|
3056
|
+
* <p>Indicates whether guardrail evaluation is enabled on the output. When disabled, you
|
|
3057
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
3058
|
+
* @public
|
|
3059
|
+
*/
|
|
3060
|
+
outputEnabled?: boolean | undefined;
|
|
2580
3061
|
}
|
|
2581
3062
|
/**
|
|
2582
3063
|
* <p>The regular expression configured for the guardrail.</p>
|
|
@@ -2603,6 +3084,52 @@ export interface GuardrailRegex {
|
|
|
2603
3084
|
* @public
|
|
2604
3085
|
*/
|
|
2605
3086
|
action: GuardrailSensitiveInformationAction | undefined;
|
|
3087
|
+
/**
|
|
3088
|
+
* <p>The action to take when harmful content is detected in the input. Supported values include:</p>
|
|
3089
|
+
* <ul>
|
|
3090
|
+
* <li>
|
|
3091
|
+
* <p>
|
|
3092
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
3093
|
+
* messaging.</p>
|
|
3094
|
+
* </li>
|
|
3095
|
+
* <li>
|
|
3096
|
+
* <p>
|
|
3097
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
3098
|
+
* response.</p>
|
|
3099
|
+
* </li>
|
|
3100
|
+
* </ul>
|
|
3101
|
+
* @public
|
|
3102
|
+
*/
|
|
3103
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
3104
|
+
/**
|
|
3105
|
+
* <p>The action to take when harmful content is detected in the output. Supported values include:</p>
|
|
3106
|
+
* <ul>
|
|
3107
|
+
* <li>
|
|
3108
|
+
* <p>
|
|
3109
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
3110
|
+
* messaging.</p>
|
|
3111
|
+
* </li>
|
|
3112
|
+
* <li>
|
|
3113
|
+
* <p>
|
|
3114
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
3115
|
+
* response.</p>
|
|
3116
|
+
* </li>
|
|
3117
|
+
* </ul>
|
|
3118
|
+
* @public
|
|
3119
|
+
*/
|
|
3120
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
3121
|
+
/**
|
|
3122
|
+
* <p>Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't
|
|
3123
|
+
* charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
3124
|
+
* @public
|
|
3125
|
+
*/
|
|
3126
|
+
inputEnabled?: boolean | undefined;
|
|
3127
|
+
/**
|
|
3128
|
+
* <p>Indicates whether guardrail evaluation is enabled on the output. When disabled, you
|
|
3129
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
3130
|
+
* @public
|
|
3131
|
+
*/
|
|
3132
|
+
outputEnabled?: boolean | undefined;
|
|
2606
3133
|
}
|
|
2607
3134
|
/**
|
|
2608
3135
|
* <p>Contains details about PII entities and regular expressions configured for the guardrail.</p>
|
|
@@ -2669,6 +3196,52 @@ export interface GuardrailTopic {
|
|
|
2669
3196
|
* @public
|
|
2670
3197
|
*/
|
|
2671
3198
|
type?: GuardrailTopicType | undefined;
|
|
3199
|
+
/**
|
|
3200
|
+
* <p>The action to take when harmful content is detected in the input. Supported values include:</p>
|
|
3201
|
+
* <ul>
|
|
3202
|
+
* <li>
|
|
3203
|
+
* <p>
|
|
3204
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
3205
|
+
* messaging.</p>
|
|
3206
|
+
* </li>
|
|
3207
|
+
* <li>
|
|
3208
|
+
* <p>
|
|
3209
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
3210
|
+
* response.</p>
|
|
3211
|
+
* </li>
|
|
3212
|
+
* </ul>
|
|
3213
|
+
* @public
|
|
3214
|
+
*/
|
|
3215
|
+
inputAction?: GuardrailTopicAction | undefined;
|
|
3216
|
+
/**
|
|
3217
|
+
* <p>The action to take when harmful content is detected in the output. Supported values include:</p>
|
|
3218
|
+
* <ul>
|
|
3219
|
+
* <li>
|
|
3220
|
+
* <p>
|
|
3221
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
3222
|
+
* messaging.</p>
|
|
3223
|
+
* </li>
|
|
3224
|
+
* <li>
|
|
3225
|
+
* <p>
|
|
3226
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
3227
|
+
* response.</p>
|
|
3228
|
+
* </li>
|
|
3229
|
+
* </ul>
|
|
3230
|
+
* @public
|
|
3231
|
+
*/
|
|
3232
|
+
outputAction?: GuardrailTopicAction | undefined;
|
|
3233
|
+
/**
|
|
3234
|
+
* <p>Indicates whether guardrail evaluation is enabled on the input. When disabled, you
|
|
3235
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
3236
|
+
* @public
|
|
3237
|
+
*/
|
|
3238
|
+
inputEnabled?: boolean | undefined;
|
|
3239
|
+
/**
|
|
3240
|
+
* <p>Indicates whether guardrail evaluation is enabled on the output. When disabled, you
|
|
3241
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
3242
|
+
* @public
|
|
3243
|
+
*/
|
|
3244
|
+
outputEnabled?: boolean | undefined;
|
|
2672
3245
|
}
|
|
2673
3246
|
/**
|
|
2674
3247
|
* <p>Contains details about topics that the guardrail should identify and deny.</p>
|
|
@@ -2702,6 +3275,52 @@ export interface GuardrailManagedWords {
|
|
|
2702
3275
|
* @public
|
|
2703
3276
|
*/
|
|
2704
3277
|
type: GuardrailManagedWordsType | undefined;
|
|
3278
|
+
/**
|
|
3279
|
+
* <p>The action to take when harmful content is detected in the input. Supported values include:</p>
|
|
3280
|
+
* <ul>
|
|
3281
|
+
* <li>
|
|
3282
|
+
* <p>
|
|
3283
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
3284
|
+
* messaging.</p>
|
|
3285
|
+
* </li>
|
|
3286
|
+
* <li>
|
|
3287
|
+
* <p>
|
|
3288
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
3289
|
+
* response.</p>
|
|
3290
|
+
* </li>
|
|
3291
|
+
* </ul>
|
|
3292
|
+
* @public
|
|
3293
|
+
*/
|
|
3294
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
3295
|
+
/**
|
|
3296
|
+
* <p>The action to take when harmful content is detected in the output. Supported values include:</p>
|
|
3297
|
+
* <ul>
|
|
3298
|
+
* <li>
|
|
3299
|
+
* <p>
|
|
3300
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
3301
|
+
* messaging.</p>
|
|
3302
|
+
* </li>
|
|
3303
|
+
* <li>
|
|
3304
|
+
* <p>
|
|
3305
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
3306
|
+
* response.</p>
|
|
3307
|
+
* </li>
|
|
3308
|
+
* </ul>
|
|
3309
|
+
* @public
|
|
3310
|
+
*/
|
|
3311
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
3312
|
+
/**
|
|
3313
|
+
* <p>Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't
|
|
3314
|
+
* charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
3315
|
+
* @public
|
|
3316
|
+
*/
|
|
3317
|
+
inputEnabled?: boolean | undefined;
|
|
3318
|
+
/**
|
|
3319
|
+
* <p>Indicates whether guardrail evaluation is enabled on the output. When disabled, you
|
|
3320
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
3321
|
+
* @public
|
|
3322
|
+
*/
|
|
3323
|
+
outputEnabled?: boolean | undefined;
|
|
2705
3324
|
}
|
|
2706
3325
|
/**
|
|
2707
3326
|
* <p>A word configured for the guardrail.</p>
|
|
@@ -2713,6 +3332,52 @@ export interface GuardrailWord {
|
|
|
2713
3332
|
* @public
|
|
2714
3333
|
*/
|
|
2715
3334
|
text: string | undefined;
|
|
3335
|
+
/**
|
|
3336
|
+
* <p>The action to take when harmful content is detected in the input. Supported values include:</p>
|
|
3337
|
+
* <ul>
|
|
3338
|
+
* <li>
|
|
3339
|
+
* <p>
|
|
3340
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
3341
|
+
* messaging.</p>
|
|
3342
|
+
* </li>
|
|
3343
|
+
* <li>
|
|
3344
|
+
* <p>
|
|
3345
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
3346
|
+
* response.</p>
|
|
3347
|
+
* </li>
|
|
3348
|
+
* </ul>
|
|
3349
|
+
* @public
|
|
3350
|
+
*/
|
|
3351
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
3352
|
+
/**
|
|
3353
|
+
* <p>The action to take when harmful content is detected in the output. Supported values include:</p>
|
|
3354
|
+
* <ul>
|
|
3355
|
+
* <li>
|
|
3356
|
+
* <p>
|
|
3357
|
+
* <code>BLOCK</code> – Block the content and replace it with blocked
|
|
3358
|
+
* messaging.</p>
|
|
3359
|
+
* </li>
|
|
3360
|
+
* <li>
|
|
3361
|
+
* <p>
|
|
3362
|
+
* <code>NONE</code> – Take no action but return detection information in the trace
|
|
3363
|
+
* response.</p>
|
|
3364
|
+
* </li>
|
|
3365
|
+
* </ul>
|
|
3366
|
+
* @public
|
|
3367
|
+
*/
|
|
3368
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
3369
|
+
/**
|
|
3370
|
+
* <p>Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't
|
|
3371
|
+
* charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
3372
|
+
* @public
|
|
3373
|
+
*/
|
|
3374
|
+
inputEnabled?: boolean | undefined;
|
|
3375
|
+
/**
|
|
3376
|
+
* <p>Indicates whether guardrail evaluation is enabled on the output. When disabled, you
|
|
3377
|
+
* aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
3378
|
+
* @public
|
|
3379
|
+
*/
|
|
3380
|
+
outputEnabled?: boolean | undefined;
|
|
2716
3381
|
}
|
|
2717
3382
|
/**
|
|
2718
3383
|
* <p>Contains details about the word policy configured for the guardrail.</p>
|
|
@@ -7380,6 +8045,14 @@ export declare const GuardrailContentFilterConfigFilterSensitiveLog: (obj: Guard
|
|
|
7380
8045
|
* @internal
|
|
7381
8046
|
*/
|
|
7382
8047
|
export declare const GuardrailContentPolicyConfigFilterSensitiveLog: (obj: GuardrailContentPolicyConfig) => any;
|
|
8048
|
+
/**
|
|
8049
|
+
* @internal
|
|
8050
|
+
*/
|
|
8051
|
+
export declare const GuardrailContextualGroundingFilterConfigFilterSensitiveLog: (obj: GuardrailContextualGroundingFilterConfig) => any;
|
|
8052
|
+
/**
|
|
8053
|
+
* @internal
|
|
8054
|
+
*/
|
|
8055
|
+
export declare const GuardrailContextualGroundingPolicyConfigFilterSensitiveLog: (obj: GuardrailContextualGroundingPolicyConfig) => any;
|
|
7383
8056
|
/**
|
|
7384
8057
|
* @internal
|
|
7385
8058
|
*/
|
|
@@ -7388,6 +8061,18 @@ export declare const GuardrailTopicConfigFilterSensitiveLog: (obj: GuardrailTopi
|
|
|
7388
8061
|
* @internal
|
|
7389
8062
|
*/
|
|
7390
8063
|
export declare const GuardrailTopicPolicyConfigFilterSensitiveLog: (obj: GuardrailTopicPolicyConfig) => any;
|
|
8064
|
+
/**
|
|
8065
|
+
* @internal
|
|
8066
|
+
*/
|
|
8067
|
+
export declare const GuardrailManagedWordsConfigFilterSensitiveLog: (obj: GuardrailManagedWordsConfig) => any;
|
|
8068
|
+
/**
|
|
8069
|
+
* @internal
|
|
8070
|
+
*/
|
|
8071
|
+
export declare const GuardrailWordConfigFilterSensitiveLog: (obj: GuardrailWordConfig) => any;
|
|
8072
|
+
/**
|
|
8073
|
+
* @internal
|
|
8074
|
+
*/
|
|
8075
|
+
export declare const GuardrailWordPolicyConfigFilterSensitiveLog: (obj: GuardrailWordPolicyConfig) => any;
|
|
7391
8076
|
/**
|
|
7392
8077
|
* @internal
|
|
7393
8078
|
*/
|
|
@@ -7404,6 +8089,14 @@ export declare const GuardrailContentFilterFilterSensitiveLog: (obj: GuardrailCo
|
|
|
7404
8089
|
* @internal
|
|
7405
8090
|
*/
|
|
7406
8091
|
export declare const GuardrailContentPolicyFilterSensitiveLog: (obj: GuardrailContentPolicy) => any;
|
|
8092
|
+
/**
|
|
8093
|
+
* @internal
|
|
8094
|
+
*/
|
|
8095
|
+
export declare const GuardrailContextualGroundingFilterFilterSensitiveLog: (obj: GuardrailContextualGroundingFilter) => any;
|
|
8096
|
+
/**
|
|
8097
|
+
* @internal
|
|
8098
|
+
*/
|
|
8099
|
+
export declare const GuardrailContextualGroundingPolicyFilterSensitiveLog: (obj: GuardrailContextualGroundingPolicy) => any;
|
|
7407
8100
|
/**
|
|
7408
8101
|
* @internal
|
|
7409
8102
|
*/
|
|
@@ -7412,6 +8105,18 @@ export declare const GuardrailTopicFilterSensitiveLog: (obj: GuardrailTopic) =>
|
|
|
7412
8105
|
* @internal
|
|
7413
8106
|
*/
|
|
7414
8107
|
export declare const GuardrailTopicPolicyFilterSensitiveLog: (obj: GuardrailTopicPolicy) => any;
|
|
8108
|
+
/**
|
|
8109
|
+
* @internal
|
|
8110
|
+
*/
|
|
8111
|
+
export declare const GuardrailManagedWordsFilterSensitiveLog: (obj: GuardrailManagedWords) => any;
|
|
8112
|
+
/**
|
|
8113
|
+
* @internal
|
|
8114
|
+
*/
|
|
8115
|
+
export declare const GuardrailWordFilterSensitiveLog: (obj: GuardrailWord) => any;
|
|
8116
|
+
/**
|
|
8117
|
+
* @internal
|
|
8118
|
+
*/
|
|
8119
|
+
export declare const GuardrailWordPolicyFilterSensitiveLog: (obj: GuardrailWordPolicy) => any;
|
|
7415
8120
|
/**
|
|
7416
8121
|
* @internal
|
|
7417
8122
|
*/
|