Skip to content

Commit

Permalink
chore: Remove experimental data type Kamelets
Browse files Browse the repository at this point in the history
Remove AWS S3 and AWS DDB experimental Kamelets in favor of using the data-type-action Kamelet
  • Loading branch information
christophd authored and oscerd committed Mar 2, 2023
1 parent 38d6fef commit 4f1dd7b
Show file tree
Hide file tree
Showing 23 changed files with 48 additions and 1,717 deletions.
2 changes: 0 additions & 2 deletions docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* xref:avro-serialize-action.adoc[]
* xref:aws-cloudtrail-source.adoc[]
* xref:aws-cloudwatch-sink.adoc[]
* xref:aws-ddb-experimental-sink.adoc[]
* xref:aws-ddb-sink.adoc[]
* xref:aws-ddb-streams-source.adoc[]
* xref:aws-ec2-sink.adoc[]
Expand All @@ -15,7 +14,6 @@
* xref:aws-redshift-sink.adoc[]
* xref:aws-redshift-source.adoc[]
* xref:aws-s3-cdc-source.adoc[]
* xref:aws-s3-experimental-source.adoc[]
* xref:aws-s3-sink.adoc[]
* xref:aws-s3-source.adoc[]
* xref:aws-s3-streaming-upload-sink.adoc[]
Expand Down
149 changes: 0 additions & 149 deletions kamelets/aws-ddb-experimental-sink.kamelet.yaml

This file was deleted.

21 changes: 15 additions & 6 deletions kamelets/aws-ddb-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
If you use the default credentials provider, the DynamoDB client loads the credentials through this provider and doesn't use the basic authentication method.
This Kamelet expects a JSON-formatted body and it must include the primary key values that define the DynamoDB item. The mapping between the JSON fields and table attribute values is done by key. For example, for '{"username":"oscerd", "city":"Rome"}' input, the Kamelet inserts or update an item in the specified AWS DynamoDB table and sets the values for the 'username' and 'city' attributes.
This Kamelet expects a JSON-formatted body and it must include the primary key values that define the DynamoDB item. The mapping between the JSON fields and table attribute values is done by key. For example, for '{"username":"oscerd", "city":"Rome"}' input, the Kamelet inserts or update an item in the specified AWS DynamoDB table and sets the values for the 'username' and 'city' attributes.
required:
- table
- region
Expand Down Expand Up @@ -108,17 +108,26 @@ spec:
- "camel:aws2-ddb"
- "camel:kamelet"
template:
beans:
- name: dataTypeRegistry
type: "#class:org.apache.camel.kamelets.utils.format.DefaultDataTypeRegistry"
- name: dataTypeProcessor
type: "#class:org.apache.camel.kamelets.utils.format.DataTypeProcessor"
property:
- key: scheme
value: 'aws2-ddb'
- key: format
value: 'json'
- key: registry
value: '#bean:{{dataTypeRegistry}}'
from:
uri: "kamelet:source"
steps:
- set-property:
name: operation
constant: "{{operation}}"
- unmarshal:
json:
library: Jackson
unmarshalType: com.fasterxml.jackson.databind.JsonNode
- bean: "org.apache.camel.kamelets.utils.transform.aws.ddb.JsonToDdbModelConverter"
- process:
ref: "{{dataTypeProcessor}}"
- to:
uri: "aws2-ddb:{{table}}"
parameters:
Expand Down
168 changes: 0 additions & 168 deletions kamelets/aws-s3-experimental-source.kamelet.yaml

This file was deleted.

Loading

0 comments on commit 4f1dd7b

Please sign in to comment.