Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Apr 23, 2024
1 parent 8a56371 commit 311665a
Show file tree
Hide file tree
Showing 9 changed files with 4,579 additions and 910 deletions.
190 changes: 190 additions & 0 deletions codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,45 @@
"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}))$"
}
},
"com.amazonaws.bedrockagentruntime#ByteContentBlob": {
"type": "blob",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 10485760
},
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagentruntime#ByteContentDoc": {
"type": "structure",
"members": {
"identifier": {
"target": "com.amazonaws.bedrockagentruntime#Identifier",
"traits": {
"smithy.api#documentation": "<p>The file name of the document contained in the wrapper object.</p>",
"smithy.api#required": {}
}
},
"contentType": {
"target": "com.amazonaws.bedrockagentruntime#ContentType",
"traits": {
"smithy.api#documentation": "<p>The MIME type of the document contained in the wrapper object.</p>",
"smithy.api#required": {}
}
},
"data": {
"target": "com.amazonaws.bedrockagentruntime#ByteContentBlob",
"traits": {
"smithy.api#documentation": "<p>The byte value of the file to upload, encoded as a Base-64 string.</p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>This property contains the document to chat with, along with its attributes.</p>"
}
},
"com.amazonaws.bedrockagentruntime#Citation": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -1055,6 +1094,12 @@
"target": "com.amazonaws.bedrockagentruntime#Parameters"
}
},
"com.amazonaws.bedrockagentruntime#ContentType": {
"type": "string",
"traits": {
"smithy.api#pattern": "[a-z]{1,20}/.{1,20}"
}
},
"com.amazonaws.bedrockagentruntime#CreationMode": {
"type": "enum",
"members": {
Expand Down Expand Up @@ -1091,6 +1136,104 @@
"smithy.api#httpError": 424
}
},
"com.amazonaws.bedrockagentruntime#ExternalSource": {
"type": "structure",
"members": {
"sourceType": {
"target": "com.amazonaws.bedrockagentruntime#ExternalSourceType",
"traits": {
"smithy.api#documentation": "<p>The source type of the external source wrapper object.</p>",
"smithy.api#required": {}
}
},
"s3Location": {
"target": "com.amazonaws.bedrockagentruntime#S3ObjectDoc",
"traits": {
"smithy.api#documentation": "<p>The S3 location of the external source wrapper object.</p>"
}
},
"byteContent": {
"target": "com.amazonaws.bedrockagentruntime#ByteContentDoc",
"traits": {
"smithy.api#documentation": "<p>The identifier, contentType, and data of the external source wrapper object.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The unique external source of the content contained in the wrapper object.</p>"
}
},
"com.amazonaws.bedrockagentruntime#ExternalSourceType": {
"type": "enum",
"members": {
"S3": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "S3"
}
},
"BYTE_CONTENT": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "BYTE_CONTENT"
}
}
}
},
"com.amazonaws.bedrockagentruntime#ExternalSources": {
"type": "list",
"member": {
"target": "com.amazonaws.bedrockagentruntime#ExternalSource"
},
"traits": {
"smithy.api#length": {
"min": 1,
"max": 1
}
}
},
"com.amazonaws.bedrockagentruntime#ExternalSourcesGenerationConfiguration": {
"type": "structure",
"members": {
"promptTemplate": {
"target": "com.amazonaws.bedrockagentruntime#PromptTemplate",
"traits": {
"smithy.api#documentation": "<p>Contain the textPromptTemplate string for the external source wrapper object.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Contains the generation configuration of the external source wrapper object.</p>"
}
},
"com.amazonaws.bedrockagentruntime#ExternalSourcesRetrieveAndGenerateConfiguration": {
"type": "structure",
"members": {
"modelArn": {
"target": "com.amazonaws.bedrockagentruntime#BedrockModelArn",
"traits": {
"smithy.api#documentation": "<p>The modelArn used with the external source wrapper object in the retrieveAndGenerate function.</p>",
"smithy.api#required": {}
}
},
"sources": {
"target": "com.amazonaws.bedrockagentruntime#ExternalSources",
"traits": {
"smithy.api#documentation": "<p>The document used with the external source wrapper object in the retrieveAndGenerate function.</p>",
"smithy.api#required": {}
}
},
"generationConfiguration": {
"target": "com.amazonaws.bedrockagentruntime#ExternalSourcesGenerationConfiguration",
"traits": {
"smithy.api#documentation": "<p>The prompt used with the external source wrapper object with the retrieveAndGenerate function.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The configurations of the external source wrapper object in the retrieveAndGenerate function.</p>"
}
},
"com.amazonaws.bedrockagentruntime#FailureReasonString": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -1298,6 +1441,16 @@
"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>"
}
},
"com.amazonaws.bedrockagentruntime#Identifier": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 1024
},
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagentruntime#InferenceConfiguration": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2707,6 +2860,12 @@
"traits": {
"smithy.api#documentation": "<p>Contains details about the resource being queried.</p>"
}
},
"externalSourcesConfiguration": {
"target": "com.amazonaws.bedrockagentruntime#ExternalSourcesRetrieveAndGenerateConfiguration",
"traits": {
"smithy.api#documentation": "<p>The configuration used with the external source wrapper object in the retrieveAndGenerate function.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2840,6 +2999,12 @@
"traits": {
"smithy.api#enumValue": "KNOWLEDGE_BASE"
}
},
"EXTERNAL_SOURCES": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "EXTERNAL_SOURCES"
}
}
}
},
Expand Down Expand Up @@ -2972,6 +3137,31 @@
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagentruntime#S3ObjectDoc": {
"type": "structure",
"members": {
"uri": {
"target": "com.amazonaws.bedrockagentruntime#S3Uri",
"traits": {
"smithy.api#documentation": "<p>The file location of the S3 wrapper object.</p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>The unique wrapper object of the document from the S3 location.</p>"
}
},
"com.amazonaws.bedrockagentruntime#S3Uri": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 1024
},
"smithy.api#pattern": "^s3://[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]/.{1,1024}$"
}
},
"com.amazonaws.bedrockagentruntime#SearchType": {
"type": "enum",
"members": {
Expand Down
69 changes: 69 additions & 0 deletions codegen/sdk-codegen/aws-models/bedrock-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -1933,6 +1933,16 @@
"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}))$"
}
},
"com.amazonaws.bedrockagent#BucketOwnerAccountId": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 12,
"max": 12
},
"smithy.api#pattern": "^[0-9]{12}$"
}
},
"com.amazonaws.bedrockagent#ChunkingConfiguration": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2451,6 +2461,12 @@
"smithy.api#required": {}
}
},
"dataDeletionPolicy": {
"target": "com.amazonaws.bedrockagent#DataDeletionPolicy",
"traits": {
"smithy.api#documentation": "<p>The deletion policy for the requested data source</p>"
}
},
"serverSideEncryptionConfiguration": {
"target": "com.amazonaws.bedrockagent#ServerSideEncryptionConfiguration",
"traits": {
Expand Down Expand Up @@ -2622,6 +2638,23 @@
}
}
},
"com.amazonaws.bedrockagent#DataDeletionPolicy": {
"type": "enum",
"members": {
"RETAIN": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "RETAIN"
}
},
"DELETE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DELETE"
}
}
}
},
"com.amazonaws.bedrockagent#DataSource": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2678,6 +2711,12 @@
"smithy.api#documentation": "<p>Contains details about how to ingest the documents in the data source.</p>"
}
},
"dataDeletionPolicy": {
"target": "com.amazonaws.bedrockagent#DataDeletionPolicy",
"traits": {
"smithy.api#documentation": "<p>The deletion policy for the data source.</p>"
}
},
"createdAt": {
"target": "com.amazonaws.bedrockagent#DateTimestamp",
"traits": {
Expand All @@ -2691,6 +2730,12 @@
"smithy.api#documentation": "<p>The time at which the data source was last updated.</p>",
"smithy.api#required": {}
}
},
"failureReasons": {
"target": "com.amazonaws.bedrockagent#FailureReasons",
"traits": {
"smithy.api#documentation": "<p>The details of the failure reasons related to the data source.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2752,6 +2797,12 @@
"traits": {
"smithy.api#enumValue": "DELETING"
}
},
"DELETE_UNSUCCESSFUL": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DELETE_UNSUCCESSFUL"
}
}
}
},
Expand Down Expand Up @@ -4847,6 +4898,12 @@
"traits": {
"smithy.api#enumValue": "FAILED"
}
},
"DELETE_UNSUCCESSFUL": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DELETE_UNSUCCESSFUL"
}
}
}
},
Expand Down Expand Up @@ -6499,6 +6556,12 @@
"traits": {
"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>"
}
},
"bucketOwnerAccountId": {
"target": "com.amazonaws.bedrockagent#BucketOwnerAccountId",
"traits": {
"smithy.api#documentation": "<p>The account ID for the owner of the S3 bucket.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -7578,6 +7641,12 @@
"smithy.api#required": {}
}
},
"dataDeletionPolicy": {
"target": "com.amazonaws.bedrockagent#DataDeletionPolicy",
"traits": {
"smithy.api#documentation": "<p>The data deletion policy of the updated data source.</p>"
}
},
"serverSideEncryptionConfiguration": {
"target": "com.amazonaws.bedrockagent#ServerSideEncryptionConfiguration",
"traits": {
Expand Down
Loading

0 comments on commit 311665a

Please sign in to comment.