123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- {
- "version": "2.0",
- "metadata": {
- "apiVersion": "2023-09-30",
- "endpointPrefix": "bedrock-runtime",
- "jsonVersion": "1.1",
- "protocol": "rest-json",
- "serviceFullName": "Amazon Bedrock Runtime",
- "serviceId": "Bedrock Runtime",
- "signatureVersion": "v4",
- "signingName": "bedrock",
- "uid": "bedrock-runtime-2023-09-30"
- },
- "operations": {
- "InvokeModel": {
- "http": {
- "requestUri": "/model/{modelId}/invoke",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "body",
- "modelId"
- ],
- "members": {
- "body": {
- "shape": "S2"
- },
- "contentType": {
- "location": "header",
- "locationName": "Content-Type"
- },
- "accept": {
- "location": "header",
- "locationName": "Accept"
- },
- "modelId": {
- "location": "uri",
- "locationName": "modelId"
- },
- "trace": {
- "location": "header",
- "locationName": "X-Amzn-Bedrock-Trace"
- },
- "guardrailIdentifier": {
- "location": "header",
- "locationName": "X-Amzn-Bedrock-GuardrailIdentifier"
- },
- "guardrailVersion": {
- "location": "header",
- "locationName": "X-Amzn-Bedrock-GuardrailVersion"
- }
- },
- "payload": "body"
- },
- "output": {
- "type": "structure",
- "required": [
- "body",
- "contentType"
- ],
- "members": {
- "body": {
- "shape": "S2"
- },
- "contentType": {
- "location": "header",
- "locationName": "Content-Type"
- }
- },
- "payload": "body"
- }
- },
- "InvokeModelWithResponseStream": {
- "http": {
- "requestUri": "/model/{modelId}/invoke-with-response-stream",
- "responseCode": 200
- },
- "input": {
- "type": "structure",
- "required": [
- "body",
- "modelId"
- ],
- "members": {
- "body": {
- "shape": "S2"
- },
- "contentType": {
- "location": "header",
- "locationName": "Content-Type"
- },
- "accept": {
- "location": "header",
- "locationName": "X-Amzn-Bedrock-Accept"
- },
- "modelId": {
- "location": "uri",
- "locationName": "modelId"
- },
- "trace": {
- "location": "header",
- "locationName": "X-Amzn-Bedrock-Trace"
- },
- "guardrailIdentifier": {
- "location": "header",
- "locationName": "X-Amzn-Bedrock-GuardrailIdentifier"
- },
- "guardrailVersion": {
- "location": "header",
- "locationName": "X-Amzn-Bedrock-GuardrailVersion"
- }
- },
- "payload": "body"
- },
- "output": {
- "type": "structure",
- "required": [
- "body",
- "contentType"
- ],
- "members": {
- "body": {
- "type": "structure",
- "members": {
- "chunk": {
- "type": "structure",
- "members": {
- "bytes": {
- "type": "blob",
- "sensitive": true
- }
- },
- "event": true,
- "sensitive": true
- },
- "internalServerException": {
- "type": "structure",
- "members": {
- "message": {}
- },
- "error": {
- "httpStatusCode": 500
- },
- "exception": true,
- "fault": true
- },
- "modelStreamErrorException": {
- "type": "structure",
- "members": {
- "message": {},
- "originalStatusCode": {
- "type": "integer"
- },
- "originalMessage": {}
- },
- "error": {
- "httpStatusCode": 424,
- "senderFault": true
- },
- "exception": true
- },
- "validationException": {
- "type": "structure",
- "members": {
- "message": {}
- },
- "error": {
- "httpStatusCode": 400,
- "senderFault": true
- },
- "exception": true
- },
- "throttlingException": {
- "type": "structure",
- "members": {
- "message": {}
- },
- "error": {
- "httpStatusCode": 429,
- "senderFault": true
- },
- "exception": true
- },
- "modelTimeoutException": {
- "type": "structure",
- "members": {
- "message": {}
- },
- "error": {
- "httpStatusCode": 408,
- "senderFault": true
- },
- "exception": true
- }
- },
- "eventstream": true
- },
- "contentType": {
- "location": "header",
- "locationName": "X-Amzn-Bedrock-Content-Type"
- }
- },
- "payload": "body"
- }
- }
- },
- "shapes": {
- "S2": {
- "type": "blob",
- "sensitive": true
- }
- }
- }
|