generated from camel.apache.org/component
Add component definition: aws-bedrock
This commit is contained in:
parent
5f669a9515
commit
a02599b6e0
437
component.json
Normal file
437
component.json
Normal file
@ -0,0 +1,437 @@
|
|||||||
|
{
|
||||||
|
"component": {
|
||||||
|
"kind": "component",
|
||||||
|
"name": "aws-bedrock",
|
||||||
|
"title": "AWS Bedrock",
|
||||||
|
"description": "Invoke Model of AWS Bedrock service.",
|
||||||
|
"deprecated": false,
|
||||||
|
"firstVersion": "4.5.0",
|
||||||
|
"label": "ai,cloud",
|
||||||
|
"javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockComponent",
|
||||||
|
"supportLevel": "Stable",
|
||||||
|
"groupId": "org.apache.camel",
|
||||||
|
"artifactId": "camel-aws-bedrock",
|
||||||
|
"version": "4.10.2",
|
||||||
|
"scheme": "aws-bedrock",
|
||||||
|
"extendsScheme": "",
|
||||||
|
"syntax": "aws-bedrock:label",
|
||||||
|
"async": false,
|
||||||
|
"api": false,
|
||||||
|
"consumerOnly": false,
|
||||||
|
"producerOnly": true,
|
||||||
|
"lenientProperties": false,
|
||||||
|
"browsable": false,
|
||||||
|
"remote": true
|
||||||
|
},
|
||||||
|
"headers": {
|
||||||
|
"CamelAwsBedrockOperation": {
|
||||||
|
"index": 0,
|
||||||
|
"kind": "header",
|
||||||
|
"displayName": "",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": false,
|
||||||
|
"javaType": "String",
|
||||||
|
"deprecated": false,
|
||||||
|
"deprecationNote": "",
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"description": "The operation we want to perform",
|
||||||
|
"constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#OPERATION"
|
||||||
|
},
|
||||||
|
"CamelAwsBedrockContentType": {
|
||||||
|
"index": 1,
|
||||||
|
"kind": "header",
|
||||||
|
"displayName": "",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": false,
|
||||||
|
"javaType": "String",
|
||||||
|
"deprecated": false,
|
||||||
|
"deprecationNote": "",
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"description": "The model content type",
|
||||||
|
"constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#MODEL_CONTENT_TYPE"
|
||||||
|
},
|
||||||
|
"CamelAwsBedrockAcceptContentType": {
|
||||||
|
"index": 2,
|
||||||
|
"kind": "header",
|
||||||
|
"displayName": "",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": false,
|
||||||
|
"javaType": "String",
|
||||||
|
"deprecated": false,
|
||||||
|
"deprecationNote": "",
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"description": "The model accept content type",
|
||||||
|
"constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#MODEL_ACCEPT_CONTENT_TYPE"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"label": {
|
||||||
|
"index": 0,
|
||||||
|
"kind": "path",
|
||||||
|
"displayName": "Label",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"javaType": "java.lang.String",
|
||||||
|
"deprecated": false,
|
||||||
|
"deprecationNote": "",
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "Logical name"
|
||||||
|
},
|
||||||
|
"modelId": {
|
||||||
|
"index": 1,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Model Id",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"javaType": "java.lang.String",
|
||||||
|
"enum": [
|
||||||
|
"amazon.titan-text-express-v1",
|
||||||
|
"amazon.titan-text-lite-v1",
|
||||||
|
"amazon.titan-image-generator-v1",
|
||||||
|
"amazon.titan-embed-text-v1",
|
||||||
|
"ai21.j2-ultra-v1",
|
||||||
|
"ai21.j2-mid-v1",
|
||||||
|
"anthropic.claude-instant-v1",
|
||||||
|
"anthropic.claude-v2",
|
||||||
|
"anthropic.claude-v2:1",
|
||||||
|
"anthropic.claude-3-sonnet-20240229-v1:0",
|
||||||
|
"anthropic.claude-3-haiku-20240307-v1:0",
|
||||||
|
"amazon.titan-text-premier-v1:0",
|
||||||
|
"amazon.titan-embed-text-v2:0"
|
||||||
|
],
|
||||||
|
"deprecated": false,
|
||||||
|
"deprecationNote": "",
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "Define the model Id we are going to use"
|
||||||
|
},
|
||||||
|
"operation": {
|
||||||
|
"index": 2,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Operation",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": true,
|
||||||
|
"type": "object",
|
||||||
|
"javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations",
|
||||||
|
"enum": [
|
||||||
|
"invokeTextModel",
|
||||||
|
"invokeImageModel",
|
||||||
|
"invokeEmbeddingsModel"
|
||||||
|
],
|
||||||
|
"deprecated": false,
|
||||||
|
"deprecationNote": "",
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "The operation to perform"
|
||||||
|
},
|
||||||
|
"overrideEndpoint": {
|
||||||
|
"index": 3,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Override Endpoint",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": false,
|
||||||
|
"type": "boolean",
|
||||||
|
"javaType": "boolean",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"defaultValue": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "Set the need for overriding the endpoint. This option needs to be used in combination with the uriEndpointOverride option"
|
||||||
|
},
|
||||||
|
"pojoRequest": {
|
||||||
|
"index": 4,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Pojo Request",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": false,
|
||||||
|
"type": "boolean",
|
||||||
|
"javaType": "boolean",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"defaultValue": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "If we want to use a POJO request as body or not"
|
||||||
|
},
|
||||||
|
"profileCredentialsName": {
|
||||||
|
"index": 5,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Profile Credentials Name",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": false,
|
||||||
|
"type": "string",
|
||||||
|
"javaType": "java.lang.String",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"defaultValue": "false",
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "If using a profile credentials provider, this parameter will set the profile name"
|
||||||
|
},
|
||||||
|
"region": {
|
||||||
|
"index": 6,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Region",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": false,
|
||||||
|
"type": "string",
|
||||||
|
"javaType": "java.lang.String",
|
||||||
|
"enum": [
|
||||||
|
"us-east-1",
|
||||||
|
"us-west-1",
|
||||||
|
"ap-southeast-1",
|
||||||
|
"ap-northeast-1",
|
||||||
|
"eu-central-1"
|
||||||
|
],
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "The region in which Bedrock client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example, ap-east-1) You'll need to use the name Region.EU_WEST_1.id()"
|
||||||
|
},
|
||||||
|
"uriEndpointOverride": {
|
||||||
|
"index": 7,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Uri Endpoint Override",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": false,
|
||||||
|
"type": "string",
|
||||||
|
"javaType": "java.lang.String",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "Set the overriding uri endpoint. This option needs to be used in combination with overrideEndpoint option"
|
||||||
|
},
|
||||||
|
"useDefaultCredentialsProvider": {
|
||||||
|
"index": 8,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Use Default Credentials Provider",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": false,
|
||||||
|
"type": "boolean",
|
||||||
|
"javaType": "boolean",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"defaultValue": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "Set whether the Bedrock client should expect to load credentials through a default credentials provider or to expect static credentials to be passed in."
|
||||||
|
},
|
||||||
|
"useProfileCredentialsProvider": {
|
||||||
|
"index": 9,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Use Profile Credentials Provider",
|
||||||
|
"group": "producer",
|
||||||
|
"label": "",
|
||||||
|
"required": false,
|
||||||
|
"type": "boolean",
|
||||||
|
"javaType": "boolean",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"defaultValue": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "Set whether the Bedrock client should expect to load credentials through a profile credentials provider."
|
||||||
|
},
|
||||||
|
"lazyStartProducer": {
|
||||||
|
"index": 10,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Lazy Start Producer",
|
||||||
|
"group": "producer (advanced)",
|
||||||
|
"label": "producer,advanced",
|
||||||
|
"required": false,
|
||||||
|
"type": "boolean",
|
||||||
|
"javaType": "boolean",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"defaultValue": false,
|
||||||
|
"description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing."
|
||||||
|
},
|
||||||
|
"bedrockRuntimeClient": {
|
||||||
|
"index": 11,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Bedrock Runtime Client",
|
||||||
|
"group": "advanced",
|
||||||
|
"label": "advanced",
|
||||||
|
"required": false,
|
||||||
|
"type": "object",
|
||||||
|
"javaType": "software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient",
|
||||||
|
"deprecated": false,
|
||||||
|
"deprecationNote": "",
|
||||||
|
"autowired": true,
|
||||||
|
"secret": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "To use an existing configured AWS Bedrock Runtime client"
|
||||||
|
},
|
||||||
|
"proxyHost": {
|
||||||
|
"index": 12,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Proxy Host",
|
||||||
|
"group": "proxy",
|
||||||
|
"label": "proxy",
|
||||||
|
"required": false,
|
||||||
|
"type": "string",
|
||||||
|
"javaType": "java.lang.String",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "To define a proxy host when instantiating the Bedrock client"
|
||||||
|
},
|
||||||
|
"proxyPort": {
|
||||||
|
"index": 13,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Proxy Port",
|
||||||
|
"group": "proxy",
|
||||||
|
"label": "proxy",
|
||||||
|
"required": false,
|
||||||
|
"type": "integer",
|
||||||
|
"javaType": "java.lang.Integer",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "To define a proxy port when instantiating the Bedrock client"
|
||||||
|
},
|
||||||
|
"proxyProtocol": {
|
||||||
|
"index": 14,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Proxy Protocol",
|
||||||
|
"group": "proxy",
|
||||||
|
"label": "proxy",
|
||||||
|
"required": false,
|
||||||
|
"type": "object",
|
||||||
|
"javaType": "software.amazon.awssdk.core.Protocol",
|
||||||
|
"enum": [
|
||||||
|
"HTTP",
|
||||||
|
"HTTPS"
|
||||||
|
],
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"defaultValue": "HTTPS",
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "To define a proxy protocol when instantiating the Bedrock client"
|
||||||
|
},
|
||||||
|
"accessKey": {
|
||||||
|
"index": 15,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Access Key",
|
||||||
|
"group": "security",
|
||||||
|
"label": "security",
|
||||||
|
"required": false,
|
||||||
|
"type": "string",
|
||||||
|
"javaType": "java.lang.String",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": true,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "Amazon AWS Access Key"
|
||||||
|
},
|
||||||
|
"secretKey": {
|
||||||
|
"index": 16,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Secret Key",
|
||||||
|
"group": "security",
|
||||||
|
"label": "security",
|
||||||
|
"required": false,
|
||||||
|
"type": "string",
|
||||||
|
"javaType": "java.lang.String",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": true,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "Amazon AWS Secret Key"
|
||||||
|
},
|
||||||
|
"sessionToken": {
|
||||||
|
"index": 17,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Session Token",
|
||||||
|
"group": "security",
|
||||||
|
"label": "security",
|
||||||
|
"required": false,
|
||||||
|
"type": "string",
|
||||||
|
"javaType": "java.lang.String",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": true,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "Amazon AWS Session Token used when the user needs to assume an IAM role"
|
||||||
|
},
|
||||||
|
"trustAllCertificates": {
|
||||||
|
"index": 18,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Trust All Certificates",
|
||||||
|
"group": "security",
|
||||||
|
"label": "security",
|
||||||
|
"required": false,
|
||||||
|
"type": "boolean",
|
||||||
|
"javaType": "boolean",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"defaultValue": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "If we want to trust all certificates in case of overriding the endpoint"
|
||||||
|
},
|
||||||
|
"useSessionCredentials": {
|
||||||
|
"index": 19,
|
||||||
|
"kind": "parameter",
|
||||||
|
"displayName": "Use Session Credentials",
|
||||||
|
"group": "security",
|
||||||
|
"label": "security",
|
||||||
|
"required": false,
|
||||||
|
"type": "boolean",
|
||||||
|
"javaType": "boolean",
|
||||||
|
"deprecated": false,
|
||||||
|
"autowired": false,
|
||||||
|
"secret": false,
|
||||||
|
"defaultValue": false,
|
||||||
|
"configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration",
|
||||||
|
"configurationField": "configuration",
|
||||||
|
"description": "Set whether the Bedrock client should expect to use Session Credentials. This is useful in a situation in which the user needs to assume an IAM role for doing operations in Bedrock."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user