Skip to content

Commit f2b3762

Browse files
Updated API models and rebuilt service gems.
1 parent 5b0d758 commit f2b3762

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1900
-515
lines changed

apis/bedrock-agent-runtime/2023-07-26/api-2.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@
548548
"ActionGroupInvocationOutput":{
549549
"type":"structure",
550550
"members":{
551+
"metadata":{"shape":"Metadata"},
551552
"text":{"shape":"ActionGroupOutputString"}
552553
}
553554
},
@@ -666,6 +667,7 @@
666667
"members":{
667668
"agentCollaboratorAliasArn":{"shape":"AgentAliasArn"},
668669
"agentCollaboratorName":{"shape":"String"},
670+
"metadata":{"shape":"Metadata"},
669671
"output":{"shape":"AgentCollaboratorOutputPayload"}
670672
}
671673
},
@@ -928,7 +930,8 @@
928930
"executionError":{"shape":"String"},
929931
"executionOutput":{"shape":"String"},
930932
"executionTimeout":{"shape":"Boolean"},
931-
"files":{"shape":"Files"}
933+
"files":{"shape":"Files"},
934+
"metadata":{"shape":"Metadata"}
932935
}
933936
},
934937
"CollaborationInstruction":{
@@ -1276,7 +1279,9 @@
12761279
"FailureTrace":{
12771280
"type":"structure",
12781281
"members":{
1282+
"failureCode":{"shape":"Integer"},
12791283
"failureReason":{"shape":"FailureReasonString"},
1284+
"metadata":{"shape":"Metadata"},
12801285
"traceId":{"shape":"TraceId"}
12811286
},
12821287
"sensitive":true
@@ -1365,6 +1370,7 @@
13651370
"FinalResponse":{
13661371
"type":"structure",
13671372
"members":{
1373+
"metadata":{"shape":"Metadata"},
13681374
"text":{"shape":"FinalResponseString"}
13691375
}
13701376
},
@@ -2131,6 +2137,7 @@
21312137
"members":{
21322138
"action":{"shape":"GuardrailAction"},
21332139
"inputAssessments":{"shape":"GuardrailAssessmentList"},
2140+
"metadata":{"shape":"Metadata"},
21342141
"outputAssessments":{"shape":"GuardrailAssessmentList"},
21352142
"traceId":{"shape":"TraceId"}
21362143
},
@@ -2711,6 +2718,7 @@
27112718
"KnowledgeBaseLookupOutput":{
27122719
"type":"structure",
27132720
"members":{
2721+
"metadata":{"shape":"Metadata"},
27142722
"retrievedReferences":{"shape":"RetrievedReferences"}
27152723
}
27162724
},
@@ -2892,6 +2900,10 @@
28922900
"tags":{"shape":"TagsMap"}
28932901
}
28942902
},
2903+
"Long":{
2904+
"type":"long",
2905+
"box":true
2906+
},
28952907
"MaxResults":{
28962908
"type":"integer",
28972909
"box":true,
@@ -2959,6 +2971,11 @@
29592971
"Metadata":{
29602972
"type":"structure",
29612973
"members":{
2974+
"clientRequestId":{"shape":"String"},
2975+
"endTime":{"shape":"SyntheticTimestamp_date_time"},
2976+
"operationTotalTimeMs":{"shape":"Long"},
2977+
"startTime":{"shape":"SyntheticTimestamp_date_time"},
2978+
"totalTimeMs":{"shape":"Long"},
29622979
"usage":{"shape":"Usage"}
29632980
},
29642981
"sensitive":true

apis/bedrock-agent-runtime/2023-07-26/docs-2.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,7 @@
14961496
"base": null,
14971497
"refs": {
14981498
"ApiResult$httpStatusCode": "<p>http status code from API execution response (for example: 200, 400, 500).</p>",
1499+
"FailureTrace$failureCode": "<p>The failure code for the trace.</p>",
14991500
"Usage$inputTokens": "<p>Contains information about the input tokens from the foundation model usage.</p>",
15001501
"Usage$outputTokens": "<p>Contains information about the output tokens from the foundation model usage.</p>"
15011502
}
@@ -1796,6 +1797,13 @@
17961797
"refs": {
17971798
}
17981799
},
1800+
"Long": {
1801+
"base": null,
1802+
"refs": {
1803+
"Metadata$operationTotalTimeMs": "<p>The total time it took for the agent to complete execution. This field is only set for the final response.</p>",
1804+
"Metadata$totalTimeMs": "<p> The total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter). It represents how long the individual invocation took.</p>"
1805+
}
1806+
},
17991807
"MaxResults": {
18001808
"base": "<p>Max Results.</p>",
18011809
"refs": {
@@ -1864,8 +1872,15 @@
18641872
}
18651873
},
18661874
"Metadata": {
1867-
"base": "<p>Provides details of the foundation model.</p>",
1868-
"refs": {
1875+
"base": "<p>Provides information about the execution process for different types of invocations, such as model invocation, knowledge base invocation, agent collaborator invocation, guardrail invocation, and code interpreter Invocation.</p>",
1876+
"refs": {
1877+
"ActionGroupInvocationOutput$metadata": "<p>Contains information about the action group output.</p>",
1878+
"AgentCollaboratorInvocationOutput$metadata": "<p>Contains information about the output from the agent collaborator.</p>",
1879+
"CodeInterpreterInvocationOutput$metadata": "<p>Contains information about the output from the code interpreter.</p>",
1880+
"FailureTrace$metadata": "<p>Information about the failure that occurred.</p>",
1881+
"FinalResponse$metadata": "<p>Contains information about the invoke agent operation.</p>",
1882+
"GuardrailTrace$metadata": "<p>Contains information about the Guardrail output.</p>",
1883+
"KnowledgeBaseLookupOutput$metadata": "<p>Contains information about the knowledge base output.</p>",
18691884
"OrchestrationModelInvocationOutput$metadata": "<p>Contains information about the foundation model output from the orchestration step.</p>",
18701885
"PostProcessingModelInvocationOutput$metadata": "<p> Contains information about the foundation model output from the post-processing step. </p>",
18711886
"PreProcessingModelInvocationOutput$metadata": "<p> Contains information about the foundation model output from the pre-processing step. </p>",
@@ -3075,6 +3090,7 @@
30753090
"InlineSessionState$invocationId": "<p> The identifier of the invocation of an action. This value must match the <code>invocationId</code> returned in the <code>InvokeInlineAgent</code> response for the action whose results are provided in the <code>returnControlInvocationResults</code> field. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html\">Return control to the agent developer</a>. </p>",
30763091
"InputFile$name": "<p>The name of the source file.</p>",
30773092
"InternalServerException$reason": "<p>The reason for the exception. If the reason is <code>BEDROCK_MODEL_INVOCATION_SERVICE_UNAVAILABLE</code>, the model invocation service is unavailable. Retry your request.</p>",
3093+
"Metadata$clientRequestId": "<p>A unique identifier associated with the downstream invocation. This ID can be used for tracing, debugging, and identifying specific invocations in customer logs or systems.</p>",
30783094
"OutputFile$name": "<p>The name of the file containing response from code interpreter.</p>",
30793095
"Parameter$name": "<p>The name of the parameter.</p>",
30803096
"Parameter$type": "<p>The type of the parameter.</p>",
@@ -3119,6 +3135,8 @@
31193135
"base": null,
31203136
"refs": {
31213137
"InlineAgentTracePart$eventTime": "<p>The time that trace occurred. </p>",
3138+
"Metadata$endTime": "<p>In the final response, <code>endTime</code> is the end time time of the agent invocation operation.</p>",
3139+
"Metadata$startTime": "<p>In the final response, <code>startTime</code> is the start time of the agent invocation operation.</p>",
31223140
"TracePart$eventTime": "<p> The time of the trace. </p>"
31233141
}
31243142
},
@@ -3316,7 +3334,7 @@
33163334
"Usage": {
33173335
"base": "<p>Contains information of the usage of the foundation model.</p>",
33183336
"refs": {
3319-
"Metadata$usage": "<p>Contains details of the foundation model usage.</p>"
3337+
"Metadata$usage": "<p>Specific to model invocation and contains details about the usage of a foundation model.</p>"
33203338
}
33213339
},
33223340
"Uuid": {

apis/bedrock/2023-04-20/api-2.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,7 @@
13371337
"wordPolicyConfig":{"shape":"GuardrailWordPolicyConfig"},
13381338
"sensitiveInformationPolicyConfig":{"shape":"GuardrailSensitiveInformationPolicyConfig"},
13391339
"contextualGroundingPolicyConfig":{"shape":"GuardrailContextualGroundingPolicyConfig"},
1340+
"crossRegionConfig":{"shape":"GuardrailCrossRegionConfig"},
13401341
"blockedInputMessaging":{"shape":"GuardrailBlockedMessaging"},
13411342
"blockedOutputsMessaging":{"shape":"GuardrailBlockedMessaging"},
13421343
"kmsKeyId":{"shape":"KmsKeyId"},
@@ -2520,6 +2521,7 @@
25202521
"wordPolicy":{"shape":"GuardrailWordPolicy"},
25212522
"sensitiveInformationPolicy":{"shape":"GuardrailSensitiveInformationPolicy"},
25222523
"contextualGroundingPolicy":{"shape":"GuardrailContextualGroundingPolicy"},
2524+
"crossRegionDetails":{"shape":"GuardrailCrossRegionDetails"},
25232525
"createdAt":{"shape":"Timestamp"},
25242526
"updatedAt":{"shape":"Timestamp"},
25252527
"statusReasons":{"shape":"GuardrailStatusReasons"},
@@ -3037,6 +3039,38 @@
30373039
"filtersConfig":{"shape":"GuardrailContextualGroundingFiltersConfig"}
30383040
}
30393041
},
3042+
"GuardrailCrossRegionConfig":{
3043+
"type":"structure",
3044+
"required":["guardrailProfileIdentifier"],
3045+
"members":{
3046+
"guardrailProfileIdentifier":{"shape":"GuardrailCrossRegionGuardrailProfileIdentifier"}
3047+
}
3048+
},
3049+
"GuardrailCrossRegionDetails":{
3050+
"type":"structure",
3051+
"members":{
3052+
"guardrailProfileId":{"shape":"GuardrailCrossRegionGuardrailProfileId"},
3053+
"guardrailProfileArn":{"shape":"GuardrailCrossRegionGuardrailProfileArn"}
3054+
}
3055+
},
3056+
"GuardrailCrossRegionGuardrailProfileArn":{
3057+
"type":"string",
3058+
"max":2048,
3059+
"min":20,
3060+
"pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail-profile/[a-z0-9-]+[.]{1}guardrail[.]{1}v[0-9:]+"
3061+
},
3062+
"GuardrailCrossRegionGuardrailProfileId":{
3063+
"type":"string",
3064+
"max":30,
3065+
"min":15,
3066+
"pattern":"[a-z0-9-]+[.]{1}guardrail[.]{1}v[0-9:]+"
3067+
},
3068+
"GuardrailCrossRegionGuardrailProfileIdentifier":{
3069+
"type":"string",
3070+
"max":2048,
3071+
"min":15,
3072+
"pattern":"[a-z0-9-]+[.]{1}guardrail[.]{1}v[0-9:]+|arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail-profile/[a-z0-9-]+[.]{1}guardrail[.]{1}v[0-9:]+"
3073+
},
30403074
"GuardrailDescription":{
30413075
"type":"string",
30423076
"max":200,
@@ -3363,7 +3397,8 @@
33633397
"description":{"shape":"GuardrailDescription"},
33643398
"version":{"shape":"GuardrailVersion"},
33653399
"createdAt":{"shape":"Timestamp"},
3366-
"updatedAt":{"shape":"Timestamp"}
3400+
"updatedAt":{"shape":"Timestamp"},
3401+
"crossRegionDetails":{"shape":"GuardrailCrossRegionDetails"}
33673402
}
33683403
},
33693404
"GuardrailTopic":{
@@ -5637,6 +5672,7 @@
56375672
"wordPolicyConfig":{"shape":"GuardrailWordPolicyConfig"},
56385673
"sensitiveInformationPolicyConfig":{"shape":"GuardrailSensitiveInformationPolicyConfig"},
56395674
"contextualGroundingPolicyConfig":{"shape":"GuardrailContextualGroundingPolicyConfig"},
5675+
"crossRegionConfig":{"shape":"GuardrailCrossRegionConfig"},
56405676
"blockedInputMessaging":{"shape":"GuardrailBlockedMessaging"},
56415677
"blockedOutputsMessaging":{"shape":"GuardrailBlockedMessaging"},
56425678
"kmsKeyId":{"shape":"KmsKeyId"}

apis/bedrock/2023-04-20/docs-2.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,38 @@
13541354
"UpdateGuardrailRequest$contextualGroundingPolicyConfig": "<p>The contextual grounding policy configuration used to update a guardrail.</p>"
13551355
}
13561356
},
1357+
"GuardrailCrossRegionConfig": {
1358+
"base": "<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>",
1359+
"refs": {
1360+
"CreateGuardrailRequest$crossRegionConfig": "<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.</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>",
1361+
"UpdateGuardrailRequest$crossRegionConfig": "<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.</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>"
1362+
}
1363+
},
1364+
"GuardrailCrossRegionDetails": {
1365+
"base": "<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>",
1366+
"refs": {
1367+
"GetGuardrailResponse$crossRegionDetails": "<p>Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).</p>",
1368+
"GuardrailSummary$crossRegionDetails": "<p>Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).</p>"
1369+
}
1370+
},
1371+
"GuardrailCrossRegionGuardrailProfileArn": {
1372+
"base": null,
1373+
"refs": {
1374+
"GuardrailCrossRegionDetails$guardrailProfileArn": "<p>The Amazon Resource Name (ARN) of the guardrail profile that you're using with your guardrail.</p>"
1375+
}
1376+
},
1377+
"GuardrailCrossRegionGuardrailProfileId": {
1378+
"base": null,
1379+
"refs": {
1380+
"GuardrailCrossRegionDetails$guardrailProfileId": "<p>The ID of the guardrail profile that your guardrail is using. Profile availability depends on your current Amazon Web Services Region. For more information, see the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html\">Amazon Bedrock User Guide</a>.</p>"
1381+
}
1382+
},
1383+
"GuardrailCrossRegionGuardrailProfileIdentifier": {
1384+
"base": null,
1385+
"refs": {
1386+
"GuardrailCrossRegionConfig$guardrailProfileIdentifier": "<p>The ID or Amazon Resource Name (ARN) of the guardrail profile that your guardrail is using. Guardrail profile availability depends on your current Amazon Web Services Region. For more information, see the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html\">Amazon Bedrock User Guide</a>.</p>"
1387+
}
1388+
},
13571389
"GuardrailDescription": {
13581390
"base": null,
13591391
"refs": {

0 commit comments

Comments
 (0)