aws-sdk 2.1657.0 → 2.1658.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.
@@ -12,6 +12,109 @@
12
12
  "uid": "bedrock-runtime-2023-09-30"
13
13
  },
14
14
  "operations": {
15
+ "ApplyGuardrail": {
16
+ "http": {
17
+ "requestUri": "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply",
18
+ "responseCode": 200
19
+ },
20
+ "input": {
21
+ "type": "structure",
22
+ "required": [
23
+ "guardrailIdentifier",
24
+ "guardrailVersion",
25
+ "source",
26
+ "content"
27
+ ],
28
+ "members": {
29
+ "guardrailIdentifier": {
30
+ "location": "uri",
31
+ "locationName": "guardrailIdentifier"
32
+ },
33
+ "guardrailVersion": {
34
+ "location": "uri",
35
+ "locationName": "guardrailVersion"
36
+ },
37
+ "source": {},
38
+ "content": {
39
+ "type": "list",
40
+ "member": {
41
+ "type": "structure",
42
+ "members": {
43
+ "text": {
44
+ "type": "structure",
45
+ "required": [
46
+ "text"
47
+ ],
48
+ "members": {
49
+ "text": {},
50
+ "qualifiers": {
51
+ "type": "list",
52
+ "member": {}
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "union": true
58
+ }
59
+ }
60
+ }
61
+ },
62
+ "output": {
63
+ "type": "structure",
64
+ "required": [
65
+ "usage",
66
+ "action",
67
+ "outputs",
68
+ "assessments"
69
+ ],
70
+ "members": {
71
+ "usage": {
72
+ "type": "structure",
73
+ "required": [
74
+ "topicPolicyUnits",
75
+ "contentPolicyUnits",
76
+ "wordPolicyUnits",
77
+ "sensitiveInformationPolicyUnits",
78
+ "sensitiveInformationPolicyFreeUnits",
79
+ "contextualGroundingPolicyUnits"
80
+ ],
81
+ "members": {
82
+ "topicPolicyUnits": {
83
+ "type": "integer"
84
+ },
85
+ "contentPolicyUnits": {
86
+ "type": "integer"
87
+ },
88
+ "wordPolicyUnits": {
89
+ "type": "integer"
90
+ },
91
+ "sensitiveInformationPolicyUnits": {
92
+ "type": "integer"
93
+ },
94
+ "sensitiveInformationPolicyFreeUnits": {
95
+ "type": "integer"
96
+ },
97
+ "contextualGroundingPolicyUnits": {
98
+ "type": "integer"
99
+ }
100
+ }
101
+ },
102
+ "action": {},
103
+ "outputs": {
104
+ "type": "list",
105
+ "member": {
106
+ "type": "structure",
107
+ "members": {
108
+ "text": {}
109
+ }
110
+ }
111
+ },
112
+ "assessments": {
113
+ "shape": "Sn"
114
+ }
115
+ }
116
+ }
117
+ },
15
118
  "Converse": {
16
119
  "http": {
17
120
  "requestUri": "/model/{modelId}/converse",
@@ -29,16 +132,16 @@
29
132
  "locationName": "modelId"
30
133
  },
31
134
  "messages": {
32
- "shape": "S3"
135
+ "shape": "S1n"
33
136
  },
34
137
  "system": {
35
- "shape": "Ss"
138
+ "shape": "S2d"
36
139
  },
37
140
  "inferenceConfig": {
38
- "shape": "Sv"
141
+ "shape": "S2g"
39
142
  },
40
143
  "toolConfig": {
41
- "shape": "S10"
144
+ "shape": "S2l"
42
145
  },
43
146
  "guardrailConfig": {
44
147
  "type": "structure",
@@ -53,7 +156,7 @@
53
156
  }
54
157
  },
55
158
  "additionalModelRequestFields": {
56
- "shape": "Sl"
159
+ "shape": "S24"
57
160
  },
58
161
  "additionalModelResponseFieldPaths": {
59
162
  "type": "list",
@@ -74,14 +177,14 @@
74
177
  "type": "structure",
75
178
  "members": {
76
179
  "message": {
77
- "shape": "S4"
180
+ "shape": "S1o"
78
181
  }
79
182
  },
80
183
  "union": true
81
184
  },
82
185
  "stopReason": {},
83
186
  "usage": {
84
- "shape": "S1i"
187
+ "shape": "S31"
85
188
  },
86
189
  "metrics": {
87
190
  "type": "structure",
@@ -95,13 +198,13 @@
95
198
  }
96
199
  },
97
200
  "additionalModelResponseFields": {
98
- "shape": "Sl"
201
+ "shape": "S24"
99
202
  },
100
203
  "trace": {
101
204
  "type": "structure",
102
205
  "members": {
103
206
  "guardrail": {
104
- "shape": "S1p"
207
+ "shape": "S38"
105
208
  }
106
209
  }
107
210
  }
@@ -125,16 +228,16 @@
125
228
  "locationName": "modelId"
126
229
  },
127
230
  "messages": {
128
- "shape": "S3"
231
+ "shape": "S1n"
129
232
  },
130
233
  "system": {
131
- "shape": "Ss"
234
+ "shape": "S2d"
132
235
  },
133
236
  "inferenceConfig": {
134
- "shape": "Sv"
237
+ "shape": "S2g"
135
238
  },
136
239
  "toolConfig": {
137
- "shape": "S10"
240
+ "shape": "S2l"
138
241
  },
139
242
  "guardrailConfig": {
140
243
  "type": "structure",
@@ -150,7 +253,7 @@
150
253
  }
151
254
  },
152
255
  "additionalModelRequestFields": {
153
- "shape": "Sl"
256
+ "shape": "S24"
154
257
  },
155
258
  "additionalModelResponseFieldPaths": {
156
259
  "type": "list",
@@ -253,7 +356,7 @@
253
356
  "members": {
254
357
  "stopReason": {},
255
358
  "additionalModelResponseFields": {
256
- "shape": "Sl"
359
+ "shape": "S24"
257
360
  }
258
361
  },
259
362
  "event": true
@@ -266,7 +369,7 @@
266
369
  ],
267
370
  "members": {
268
371
  "usage": {
269
- "shape": "S1i"
372
+ "shape": "S31"
270
373
  },
271
374
  "metrics": {
272
375
  "type": "structure",
@@ -283,7 +386,7 @@
283
386
  "type": "structure",
284
387
  "members": {
285
388
  "guardrail": {
286
- "shape": "S1p"
389
+ "shape": "S38"
287
390
  }
288
391
  }
289
392
  }
@@ -291,16 +394,16 @@
291
394
  "event": true
292
395
  },
293
396
  "internalServerException": {
294
- "shape": "S35"
397
+ "shape": "S3w"
295
398
  },
296
399
  "modelStreamErrorException": {
297
- "shape": "S37"
400
+ "shape": "S3y"
298
401
  },
299
402
  "validationException": {
300
- "shape": "S39"
403
+ "shape": "S40"
301
404
  },
302
405
  "throttlingException": {
303
- "shape": "S3a"
406
+ "shape": "S41"
304
407
  }
305
408
  },
306
409
  "eventstream": true
@@ -322,7 +425,7 @@
322
425
  ],
