Skip to content

Commit 311665a

Browse files
author
AWS SDK for Go v2 automation user
committed
Update API model
1 parent 8a56371 commit 311665a

File tree

9 files changed

+4579
-910
lines changed

9 files changed

+4579
-910
lines changed

codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,45 @@
993993
"smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))$"
994994
}
995995
},
996+
"com.amazonaws.bedrockagentruntime#ByteContentBlob": {
997+
"type": "blob",
998+
"traits": {
999+
"smithy.api#length": {
1000+
"min": 1,
1001+
"max": 10485760
1002+
},
1003+
"smithy.api#sensitive": {}
1004+
}
1005+
},
1006+
"com.amazonaws.bedrockagentruntime#ByteContentDoc": {
1007+
"type": "structure",
1008+
"members": {
1009+
"identifier": {
1010+
"target": "com.amazonaws.bedrockagentruntime#Identifier",
1011+
"traits": {
1012+
"smithy.api#documentation": "<p>The file name of the document contained in the wrapper object.</p>",
1013+
"smithy.api#required": {}
1014+
}
1015+
},
1016+
"contentType": {
1017+
"target": "com.amazonaws.bedrockagentruntime#ContentType",
1018+
"traits": {
1019+
"smithy.api#documentation": "<p>The MIME type of the document contained in the wrapper object.</p>",
1020+
"smithy.api#required": {}
1021+
}
1022+
},
1023+
"data": {
1024+
"target": "com.amazonaws.bedrockagentruntime#ByteContentBlob",
1025+
"traits": {
1026+
"smithy.api#documentation": "<p>The byte value of the file to upload, encoded as a Base-64 string.</p>",
1027+
"smithy.api#required": {}
1028+
}
1029+
}
1030+
},
1031+
"traits": {
1032+
"smithy.api#documentation": "<p>This property contains the document to chat with, along with its attributes.</p>"
1033+
}
1034+
},
9961035
"com.amazonaws.bedrockagentruntime#Citation": {
9971036
"type": "structure",
9981037
"members": {
@@ -1055,6 +1094,12 @@
10551094
"target": "com.amazonaws.bedrockagentruntime#Parameters"
10561095
}
10571096
},
1097+
"com.amazonaws.bedrockagentruntime#ContentType": {
1098+
"type": "string",
1099+
"traits": {
1100+
"smithy.api#pattern": "[a-z]{1,20}/.{1,20}"
1101+
}
1102+
},
10581103
"com.amazonaws.bedrockagentruntime#CreationMode": {
10591104
"type": "enum",
10601105
"members": {
@@ -1091,6 +1136,104 @@
10911136
"smithy.api#httpError": 424
10921137
}
10931138
},
1139+
"com.amazonaws.bedrockagentruntime#ExternalSource": {
1140+
"type": "structure",
1141+
"members": {
1142+
"sourceType": {
1143+
"target": "com.amazonaws.bedrockagentruntime#ExternalSourceType",
1144+
"traits": {
1145+
"smithy.api#documentation": "<p>The source type of the external source wrapper object.</p>",
1146+
"smithy.api#required": {}
1147+
}
1148+
},
1149+
"s3Location": {
1150+
"target": "com.amazonaws.bedrockagentruntime#S3ObjectDoc",
1151+
"traits": {
1152+
"smithy.api#documentation": "<p>The S3 location of the external source wrapper object.</p>"
1153+
}
1154+
},
1155+
"byteContent": {
1156+
"target": "com.amazonaws.bedrockagentruntime#ByteContentDoc",
1157+
"traits": {
1158+
"smithy.api#documentation": "<p>The identifier, contentType, and data of the external source wrapper object.</p>"
1159+
}
1160+
}
1161+
},
1162+
"traits": {
1163+
"smithy.api#documentation": "<p>The unique external source of the content contained in the wrapper object.</p>"
1164+
}
1165+
},
1166+
"com.amazonaws.bedrockagentruntime#ExternalSourceType": {
1167+
"type": "enum",
1168+
"members": {
1169+
"S3": {
1170+
"target": "smithy.api#Unit",
1171+
"traits": {
1172+
"smithy.api#enumValue": "S3"
1173+
}
1174+
},
1175+
"BYTE_CONTENT": {
1176+
"target": "smithy.api#Unit",
1177+
"traits": {
1178+
"smithy.api#enumValue": "BYTE_CONTENT"
1179+
}
1180+
}
1181+
}
1182+
},
1183+
"com.amazonaws.bedrockagentruntime#ExternalSources": {
1184+
"type": "list",
1185+
"member": {
1186+
"target": "com.amazonaws.bedrockagentruntime#ExternalSource"
1187+
},
1188+
"traits": {
1189+
"smithy.api#length": {
1190+
"min": 1,
1191+
"max": 1
1192+
}
1193+
}
1194+
},
1195+
"com.amazonaws.bedrockagentruntime#ExternalSourcesGenerationConfiguration": {
1196+
"type": "structure",
1197+
"members": {
1198+
"promptTemplate": {
1199+
"target": "com.amazonaws.bedrockagentruntime#PromptTemplate",
1200+
"traits": {
1201+
"smithy.api#documentation": "<p>Contain the textPromptTemplate string for the external source wrapper object.</p>"
1202+
}
1203+
}
1204+
},
1205+
"traits": {
1206+
"smithy.api#documentation": "<p>Contains the generation configuration of the external source wrapper object.</p>"
1207+
}
1208+
},
1209+
"com.amazonaws.bedrockagentruntime#ExternalSourcesRetrieveAndGenerateConfiguration": {
1210+
"type": "structure",
1211+
"members": {
1212+
"modelArn": {
1213+
"target": "com.amazonaws.bedrockagentruntime#BedrockModelArn",
1214+
"traits": {
1215+
"smithy.api#documentation": "<p>The modelArn used with the external source wrapper object in the retrieveAndGenerate function.</p>",
1216+
"smithy.api#required": {}
1217+
}
1218+
},
1219+
"sources": {
1220+
"target": "com.amazonaws.bedrockagentruntime#ExternalSources",
1221+
"traits": {
1222+
"smithy.api#documentation": "<p>The document used with the external source wrapper object in the retrieveAndGenerate function.</p>",
1223+
"smithy.api#required": {}
1224+
}
1225+
},
1226+
"generationConfiguration": {
1227+
"target": "com.amazonaws.bedrockagentruntime#ExternalSourcesGenerationConfiguration",
1228+
"traits": {
1229+
"smithy.api#documentation": "<p>The prompt used with the external source wrapper object with the retrieveAndGenerate function.</p>"
1230+
}
1231+
}
1232+
},
1233+
"traits": {
1234+
"smithy.api#documentation": "<p>The configurations of the external source wrapper object in the retrieveAndGenerate function.</p>"
1235+
}
1236+
},
10941237
"com.amazonaws.bedrockagentruntime#FailureReasonString": {
10951238
"type": "string",
10961239
"traits": {
@@ -1298,6 +1441,16 @@
12981441
"smithy.api#documentation": "<p>Contains configurations for response generation based on the knowledge base query results.</p>\n <p>This data type is used in the following API operations:</p>\n <ul>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax\">RetrieveAndGenerate request</a>\n </p>\n </li>\n </ul>"
12991442
}
13001443
},
1444+
"com.amazonaws.bedrockagentruntime#Identifier": {
1445+
"type": "string",
1446+
"traits": {
1447+
"smithy.api#length": {
1448+
"min": 1,
1449+
"max": 1024
1450+
},
1451+
"smithy.api#sensitive": {}
1452+
}
1453+
},
13011454
"com.amazonaws.bedrockagentruntime#InferenceConfiguration": {
13021455
"type": "structure",
13031456
"members": {
@@ -2707,6 +2860,12 @@
27072860
"traits": {
27082861
"smithy.api#documentation": "<p>Contains details about the resource being queried.</p>"
27092862
}
2863+
},
2864+
"externalSourcesConfiguration": {
2865+
"target": "com.amazonaws.bedrockagentruntime#ExternalSourcesRetrieveAndGenerateConfiguration",
2866+
"traits": {
2867+
"smithy.api#documentation": "<p>The configuration used with the external source wrapper object in the retrieveAndGenerate function.</p>"
2868+
}
27102869
}
27112870
},
27122871
"traits": {
@@ -2840,6 +2999,12 @@
28402999
"traits": {
28413000
"smithy.api#enumValue": "KNOWLEDGE_BASE"
28423001
}
3002+
},
3003+
"EXTERNAL_SOURCES": {
3004+
"target": "smithy.api#Unit",
3005+
"traits": {
3006+
"smithy.api#enumValue": "EXTERNAL_SOURCES"
3007+
}
28433008
}
28443009
}
28453010
},
@@ -2972,6 +3137,31 @@
29723137
"smithy.api#sensitive": {}
29733138
}
29743139
},
3140+
"com.amazonaws.bedrockagentruntime#S3ObjectDoc": {
3141+
"type": "structure",
3142+
"members": {
3143+
"uri": {
3144+
"target": "com.amazonaws.bedrockagentruntime#S3Uri",
3145+
"traits": {
3146+
"smithy.api#documentation": "<p>The file location of the S3 wrapper object.</p>",
3147+
"smithy.api#required": {}
3148+
}
3149+
}
3150+
},
3151+
"traits": {
3152+
"smithy.api#documentation": "<p>The unique wrapper object of the document from the S3 location.</p>"
3153+
}
3154+
},
3155+
"com.amazonaws.bedrockagentruntime#S3Uri": {
3156+
"type": "string",
3157+
"traits": {
3158+
"smithy.api#length": {
3159+
"min": 1,
3160+
"max": 1024
3161+
},
3162+
"smithy.api#pattern": "^s3://[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]/.{1,1024}$"
3163+
}
3164+
},
29753165
"com.amazonaws.bedrockagentruntime#SearchType": {
29763166
"type": "enum",
29773167
"members": {

codegen/sdk-codegen/aws-models/bedrock-agent.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,6 +1933,16 @@
19331933
"smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))$"
19341934
}
19351935
},
1936+
"com.amazonaws.bedrockagent#BucketOwnerAccountId": {
1937+
"type": "string",
1938+
"traits": {
1939+
"smithy.api#length": {
1940+
"min": 12,
1941+
"max": 12
1942+
},
1943+
"smithy.api#pattern": "^[0-9]{12}$"
1944+
}
1945+
},
19361946
"com.amazonaws.bedrockagent#ChunkingConfiguration": {
19371947
"type": "structure",
19381948
"members": {
@@ -2451,6 +2461,12 @@
24512461
"smithy.api#required": {}
24522462
}
24532463
},
2464+
"dataDeletionPolicy": {
2465+
"target": "com.amazonaws.bedrockagent#DataDeletionPolicy",
2466+
"traits": {
2467+
"smithy.api#documentation": "<p>The deletion policy for the requested data source</p>"
2468+
}
2469+
},
24542470
"serverSideEncryptionConfiguration": {
24552471
"target": "com.amazonaws.bedrockagent#ServerSideEncryptionConfiguration",
24562472
"traits": {
@@ -2622,6 +2638,23 @@
26222638
}
26232639
}
26242640
},
2641+
"com.amazonaws.bedrockagent#DataDeletionPolicy": {
2642+
"type": "enum",
2643+
"members": {
2644+
"RETAIN": {
2645+
"target": "smithy.api#Unit",
2646+
"traits": {
2647+
"smithy.api#enumValue": "RETAIN"
2648+
}
2649+
},
2650+
"DELETE": {
2651+
"target": "smithy.api#Unit",
2652+
"traits": {
2653+
"smithy.api#enumValue": "DELETE"
2654+
}
2655+
}
2656+
}
2657+
},
26252658
"com.amazonaws.bedrockagent#DataSource": {
26262659
"type": "structure",
26272660
"members": {
@@ -2678,6 +2711,12 @@
26782711
"smithy.api#documentation": "<p>Contains details about how to ingest the documents in the data source.</p>"
26792712
}
26802713
},
2714+
"dataDeletionPolicy": {
2715+
"target": "com.amazonaws.bedrockagent#DataDeletionPolicy",
2716+
"traits": {
2717+
"smithy.api#documentation": "<p>The deletion policy for the data source.</p>"
2718+
}
2719+
},
26812720
"createdAt": {
26822721
"target": "com.amazonaws.bedrockagent#DateTimestamp",
26832722
"traits": {
@@ -2691,6 +2730,12 @@
26912730
"smithy.api#documentation": "<p>The time at which the data source was last updated.</p>",
26922731
"smithy.api#required": {}
26932732
}
2733+
},
2734+
"failureReasons": {
2735+
"target": "com.amazonaws.bedrockagent#FailureReasons",
2736+
"traits": {
2737+
"smithy.api#documentation": "<p>The details of the failure reasons related to the data source.</p>"
2738+
}
26942739
}
26952740
},
26962741
"traits": {
@@ -2752,6 +2797,12 @@
27522797
"traits": {
27532798
"smithy.api#enumValue": "DELETING"
27542799
}
2800+
},
2801+
"DELETE_UNSUCCESSFUL": {
2802+
"target": "smithy.api#Unit",
2803+
"traits": {
2804+
"smithy.api#enumValue": "DELETE_UNSUCCESSFUL"
2805+
}
27552806
}
27562807
}
27572808
},
@@ -4847,6 +4898,12 @@
48474898
"traits": {
48484899
"smithy.api#enumValue": "FAILED"
48494900
}
4901+
},
4902+
"DELETE_UNSUCCESSFUL": {
4903+
"target": "smithy.api#Unit",
4904+
"traits": {
4905+
"smithy.api#enumValue": "DELETE_UNSUCCESSFUL"
4906+
}
48504907
}
48514908
}
48524909
},
@@ -6499,6 +6556,12 @@
64996556
"traits": {
65006557
"smithy.api#documentation": "<p>A list of S3 prefixes that define the object containing the data sources. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html\">Organizing objects using prefixes</a>.</p>"
65016558
}
6559+
},
6560+
"bucketOwnerAccountId": {
6561+
"target": "com.amazonaws.bedrockagent#BucketOwnerAccountId",
6562+
"traits": {
6563+
"smithy.api#documentation": "<p>The account ID for the owner of the S3 bucket.</p>"
6564+
}
65026565
}
65036566
},
65046567
"traits": {
@@ -7578,6 +7641,12 @@
75787641
"smithy.api#required": {}
75797642
}
75807643
},
7644+
"dataDeletionPolicy": {
7645+
"target": "com.amazonaws.bedrockagent#DataDeletionPolicy",
7646+
"traits": {
7647+
"smithy.api#documentation": "<p>The data deletion policy of the updated data source.</p>"
7648+
}
7649+
},
75817650
"serverSideEncryptionConfiguration": {
75827651
"target": "com.amazonaws.bedrockagent#ServerSideEncryptionConfiguration",
75837652
"traits": {

0 commit comments

Comments
 (0)