323
426
  "members": {
324
427
  "body": {
325
- "shape": "S3c"
428
+ "shape": "S43"
326
429
  },
327
430
  "contentType": {
328
431
  "location": "header",
@@ -359,7 +462,7 @@
359
462
  ],
360
463
  "members": {
361
464
  "body": {
362
- "shape": "S3c"
465
+ "shape": "S43"
363
466
  },
364
467
  "contentType": {
365
468
  "location": "header",
@@ -382,7 +485,7 @@
382
485
  ],
383
486
  "members": {
384
487
  "body": {
385
- "shape": "S3c"
488
+ "shape": "S43"
386
489
  },
387
490
  "contentType": {
388
491
  "location": "header",
@@ -433,16 +536,16 @@
433
536
  "sensitive": true
434
537
  },
435
538
  "internalServerException": {
436
- "shape": "S35"
539
+ "shape": "S3w"
437
540
  },
438
541
  "modelStreamErrorException": {
439
- "shape": "S37"
542
+ "shape": "S3y"
440
543
  },
441
544
  "validationException": {
442
- "shape": "S39"
545
+ "shape": "S40"
443
546
  },
444
547
  "throttlingException": {
445
- "shape": "S3a"
548
+ "shape": "S41"
446
549
  },
447
550
  "modelTimeoutException": {
448
551
  "type": "structure",
@@ -468,13 +571,178 @@
468
571
  }
469
572
  },
470
573
  "shapes": {
471
- "S3": {
574
+ "Sn": {
472
575
  "type": "list",
473
576
  "member": {
474
- "shape": "S4"
577
+ "shape": "So"
475
578
  }
476
579
  },
477
- "S4": {
580
+ "So": {
581
+ "type": "structure",
582
+ "members": {
583
+ "topicPolicy": {
584
+ "type": "structure",
585
+ "required": [
586
+ "topics"
587
+ ],
588
+ "members": {
589
+ "topics": {
590
+ "type": "list",
591
+ "member": {
592
+ "type": "structure",
593
+ "required": [
594
+ "name",
595
+ "type",
596
+ "action"
597
+ ],
598
+ "members": {
599
+ "name": {},
600
+ "type": {},
601
+ "action": {}
602
+ }
603
+ }
604
+ }
605
+ }
606
+ },
607
+ "contentPolicy": {
608
+ "type": "structure",
609
+ "required": [
610
+ "filters"
611
+ ],
612
+ "members": {
613
+ "filters": {
614
+ "type": "list",
615
+ "member": {
616
+ "type": "structure",
617
+ "required": [
618
+ "type",
619
+ "confidence",
620
+ "action"
621
+ ],
622
+ "members": {
623
+ "type": {},
624
+ "confidence": {},
625
+ "action": {}
626
+ }
627
+ }
628
+ }
629
+ }
630
+ },
631
+ "wordPolicy": {
632
+ "type": "structure",
633
+ "required": [
634
+ "customWords",
635
+ "managedWordLists"
636
+ ],
637
+ "members": {
638
+ "customWords": {
639
+ "type": "list",
640
+ "member": {
641
+ "type": "structure",
642
+ "required": [
643
+ "match",
644
+ "action"
645
+ ],
646
+ "members": {
647
+ "match": {},
648
+ "action": {}
649
+ }
650
+ }
651
+ },
652
+ "managedWordLists": {
653
+ "type": "list",
654
+ "member": {
655
+ "type": "structure",
656
+ "required": [
657
+ "match",
658
+ "type",
659
+ "action"
660
+ ],
661
+ "members": {
662
+ "match": {},
663
+ "type": {},
664
+ "action": {}
665
+ }
666
+ }
667
+ }
668
+ }
669
+ },
670
+ "sensitiveInformationPolicy": {
671
+ "type": "structure",
672
+ "required": [
673
+ "piiEntities",
674
+ "regexes"
675
+ ],
676
+ "members": {
677
+ "piiEntities": {
678
+ "type": "list",
679
+ "member": {
680
+ "type": "structure",
681
+ "required": [
682
+ "match",
683
+ "type",
684
+ "action"
685
+ ],
686
+ "members": {
687
+ "match": {},
688
+ "type": {},
689
+ "action": {}
690
+ }
691
+ }
692
+ },
693
+ "regexes": {
694
+ "type": "list",
695
+ "member": {
696
+ "type": "structure",
697
+ "required": [
698
+ "action"
699
+ ],
700
+ "members": {
701
+ "name": {},
702
+ "match": {},
703
+ "regex": {},
704
+ "action": {}
705
+ }
706
+ }
707
+ }
708
+ }
709
+ },
710
+ "contextualGroundingPolicy": {
711
+ "type": "structure",
712
+ "members": {
713
+ "filters": {
714
+ "type": "list",
715
+ "member": {
716
+ "type": "structure",
717
+ "required": [
718
+ "type",
719
+ "threshold",
720
+ "score",
721
+ "action"
722
+ ],
723
+ "members": {
724
+ "type": {},
725
+ "threshold": {
726
+ "type": "double"
727
+ },
728
+ "score": {
729
+ "type": "double"
730
+ },
731
+ "action": {}
732
+ }
733
+ }
734
+ }
735
+ }
736
+ }
737
+ }
738
+ },
739
+ "S1n": {
740
+ "type": "list",
741
+ "member": {
742
+ "shape": "S1o"
743
+ }
744
+ },
745
+ "S1o": {
478
746
  "type": "structure",
479
747
  "required": [
480
748
  "role",
@@ -489,10 +757,10 @@
489
757
  "members": {
490
758
  "text": {},
491
759
  "image": {
492
- "shape": "S9"
760
+ "shape": "S1s"
493
761
  },
494
762
  "document": {
495
- "shape": "Sd"
763
+ "shape": "S1w"
496
764
  },
497
765
  "toolUse": {
498
766
  "type": "structure",
@@ -505,7 +773,7 @@
505
773
  "toolUseId": {},
506
774
  "name": {},
507
775
  "input": {
508
- "shape": "Sl"
776
+ "shape": "S24"
509
777
  }
510
778
  }
511
779
  },
@@ -523,14 +791,14 @@
523
791
  "type": "structure",
524
792
  "members": {
525
793
  "json": {
526
- "shape": "Sl"
794
+ "shape": "S24"
527
795
  },
528
796
  "text": {},
529
797
  "image": {
530
- "shape": "S9"
798
+ "shape": "S1s"
531
799
  },
532
800
  "document": {
533
- "shape": "Sd"
801
+ "shape": "S1w"
534
802
  }
535
803
  },
536
804
  "union": true
@@ -540,7 +808,7 @@
540
808
  }
541
809
  },
542
810
  "guardContent": {
543
- "shape": "Sq"
811
+ "shape": "S29"
544
812
  }
545
813
  },
546
814
  "union": true
@@ -548,7 +816,7 @@
548
816
  }
549
817
  }
550
818
  },
551
- "S9": {
819
+ "S1s": {
552
820
  "type": "structure",
553
821
  "required": [
554
822
  "format",
@@ -567,7 +835,7 @@
567
835
  }
568
836
  }
569
837
  },
570
- "Sd": {
838
+ "S1w": {
571
839
  "type": "structure",
572
840
  "required": [
573
841
  "format",
@@ -588,12 +856,12 @@
588
856
  }
589
857
  }
590
858
  },
591
- "Sl": {
859
+ "S24": {
592
860
  "type": "structure",
593
861
  "members": {},
594
862
  "document": true
595
863
  },
596
- "Sq": {
864
+ "S29": {
597
865
  "type": "structure",
598
866
  "members": {
599
867
  "text": {
@@ -602,26 +870,30 @@
602
870
  "text"
603
871
  ],
604
872
  "members": {
605
- "text": {}
873
+ "text": {},
874
+ "qualifiers": {
875
+ "type": "list",
876
+ "member": {}
877
+ }
606
878
  }
607
879
  }
608
880
  },
609
881
  "union": true
610
882
  },
611
- "Ss": {
883
+ "S2d": {
612
884
  "type": "list",
613
885
  "member": {
614
886
  "type": "structure",
615
887
  "members": {
616
888
  "text": {},
617
889
  "guardContent": {
618
- "shape": "Sq"
890
+ "shape": "S29"
619
891
  }
620
892
  },
621
893
  "union": true
622
894
  }
623
895
  },
624
- "Sv": {
896
+ "S2g": {
625
897
  "type": "structure",
626
898
  "members": {
627
899
  "maxTokens": {
@@ -639,7 +911,7 @@
639
911
  }
640
912
  }
641
913
  },
642
- "S10": {
914
+ "S2l": {
643
915
  "type": "structure",
644
916
  "required": [
645
917
  "tools"
@@ -663,7 +935,7 @@
663
935
  "type": "structure",
664
936
  "members": {
665
937
  "json": {
666
- "shape": "Sl"
938
+ "shape": "S24"
667
939
  }
668
940
  },
669
941
  "union": true
@@ -699,7 +971,7 @@
699
971
  }
700
972
  }
701
973
  },
702
- "S1i": {
974
+ "S31": {
703
975
  "type": "structure",
704
976
  "required": [
705
977
  "inputTokens",
@@ -718,7 +990,7 @@
718
990
  }
719
991
  }
720
992
  },
721
- "S1p": {
993
+ "S38": {
722
994
  "type": "structure",
723
995
  "members": {
724
996
  "modelOutput": {
@@ -729,154 +1001,19 @@
729
1001
  "type": "map",
730
1002
  "key": {},
731
1003
  "value": {
732
- "shape": "S1t"
1004
+ "shape": "So"
733
1005
  }
734
1006
  },
735
1007
  "outputAssessments": {
736
1008
  "type": "map",
737
1009
  "key": {},
738
1010
  "value": {
739
- "type": "list",
740
- "member": {
741
- "shape": "S1t"
742
- }
743
- }
744
- }
745
- }
746
- },
747
- "S1t": {
748
- "type": "structure",
749
- "members": {
750
- "topicPolicy": {
751
- "type": "structure",
752
- "required": [
753
- "topics"
754
- ],
755
- "members": {
756
- "topics": {
757
- "type": "list",
758
- "member": {
759
- "type": "structure",
760
- "required": [
761
- "name",
762
- "type",
763
- "action"
764
- ],
765
- "members": {
766
- "name": {},
767
- "type": {},
768
- "action": {}
769
- }
770
- }
771
- }
772
- }
773
- },
774
- "contentPolicy": {
775
- "type": "structure",
776
- "required": [
777
- "filters"
778
- ],
779
- "members": {
780
- "filters": {
781
- "type": "list",
782
- "member": {
783
- "type": "structure",
784
- "required": [
785
- "type",
786
- "confidence",
787
- "action"
788
- ],
789
- "members": {
790
- "type": {},
791
- "confidence": {},
792
- "action": {}
793
- }
794
- }
795
- }
796
- }
797
- },
798
- "wordPolicy": {
799
- "type": "structure",
800
- "required": [
801
- "customWords",
802
- "managedWordLists"
803
- ],
804
- "members": {
805
- "customWords": {
806
- "type": "list",
807
- "member": {
808
- "type": "structure",
809
- "required": [
810
- "match",
811
- "action"
812
- ],
813
- "members": {
814
- "match": {},
815
- "action": {}
816
- }
817
- }
818
- },
819
- "managedWordLists": {
820
- "type": "list",
821
- "member": {
822
- "type": "structure",
823
- "required": [
824
- "match",
825
- "type",
826
- "action"
827
- ],
828
- "members": {
829
- "match": {},
830
- "type": {},
831
- "action": {}
832
- }
833
- }
834
- }
835
- }
836
- },
837
- "sensitiveInformationPolicy": {
838
- "type": "structure",
839
- "required": [
840
- "piiEntities",
841
- "regexes"
842
- ],
843
- "members": {
844
- "piiEntities": {
845
- "type": "list",
846
- "member": {
847
- "type": "structure",
848
- "required": [
849
- "match",
850
- "type",
851
- "action"
852
- ],
853
- "members": {
854
- "match": {},
855
- "type": {},
856
- "action": {}
857
- }
858
- }
859
- },
860
- "regexes": {
861
- "type": "list",
862
- "member": {
863
- "type": "structure",
864
- "required": [
865
- "action"
866
- ],
867
- "members": {
868
- "name": {},
869
- "match": {},
870
- "regex": {},
871
- "action": {}
872
- }
873
- }
874
- }
1011
+ "shape": "Sn"
875
1012
  }
876
1013
  }
877
1014
  }
878
1015
  },
879
- "S35": {
1016
+ "S3w": {
880
1017
  "type": "structure",
881
1018
  "members": {
882
1019
  "message": {}
@@ -887,7 +1024,7 @@
887
1024
  "exception": true,
888
1025
  "fault": true
889
1026
  },
890
- "S37": {
1027
+ "S3y": {
891
1028
  "type": "structure",
892
1029
  "members": {
893
1030
  "message": {},
@@ -902,7 +1039,7 @@
902
1039
  },
903
1040
  "exception": true
904
1041
  },
905
- "S39": {
1042
+ "S40": {
906
1043
  "type": "structure",
907
1044
  "members": {
908
1045
  "message": {}
@@ -913,7 +1050,7 @@
913
1050
  },
914
1051
  "exception": true
915
1052
  },
916
- "S3a": {
1053
+ "S41": {
917
1054
  "type": "structure",
918
1055
  "members": {
919
1056
  "message": {}
@@ -924,7 +1061,7 @@
924
1061
  },
925
1062
  "exception": true
926
1063
  },
927
- "S3c": {
1064
+ "S43": {
928
1065
  "type": "blob",
929
1066
  "sensitive": true
930
1067
  }